/* Esther Renfer: "warm editorial" design.
   Paper background, one ink, one sage accent, serif display (Fraunces) + humanist sans (Figtree).
   Fonts are self-hosted in /fonts (SIL Open Font License), so no request goes to Google. */

@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url("fonts/fraunces-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces"; font-style: italic; font-weight: 300 600; font-display: swap;
  src: url("fonts/fraunces-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/figtree-latin.woff2") format("woff2");
}

:root {
  /* Color: paper, ink, one accent, one tint */
  --paper: #F6F1EA;
  --paper-2: #ECE4D8;        /* the one tinted band (book, prices) */
  --ink: #26221E;
  --muted: #5C544C;
  --accent: #3F5B3A;         /* deep sage */
  --accent-press: #2F4529;
  --rule: #D8CDBE;
  --on-dark: #F6F1EA;
  --on-dark-muted: #CFC6BA;

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --gutter: 16px;
  --radius: 4px;

  interpolate-size: allow-keywords; /* lets the FAQ animate to its natural height */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-press); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--paper); }

.container { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--display); font-weight: 400; color: var(--ink);
  margin: 0 0 .5em; font-optical-sizing: auto; text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 6.4vw, 5.25rem); line-height: 1.02; letter-spacing: -.025em; }
h1 em { font-style: italic; font-weight: 300; color: var(--accent); }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); line-height: 1.08; letter-spacing: -.02em; }
h3 { font-size: 1.45rem; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }

.eyebrow {
  font-family: var(--body); font-size: .78rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 1.25rem;
}
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 34em; }
.small { font-size: .85rem; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 28px;
  background: var(--accent); color: #fff;
  border: 1px solid var(--accent); border-radius: 999px;
  font: 600 1rem/1 var(--body); letter-spacing: .01em; text-decoration: none;
  transition: background-color .2s ease, transform .2s var(--ease-out);
}
.btn:hover { background: var(--accent-press); color: #fff; }
.btn:active { transform: scale(.98); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: .9rem; }
.btn-large { min-height: 56px; padding: 0 36px; font-size: 1.05rem; }
.btn-outline { background: transparent; color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: #fff; color: var(--ink); }

/* Underline that draws in from the left */
.link-arrow, .link-button {
  color: var(--accent); font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 2px; transition: background-size .3s var(--ease-out);
}
.link-arrow:hover, .link-button:hover { background-size: 100% 1px; }
.link-arrow span { display: inline-block; transition: transform .3s var(--ease-out); }
.link-arrow:hover span { transform: translateX(4px); }
.link-button { border: 0; padding: 0 0 2px; font: inherit; font-weight: 600; cursor: pointer; background-color: transparent; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 241, 234, 0);
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease;
}
.site-header.scrolled { background: rgba(246, 241, 234, .94); border-color: var(--rule); backdrop-filter: blur(8px); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; transition: height .3s var(--ease-out); }
.site-header.scrolled .nav { height: 64px; }
.logo { font-family: var(--display); font-size: 1.45rem; font-weight: 400; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.nav-links { display: flex; gap: 1.9rem; align-items: center; }
.nav-links a:not(.btn) {
  color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .3s var(--ease-out);
}
.nav-links a:not(.btn):hover { background-size: 100% 1px; }
.lang-switch { font-size: .8rem !important; font-weight: 600 !important; letter-spacing: .12em; }
.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  background: transparent; border: 1px solid var(--rule); border-radius: 999px; cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; margin: 5px auto; background: var(--ink); transition: transform .25s var(--ease-out), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 136px) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section.band { background: var(--paper-2); border-top: 0; }
.section.band + .section { border-top: 0; }

/* Two-column editorial layout: heading on the left, content on the right */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split > .split-head { position: sticky; top: 96px; }
.section-intro { color: var(--muted); max-width: 30em; }

/* ---------- Hero ---------- */
.hero { padding: clamp(32px, 5vw, 64px) 0 clamp(72px, 9vw, 120px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: end; }
.hero-text { padding-bottom: clamp(0px, 3vw, 40px); }
.hero-ctas { display: flex; gap: 1.75rem; align-items: center; flex-wrap: wrap; margin: 2.25rem 0 2.5rem; }
.credential { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 1.25rem; max-width: 36em; margin: 0; }
.hero-photo { margin: 0; }
.hero-photo img, .photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius);
}
.hero-photo img { object-position: 30% 20%; }

/* Page-load reveal: text rises in a short stagger, photo uncovers from the bottom */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes uncover { from { clip-path: inset(8% 0 0 0); transform: scale(1.04); } }
.hero-text > * { animation: rise .6s var(--ease-out) both; }
.hero-text > :nth-child(2) { animation-delay: .06s; }
.hero-text > :nth-child(3) { animation-delay: .12s; }
.hero-text > :nth-child(4) { animation-delay: .18s; }
.hero-text > :nth-child(5) { animation-delay: .24s; }
.hero-photo img { animation: uncover 1.1s var(--ease-out) both; }

