/* Jessica Brandin Therapy — shared styles
   Palette: cream, blush, sage. Type: Fraunces (headings) + DM Sans (body). */

:root {
  --cream: #F7F2EA;
  --white: #FFFFFF;
  --ink: #26302A;
  --muted: #565E57;
  --sage-deep: #4F6B4A;   /* buttons, links, accents (passes contrast on cream) */
  --sage-dark: #46613F;   /* dark bands */
  --sage: #A9C29F;        /* decorative shapes */
  --sage-light: #DCE6D5;  /* soft fills */
  --blush: #E8BCC4;       /* arches, decorative accents */
  --blush-light: #F3DDE1; /* soft fills */
  --rule: #C9D3C2;
  --on-dark: #E4EBE0;
  --on-dark-muted: #D6DCD3;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "DM Sans", "Helvetica Neue", Helvetica, sans-serif;

  --wrap: 1200px;
  --gutter: 32px;
  --section: 104px;
  --arch: 999px 999px 0 0;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { margin: 0; font-weight: 400; }
h1, h2 { font-family: var(--serif); letter-spacing: -0.015em; }
h1 { font-size: clamp(46px, 6vw, 84px); line-height: 1.03; }
h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.1; }
h3 { font-size: 21px; font-weight: 700; line-height: 1.3; }
p { margin: 0; }

a { color: var(--sage-deep); }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--sage-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 16px; }

.container {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.muted { color: var(--muted); }
.lead { font-size: 19px; line-height: 1.7; color: var(--muted); max-width: 34em; }
.eyebrow {
  font-family: var(--sans); line-height: 1.4;
  font-size: 13px; letter-spacing: 0.2em; font-weight: 700;
  text-transform: uppercase; color: var(--sage-deep);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 14px 26px; border-radius: 999px;
  font: 500 17px/1.2 var(--sans); text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.btn-primary { background: var(--sage-deep); color: var(--white); }
.btn-primary:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--cream); color: var(--sage-dark); font-weight: 700; }
.btn-light:hover { background: var(--white); color: var(--ink); }
.btn-small { min-height: 44px; padding: 10px 20px; font-size: 15px; }

.text-link {
  color: var(--ink); text-decoration: none; font-weight: 500;
  padding: 12px 4px; border-bottom: 2px solid var(--blush);
}
.text-link:hover { border-color: var(--sage-deep); color: var(--ink); }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 10; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px 32px; padding-block: 22px;
}
.brand {
  display: flex; align-items: baseline; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-family: var(--serif); font-size: 24px; font-weight: 600;
}
.brand span {
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--sage-deep);
}
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: var(--ink); text-decoration: none; font-size: 15px; padding: 10px 0; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] {
  text-decoration: underline; text-decoration-color: var(--blush);
  text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.site-nav ul a[aria-current="page"] { font-weight: 700; }

/* Services dropdown */
.has-sub { position: relative; display: flex; align-items: center; gap: 2px; }
.has-sub:has(.subnav [aria-current="page"]) > a {
  font-weight: 700; text-decoration: underline; text-decoration-color: var(--blush);
  text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.sub-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; padding: 0; border: 0; border-radius: 999px;
  background: none; color: var(--ink); cursor: pointer;
}
.sub-toggle svg { transition: transform .2s ease; }
.site-nav .subnav {
  display: none; position: absolute; top: calc(100% + 12px); left: -22px; z-index: 20;
  flex-direction: column; gap: 0; min-width: 260px; padding: 10px 0;
  background: var(--white); border: 1px solid var(--rule); border-radius: 18px;
  box-shadow: 0 16px 40px rgba(38, 48, 42, 0.12);
}
.site-nav .subnav::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.site-nav .subnav a { display: block; padding: 11px 22px; white-space: nowrap; }
.site-nav .subnav a:hover { background: var(--blush-light); text-decoration: none; }
.site-nav .subnav a[aria-current="page"] { text-decoration: none; background: var(--cream); }

@media (min-width: 961px) {
  .site-nav > ul { align-items: center; }
  .has-sub:hover .subnav, .has-sub.is-open .subnav { display: flex; }
  .has-sub:hover .sub-toggle svg, .has-sub.is-open .sub-toggle svg { transform: rotate(180deg); }
}

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 0; border-radius: 999px;
  background: var(--blush-light); color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 16px;
    background: var(--cream); padding: 8px var(--gutter) 28px;
    border-bottom: 1px solid var(--rule);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--rule); }
  /* Mobile: list the services under "Services" instead of a dropdown */
  .has-sub { display: block; }
  .sub-toggle { display: none; }
  .site-nav .subnav {
    display: flex; position: static; min-width: 0; padding: 0 0 0 20px;
    background: none; border: 0; border-radius: 0; box-shadow: none;
  }
  .site-nav .subnav::before { content: none; }
  .site-nav .subnav a { padding: 12px 0; font-size: 16px; color: var(--muted); white-space: normal; }
  .site-nav .subnav a:hover, .site-nav .subnav a[aria-current="page"] { background: none; color: var(--ink); }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--blush { background: var(--blush-light); }
