/* Creative Therapies - mobile-first responsive stylesheet
   Replaces the legacy Bootstrap 2 layout. Phone defaults; scales up. */

:root {
  /* Deep, rich blue - Marti loves blue (and deep, not pale) */
  --teal: #1b4a7a;        /* primary deep blue */
  --teal-deep: #122f50;   /* darkest navy-blue (nav, footer, hero base) */
  --teal-light: #2e6db0;  /* accent blue (buttons, links) */
  --sky: #e7eef6;         /* pale blue wash */
  --sand: #e9eff6;        /* soft blue-tinted section bg */
  --cream: #f8fafc;       /* near-white, cool */
  --ink: #1c2733;
  --ink-soft: #44505d;
  --muted: #7d8893;
  --gold: #c98a3c;        /* warm accent, used sparingly */
  --gold-dark: #a86f2a;
  --line: #d2dde8;
  --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  /* Sticky footer: body fills viewport, main grows, footer sits at bottom */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
.footer { flex-shrink: 0; }

h1, h2, h3 { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; line-height: 1.2; color: var(--teal-deep); font-weight: 500; }

a { color: var(--teal-light); }

img { max-width: 100%; height: auto; display: block; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--teal); color: #fff; padding: 0.6rem 1rem; z-index: 200;
}
.skip-link:focus { left: 0; }

.wrap { width: 100%; max-width: 1060px; margin: 0 auto; padding: 0 1.2rem; }

/* ── Navigation (mobile-first: hamburger) ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: #0c2238; /* darker than the hero so it reads as its own bar */
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  max-width: 1060px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1.2rem;
}
.brand {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 700; font-size: 1.15rem;
  color: #fff; text-decoration: none; letter-spacing: 0.01em;
}
.nav-toggle {
  background: none; border: none; color: #fff; font-size: 1.5rem;
  cursor: pointer; padding: 0.25rem 0.4rem; line-height: 1;
}
.nav-links { list-style: none; display: none; }
.nav-links.open { display: block; }
.nav-links li { border-top: 1px solid rgba(255,255,255,0.1); }
.nav-links a {
  display: block; color: #eef3f2; text-decoration: none;
  padding: 0.85rem 0.2rem; font-size: 1rem;
}
.nav-links a:hover, .nav-links a:focus { color: #fff; }

@media (min-width: 860px) {
  .nav-inner { justify-content: flex-start; gap: 2.2rem; }
  .nav-toggle { display: none; }
  .nav-links {
    display: flex; gap: 1.4rem; align-items: center;
    margin-right: auto; /* keep links left, soak up remaining space on the right */
  }
  .nav-links li { border-top: none; }
  .nav-links a { padding: 0.3rem 0; font-size: 0.95rem; }
}

/* ── Hero ── */
.hero {
  background: linear-gradient(165deg, #2a6aa8 0%, #1b4a7a 100%);
  color: #fff;
  padding: 2rem 1.2rem 2.2rem;
  text-align: center;
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero h1 {
  color: #fff; font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  font-weight: 300; letter-spacing: -0.01em; margin-bottom: 0.5rem;
}
.hero .lead {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: #e4eeec; max-width: 64ch; margin: 0 auto 1.2rem; line-height: 1.5;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }

/* ── Buttons (flat, simple) ── */
.btn {
  display: inline-block;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 600;
  font-size: 0.9rem; text-decoration: none; cursor: pointer;
  padding: 0.55rem 1.1rem; border-radius: 3px;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); }
/* On the blue hero, buttons need contrast: solid white + outlined white */
.hero .btn-primary { background: #fff; color: var(--teal-deep); }
.hero .btn-primary:hover { background: var(--sky); }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.15); }
.btn-sm {
  background: var(--teal); color: #fff; border: 1px solid var(--teal);
  padding: 0.4rem 0.9rem; font-size: 0.85rem; margin-top: 0.4rem;
}
.btn-sm:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* ── Sections ── */
.section { padding: 2.5rem 0; }
.section.alt { background: var(--sand); }

.rule { border: none; border-top: 1px solid var(--line); margin: 2.5rem 0; }

/* ── Card grid (mobile: stacked, desktop: 3-up) ── */
.cards-3 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 720px) {
  .cards-3 { grid-template-columns: repeat(3, 1fr); gap: 2rem; align-items: start; }
}
.card { text-align: center; }
.card h2 { font-size: 1.25rem; margin-bottom: 0.9rem; }
.card p { color: var(--ink-soft); margin: 0.8rem 0; }
.card .muted { color: var(--muted); font-size: 0.92rem; font-style: italic; }
.card img { margin: 0 auto; }
.card img.cover {
  width: auto; max-height: 280px; border-radius: 3px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.card img.round {
  width: 200px; height: 240px; object-fit: cover; border-radius: 3px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.embed { width: 100%; height: 260px; border: none; border-radius: 6px; }

/* ── Content pages (prose) ── */
.page { padding: 2.5rem 0 3.5rem; }
.page h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); margin-bottom: 1.4rem; }
.page h2 { font-size: 1.4rem; margin: 2rem 0 0.8rem; color: var(--teal); }
.prose { max-width: 720px; }
.prose p { margin-bottom: 1.2rem; color: var(--ink-soft); }
.prose strong { color: var(--ink); }
.prose a:not(.btn) { color: var(--teal-light); font-weight: 600; }
/* All buttons: white text, no exceptions (except the white-on-blue hero primary) */
.btn { color: #fff; }
.hero .btn-primary { color: var(--teal-deep); }
.prose ul { margin: 0 0 1.2rem 1.3rem; }
.prose li { margin-bottom: 0.5rem; color: var(--ink-soft); }

.bio-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
@media (min-width: 720px) { .bio-layout { grid-template-columns: 220px 1fr; gap: 2.5rem; } }
.bio-layout img { border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

/* book detail blocks */
.book { display: grid; grid-template-columns: 1fr; gap: 1.6rem; margin-bottom: 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.book:last-child { border-bottom: none; }
@media (min-width: 680px) { .book { grid-template-columns: 200px 1fr; gap: 2.2rem; } }
.book img { border-radius: 3px; box-shadow: 0 8px 24px rgba(0,0,0,0.18); margin: 0 auto; max-height: 300px; width: auto; }
.book h2 { margin-top: 0; }
.review { background: var(--sand); border-left: 3px solid var(--gold); padding: 1rem 1.2rem; border-radius: 0 6px 6px 0; margin: 1rem 0; font-style: italic; color: var(--ink-soft); }
.review .who { display: block; font-style: normal; font-weight: 600; color: var(--teal); margin-top: 0.5rem; font-size: 0.9rem; }

/* link list (resources) */
.link-list { list-style: none; margin: 1.5rem 0; }
.link-list li { margin-bottom: 1rem; }
.link-list a { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 600; font-size: 1.05rem; }

/* ── Contact form ── */
.form-card { max-width: 560px; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.4rem; color: var(--teal-deep); }
.form-group input, .form-group textarea {
  width: 100%; padding: 0.75rem 0.9rem; font: inherit;
  border: 1.5px solid var(--line); border-radius: 6px; background: #fff;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--teal-light); }
.form-group textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; } /* honeypot */
#form-status { margin-top: 1rem; font-weight: 600; display: none; }

/* ── Footer ── */
.footer { background: var(--teal-deep); color: #c4d3d2; text-align: center; padding: 2rem 1.2rem; margin-top: 1rem; }
.footer p { font-size: 0.88rem; }
.footer a { color: #e6efee; }
