/* ==========================================================================
   Stillwater Wellness
   Colors and heading typeface are carried over from the existing site:
   sage green, warm copper headings, cream paper, Instrument Serif.
   TO CHANGE A COLOR: edit the six values just below; the whole site follows.
   ========================================================================== */

/* The two typefaces are stored in the fonts folder, so nothing is loaded from other companies. */
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/instrument-serif-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/instrument-serif-latin-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Merriweather'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/merriweather-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Merriweather'; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/merriweather-latin-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Merriweather'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/merriweather-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Merriweather'; font-style: italic; font-weight: 700; font-display: swap; src: url(../fonts/merriweather-latin-700-italic.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins-latin-400-normal.woff2) format('woff2'); }

:root {
  --sage: #9CAF88;         /* the green from the original site: header, bands, buttons */
  --sage-soft: #E6ECDD;    /* pale tint of the green */
  --sage-deep: #566B49;    /* dark green for small details */
  --cream: #FAF9F5;        /* page background */
  --mist: #F1F3F3;         /* cool light grey bands */
  --copper: #B87332;       /* large headings */
  --copper-deep: #8F531E;  /* small headings and links */
  --ink: #2B2B2B;          /* text */
  --lake: #213739;         /* footer */
  --line: rgba(43, 43, 43, .16);

  --serif: 'Instrument Serif', 'Iowan Old Style', Palatino, Georgia, serif;
  --sans: 'Merriweather', Georgia, 'Times New Roman', serif;   /* body text, as on the original site */
  --button: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;   /* buttons, as on the original site */
  --disc: var(--sage-soft);
  --dot: var(--sage-deep);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1rem/1.8 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.site-footer :focus-visible, .hero :focus-visible { outline-color: #fff; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: .7rem 1.1rem; }
.skip:focus { left: 0; }
.preview-note { margin: 0; padding: .45rem 1rem; max-width: none; background: var(--ink); color: var(--cream); font-size: .85rem; text-align: center; }

.wrap { width: min(1180px, 100% - 3rem); margin-inline: auto; }
.narrow { max-width: 760px; margin-inline: auto; }
.narrow--left { margin-inline: 0; }
.center { text-align: center; max-width: 720px; margin-inline: auto; }
.center--wide { max-width: 860px; }
.center p { margin-inline: auto; }

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.005em;
  margin: 0 0 .55em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 6vw, 4.6rem); color: var(--copper); }
