/* ============================================================
   Sabrin Therapy, site styles
   One stylesheet for every page. Change a colour, font or
   spacing value here and all three pages update together.
   ============================================================ */


/* ---------- Reset ---------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }


/* ---------- Design tokens ----------
   The single source of truth for the brand. Edit these, not
   the rules below, to change colours or fonts site-wide. */

:root {
  /* Brand, hues locked. Every value below is checked against WCAG 2.1 AA;
     the ratio in each comment is measured, not estimated. */
  --accent: #7A9E8E;        /* borders, icons, decorative rules only     */
  --accent-dark: #4A6B5C;   /* 5.26:1 on cream, buttons, labels, panels */
  --accent-band: #688F7D;   /* quote band ground, 3.41:1 w/ cream text  */
  --accent-light: #B3CCC0;  /* emphasis on dark, 3.47:1 on accent-dark  */

  /* Surfaces */
  --bg: #F6F1E9;
  --panel: #EDF2EF;
  --marquee-bg: #FBF8F2;

  /* Lines */
  --nav-border: #DCE4DE;
  --soft-border: #E6E0D4;

  /* Text on light backgrounds */
  --text: #2C3830;          /* 10.89:1 on cream */
  --text-soft: #5A6B62;     /*  5.03:1 on cream */
  --text-muted: #5F7168;    /*  4.61:1 on cream */
  --footer-text: #5F7168;   /*  4.61:1 on cream */
  --placeholder-ink: #55635A;

  /* Text on dark backgrounds */
  --hero-text: #FBF8F2;     /* 5.58:1 on accent-dark */
  --hero-body: #E7E0D3;     /* 4.51:1 on accent-dark */
  --hero-eyebrow: #F0E4D6;  /* 4.73:1 on accent-dark */

  /* Type, Fraunces carries the warmth in headings; Inter stays quiet
     and legible at small sizes on phones, where most visitors read. */
  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --max: 680px;
  --pad: clamp(1.5rem, 5vw, 3rem);
  --radius-card: 1.5rem;
  --radius-section: 2.5rem;
  --radius-soft: 16px;

  /* The hero and About photo slots share one measure and one column
     width, so they read as one system rather than two separately-sized
     images. 380px keeps the photo a supporting element, not the largest
     thing on the page beside a 60px+ headline. */
  --measure-wide: 1100px;
  --portrait-col: 380px;
}


/* ---------- Base ---------- */

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

h1, h2, h3 { font-family: var(--font-heading); }

em { font-style: italic; color: var(--accent-dark); }
em.on-dark { color: var(--accent-light); }

/* Sub-page heading (the home page hero overrides this below) */
h1 {
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  color: var(--text);
  text-wrap: balance;
}

h2.on-dark { color: var(--hero-text); }


/* ---------- Motion ---------- */