.section--sage { background: var(--sage-light); }
.section--dark { background: var(--sage-dark); color: var(--cream); }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 16px 48px; margin-bottom: 48px;
}
.section-head p { max-width: 28em; color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center; gap: 56px; padding-block: 40px var(--section);
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero-copy h1 em { font-style: italic; color: var(--sage-deep); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }

.hero-art { position: relative; width: 100%; max-width: 500px; aspect-ratio: 500 / 620; margin-inline: auto; }
.hero-art .arch-back {
  position: absolute; left: 0; bottom: 0; width: 60%; height: 68%;
  background: var(--sage); border-radius: var(--arch);
}
.hero-art .arch-frame {
  position: absolute; right: 0; top: 0; width: 78%; height: 100%;
  background: var(--blush); border-radius: var(--arch); padding: 18px 18px 0;
}
.arch-photo {
  width: 100%; height: 100%; border-radius: var(--arch); overflow: hidden;
  background: var(--cream); display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0.14em;
}
.arch-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* Page intro (inner pages) */
.page-intro {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 24px 64px; padding-block: 48px 72px;
}
.page-intro > div { flex: 1 1 520px; display: flex; flex-direction: column; gap: 20px; }
.page-intro > p { flex: 1 1 340px; color: var(--muted); }
.page-intro h1 em { font-style: italic; color: var(--sage-deep); }

/* ---------- Arch cards (Who I work with) ---------- */
.arch-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.arch-card {
  background: var(--cream); border-radius: 160px 160px 16px 16px;
  padding: 64px 32px 36px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.arch-card .mark { width: 40px; height: 20px; background: var(--blush); border-radius: var(--arch); margin-bottom: 8px; }
.arch-card p { color: var(--muted); font-size: 16px; }
.arch-card a { margin-top: auto; padding: 12px 4px 4px; font-weight: 700; font-size: 15px; }

/* ---------- Quote band ---------- */
.quote { max-width: 900px; margin-inline: auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.quote .mark { width: 56px; height: 28px; background: var(--blush); border-radius: var(--arch); }
.quote p { font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.25; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; list-style: none; margin: 48px 0 0; padding: 0; }
.steps li { border-top: 1px solid var(--rule); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.steps .num { font-family: var(--serif); font-size: 56px; line-height: 1; color: var(--sage-deep); }
.steps p { color: var(--muted); font-size: 16px; }

/* ---------- CTA box ---------- */
.cta-box {
  border-radius: 32px; padding: 64px 56px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
  background: var(--sage-light);
}
.cta-box > div { flex: 1 1 420px; display: flex; flex-direction: column; gap: 12px; }
.cta-box p { color: var(--muted); }
.cta-box--dark { background: var(--sage-dark); color: var(--cream); }
.cta-box--dark p { color: var(--on-dark); }

/* ---------- About ---------- */
.about-hero { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; padding-block: 48px var(--section); }
.about-hero .arch-single { width: 100%; max-width: 420px; aspect-ratio: 420 / 594; margin-inline: auto; background: var(--blush); border-radius: var(--arch); padding: 18px 18px 0; }
.about-hero .arch-photo img { object-position: 50% 100%; }
.about-hero .copy { display: flex; flex-direction: column; gap: 24px; }
.about-hero h1 em { font-style: italic; color: var(--sage-deep); }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.fact { background: var(--cream); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 8px; }
.fact h3 { font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage-deep); }
.fact .big { font-family: var(--serif); font-size: 24px; }
.fact .small { font-size: 15px; color: var(--muted); }

.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px 72px; }
.approach-side { display: flex; flex-direction: column; gap: 32px; }
.approach-photo { width: 100%; height: auto; border-radius: 20px; display: block; }
.prose { display: flex; flex-direction: column; gap: 20px; color: var(--muted); max-width: 40em; }

/* ---------- Services ---------- */
.service { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px 72px; padding-block: 56px; border-top: 1px solid var(--rule); scroll-margin-top: 24px; }
.service:last-child { border-bottom: 1px solid var(--rule); }
.service h2 { font-size: clamp(30px, 3vw, 40px); }

.service .prose .text-link { align-self: flex-start; }

/* ---------- Landing pages ---------- */
.page-intro--long > p { font-size: 18px; line-height: 1.7; }
.focus-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px;
}
.focus-list li {
  display: flex; align-items: baseline; gap: 14px; padding: 18px 0;
  border-top: 1px solid var(--rule);
  font-family: var(--serif); font-size: 21px; line-height: 1.35;
}
.focus-list li::before {
  content: ""; flex: none; width: 18px; height: 9px;
  background: var(--blush); border-radius: var(--arch); transform: translateY(-3px);
}

/* ---------- Fees ---------- */
.price-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.price-note { margin-top: 32px; text-align: center; }
.price-card {
  border-radius: 160px 160px 20px 20px; padding: 80px 40px 44px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: var(--blush-light);
}
.price-card--dark { background: var(--sage-dark); color: var(--cream); }
.price-card--dark .eyebrow { color: var(--blush); }
.price-card--dark .small { color: var(--on-dark); }
.price-card .amount { font-family: var(--serif); font-size: 64px; line-height: 1; }
.price-card .small { font-size: 16px; color: var(--muted); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 72px; }
.two-col > div { display: flex; flex-direction: column; gap: 16px; }
.two-col h2 { font-size: 36px; }
.notice {
  background: var(--white); border: 1px solid var(--rule); border-radius: 24px;
  padding: 48px; display: flex; flex-direction: column; gap: 16px;
}
.notice h2 { font-size: 30px; }
.notice p { color: var(--muted); font-size: 16px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; padding: 26px 48px 26px 0; position: relative;
  font-family: var(--serif); font-size: 24px; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 8px; top: 22px;
  font-family: var(--sans); font-size: 28px; color: var(--sage-deep);
}
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 28px; color: var(--muted); max-width: 40em; display: flex; flex-direction: column; gap: 12px; }
.faq-heading { font-size: clamp(28px, 3vw, 36px); margin: 64px 0 16px; }
.faq-heading:first-child { margin-top: 0; }
.faq-section h2 { margin-bottom: 32px; }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.contact-card {
  border-radius: 160px 160px 20px 20px; padding: 88px 32px 44px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  background: var(--blush-light);
}
.contact-card--dark { background: var(--sage-dark); color: var(--cream); }
.contact-card--dark .eyebrow { color: var(--blush); }
.contact-card--dark p { color: var(--on-dark); }
.contact-card h2 { font-size: 34px; }
.contact-card .value { font-family: var(--serif); font-size: 26px; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.contact-card .value--email { font-size: 20px; }
.contact-card p { font-size: 15px; color: var(--muted); }
.crisis {
  border: 2px solid var(--sage-dark); border-radius: 24px; padding: 40px 48px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px;
}
.crisis > div { flex: 1 1 420px; display: flex; flex-direction: column; gap: 8px; }
.crisis h2 { font-size: 28px; }
.crisis p { color: var(--muted); font-size: 16px; }
.crisis strong { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--cream); padding-block: 72px 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-brand { flex: 1 1 280px; display: flex; flex-direction: column; gap: 12px; }
.footer-brand .brand { color: var(--cream); font-size: 28px; font-weight: 400; }
.footer-brand .brand span { color: var(--blush); }
.footer-brand p { color: var(--on-dark-muted); font-size: 15px; line-height: 1.7; }
.footer-col { flex: 0 1 240px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-col h2 {
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--blush);
}
.footer-col a { color: var(--cream); }
.footer-col a:hover { color: var(--blush); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid #3E4A41;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  font-size: 14px; color: var(--on-dark-muted);
}
.footer-bottom p { max-width: 640px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  :root { --section: 80px; }
  .hero, .about-hero, .split, .service { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 400px; }
  .arch-cards, .steps, .facts { grid-template-columns: minmax(0, 1fr); }
  .contact-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  :root { --gutter: 20px; --section: 64px; }
  body { font-size: 16px; }
  .price-cards, .two-col, .focus-list { grid-template-columns: minmax(0, 1fr); }
  .cta-box, .notice { padding: 40px 28px; }
  .crisis { padding: 32px 24px; }
  .arch-card, .price-card, .contact-card { border-radius: 120px 120px 16px 16px; }
}

/* ---------- One orchestrated entrance ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .hero-art { animation: rise .8s ease-out both; }
  .hero-art { animation-delay: .15s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Specificity fixes for dark cards */
.contact-card p.eyebrow, .price-card .eyebrow { color: var(--sage-deep); }
.contact-card.contact-card--dark p { color: var(--on-dark); }
.contact-card.contact-card--dark p.eyebrow,
.price-card.price-card--dark .eyebrow { color: var(--blush); }
.price-card.price-card--dark .small { color: var(--on-dark); }