h2 { font-size: clamp(2.1rem, 3.9vw, 3.1rem); color: var(--copper); }
h3 { font-size: clamp(1.45rem, 2.2vw, 1.75rem); line-height: 1.2; color: var(--copper-deep); }
p { margin: 0 0 1.1em; max-width: 66ch; }
strong { font-weight: 700; }
address { font-style: normal; }
.lede { font-size: 1.12rem; line-height: 1.75; }
.fine { font-size: .97rem; }
.h-small { font-size: 1.55rem; color: var(--copper-deep); margin-top: 2.2rem; }
.sub { margin-top: 3.2rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.7rem;
  border: 1px solid var(--sage); border-radius: 999px;
  background: var(--sage); color: var(--ink);
  font: 400 1rem/1.2 var(--button);
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover { background: #8BA076; border-color: #8BA076; }
.btn--ghost { background: transparent; border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.btn--ink { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.btn--ink:hover { background: #000; border-color: #000; }
.btn--onPhoto { background: rgba(250, 249, 245, .12); border-color: var(--cream); color: var(--cream); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.btn--onPhoto:hover { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.btn--onDark { background: transparent; border-color: rgba(250, 249, 245, .6); color: var(--cream); margin-top: .5rem; }
.btn--onDark:hover { background: var(--cream); border-color: var(--cream); color: var(--lake); }
.btnrow { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* ---------- Header: the sage band ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--sage); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 84px; }
.brand img { height: 60px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(.9rem, 1.7vw, 1.7rem); }
.nav a { text-decoration: none; font-size: .95rem; padding: .25rem 0; border-bottom: 1px solid transparent; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: currentColor; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 46px; height: 46px; background: none; border: 1px solid rgba(43, 43, 43, .45); border-radius: 50%; cursor: pointer; color: var(--ink); }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .25s; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 1080px) {
  .bar { min-height: 72px; }
  .brand img { height: 50px; }
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: flex-start; gap: .2rem; padding: 1rem 1.5rem 1.6rem; background: var(--sage); border-top: 1px solid rgba(43, 43, 43, .2); }
  .nav.is-open { display: flex; }
  .nav a { font-size: 1.2rem; padding: .5rem 0; }
}

/* ---------- Photo heroes ---------- */
.hero { position: relative; display: flex; align-items: flex-end; overflow: hidden; background: var(--lake); color: var(--cream); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(20deg, rgba(20, 34, 36, .82) 0%, rgba(20, 34, 36, .5) 38%, rgba(20, 34, 36, .08) 72%); }
.hero__content { position: relative; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.hero h1 { color: var(--cream); text-shadow: 0 1px 24px rgba(15, 26, 28, .35); }
.hero--home { min-height: min(88vh, 860px); }
.hero--home h1 { max-width: 17ch; }
.hero__brand { font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin-bottom: .6rem; }
.hero__lede { font-size: 1.05rem; max-width: 50ch; }
.hero--page { min-height: clamp(280px, 46vh, 480px); }
.hero--page h1 { max-width: 20ch; margin-bottom: 0; font-size: clamp(2.5rem, 5.4vw, 4.2rem); }
.h1-sub { display: block; }
/* Shows the whole photo, uncropped (used on the "Is This Right for Me?" page). */
.hero--full { aspect-ratio: 2400 / 1673; min-height: 0; }
@media (max-width: 700px) {
  .hero__shade { background: linear-gradient(to top, rgba(20, 34, 36, .86) 0%, rgba(20, 34, 36, .62) 55%, rgba(20, 34, 36, .2) 100%); }
  .hero--home { min-height: 0; }
  .hero--home .hero__content { padding-top: 7rem; }
}

/* One quiet moment as the home page opens: the photo settles, the words rise. */
@media (prefers-reduced-motion: no-preference) {
  .hero--home .hero__img { animation: settle 2.6s cubic-bezier(.2, .7, .2, 1) both; }
  .hero--home .hero__content { animation: rise 1.1s .25s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes settle { from { transform: scale(1.05); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Statement with its reflection in the water ---------- */
.statement { padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4.5rem, 9vw, 7.5rem); text-align: center; }
.statement h2 { position: relative; font-style: italic; font-size: clamp(2.1rem, 4.4vw, 3.5rem); max-width: 30ch; margin: 0 auto; }
.statement h2::after {
  content: attr(data-reflect);
  content: attr(data-reflect) / "";
  position: absolute; left: 0; right: 0; top: 100%; margin-top: -.06em;
  transform: scaleY(-1); transform-origin: top; translate: 0 100%;
  opacity: .22; filter: blur(.5px);
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 62%);
  mask-image: linear-gradient(to top, #000 0%, transparent 62%);
  pointer-events: none; user-select: none;
}

/* ---------- Sections and bands ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--intro { padding-bottom: clamp(2rem, 4vw, 3rem); }
.section--flush { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.section--top { padding-top: clamp(2.5rem, 5vw, 4.5rem); }
.band-mist { background: var(--mist); }
.band-sage { background: var(--sage); --disc: var(--cream); --dot: var(--ink); --line: rgba(43, 43, 43, .28); }
.band-sage h2, .band-sage h3 { color: var(--ink); }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 6vw, 5.5rem); align-items: start; }
.split > h2 { margin: 0; }
.prose > :last-child { margin-bottom: 0; }
.split--provider > h2 { grid-column: 1; grid-row: 1; }
.split--provider > .prose { grid-column: 2; grid-row: 1 / span 2; }
.split--provider > .pull { grid-column: 1; grid-row: 2; align-self: end; margin: 0; }
.split--provider > .btnrow { grid-column: 2; grid-row: 3; margin-top: 0; }

.duo { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.duo--top { align-items: start; }
.duo--artLeft { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.duo--faq { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.duo > div > :last-child { margin-bottom: 0; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: 2.5rem; }
.pair--top { align-items: start; }
.panel { background: #fff; border-radius: 10px; padding: clamp(1.5rem, 3vw, 2.4rem); }
.panel--quiet { background: transparent; border: 1px solid var(--line); }
.panel > :last-child { margin-bottom: 0; }
.panel__title { font-family: var(--serif); font-size: clamp(1.45rem, 2.2vw, 1.75rem); line-height: 1.2; color: var(--copper-deep); margin-bottom: .55em; }
.panel__title strong { font-weight: 400; }

@media (max-width: 900px) {
  .split, .duo, .duo--artLeft, .duo--faq, .pair { grid-template-columns: 1fr; }
  .split--provider > * { grid-column: 1 !important; grid-row: auto !important; }
  .split--provider > .pull { margin-top: .6rem; }
  .duo--artLeft .art { order: -1; }
}

/* ---------- Photos and illustrations ---------- */
.photo img { width: 100%; border-radius: 6px; }
.photo--tall img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 30% 50%; }
.photo--sticky { position: sticky; top: 120px; }
.art { justify-self: center; width: 100%; max-width: 380px; }
.art--wide { max-width: 460px; }
.art--small { max-width: 260px; }
@media (max-width: 900px) {
  .photo--tall img { aspect-ratio: 16 / 10; }
  .photo--sticky { position: static; order: -1; }
  .art { max-width: 300px; } .art--small { max-width: 200px; }
}

/* ---------- Icon rows ---------- */
.disc { display: grid; place-items: center; width: 116px; aspect-ratio: 1; border-radius: 50%; background: var(--disc); margin: 0 auto 1.3rem; position: relative; }
.disc img { width: 58%; height: auto; }
.trio { list-style: none; margin: 3.2rem 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; position: relative; }
.trio::before { content: ""; position: absolute; left: 17%; right: 17%; top: 58px; border-top: 1px solid var(--line); }
.trio li { text-align: center; }
.trio li p { margin-inline: auto; max-width: 30ch; }
.trio h3 { margin-bottom: .4em; }
.trio--four { grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-bottom: 0; }
.trio--four::before { display: none; }
.trio--four h3 { margin: 0; }
@media (max-width: 900px) {
  .trio { grid-template-columns: 1fr; gap: 2.6rem; }
  .trio::before { display: none; }
  .trio--four { grid-template-columns: 1fr 1fr; }
}

/* ---------- Lists ---------- */
.list { list-style: none; margin: 0 0 1.5rem; padding: 0; max-width: 66ch; }
.list li { position: relative; padding-left: 1.5rem; margin-bottom: .6rem; }
.list li::before { content: ""; position: absolute; left: .15rem; top: .68em; width: .42rem; height: .42rem; border-radius: 50%; background: var(--dot); }

/* ---------- Quote ---------- */
.pull { margin: 2.4rem 0 .4rem; }
.pull__mark { width: 54px; margin-bottom: .6rem; }
blockquote { margin: 0; }
blockquote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.2; color: var(--copper); max-width: 24ch; margin: 0; }

/* ---------- Closing band ---------- */
.closing h2 { max-width: 18ch; margin-bottom: .3em; }
.closing__line { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.2; }
.closing__after { margin-top: .9rem; }

/* ---------- Services ---------- */
.offerings { margin-top: clamp(2rem, 4vw, 3.5rem); }
.offering { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1rem, 5vw, 4.5rem); padding: clamp(2rem, 4vw, 3rem) 0; border-top: 1px solid var(--line); }
.offering > h3 { margin: 0; font-size: clamp(1.7rem, 2.8vw, 2.2rem); line-height: 1.12; }
.offering > div > :last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  .offering { display: block; }
  .offering > h3 { margin-bottom: .6em; }
}
.see-also { margin: 0; max-width: none; padding-top: clamp(1.5rem, 3vw, 2.2rem); border-top: 1px solid var(--line); }
.see-also a, .answer a { color: var(--copper-deep); }
.steps { list-style: none; margin: 2.5rem 0 0; padding: 0 0 0 2rem; border-left: 1px solid var(--sage); }
.steps > li { position: relative; padding-bottom: 2.4rem; }
.steps > li:last-child { padding-bottom: 0; }
.steps > li::before { content: ""; position: absolute; left: calc(-2rem - 6.5px); top: .55rem; width: 12px; height: 12px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 5px var(--mist); }
.steps > li > :last-child { margin-bottom: 0; }

/* ---------- Pricing ---------- */
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); max-width: 820px; margin: 1.6rem auto 1.4rem; }
.price { background: var(--sage); border-radius: 10px; padding: clamp(1.4rem, 3vw, 2rem); --dot: var(--ink); }
.price__name { font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; margin-bottom: .7rem; }
.price__name strong { font-weight: 400; }
.price .list { margin: 0; }
.price .list li { font-size: 1.1rem; }
.policies { margin-top: 3.2rem; }
.policies > :last-child { margin-bottom: 0; }
@media (max-width: 640px) { .prices { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { margin-top: 1.5rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; padding: 1.4rem 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; }
.faq summary::after { content: ""; flex: none; width: .65rem; height: .65rem; margin-top: .55rem; border-right: 1.5px solid var(--copper-deep); border-bottom: 1.5px solid var(--copper-deep); transform: rotate(45deg); transition: transform .3s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: .9rem; }
.faq .answer { padding-bottom: 1.4rem; }
.faq .answer > :last-child { margin-bottom: 0; }
.faq a { color: var(--copper-deep); }

/* ---------- Appointments ---------- */
.calendar { margin-top: 2rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.calendar iframe { display: block; width: 100%; border: 0; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact__info a { color: var(--copper-deep); }
.contact__form { position: sticky; top: 112px; background: var(--sage-soft); padding: clamp(1.5rem, 3vw, 2.4rem); border-radius: 10px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } .contact__form { position: static; } }
#contact-form { display: grid; gap: 1.1rem; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; font-weight: 700; margin-bottom: .5rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .92rem; font-weight: 400; margin-bottom: .35rem; }
.req { font-weight: 400; opacity: .75; }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); padding: .75rem .9rem; background: #fff; border: 1px solid #8C9A80; border-radius: 6px; }
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#contact-form .btn { justify-self: start; }
#contact-form .btn[disabled] { opacity: .6; cursor: progress; }
.form-status { margin: 0; padding: .9rem 1rem; background: #fff; border-left: 3px solid var(--sage-deep); border-radius: 0 6px 6px 0; font-size: .98rem; }
.form-status.is-error { border-left-color: #9A3B2B; }

/* ---------- Footer ---------- */
.site-footer { background: var(--lake); color: rgba(250, 249, 245, .9); padding: clamp(3rem, 6vw, 5rem) 0; font-size: .98rem; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, .7fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); }
.footer__name { font-size: 2.2rem; color: var(--cream); }
.footer__about p { font-size: .9rem; line-height: 1.65; color: rgba(250, 249, 245, .74); max-width: 62ch; }
.footer__col h3 { font-size: 1.5rem; color: var(--sage); margin-bottom: .7rem; }
.footer__col p { margin-bottom: .5em; }
.footer__col address a { text-decoration: none; }
.footer__col address a:hover { text-decoration: underline; }
.footer__welcome { margin-top: clamp(2rem, 4vw, 3rem); }
.footer__welcome img { width: min(340px, 100%); border-radius: 6px; margin-inline: auto; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}
@media print { .site-header, .btn, .preview-note { display: none !important; } .hero { min-height: 0 !important; } }