@keyframes marquee-scroll-y { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes sway-x { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@keyframes pulse-scale { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes blob-morph {
  0%, 100% { border-radius: 63% 37% 54% 46% / 42% 47% 53% 58%; }
  50% { border-radius: 42% 58% 39% 61% / 55% 42% 58% 45%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}


/* ---------- Shared components ---------- */

.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent-dark);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before { content: ''; display: block; width: 1.5rem; height: 1px; background: var(--accent); }
.eyebrow.on-dark { color: var(--hero-eyebrow); }

.body-text p { color: var(--text-soft); margin-bottom: 1.1rem; font-size: 1rem; line-height: 1.85; max-width: 58ch; }
.body-text p:last-child { margin-bottom: 0; }

/* ---------- Buttons ----------
   One primary action on the site: book the free call. Only .btn-primary
   is ever solid-filled. Everything else is visually subordinate so the
   eye lands on the same action on every screen.
   Minimum height 48px meets the 44px touch-target floor (WCAG 2.5.5). */

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.85rem 2.1rem;
  border-radius: 2rem;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

/* Primary, solid deep sage on light grounds. 5.92:1 with white text. */
.btn-primary {
  background: var(--accent-dark);
  color: #FFFFFF;
  border: 1px solid var(--accent-dark);
}
.btn-primary:hover { background: #3E5A4D; transform: translateY(-1px); }

/* Primary on a dark ground, inverted, still the only filled button there. */
.on-dark-ground .btn-primary {
  background: var(--bg);
  color: var(--accent-dark);
  border-color: var(--bg);
}
.on-dark-ground .btn-primary:hover { background: #FFFFFF; }

/* Secondary, outlined, never competes for the eye. */
.btn-secondary {
  background: transparent;
  color: var(--accent-dark);
  border: 1px solid var(--accent);
}
.btn-secondary:hover { background: var(--panel); }

.btn-ghost { display: inline-flex; align-items: center; min-height: 48px; color: var(--hero-body); font-size: 0.9rem; padding: 0.85rem 1.25rem; transition: color 0.2s; }
/* When it sits under the buttons rather than beside them, align to the same edge. */
.cta-actions + .btn-ghost { padding-left: 0; }
.btn-ghost:hover { color: var(--hero-text); text-decoration: underline; }

/* Reassurance line under an ask. Facts only, no outcome claims. */
.cta-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.85rem;
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.cta-trust span { display: inline-flex; align-items: center; gap: 0.4rem; }
.cta-trust span + span::before { content: '·'; margin-right: 0.45rem; opacity: 0.6; }
.on-dark-ground .cta-trust { color: var(--hero-body); }

/* Two paths at every ask: booking (solid) and email (outlined).
   Never two solid buttons, the eye must still land on one first. */
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.cta-block .cta-actions { justify-content: center; }

/* On a sub-page the ask should sit on the same measure as the prose
   above it, not 22px wider on each side. */
.page + .cta-block { max-width: calc(var(--max) + var(--pad) * 2); }
.page-wide + .cta-block { max-width: calc(var(--measure-wide) + var(--pad) * 2); }

/* Outlined button on a dark ground, cream at 5.26:1 on deep sage. */
.on-dark-ground .btn-secondary {
  color: var(--bg);
  border-color: rgba(246, 241, 233, 0.55);
}
.on-dark-ground .btn-secondary:hover {
  background: rgba(246, 241, 233, 0.12);
  border-color: var(--bg);
}

/* Square icon button, used where space is tight (the mobile bar). */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent-dark);
  background: transparent;
  transition: background 0.2s;
}
.btn-icon:hover { background: var(--panel); }

/* Repeatable ask, placed where a reader's doubt has just been answered. */
.cta-block {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 3.5rem) clamp(1.5rem, 5vw, 3.5rem);
  text-align: center;
}
.cta-block p {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
  max-width: 32ch;
  margin: 0 auto 1.5rem;
  text-wrap: balance;
}
.cta-block .cta-trust { justify-content: center; }

/* Visible keyboard focus everywhere. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark-ground a:focus-visible { outline-color: var(--bg); }

/* Mobile: the primary action follows the reader down the page, because
   on a phone the nav CTA is hidden behind the menu button. */
.sticky-cta { display: none; }

@media (max-width: 880px) {
  .sticky-cta {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 200;
    background: rgba(246, 241, 233, 0.94);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--soft-border);
    padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
  }
  .sticky-cta-row { display: flex; gap: 0.5rem; align-items: center; }
  .sticky-cta .btn-primary { flex: 1; padding-left: 1rem; padding-right: 1rem; }
  body { padding-bottom: 5.5rem; }
}

.nav-cta {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-dark);
  border: 1px solid var(--accent);
  padding: 0.45rem 1.1rem;
  border-radius: 2rem;
  text-align: center;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--accent); color: white; }

.logo-mark { display: flex; align-items: center; gap: 0.6rem; }
.logo-mark svg { flex-shrink: 0; }
.logo-mark .wordmark { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 600; color: var(--text); letter-spacing: 0.01em; line-height: 1.2; }

/* Soft blurred background shapes */
.blob { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }

/* Photo slots, drop a photo in at the filename in the HTML and it
   fills this shape automatically; until then the placeholder shows. */
.portrait-placeholder {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, #EDE7DA, #EDE7DA 10px, #E6DFCF 10px, #E6DFCF 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--placeholder-ink);
  font-family: monospace;
  font-size: 0.9rem;
  text-align: center;
}
.portrait-placeholder img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait-placeholder .placeholder-label { display: none; position: relative; }

