/* ==========================================================================
   Totality — Chinese Medicine and Transformational Coaching
   Static site stylesheet
   ========================================================================== */

:root {
  --ink: #1d1d1b;
  --ink-soft: #4a4a46;
  --paper: #fcfbf9;
  --paper-alt: #f4f2ed;
  --line: #d9d5cc;
  --accent: #6f8276;      /* muted sage */
  --accent-dark: #55665c;
  --serif: "Playfair Display", "Didot", "Bodoni MT", Georgia, serif;
  --sans: "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
  --nav-h: 84px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; }

.container { width: min(1120px, 92%); margin: 0 auto; }
.container--narrow { width: min(760px, 92%); margin: 0 auto; }

/* --------------------------------------------------------------------------
   Announcement bar
   -------------------------------------------------------------------------- */
.announcement {
  background: var(--ink);
  color: #f5f4f0;
  font-size: 14px;
  letter-spacing: .04em;
  text-align: center;
  padding: 10px 48px;
  position: relative;
}
.announcement a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.announcement__close {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: #f5f4f0; font-size: 18px; line-height: 1;
  cursor: pointer; padding: 6px;
}
.announcement.is-hidden { display: none; }

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(252, 251, 249, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header .container { width: min(1400px, 94%); }

.site-header__inner {
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
}

.brand { display: flex; align-items: baseline; gap: 16px; text-decoration: none; }
.brand__name {
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: .01em;
}
.brand__tag {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-soft);
}

.nav { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.nav a:hover { border-bottom-color: var(--ink); }
.nav a.is-active { border-bottom-color: var(--accent); color: var(--accent-dark); }

/* dropdown */
.nav__group { position: relative; }
.nav__group > button {
  font-family: var(--sans); font-weight: 300;
  font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase;
  background: none; border: 0; cursor: pointer; color: var(--ink);
  padding: 6px 0; display: inline-flex; align-items: center; gap: 7px;
  white-space: nowrap;
}
.nav__group > button::after {
  content: ""; width: 7px; height: 7px;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.nav__menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  background: var(--paper); border: 1px solid var(--line);
  min-width: 250px; padding: 10px 0;
  opacity: 0; visibility: hidden; translate: 0 6px;
  transition: opacity .2s ease, translate .2s ease, visibility .2s;
  box-shadow: 0 18px 40px rgba(29, 29, 27, .08);
}
.nav__group:hover .nav__menu,
.nav__group:focus-within .nav__menu { opacity: 1; visibility: visible; translate: 0 0; }
.nav__group.is-open > button { color: var(--accent-dark); border-bottom: 1px solid var(--accent); }
.nav__menu a {
  display: block; padding: 10px 24px; border: 0; letter-spacing: .14em;
}
.nav__menu a:hover { background: var(--paper-alt); }

/* extra specificity so the generic `.nav a` rule can't strip the
   button's padding or bottom border */
.btn-book,
.nav a.btn-book {
  font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink); color: var(--ink);
  padding: 13px 26px;
  transition: background .25s ease, color .25s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-book:hover,
.nav a.btn-book:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 10px; width: 24px; height: 1.5px;
  background: var(--ink); transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; top: -8px; }
