/* ==========================================================================
   Stillwater Therapy — styles
   Palette: warm cream + sage green + soft slate
   ========================================================================== */

:root {
  --bg: #fbfaf6;
  --bg-alt: #f3efe7;
  --surface: #ffffff;
  --ink: #1f2a25;
  --ink-soft: #4b5a52;
  --ink-muted: #7b8a82;
  --line: #e3ddd0;
  --primary: #4a6b5c;
  --primary-deep: #34503f;
  --primary-soft: #c9d6cb;
  --accent: #b58a4a;
  --warn: #c45a3b;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(31, 42, 37, .04), 0 2px 6px rgba(31, 42, 37, .04);
  --shadow-md: 0 4px 14px rgba(31, 42, 37, .06), 0 12px 30px rgba(31, 42, 37, .07);
  --maxw: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Reset-ish */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary-deep); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 .5em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 400; }
h1 em { font-style: normal; color: var(--primary-deep); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 400; }
h3 { font-size: 1.18rem; font-weight: 600; }
p  { margin: 0 0 1em; color: var(--ink-soft); }

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

.eyebrow {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 14px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 14px;
  border-radius: var(--radius-sm); z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(251, 250, 246, .85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 92px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 500; text-decoration: none;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand-mark { width: 28px; height: 28px; color: var(--primary); }
.brand-mark-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(31, 42, 37, .14);
  background: #0f3a3f;
}
@media (max-width: 600px) {
  .brand-mark-img { width: 52px; height: 52px; }
}
.brand-text { font-family: var(--serif); font-size: 1.18rem; letter-spacing: .01em; line-height: 1.1; }
.brand-text em { font-style: normal; color: var(--primary-deep); font-weight: 400; }
@media (max-width: 480px) {
  .brand-text { font-size: 1rem; }
}

.primary-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 28px;
}
.primary-nav a {
  color: var(--ink-soft); font-size: .95rem; font-weight: 500;
}
.primary-nav a:hover { color: var(--ink); text-decoration: none; }
.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 500;
  transition: background .15s ease, transform .15s ease;
}
.nav-cta:hover { background: var(--primary-deep); }

.nav-toggle {
  display: none;
  background: transparent; border: 0; padding: 8px;
  width: 40px; height: 40px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  margin: 4px auto; transition: transform .2s ease, opacity .2s ease;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%); transition: transform .25s ease;
    pointer-events: none;
  }
  .primary-nav.open { transform: translateY(0); pointer-events: auto; }
  .primary-nav ul {
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 22px;
  }
  .primary-nav li { border-bottom: 1px solid var(--line); }
  .primary-nav li:last-child { border-bottom: 0; padding-top: 10px; }
  .primary-nav a { display: block; padding: 14px 0; }
  .nav-cta { display: inline-block; text-align: center; padding: 12px 20px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 500; font-size: .98rem; line-height: 1;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-deep); color: #fff; }
.btn-ghost { color: var(--ink); border-color: var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-muted); color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(56px, 10vw, 110px) 0 clamp(48px, 8vw, 90px);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(74, 107, 92, .08), transparent 60%),
    radial-gradient(40% 40% at 0% 80%, rgba(181, 138, 74, .06), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1.15fr .9fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  position: relative;
}
.hero h1 {
  font-family: "DM Serif Display", "Iowan Old Style", "Georgia", serif;
  font-weight: 400;
  letter-spacing: -.01em;
}
.hero h1 em { font-style: normal; }
.hero-copy .lede {
  font-size: 1.13rem;
  color: var(--ink-soft);
  max-width: 56ch;
}
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin: 28px 0 14px;
}
.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(74, 107, 92, .08);
  border: 1px solid rgba(74, 107, 92, .12);
  color: var(--primary-deep);
  font-size: .92rem;
  font-weight: 600;
}
.hero-note::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5fb27e;
  box-shadow: 0 0 0 4px rgba(95, 178, 126, .16);
}
.hero-meta {
  list-style: none; margin: 0; padding: 24px 0 0;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.hero-meta li { display: flex; flex-direction: column; gap: 2px; }
.hero-meta strong {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--ink);
}
.hero-meta span { font-size: .88rem; color: var(--ink-muted); }