.organic-shape { animation: blob-morph 14s ease-in-out infinite; }

.bacp-badge { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.78rem; color: var(--text-muted); }
.bacp-badge img { height: 32px; width: auto; }

/* Collapsible FAQ / details */
details { border-bottom: 1px solid var(--soft-border); }
summary {
  padding: 1.25rem 0;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
summary::-webkit-details-marker { display: none; }
.si { width: 1.25rem; height: 1.25rem; flex-shrink: 0; color: var(--accent); transition: transform 0.2s; }
details[open] .si { transform: rotate(45deg); }


/* ---------- Footer (all pages) ---------- */

footer {
  border-top: 1px solid var(--soft-border);
  padding: 3rem clamp(1.5rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 2fr auto;
  align-items: start;
  gap: 2.5rem;
  font-size: 0.78rem;
  color: var(--footer-text);
}
.footer-brand { display: flex; flex-direction: column; gap: 0.3rem; }
.footer-note { margin-top: 0.5rem; max-width: 24ch; }

.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.footer-nav > div { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-heading {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 0.2rem;
}
.footer-nav a { color: var(--footer-text); }
.footer-nav a:hover { color: var(--text); text-decoration: underline; }

@media (max-width: 880px) {
  footer { grid-template-columns: 1fr; gap: 2rem; }
  .footer-meta { align-items: flex-start; text-align: left; }
}
@media (max-width: 520px) {
  .footer-nav { grid-template-columns: 1fr 1fr; }
}
.footer-logo { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600; color: var(--text); }
.footer-meta { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-end; text-align: right; }
.footer-meta img { height: 44px; width: auto; }


/* ============================================================
   HOME PAGE
   ============================================================ */

/* Capped so the site stops sprawling on large monitors. Past this width
   the page simply centres instead of growing emptier. */
.layout {
  display: grid;
  grid-template-columns: 220px 44px 1fr;
  min-height: 100vh;
  max-width: 1500px;
  margin-inline: auto;
  box-shadow: 0 0 80px rgba(44, 56, 48, 0.06);
}


/* ---------- Sidebar nav ---------- */

#side-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--panel);
  border-right: 1px solid var(--nav-border);
  padding: 2.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
#side-nav .nav-cta { font-size: 0.78rem; padding: 0.6rem 1rem; }

.nav-list { list-style: none; display: flex; flex-direction: column; gap: 1.3rem; }
.nav-list a { display: flex; align-items: center; gap: 0.6rem; font-size: 0.8rem; color: var(--text-soft); letter-spacing: 0.04em; transition: color 0.2s; }
.nav-list a:hover { color: var(--text); }
.nav-list svg { flex-shrink: 0; }

.mobile-logo { display: none; }
.layout #mobile-menu { display: none; }


/* ---------- Vertical icon marquee ---------- */

#marquee-col {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--marquee-bg);
  border-right: 1px solid var(--soft-border);
  display: flex;
  justify-content: center;
}
.marquee-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.75rem;
  width: max-content;
  padding: 2rem 0;
  animation: marquee-scroll-y 34s linear infinite;
}
.marquee-track > div { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex-shrink: 0; }


/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--accent-dark);
  padding: clamp(4rem, 10vw, 6rem) clamp(1.5rem, 5vw, 3.5rem) 0;
  overflow: hidden;
}
.hero > *:not(.blob):not(.wave-divider) { position: relative; }

.hero-blob-1 { width: 26rem; height: 26rem; top: -9rem; right: -6rem; background: var(--accent); opacity: 0.4; }
.hero-blob-2 { width: 20rem; height: 20rem; bottom: -8rem; left: 8%; background: var(--hero-eyebrow); opacity: 0.12; }
.hero-blob-3 { width: 14rem; height: 14rem; top: 30%; left: 42%; background: var(--hero-text); opacity: 0.06; }