.nav-toggle span::after { left: 0; top: 8px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span::after { transform: translateY(-8px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Buttons & shared elements
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; text-align: center;
  border: 1px solid var(--ink); color: var(--ink);
  padding: 16px 34px;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
  background: transparent;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--light { border-color: #fff; color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

.rule { border: 0; border-top: 1px solid var(--ink); width: 100%; margin: 44px 0; opacity: .85; }
.rule--short { width: 72px; margin: 28px auto; border-top-color: var(--accent); opacity: 1; }

.eyebrow {
  display: block;
  font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 18px;
}

.section { padding: 96px 0; }
.section--alt { background: var(--paper-alt); }

.section-title { font-size: clamp(30px, 4.5vw, 44px); margin-bottom: 20px; }

/* fade-up on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   Home: hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  display: flex; align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero__img {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 35%;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(20, 22, 20, .45), rgba(20, 22, 20, 0) 55%);
}
.hero__content { color: #fff; padding: 0 0 120px; text-shadow: 0 1px 24px rgba(0,0,0,.25); }
.hero__title { font-size: clamp(38px, 6vw, 68px); font-weight: 500; }
.hero__sub { font-size: 15px; letter-spacing: .26em; text-transform: uppercase; margin-top: 16px; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  color: #fff; font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  text-decoration: none; opacity: .85;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero__scroll::after {
  content: ""; width: 1px; height: 34px; background: #fff;
  animation: scrollcue 2.2s ease-in-out infinite;
}
@keyframes scrollcue { 0%, 100% { transform: scaleY(.4); transform-origin: top; } 50% { transform: scaleY(1); } }

/* --------------------------------------------------------------------------
   Home: intro (bio) section
   -------------------------------------------------------------------------- */
.intro__heading {
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.28;
  max-width: 21em;
}
.intro__body { max-width: 46em; font-size: 18px; }
.intro__body em { font-style: italic; }
.intro__choices {
  display: flex; flex-wrap: wrap; gap: 18px; margin-top: 44px;
}

/* offering cards */
.offerings {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
.offer-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 52px 44px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
  transition: box-shadow .3s ease, transform .3s ease;
}
.offer-card:hover { box-shadow: 0 24px 48px rgba(29,29,27,.07); transform: translateY(-3px); }
.offer-card h3 { font-size: 27px; }
.offer-card p { color: var(--ink-soft); }
.offer-card .btn { margin-top: auto; }

/* quote band */
.quote-band { text-align: center; }
.quote-band blockquote {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.5;
  max-width: 30em; margin: 0 auto;
  font-style: italic;
}
.quote-band cite {
  display: block; margin-top: 22px; font-style: normal; font-family: var(--sans);
  font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-soft);
}

/* CTA band */
.cta-band {
  position: relative; isolation: isolate;
  padding: 140px 0;
  text-align: center; color: #fff;
  background-image: url("../images/cta-shore.jpg");
  background-size: cover; background-position: center 30%;
}
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(24, 28, 25, .5); }
.cta-band h2 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 30px; }

/* --------------------------------------------------------------------------
   Page hero (interior pages)
   -------------------------------------------------------------------------- */
.page-head { padding: 84px 0 30px; }
.page-head h1 { font-size: clamp(34px, 5vw, 54px); max-width: 18em; }
.page-head .eyebrow { margin-bottom: 22px; }

/* split layout: text + image */
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.split--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media--tall img { aspect-ratio: 4 / 5.4; }
.sticky-media { position: sticky; top: calc(var(--nav-h) + 32px); }

.prose h2 { font-size: 29px; margin: 52px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 18px; }
.prose ul { margin: 18px 0 18px 1.2em; }
.prose li { margin: 6px 0; }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose .btn { margin-top: 36px; }

/* --------------------------------------------------------------------------
   Fees / services cards
   -------------------------------------------------------------------------- */
.fee-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 56px; }
.fee-card { background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; }
.fee-card__img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.fee-card__body { padding: 40px 36px 44px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.fee-card__body h3 { font-size: 25px; }
.fee-card__meta { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-dark); }
.fee-card__body p { color: var(--ink-soft); }
.fee-card__body .btn { margin-top: auto; align-self: flex-start; }

.note {
  border-left: 2px solid var(--accent);
  background: var(--paper-alt);
  padding: 22px 28px;
  font-size: 15.5px;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Booking page
   -------------------------------------------------------------------------- */
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 24px; }
.book-panel {
  border: 1px solid var(--line); background: var(--paper);
  padding: 52px 44px; display: flex; flex-direction: column; gap: 16px;
}
.book-panel h2 { font-size: 27px; }
.book-panel .fee-card__meta { margin-top: -6px; }
.book-panel p { color: var(--ink-soft); }
.book-panel .btn { margin-top: auto; align-self: flex-start; }