.hero-art { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-logo {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 30% 25%, #1a4a4f 0%, #0f3a3f 60%, #0a2c30 100%);
  box-shadow:
    0 30px 60px -20px rgba(31, 42, 37, .35),
    0 18px 30px -16px rgba(74, 107, 92, .35),
    inset 0 0 0 1px rgba(255, 255, 255, .06);
  animation: floaty 6s ease-in-out infinite;
}
.hero-logo::before {
  content: "";
  position: absolute;
  inset: -8%;
  background: radial-gradient(circle, rgba(201, 214, 203, .35), transparent 60%);
  filter: blur(18px);
  z-index: -1;
}
.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 4.7;
  background: var(--bg-alt);
}
.hero-card svg { width: 100%; height: 100%; }
.hero-floater {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  background: #fff; color: var(--ink);
  padding: 10px 18px; border-radius: 999px;
  box-shadow: var(--shadow-md);
  font-size: .92rem; font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line);
  white-space: nowrap;
}
.hero-floater .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #5fb27e;
  box-shadow: 0 0 0 4px rgba(95, 178, 126, .2);
}

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 460px; margin-inline: auto; }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  background: var(--bg-alt);
}
.trust-strip .container {
  display: flex; flex-wrap: wrap; align-items: center; gap: 22px 36px;
  justify-content: space-between;
}
.trust-strip p {
  margin: 0; font-size: .82rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-muted); font-weight: 600;
}
.trust-strip ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 28px;
}
.trust-strip li {
  font-family: var(--serif);
  font-size: 1.05rem; color: var(--ink-soft); letter-spacing: .02em;
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 0 44px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-sub { color: var(--ink-soft); font-size: 1.05rem; }

.two-col {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 6vw, 72px); align-items: start;
}
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }

/* About */
.col-media .portrait {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 4.7;
  max-width: 360px;
}
.col-media figcaption {
  margin-top: 14px; font-family: var(--serif); font-size: 1.05rem;
  color: var(--ink);
}
.col-media figcaption span {
  display: block; font-family: var(--sans); font-size: .9rem;
  color: var(--ink-muted); margin-top: 2px;
}
.checklist { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checklist li {
  position: relative; padding-left: 28px;
  color: var(--ink-soft); font-size: .98rem;
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 16px; height: 10px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}

/* Services cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-soft);
}
.card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 6px; }
.card p { font-size: .98rem; }
.card-meta {
  font-size: .85rem; color: var(--ink-muted);
  margin: 14px 0 0; padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.fees {
  margin-top: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
  align-items: center;
}
.fees h3 { margin-bottom: 6px; }
.fees-meta p { margin: 0 0 8px; font-size: .95rem; }
@media (max-width: 720px) { .fees { grid-template-columns: 1fr; } }

/* Approach steps */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.steps li {
  position: relative;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step-num {
  font-family: var(--serif);
  font-size: 1.4rem; color: var(--primary);
  letter-spacing: .04em;
  display: block; margin-bottom: 10px;
}
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; font-size: .95rem; }

/* Quote section */
.quote-section {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 9vw, 110px) 0;
  background: var(--primary);
  color: #f3efe7;
}
.quote-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(90vw, 720px);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  background-image: url("assets/logo.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%;
  opacity: .08;
  filter: grayscale(60%) contrast(1.05);
  pointer-events: none;
  z-index: 0;
}
.quote-section .container { position: relative; z-index: 1; }
.quote-section blockquote {
  margin: 0 auto;
  max-width: 820px;
  text-align: center;
}
.quote-section blockquote p {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.4;
  color: #f3efe7;
  font-weight: 400;
  font-style: italic;
}
.quote-section blockquote footer {
  margin-top: 18px; font-size: .92rem; letter-spacing: .08em;
  color: rgba(243, 239, 231, .75); text-transform: uppercase;
}
.quote-section .disclaimer {
  text-align: center; margin: 26px auto 0;
  font-size: .82rem; max-width: 520px;
  color: rgba(243, 239, 231, .65);
}