.wave-divider { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.wave-divider svg { display: block; width: 100%; height: clamp(2.5rem, 6vw, 4.5rem); }

.hero h1 {
  font-size: clamp(3.4rem, 8.5vw, 6.4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--hero-text);
  margin: 2rem 0 2.5rem;
  max-width: 820px;
}

.hero-inner { max-width: var(--measure-wide); margin-inline: auto; }

#hero-grid {
  display: grid;
  grid-template-columns: 1fr var(--portrait-col);
  gap: clamp(2rem, 5vw, 3.5rem);
  /* Top-aligned: bottom-aligning left a dead gap under the headline,
     because the portrait is taller than the text beside it. */
  align-items: start;
  padding-bottom: clamp(3rem, 7vw, 4.5rem);
}

.hero-body { max-width: 520px; }
.hero-body p { color: var(--hero-body); margin-bottom: 1.25rem; font-size: 1rem; line-height: 1.85; }
.hero-body p:last-of-type { margin-bottom: 2rem; }
.hero-body strong { color: var(--hero-text); }

.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }

#hero-portrait { aspect-ratio: 4/5; }


/* ---------- About ---------- */

.about { background: var(--panel); padding: clamp(3.5rem, 8vw, 6rem) clamp(1.5rem, 5vw, 3.5rem); }
#about-grid { max-width: var(--measure-wide); margin-inline: auto; display: grid; grid-template-columns: 1fr var(--portrait-col); gap: clamp(2rem, 5vw, 3.5rem); }
#about-grid .about-heading { order: 2; }
#about-grid .about-body { order: 1; }
#about-portrait { aspect-ratio: 1/1; border: 1px solid var(--soft-border); font-size: 0.85rem; }


/* ---------- Quote band ---------- */

.stat-band {
  background: var(--accent-band);
  margin: 3rem clamp(1.25rem, 4vw, 3.5rem);
  border-radius: var(--radius-section);
  padding: clamp(3rem, 7vw, 4.5rem) clamp(1.5rem, 5vw, 3.5rem);
  text-align: center;
}
.stat-band p {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--hero-text);
  max-width: 900px;
  margin: 0 auto;
}


/* ---------- Who I work with ---------- */

.who { padding: clamp(3.5rem, 8vw, 6rem) clamp(1.5rem, 5vw, 3.5rem); max-width: 820px; margin: 0 auto; }

.issues-label { font-size: 0.82rem; color: var(--text-muted); font-style: italic; margin-bottom: 0.75rem; }
.issues { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.issues span { font-size: 0.82rem; color: var(--accent-dark); border: 1px solid var(--accent); border-radius: 2rem; padding: 0.45rem 1rem; }
.issues a span { transition: background 0.2s; }
.issues a:hover span { background: var(--panel); }


/* ---------- Approach ---------- */

.approach {
  position: relative;
  overflow: hidden;
  background: var(--accent-dark);
  margin: 0 clamp(1.25rem, 4vw, 3.5rem) 3rem;
  border-radius: var(--radius-section);
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.5rem, 5vw, 3.5rem);
}
.approach-blob { top: -6rem; left: -6rem; width: 18rem; height: 18rem; background: var(--accent); opacity: 0.25; }
.approach-inner { position: relative; max-width: 820px; margin: 0 auto; }
.approach-inner > p { color: var(--hero-body); margin: 0 0 2.5rem; font-size: 1rem; line-height: 1.85; max-width: 62ch; }
.approach-inner strong { color: var(--hero-text); }
.approach-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }

.card { background: var(--bg); border-radius: var(--radius-card); padding: 1.75rem; }
.card svg { display: block; margin-bottom: 0.75rem; }
.card-num { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; color: var(--accent); }
.card h3 { font-size: 1.3rem; font-weight: 600; color: var(--text); margin: 0.75rem 0 0.5rem; }
.card p { font-size: 0.9rem; color: var(--text-soft); line-height: 1.7; margin: 0; }
.card strong { color: var(--text); }


/* ---------- Fees ---------- */