/* ---------- Problem ---------- */
.pattern-list { list-style: none; padding: 0; margin: 0 0 2.5rem; counter-reset: p; }
.pattern-list li {
  font-size: 1.15rem; padding: 1.1rem 0 1.1rem 3rem; border-bottom: 1px solid var(--rule); position: relative;
}
.pattern-list li:first-child { border-top: 1px solid var(--rule); }
.pattern-list li::before {
  counter-increment: p; content: counter(p, lower-roman) ".";
  position: absolute; left: 0; top: 1.05rem; font-family: var(--display); font-style: italic; color: var(--accent); font-size: 1.15rem;
}
.pull {
  font-family: var(--display); font-weight: 300; font-size: clamp(1.3rem, 2.1vw, 1.6rem); line-height: 1.4;
  margin: 0; padding-left: 1.5rem; border-left: 2px solid var(--accent);
}

/* ---------- Method ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(40px, 5vw, 64px); }
.step { padding: 0 clamp(20px, 3vw, 40px); border-left: 1px solid var(--rule); }
.step:first-child { padding-left: 0; border-left: 0; }
.step-num {
  display: block; font-family: var(--display); font-style: italic; font-weight: 300;
  font-size: 3.5rem; line-height: 1; color: var(--accent); margin-bottom: 1.25rem;
}
.step p { color: var(--muted); margin: 0; }

/* ---------- Anxiety & low mood ---------- */
.moods-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--ink); }
.mood { padding: 2rem clamp(20px, 3vw, 48px) 0 0; }
.mood + .mood { padding: 2rem 0 0 clamp(20px, 3vw, 48px); border-left: 1px solid var(--rule); }
.mood p { color: var(--muted); }
.mood .question { font-family: var(--display); font-style: italic; font-size: 1.2rem; line-height: 1.45; color: var(--ink); margin: 1.5rem 0 0; }

/* ---------- Who it's for ---------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: 1rem 0 1rem 2.25rem; position: relative; font-size: 1.1rem; border-bottom: 1px solid var(--rule); }
.check-list li:first-child { border-top: 1px solid var(--rule); }
.check-list li::before { content: "—"; position: absolute; left: 0; top: 1rem; color: var(--accent); }

/* ---------- Testimonials ---------- */
.quote-featured { margin: clamp(32px, 5vw, 56px) 0 clamp(48px, 6vw, 80px); max-width: 980px; }
.quote-featured blockquote {
  margin: 0 0 1.5rem; font-family: var(--display); font-weight: 300; font-style: italic;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: 1.25; letter-spacing: -.01em; text-wrap: balance;
}
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.quote { margin: 0; padding-top: 1.5rem; border-top: 1px solid var(--ink); display: flex; flex-direction: column; justify-content: space-between; }
.quote blockquote { margin: 0 0 1.5rem; font-size: 1rem; line-height: 1.65; }
figcaption { font-size: .9rem; font-weight: 600; }
figcaption .when { font-weight: 400; color: var(--muted); }
.quotes-note { margin-top: 2.5rem; color: var(--muted); }

/* ---------- Book (one compact band) ---------- */
.book-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.book h2 { font-style: italic; font-weight: 300; margin-bottom: .3em; }
.book-sub { color: var(--muted); font-size: 1.1rem; max-width: 34em; }
.book-quote { margin: 1.75rem 0; font-family: var(--display); font-size: 1.3rem; line-height: 1.4; }
.book-actions { display: flex; gap: 1.75rem; align-items: center; flex-wrap: wrap; }
.book-more { margin-top: 1.5rem; max-width: 40em; }
.book-more summary { cursor: pointer; font-weight: 600; color: var(--accent); list-style: none; display: inline-flex; gap: .5em; align-items: center; }
.book-more summary::-webkit-details-marker { display: none; }
.book-more summary::after { content: "+"; font-weight: 400; font-size: 1.2em; transition: transform .3s var(--ease-out); }
.book-more[open] summary::after { transform: rotate(45deg); }
.book-more .more-body { padding-top: 1rem; color: var(--muted); }
.book-parts { padding-left: 1.25rem; margin: 0; }
.book-parts li { margin: .35rem 0; }
.book-parts strong { color: var(--ink); font-weight: 600; }

/* ---------- Prices ---------- */
.price-block { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.price { font-family: var(--display); font-weight: 300; font-size: clamp(3.5rem, 7vw, 5.5rem); line-height: 1; letter-spacing: -.03em; margin: .4em 0 .2em; }
.includes { list-style: none; padding: 0; margin: 0 0 1.75rem; }
.includes li { padding: .9rem 0 .9rem 2rem; border-bottom: 1px solid var(--rule); position: relative; font-size: 1.05rem; }
.includes li:first-child { border-top: 1px solid var(--ink); }
.includes li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 600; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.photo { margin: 0; }
.certificate { display: flex; gap: 1.25rem; align-items: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.cert-link { flex: 0 0 120px; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease-out); }
.cert-link:hover { transform: translateY(-2px); }
.caption { font-size: .85rem; color: var(--muted); margin: 0; }

/* ---------- FAQ ---------- */
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list details:first-child { border-top: 1px solid var(--ink); }
.faq-list summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 1.25rem 3rem 1.25rem 0; font-size: 1.1rem; font-weight: 600;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%;
  font-family: var(--display); font-weight: 300; font-size: 1.8rem; line-height: 1; color: var(--accent);
  transition: rotate .3s var(--ease-out);
}
.faq-list details[open] summary::after { rotate: 45deg; }
.faq-list details p { margin: 0; padding: 0 3rem 1.5rem 0; color: var(--muted); }