/* FAQ */
.col-faq details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.col-faq details:last-of-type { border-bottom: 1px solid var(--line); }
.col-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
  padding-right: 4px;
}
.col-faq summary::-webkit-details-marker { display: none; }
.col-faq summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 1.4rem; color: var(--primary);
  transition: transform .2s ease;
  line-height: 1;
}
.col-faq details[open] summary::after { content: "−"; }
.col-faq details p {
  margin: 12px 0 4px;
  color: var(--ink-soft); font-size: .98rem;
}

/* Contact form */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  box-shadow: var(--shadow-sm);
}
.contact-form .field { display: flex; flex-direction: column; gap: 6px; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form label {
  font-size: .88rem; color: var(--ink-soft); font-weight: 500;
}
.contact-form label span { color: var(--ink-muted); font-weight: 400; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74, 107, 92, .15);
}
.contact-form textarea { resize: vertical; }
.contact-form .form-disclaimer {
  grid-column: 1 / -1;
  font-size: .82rem; color: var(--ink-muted); margin: 0;
}
.contact-form .btn { justify-self: start; grid-column: 1 / -1; }
.contact-form .form-status-wrap {
  grid-column: 1 / -1;
  min-height: 1.3em;
  opacity: 0;
  transform: translateY(8px) scale(.98);
  transition: opacity .24s ease, transform .24s ease;
}
.contact-form .form-status-wrap.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.contact-form .form-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 999px;
  font-size: .94rem; color: var(--primary-deep);
  font-weight: 600;
  background: rgba(74, 107, 92, .08);
  border: 1px solid rgba(74, 107, 92, .12);
  box-shadow: 0 8px 20px rgba(31, 42, 37, .05);
}
.contact-form .form-status.success {
  color: #2f6b4a;
  background: rgba(47, 107, 74, .12);
  border-color: rgba(47, 107, 74, .2);
  animation: form-status-pop .28s ease;
}
.contact-form .form-status.error {
  color: var(--warn);
  background: rgba(196, 90, 59, .08);
  border-color: rgba(196, 90, 59, .16);
}
.contact-form .btn:disabled {
  opacity: .8;
  cursor: wait;
  transform: none;
}
@keyframes form-status-pop {
  0% { transform: scale(.96); opacity: .7; }
  100% { transform: scale(1); opacity: 1; }
}
.contact-form input.invalid,
.contact-form textarea.invalid { border-color: var(--warn); box-shadow: 0 0 0 3px rgba(196, 90, 59, .12); }
@media (max-width: 560px) { .contact-form { grid-template-columns: 1fr; } }

.contact-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.contact-list li {
  display: grid; grid-template-columns: 90px 1fr; gap: 12px;
  font-size: .98rem; color: var(--ink-soft);
}
.contact-list strong { color: var(--ink); font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; padding-top: 3px; }

/* Footer */
.site-footer {
  background: #1d2823;
  color: #d6dcd5;
  padding-top: 60px;
}
.site-footer h4 {
  color: #fff; font-family: var(--sans); font-size: .8rem;
  text-transform: uppercase; letter-spacing: .14em; margin-bottom: 12px; font-weight: 600;
}
.site-footer p { color: #b9c2bc; font-size: .94rem; }
.site-footer a { color: #e7eee5; }
.site-footer a:hover { color: #fff; }
.brand-light { color: #fff; }
.brand-light .brand-text em { color: #c9d6cb; }
.brand-light .brand-mark { color: #c9d6cb; }
.footer-inner {
  display: grid; grid-template-columns: 1.1fr 1.6fr;
  gap: clamp(28px, 6vw, 60px);
  padding-bottom: 50px;
}
.footer-brand p { max-width: 36ch; margin-top: 14px; }
.footer-cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
@media (max-width: 880px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-cols { grid-template-columns: 1fr; }
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 22px 0 30px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { margin: 0; font-size: .85rem; color: #99a39d; }
.footer-bottom a { font-size: .85rem; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

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


/* Small office map next to address */
.office-map {
  display: block;
  width: 100%;
  max-width: 320px;
  height: 160px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
}
.map-link { display: inline-block; }
.map-link:hover { text-decoration: none; }