.fees { padding: clamp(3.5rem, 8vw, 6rem) clamp(1.5rem, 5vw, 3.5rem); max-width: 820px; margin: 0 auto; }
.fee-card {
  border: 1px solid var(--accent);
  border-radius: 1.75rem;
  padding: 2.25rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
  box-shadow: 0 12px 32px rgba(74, 107, 92, 0.08);
}
.fee-amount { font-family: var(--font-heading); font-size: 3.2rem; font-weight: 600; color: var(--text); line-height: 1; }
.fee-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }
.fee-details { font-size: 0.9rem; color: var(--text-soft); line-height: 1.75; }
.fee-note { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--soft-border); font-size: 0.85rem; color: var(--text-soft); font-style: italic; }
.fee-first-session { padding: 1.75rem 0 0; margin-top: 1.5rem; border-top: 1px solid var(--soft-border); }
.fee-first-session h3 { font-size: 1.3rem; font-weight: 600; color: var(--text); margin: 0 0 0.6rem; }
.fee-first-session p { font-size: 0.9rem; color: var(--text-soft); line-height: 1.75; margin: 0; }


/* ---------- FAQ ---------- */

.faq { background: var(--panel); padding: clamp(3.5rem, 8vw, 6rem) clamp(1.5rem, 5vw, 3.5rem); }
.faq-inner { max-width: 820px; margin: 0 auto; }
.faq-answer { padding: 0 0 1.5rem; font-size: 0.95rem; color: var(--text-soft); line-height: 1.85; max-width: 56ch; }
.faq-answer p { margin: 0 0 0.75rem; }
.faq-answer p:last-child { margin-bottom: 0; }


/* ---------- Closing ---------- */

.closing { padding: clamp(3.5rem, 8vw, 6rem) clamp(1.5rem, 5vw, 3.5rem); max-width: 820px; margin: 0 auto; }
.closing p { color: var(--text-soft); margin: 0 0 2rem; font-size: 1rem; line-height: 1.85; max-width: 58ch; }


/* ============================================================
   CONTACT + PRIVACY PAGES
   ============================================================ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--soft-border);
  padding: 1rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.topbar .logo-mark .wordmark { font-size: 1.25rem; }
.who .body-text p:last-child { margin-bottom: 2rem; }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-size: 0.8rem; font-weight: 400; color: var(--text-soft); letter-spacing: 0.04em; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

.page {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 10vw, 7rem) var(--pad) clamp(3rem, 8vw, 6rem);
  max-width: calc(var(--max) + var(--pad) * 2);
  margin: 0 auto;
}
.page > *:not(.blob) { position: relative; }
.page-blob { top: -8rem; right: -6rem; width: 22rem; height: 22rem; background: var(--accent); opacity: 0.15; }

.intro { font-size: 1rem; color: var(--text-soft); line-height: 1.85; max-width: 52ch; margin-bottom: 2rem; }




/* ---------- Contact form ---------- */



label { display: block; font-size: 0.82rem; font-weight: 500; color: var(--text); letter-spacing: 0.02em; margin-bottom: 0.4rem; margin-top: 1.25rem; }
label:first-of-type { margin-top: 0; }

input, textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--soft-border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
input:focus, textarea:focus { border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--text-muted); }
textarea { resize: vertical; min-height: 140px; line-height: 1.6; }





/* ---------- Contact ----------
   Two panels in the same language as the fee card on the home page:
   the call (primary) and the message form (secondary), side by side. */

.page-wide { max-width: calc(var(--measure-wide) + var(--pad) * 2); }

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
  align-items: start;
}
.contact-card {
  border-radius: 1.75rem;
  padding: 2rem;
}
.contact-card h2 {
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.contact-card > p { font-size: 0.95rem; color: var(--text-soft); line-height: 1.7; margin-bottom: 1.5rem; }

/* The primary path gets the tinted panel; the form gets the bordered card. */
.contact-card-call { background: var(--panel); }
.contact-card-form {
  border: 1px solid var(--accent);
  box-shadow: 0 12px 32px rgba(74, 107, 92, 0.08);
}
.contact-card-form h2 { margin-bottom: 1.25rem; }

.submit-btn { margin-top: 1.5rem; width: 100%; }
.success-msg {
  display: none;
  font-size: 0.95rem;
  color: var(--accent-dark);
  line-height: 1.7;
}
.success-msg a { color: var(--accent-dark); text-decoration: underline; }

/* If the mail app doesn't open, the visitor still needs a way out. */
.success-msg p { margin-bottom: 0.6rem; }
.success-fallback { color: var(--text-soft); font-size: 0.9rem; }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: 1rem 0 0.75rem; }
.copy-row span { font-weight: 500; color: var(--text); }
.btn-copy {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 500;
  color: var(--accent-dark); background: transparent;
  border: 1px solid var(--accent); border-radius: 2rem;
  padding: 0.35rem 0.9rem; cursor: pointer; transition: background 0.2s;
}
.btn-copy:hover { background: var(--panel); }
.message-preview {
  font-family: var(--font-body); font-size: 0.85rem; color: var(--text-soft);
  background: var(--bg); border: 1px solid var(--soft-border); border-radius: 12px;
  padding: 0.9rem 1rem; margin-bottom: 0.75rem;
  white-space: pre-wrap; word-break: break-word; max-height: 11rem; overflow-y: auto;
}

