/* S2 Psychiatric Care */

:root {
  --cream: #F7F2EA;
  --sand: #EDE4D5;
  --linen: #FBF8F3;
  --sage: #7E958C;
  --sage-soft: #DCE3DA;
  --pine: #2F4640;
  --pine-deep: #1F302B;
  --clay: #A8683F;
  --ink: #232826;
  --muted: #5C645F;
  --line: rgba(35, 40, 38, .12);

  --serif: "Cormorant", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;

  --radius: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 1px 2px rgba(31, 48, 43, .05), 0 12px 32px -12px rgba(31, 48, 43, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0 0 .5em; color: var(--pine-deep); letter-spacing: -.01em; }
h1 { font-size: clamp(2.8rem, 6vw, 4.9rem); }
h1 em { font-style: italic; font-weight: 500; color: var(--sage); }
h2 { font-size: clamp(2.2rem, 4vw, 3.3rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--pine); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--clay); margin-bottom: 1rem;
}
.eyebrow--light { color: #E9C6A6; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .95em 1.7em; border-radius: 999px; border: 1.5px solid var(--pine);
  background: var(--pine); color: var(--cream); font: 600 .95rem/1 var(--sans);
  text-decoration: none; cursor: pointer; transition: background .3s ease, color .3s ease, transform .3s var(--ease), box-shadow .3s ease;
}
.btn:hover { background: var(--pine-deep); transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(31, 48, 43, .5); }
.btn:active { transform: translateY(0) scale(.98); box-shadow: none; }
.btn--ghost { background: transparent; color: var(--pine); }
.btn--ghost:hover { background: var(--pine); color: var(--cream); }
.btn--light { background: var(--cream); color: var(--pine-deep); border-color: var(--cream); }
.btn--light:hover { background: #fff; }
.btn--small { padding: .7em 1.25em; font-size: .88rem; }

/* Crisis bar */
.crisis-bar {
  background: var(--pine-deep); color: #D9E1DC; text-align: center;
  font-size: .82rem; padding: .55em 20px;
}
.crisis-bar a { color: #fff; font-weight: 700; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 242, 234, .88); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s ease, box-shadow .3s ease;
}
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 10px 24px -20px rgba(31, 48, 43, .45); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand__mark {
  width: 44px; height: 44px; border-radius: 50%; background: var(--sage); color: var(--cream);
  display: grid; place-items: center; font: 600 1.2rem/1 var(--serif); letter-spacing: .02em;
  transition: transform .4s var(--ease), background .3s ease;
}
.brand:hover .brand__mark { transform: scale(1.06); background: var(--pine); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font: 600 1.35rem/1.1 var(--serif); color: var(--pine-deep); }
.brand__sub { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a:not(.btn) { text-decoration: none; font-size: .93rem; font-weight: 500; color: var(--ink); position: relative; }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px;
  background: var(--clay); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__links a:not(.btn):hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__toggle { display: none; }

/* Hero */
.hero__copy > *, .hero__art { animation: enter .9s var(--ease) .05s backwards; }
.hero__copy > :nth-child(2) { animation-delay: .18s; }
.hero__copy > :nth-child(3) { animation-delay: .32s; }
.hero__copy > :nth-child(4) { animation-delay: .46s; }
.hero__copy > :nth-child(5) { animation-delay: .6s; }
.hero__art { animation-delay: .4s; animation-duration: 1.2s; }
@keyframes enter { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 2.6rem; }
.hero__facts {
  list-style: none; padding: 1.4rem 0 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1.2rem 2.4rem;
  border-top: 1px solid var(--line);
}
.hero__facts li { display: flex; flex-direction: column; font-size: .85rem; color: var(--muted); }
.hero__facts strong { font-size: .95rem; color: var(--pine-deep); }

.hero__art {
  margin: 0; position: relative; aspect-ratio: 5 / 6; border-radius: 240px 240px var(--radius) var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.hero__art svg { width: 100%; height: 100%; display: block; }
.hero__art .sun { animation: rise 9s ease-in-out infinite alternate; transform-origin: center; }
@keyframes rise { from { transform: translateY(8px); } to { transform: translateY(-10px); } }
.hero__quote {
  position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.2rem;
  background: rgba(251, 248, 243, .9); backdrop-filter: blur(6px);
  border-radius: 14px; padding: 1rem 1.2rem;
  font: italic 500 1.3rem/1.3 var(--serif); color: var(--pine-deep);
}

/* Sections */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--compact { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.section--tint { background: var(--sand); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.section__head--left { text-align: left; margin-left: 0; }
.section__intro { color: var(--muted); font-size: 1.08rem; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.service {
  background: var(--linen); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem 2rem 2rem; position: relative; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s ease;
}
.service::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 4px;
  background: linear-gradient(90deg, var(--sage), var(--clay)); opacity: 0; transition: opacity .4s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service:hover::before { opacity: 1; }
.service__num { display: block; font: italic 500 1.1rem var(--serif); color: var(--clay); margin-bottom: 2.2rem; }
.service p { color: var(--muted); margin: 0; }

.conditions { margin-top: 3rem; text-align: center; }
.conditions__label { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.conditions ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.conditions li {
  padding: .5em 1.1em; border-radius: 999px; background: var(--sage-soft);
  color: var(--pine); font-size: .9rem; font-weight: 500;
}

/* About */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.about__portrait img, .portrait-placeholder {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius) var(--radius) 200px var(--radius);
}
.portrait-placeholder {
  background:
    radial-gradient(circle at 30% 25%, rgba(242, 201, 160, .7), transparent 45%),
    linear-gradient(160deg, var(--sage) 0%, var(--pine) 100%);
  display: grid; place-items: center;
}
.portrait-placeholder span { font: 500 7rem/1 var(--serif); color: rgba(247, 242, 234, .85); }
.about__copy > p:not(.eyebrow):not(.lead) { color: var(--muted); }
.values { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .9rem; }
.values li { padding-left: 1.6rem; position: relative; color: var(--muted); }
.values li::before {
  content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--clay);
}
.values strong { color: var(--pine-deep); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 4.2rem; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 3rem; height: 3rem; border-radius: 50%; border: 1.5px solid var(--sage);
  display: grid; place-items: center; font: 600 1.4rem/1 var(--serif); color: var(--pine);
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 1.5rem; left: 3.8rem; right: -1.7rem; height: 1px;
  background: repeating-linear-gradient(90deg, var(--sage) 0 6px, transparent 6px 12px);
}
.steps p { color: var(--muted); margin: 0; }

/* Resources */
.res-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.res-search {
  display: flex; align-items: center; gap: .6rem; flex: 0 1 320px;
  background: var(--linen); border: 1px solid var(--line); border-radius: 999px; padding: .15rem 1.1rem;
}
.res-search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex: none; }
.res-search input { border: 0; background: none; font: inherit; font-size: .95rem; padding: .7rem 0; width: 100%; outline: none; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font: 500 .85rem var(--sans); padding: .5em 1em; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--ink); transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.chip:hover { border-color: var(--sage); }
.chip[aria-pressed="true"] { background: var(--pine); border-color: var(--pine); color: var(--cream); }

.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.2rem; }
.res-card {
  display: flex; flex-direction: column; background: var(--linen); border-radius: 14px;
  padding: 1.5rem 1.5rem 1.3rem; border: 1px solid var(--line); text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s ease, border-color .35s ease;
  animation: fade .5s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 45ms);
}
a.res-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.res-card--crisis { border-left: 4px solid var(--clay); }
.res-card__meta { display: flex; justify-content: space-between; gap: 1rem; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sage); margin-bottom: .8rem; }
.res-card__type { color: var(--clay); }
.res-card h3 { font-size: 1.4rem; margin-bottom: .4rem; }
.res-card p { font-size: .94rem; color: var(--muted); margin: 0 0 1rem; flex: 1; }
.res-card__link { font-size: .85rem; font-weight: 600; color: var(--pine); }
.res-empty { text-align: center; color: var(--muted); padding: 2rem 0; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Insurance */
.insurance { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: center; }
.insurance p:not(.eyebrow) { color: var(--muted); margin: 0; }
.insurance__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.insurance__list li {
  background: var(--linen); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.1rem 1rem; text-align: center; font-weight: 600; color: var(--pine); font-size: .95rem;
}

/* FAQ */
.faq { display: grid; grid-template-columns: .7fr 1.3fr; gap: 3rem; align-items: start; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary {
  list-style: none; cursor: pointer; padding: 1.4rem 2.5rem 1.4rem 0; position: relative;
  font: 600 1.35rem/1.3 var(--serif); color: var(--pine-deep); transition: color .25s ease;
}
.faq__list summary:hover { color: var(--clay); }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "+"; position: absolute; right: .2rem; top: 50%; transform: translateY(-50%);
  font: 400 1.6rem var(--sans); color: var(--clay); transition: transform .4s var(--ease);
}
.faq__list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
/* Animated open/close where the browser supports it; otherwise it simply snaps. */
.faq__list { interpolate-size: allow-keywords; }
.faq__list details::details-content {
  block-size: 0; overflow: clip; opacity: 0;
  transition: block-size .45s var(--ease), opacity .35s ease, content-visibility .45s allow-discrete;
}
.faq__list details[open]::details-content { block-size: auto; opacity: 1; }
.faq__list details p { color: var(--muted); padding-right: 2.5rem; margin-top: -.3rem; padding-bottom: .6rem; }

/* Book band */
.book {
  background:
    radial-gradient(ellipse at 85% 0%, rgba(242, 201, 160, .22), transparent 55%),
    var(--pine);
  color: #D9E1DC; padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.book h2 { color: var(--cream); }
.book__inner { display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; }
.book__inner p:not(.eyebrow) { max-width: 30em; margin: 0; }
.book__actions { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.book__phone { font-size: .92rem; color: #D9E1DC; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); }
.contact__info > p { color: var(--muted); }
.contact dl { margin: 2rem 0 0; display: grid; gap: 1.1rem; }
.contact dl div { display: grid; grid-template-columns: 90px 1fr; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.contact dt { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sage); padding-top: .2em; }
.contact dd { margin: 0; }
.contact dd a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact dd a { transition: border-color .25s ease, color .25s ease; }
.contact dd a:hover { color: var(--pine); border-color: var(--sage); }
.contact__form {
  background: var(--linen); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: 1.1rem; align-self: start;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact__form label { display: grid; gap: .4rem; align-content: start; font-size: .85rem; font-weight: 600; color: var(--pine-deep); }
.contact__form .optional { font-weight: 400; color: var(--muted); }
.contact__form input, .contact__form select {
  font: inherit; font-size: 1rem; font-weight: 400; color: var(--ink); width: 100%;
  padding: .8rem 1rem; border-radius: 10px; border: 1px solid var(--line); background-color: #fff;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.contact__form select {
  appearance: none; cursor: pointer; padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%235C645F' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 12px;
}
.contact__form input:focus, .contact__form select:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(126, 149, 140, .2); }
.contact__form .is-invalid { border-color: #B4533A; }
.contact__form .btn { justify-self: start; }
.form-note { font-size: .8rem; color: var(--muted); margin: 0; }
.form-status { font-size: .9rem; margin: 0; color: var(--pine); }
.form-status:empty { display: none; }

/* Footer */
.footer { background: var(--pine-deep); color: #AFBDB6; padding: 3.5rem 0 2rem; font-size: .9rem; }
.footer__inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand--footer .brand__name { color: var(--cream); }
.footer__tag { margin: .8rem 0 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.6rem; align-items: center; }
.footer__links a { text-decoration: none; color: #D9E1DC; transition: color .25s ease; }
.footer__links a:hover { color: #fff; }
.footer__legal { padding-top: 1.5rem; font-size: .8rem; }
.footer__legal p { margin: 0 0 .4rem; }

/* Legal pages (privacy, terms) */
.nav__back { text-decoration: none; font-size: .93rem; font-weight: 600; color: var(--pine); }
.nav__back:hover { color: var(--clay); }
.legal { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 6.5rem); }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: .3em; }
.legal__updated { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sage); margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.75rem; margin: 2.4rem 0 .6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.legal p, .legal li { color: var(--muted); }
.legal ul { margin: 0 0 1.1em; padding-left: 1.2rem; }
.legal li { margin-bottom: .4em; }
.legal a { color: var(--pine); }
.legal strong { color: var(--pine-deep); }
.legal__callout { background: var(--sand); border-left: 4px solid var(--clay); border-radius: 12px; padding: 1.1rem 1.3rem; margin: 0 0 1.5rem; }
.legal__callout p { margin: 0; color: var(--ink); }

/* Reveal on scroll */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s var(--ease) var(--reveal-delay, 0ms), transform .9s var(--ease) var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .hero__grid, .about, .insurance, .faq, .contact { grid-template-columns: 1fr; }
  .hero__art { max-width: 460px; width: 100%; margin-inline: auto; }
  .services { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .steps li:not(:last-child)::after { display: none; }
  .about__portrait { max-width: 380px; }
}

@media (max-width: 820px) {
  .nav__toggle {
    display: grid; gap: 6px; background: none; border: 0; cursor: pointer; padding: 10px; margin-right: -10px;
  }
  .nav__toggle span:not(.sr-only) { width: 24px; height: 1.5px; background: var(--pine-deep); transition: transform .25s, opacity .25s; }
  .nav__toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(3.75px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-of-type(3) { transform: translateY(-3.75px) rotate(-45deg); }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: .5rem 20px 1.5rem;
    box-shadow: 0 18px 28px -22px rgba(31, 48, 43, .45);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s ease, transform .35s var(--ease), visibility 0s .35s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__links a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__links .btn { margin-top: 1.2rem; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .brand__sub { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .res-search { flex-basis: 100%; }
  .contact dl div { grid-template-columns: 1fr; gap: .2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