.price-list { list-style: none; margin: 8px 0; }
.price-list li {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.price-list li span:last-child { font-family: var(--serif); font-size: 19px; }

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.testimonial-cols { columns: 2; column-gap: 40px; margin-top: 30px; }
.testimonial {
  break-inside: avoid;
  border: 1px solid var(--line); background: var(--paper);
  padding: 40px 36px; margin-bottom: 40px;
}
.testimonial blockquote { font-size: 16.5px; line-height: 1.8; color: var(--ink-soft); }
.testimonial blockquote::before { content: "“"; font-family: var(--serif); font-size: 44px; line-height: 0; display: block; margin: 18px 0 6px; color: var(--accent); }
.testimonial cite {
  display: block; margin-top: 18px; font-style: normal;
  font-size: 12px; letter-spacing: .26em; text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-block h2 { font-size: 27px; margin-bottom: 14px; }
.contact-block + .contact-block { margin-top: 48px; }
.contact-block a { text-underline-offset: 3px; }
.contact-big {
  font-family: var(--serif); font-size: clamp(21px, 2.6vw, 27px);
  line-height: 1.5; word-break: break-word;
}
.map-frame { border: 1px solid var(--line); width: 100%; aspect-ratio: 4 / 3.4; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(35%); }

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.credential-list { list-style: none; margin-top: 8px; }
.credential-list li {
  padding: 11px 0; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 18px; font-size: 15.5px;
}
.credential-list li span:last-child { color: var(--ink-soft); white-space: nowrap; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #cfcdc6; margin-top: 0; }
.site-footer a { color: #f2f1ec; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 56px;
  padding: 72px 0 56px;
}
.site-footer h4 {
  font-family: var(--sans); font-weight: 400;
  font-size: 12px; letter-spacing: .26em; text-transform: uppercase;
  color: #8f8d85; margin-bottom: 20px;
}
.site-footer .brand__name { color: #fff; font-size: 26px; }
.site-footer p { font-size: 15px; }
.site-footer ul { list-style: none; }
.site-footer li { margin: 9px 0; font-size: 15px; }
.footer-social { display: flex; gap: 18px; margin-top: 22px; }
.footer-social a {
  width: 40px; height: 40px; border: 1px solid #55534d; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .25s ease, background .25s ease;
}
.footer-social a:hover { border-color: #fff; background: rgba(255,255,255,.06); text-decoration: none; }
.footer-social svg { width: 17px; height: 17px; fill: #f2f1ec; }
.site-footer__bottom {
  border-top: 1px solid #3a3936;
  padding: 26px 0;
  font-size: 13px; letter-spacing: .05em;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1380px) {
  /* keep the nav on one tidy line before collapsing to the menu button */
  .brand__tag { display: none; }
}

@media (max-width: 1120px) {
  :root { --nav-h: 72px; }
  .brand__tag { display: none; }

  .nav {
    position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 55;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px 6vw 28px;
    display: none;
    max-height: calc(100vh - var(--nav-h)); overflow: auto;
  }
  .nav.is-open { display: flex; }
  .nav a, .nav__group > button { padding: 13px 0; font-size: 14px; }
  .nav__group { width: 100%; }
  .nav__group > button { display: none; }
  .nav__menu {
    position: static; transform: none; opacity: 1; visibility: visible; translate: 0;
    border: 0; box-shadow: none; min-width: 0; padding: 0; background: transparent;
  }
  .nav__menu a { padding: 13px 0; }
  .btn-book { margin-top: 14px; }
  .nav-toggle { display: block; }

  .split, .split--flip { grid-template-columns: 1fr; gap: 40px; }
  .sticky-media { position: static; }
  .offerings, .fee-cards, .book-grid, .contact-grid { grid-template-columns: 1fr; }
  .testimonial-cols { columns: 1; }
  .section { padding: 68px 0; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 40px; }
}