/* Smooth open/close where the browser supports it; elsewhere it simply snaps */
details::details-content {
  block-size: 0; overflow: hidden;
  transition: block-size .35s var(--ease-out), content-visibility .35s allow-discrete;
}
details[open]::details-content { block-size: auto; }

/* ---------- Final CTA (dark band) ---------- */
.final-cta { background: var(--ink); color: var(--on-dark); border-top: 0 !important; }
.final-cta h2 { color: var(--on-dark); font-size: clamp(2.2rem, 5vw, 4rem); max-width: 16em; margin-inline: auto; }
.final-cta h2 em { font-style: italic; font-weight: 300; }
.final-cta .lead { color: var(--on-dark-muted); margin: 0 auto 2.25rem; }
.final-cta :focus-visible { outline-color: var(--on-dark); }
.contact-details { margin-top: 2rem; display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; }
.contact-details p { margin: 0; }
.contact-details .link-button { color: var(--on-dark); }

/* ---------- Care note & footer ---------- */
.care-note { padding: 2rem 0; background: var(--ink); color: var(--on-dark-muted); border-top: 1px solid #3d3832; }
.care-note p { margin: 0; font-size: .9rem; text-align: center; }
.care-note strong { color: var(--on-dark); }
.care-note a { color: var(--on-dark); }
.site-footer { padding: 2rem 0; font-size: .875rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-inner p { margin: 0; }

/* ---------- Legal pages ---------- */
.legal { padding-top: clamp(40px, 6vw, 72px); }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.legal h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.legal p { margin: 0 0 1rem; }

/* ---------- Sticky booking bar (phones only) ---------- */
.sticky-cta { display: none; }

/* ---------- Tablet & phone ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 24px;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s var(--ease-out), visibility 0s .22s;
  }
  .nav-links.open { visibility: visible; opacity: 1; transform: none; transition: opacity .22s ease, transform .22s var(--ease-out); }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--rule); font-family: var(--display); font-size: 1.35rem; background: none; }
  .nav-links .lang-switch { font-family: var(--body) !important; font-size: .85rem !important; }
  .nav-links .btn { margin-top: 20px; min-height: 48px; }
  .site-header.menu-open { background: var(--paper); border-color: var(--rule); }

  .split, .price-block, .about-grid, .book-grid { grid-template-columns: 1fr; }
  .split > .split-head { position: static; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step, .step:first-child { padding: 1.75rem 0 1.75rem 4.25rem; border-left: 0; border-top: 1px solid var(--rule); position: relative; }
  .step-num { position: absolute; left: 0; top: 1.5rem; font-size: 2.6rem; }
  .moods-grid { grid-template-columns: 1fr; }
  .mood, .mood + .mood { padding: 2rem 0; border-left: 0; }
  .mood + .mood { border-top: 1px solid var(--rule); }

  .about-grid .photo { max-width: 420px; }
  .book-grid .photo { max-width: 260px; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; padding-bottom: 84px; } /* room for the sticky bar */

  /* Hero: photo leads, then a short, tight text block */
  .hero { padding-top: 8px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-photo { order: -1; margin-inline: calc(-1 * var(--gutter)); }
  .hero-photo img { aspect-ratio: 4 / 4.2; max-height: 58svh; border-radius: 0; object-position: 30% 18%; }
  .hero-text { padding: 0; }
  .eyebrow .hide-sm { display: none; }
  h1 { font-size: clamp(2.6rem, 12vw, 3.4rem); }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 1rem; margin: 1.75rem 0 2rem; text-align: center; }
  .hero-ctas .btn { min-height: 54px; }

  /* Testimonials become a swipeable row */
  .quotes {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%;
    overflow-x: auto; scroll-snap-type: x mandatory; gap: 20px;
    margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px;
    scroll-padding-inline: var(--gutter); scrollbar-width: none;
  }
  .quotes::-webkit-scrollbar { display: none; }
  .quote { scroll-snap-align: start; justify-content: flex-start; }

  .book-grid .photo { max-width: 180px; }
  .price-block .btn, .final-cta .btn { width: 100%; }
  .certificate { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; }

  .sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: rgba(246, 241, 234, .96); border-top: 1px solid var(--rule); backdrop-filter: blur(8px);
    transform: translateY(110%); visibility: hidden;
    transition: transform .35s var(--ease-out), visibility 0s .35s;
  }
  .sticky-cta.show { transform: none; visibility: visible; transition: transform .35s var(--ease-out); }
  .sticky-cta .btn { width: 100%; min-height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  ::details-content { transition: none !important; }
}