.contact-details { margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--soft-border); }
.contact-details p { font-size: 0.92rem; color: var(--text-soft); line-height: 1.7; }
.contact-details a { color: var(--accent-dark); text-decoration: underline; }
.contact-fit { margin-top: 0.75rem; font-style: italic; color: var(--text-muted); max-width: 52ch; }

@media (max-width: 760px) {
  .contact-cards { grid-template-columns: 1fr; }
}


/* ---------- Privacy policy prose ---------- */

.updated { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 3rem; }

.prose { max-width: 62ch; }
.prose p { font-size: 1rem; color: var(--text-soft); line-height: 1.85; margin-bottom: 1.1rem; }
.prose h2 { font-size: 1.6rem; font-weight: 600; color: var(--text); margin-top: 2.5rem; margin-bottom: 0.75rem; }
.prose ul { margin: 0.5rem 0 1rem 1.25rem; }
.prose ul li { font-size: 0.97rem; color: var(--text-soft); line-height: 1.8; margin-bottom: 0.3rem; }
.prose a { color: var(--accent-dark); text-decoration: underline; }

.highlight {
  background: var(--panel);
  border-left: 2px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-soft) var(--radius-soft) 0;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  color: var(--text-soft);
  font-weight: 400;
  line-height: 1.8;
  font-style: italic;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Home page: sidebar collapses to a top bar with a menu button */
@media (max-width: 880px) {
  .layout { grid-template-columns: 1fr; }
  #marquee-col { display: none; }
  #hero-grid, #about-grid { grid-template-columns: 1fr; }
  /* Phone: the photo goes directly under the headline, before the body
     copy, so it is above the fold on the device most visitors use. A
     compact square keeps headline + photo + first line in one screen. */
  #hero-portrait { order: -1; max-width: 240px; aspect-ratio: 1/1; margin-bottom: 0.5rem; }
  #about-portrait { max-width: 380px; }
  .stat-band, .approach { margin-left: 1rem; margin-right: 1rem; border-radius: var(--radius-card); }

  #side-nav {
    position: sticky;
    top: 0;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-right: none;
    border-bottom: 1px solid var(--nav-border);
    z-index: 50;
  }
  .mobile-logo { display: flex; }
  .mobile-logo .wordmark { font-size: 1.1rem; }
  .desktop-only { display: none; }
  .layout #mobile-menu { display: block; }
}

/* Sub-pages: nav links collapse to a menu button */
@media (max-width: 680px) {
  .topbar .nav-links { display: none; }
  .topbar #mobile-menu { display: block; }
}

/* Shared mobile menu (both nav styles) */
#mobile-menu { position: relative; display: none; }
#mobile-menu > summary { list-style: none; cursor: pointer; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; }
#mobile-menu > summary::-webkit-details-marker { display: none; }
#mobile-nav-links {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.75rem;
  background: var(--panel);
  border: 1px solid var(--nav-border);
  border-radius: var(--radius-soft);
  padding: 1rem 1.5rem;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  z-index: 50;
}
#mobile-nav-links a { font-size: 0.85rem; color: var(--text-soft); }
#mobile-nav-links a.is-cta { color: var(--accent-dark); font-weight: 500; }

/* Signals that a service page is an entry point, not a boundary. */
.not-the-limit { font-size: 0.9rem; color: var(--text-muted); font-style: italic; margin-top: 2rem; }
.not-the-limit a { color: var(--accent-dark); text-decoration: underline; }
