/* ==========================================================
   JS Health and Wellness — replica of the published site
   Palette lifted from the live design.

   TYPE STACK
   ----------
   The Seasons  display headings   (Canva-licensed — see note)
   Playfair Display  headings, quotes        (Google Fonts)
   Alegreya SC       labels, nav, buttons    (Google Fonts)
   Kenao             body copy      (Canva-licensed — see note)

   "The Seasons" and "Kenao" are not free webfonts, so they are named
   first in each stack but not loaded. Until the licensed .woff2 files
   are self-hosted, Playfair Display and Poppins stand in for them.
   To enable: drop the files in site-canva/fonts/ and uncomment the
   @font-face blocks below — nothing else needs to change.
   ========================================================== */

/*
@font-face {
  font-family: 'The Seasons';
  src: url('../fonts/theseasons-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'The Seasons';
  src: url('../fonts/theseasons-bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Kenao';
  src: url('../fonts/kenao-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Kenao';
  src: url('../fonts/kenao-medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
*/

:root {
  --navy:        #2c3e50;
  --navy-deep:   #30334b;
  --ink:         #272f33;
  --gold:        #bf901d;
  --gold-dark:   #ac8308;
  --gold-deep:   #8d691e;
  --gold-light:  #c2a55f;
  --cream:       #e8decc;
  --cream-soft:  #f6f1e7;
  --stone:       #dedad4;
  --taupe:       #8b806f;
  --white:       #fffdf9;

  --display:   'The Seasons', 'Playfair Display', Georgia, serif;
  --serif:     'Playfair Display', Georgia, 'Times New Roman', serif;
  --smallcaps: 'Alegreya SC', 'Playfair Display', Georgia, serif;
  --sans:      'Kenao', 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --wrap: 1140px;
  --header-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  /* Body copy runs in the same serif as the headings — Playfair has no 300
     weight and a smaller x-height than a sans, hence 400 at a larger size. */
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.72;
  color: var(--navy);
  background: var(--cream-soft);
  -webkit-font-smoothing: antialiased;
  /* Short pages (Reflections) must still push the footer to the bottom. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

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

a { color: var(--gold-deep); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.22;
  margin: 0 0 .6em;
  color: var(--navy);
  letter-spacing: -0.005em;
}

p { margin: 0 0 1.2em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.wrap.narrow { max-width: 860px; }
.centered { text-align: center; }

.kicker {
  font-family: var(--smallcaps);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--gold);
  margin-bottom: .9em;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--smallcaps);
  padding: 14px 42px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(44, 62, 80, .18); }

.btn-navy { background: var(--navy); color: var(--gold-light); }
.btn-navy:hover { background: var(--navy-deep); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-dark); }

.btn-row { margin-top: 2.2em; margin-bottom: 0; }

/* ── Header ────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 231, .93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(44, 62, 80, .12);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }

.brand-mark {
  font-family: var(--display);
  font-size: 1.8rem;
  letter-spacing: .12em;
  color: var(--gold);
}

.brand-name {
  font-family: var(--smallcaps);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--gold);
  white-space: nowrap;
}

.site-nav { display: flex; align-items: center; gap: 30px; }

.site-nav a {
  font-family: var(--smallcaps);
  font-size: .98rem;
  font-weight: 400;
  letter-spacing: .07em;
  color: var(--navy);
  text-decoration: none;
  transition: color .2s ease;
}
.site-nav a:hover { color: var(--gold); }

.site-nav a[aria-current="page"] { color: var(--gold); }

.site-nav .nav-cta {
  background: var(--navy);
  color: var(--gold-light);
  padding: 9px 22px;
  border-radius: 999px;
}
.site-nav .nav-cta:hover { background: var(--navy-deep); color: var(--gold-light); }
.site-nav .nav-cta[aria-current="page"] { background: var(--navy-deep); color: var(--gold-light); }

/* Secondary pill, gold against the navy CTA. Mirrors the .btn-gold treatment
   the same "Contact JS Health and Wellness" link already gets on start.html. */
.site-nav .nav-contact {
  background: var(--gold);
  color: var(--navy);
  padding: 9px 22px;
  border-radius: 999px;
}
.site-nav .nav-contact:hover { background: var(--gold-dark); color: var(--navy); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 96px 0 104px;
  background:
    linear-gradient(rgba(246, 241, 231, .84), rgba(246, 241, 231, .9)),
    url('../images/silk-texture.jpg') center / cover no-repeat;
}

.hero-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; text-align: center; }

.hero-eyebrow {
  font-family: var(--display);
  font-size: clamp(2.1rem, 5.4vw, 3.9rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: .005em;
  color: var(--gold-dark);
  margin: 0 0 .3em;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3.6vw, 2.75rem);
  font-weight: 400;
  color: var(--navy);
  max-width: 20ch;
  margin: 0 auto 2.6em;
}

.hero-body {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: center;
  text-align: left;
}

.hero-figure { margin: 0; }

.hero-figure img {
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(44, 62, 80, .22);
  aspect-ratio: 320 / 290;
  object-fit: cover;
  object-position: center 22%;
  width: 100%;
}

.hero-copy {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.7vw, 1.38rem);
  font-weight: 400;
  line-height: 1.62;
  color: var(--navy-deep);
}

.hero-copy p { margin: 0; }
.hero-copy .btn-row { margin-top: 1.6em; }

/* ── Script section ────────────────────────────────────── */
.script-section {
  background: var(--white);
  padding: 96px 0 104px;
  text-align: center;
}

.script-line {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  /* 600 is the heaviest italic loaded from Google Fonts for Playfair. */
  font-weight: 600;
  line-height: 1.3;
  color: var(--gold-deep);
  margin: 0 auto 1.2em;
}

.bio {
  max-width: 900px;
  margin: 1.6em auto 0;
  text-align: left;
  color: var(--navy);
}

.bio p:last-child { margin-bottom: 0; }

/* ── Pull quote band ───────────────────────────────────── */
.quote-band {
  background: var(--cream);
  padding: 96px 0;
  text-align: center;
}

.quote-band .band-line {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.9vw, 2.7rem);
  font-weight: 600;
  line-height: 1.28;
  color: var(--gold-light);
  text-shadow: 0 1px 0 rgba(44, 62, 80, .06);
}

.quote-mark {
  display: block;
  font-family: var(--display);
  font-size: 7rem;
  line-height: .55;
  color: var(--gold-light);
  opacity: .7;
  margin-bottom: .12em;
}

/* ── Meet your provider ────────────────────────────────── */
.provider {
  background: var(--white);
  padding: 104px 0;
}

.provider h1 { font-size: clamp(1.75rem, 3vw, 2.4rem); margin-bottom: .3em; }

.provider-credentials {
  font-family: var(--smallcaps);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--gold-deep);
  text-align: center;
  margin-bottom: 2.4em;
}

.lede {
  font-family: var(--smallcaps);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--gold-deep);
}

/* ── Services ──────────────────────────────────────────── */
.services {
  padding: 104px 0;
  background:
    linear-gradient(rgba(232, 222, 204, .92), rgba(232, 222, 204, .96)),
    url('../images/silk-texture.jpg') center / cover no-repeat;
}

.services h1 { font-size: clamp(1.75rem, 3vw, 2.4rem); max-width: 22ch; margin-inline: auto; }

.services .lede { max-width: 46ch; margin-inline: auto; margin-bottom: 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 56px;
}

.card {
  background: var(--cream-soft);
  border: 1px solid rgba(191, 144, 29, .28);
  border-radius: 4px;
  padding: 44px 32px 38px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(44, 62, 80, .14); }

.card h2 {
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0;
}

.card p { margin: 0; font-size: 1.02rem; color: var(--navy-deep); }

/* ── Reflections ───────────────────────────────────────── */
.reflections {
  background: var(--cream);
  padding: 104px 0;
  text-align: center;
}

/* ── Not found (404.html) ──────────────────────────────── */
.notfound {
  background: var(--cream);
  padding: 104px 0;
  text-align: center;
}

.script-overlay {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(2.2rem, 4.6vw, 3.3rem);
  font-weight: 400;
  color: var(--gold-light);
  margin: 0 0 .8em;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 940px;
  margin: 0 auto;
}

.quote-grid figure {
  margin: 0;
  background: var(--cream-soft);
  border-radius: 4px;
  padding: 40px 34px 30px;
  box-shadow: 0 10px 30px rgba(44, 62, 80, .08);
}

.quote-grid blockquote {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.45;
  color: var(--navy);
}

/* Long-form testimonial: spans the grid and reads left-aligned, since a
   paragraph of this length is hard to follow centered. */
.quote-grid .quote-feature { grid-column: 1 / -1; text-align: left; }

.quote-grid .quote-feature blockquote {
  font-size: 1.16rem;
  line-height: 1.62;
  margin-bottom: 20px;
}

.quote-grid figcaption {
  font-family: var(--smallcaps);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--gold-deep);
}

/* ── Welcome / contact card ────────────────────────────── */
.welcome {
  padding: 104px 28px;
  background:
    linear-gradient(rgba(246, 241, 231, .8), rgba(246, 241, 231, .88)),
    url('../images/silk-texture.jpg') center / cover no-repeat;
}

.welcome-card {
  max-width: 860px;
  margin: 0 auto;
  background: var(--cream-soft);
  border: 1px solid rgba(44, 62, 80, .14);
  border-radius: 3px;
  padding: 56px 48px 64px;
  text-align: center;
  box-shadow: 0 26px 70px rgba(44, 62, 80, .16);
}

.rule {
  display: block;
  height: 2px;
  background: var(--navy);
  opacity: .85;
  margin: 0 auto 30px;
  max-width: 620px;
}
.rule + .rule { margin-top: 30px; }

.welcome-brand {
  font-family: var(--smallcaps);
  font-size: clamp(1.25rem, 2.3vw, 1.75rem);
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--gold);
  margin: 0 0 30px;
}

.welcome-title {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.8vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--gold);
  margin: 30px 0 .55em;
}

.welcome-copy {
  max-width: 620px;
  margin: 0 auto 1.2em;
  color: var(--navy);
}

.welcome-card .btn-row { margin: 2.4em 0 3em; }

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
  justify-content: center;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
}

.contact-list img { width: 40px; height: 40px; object-fit: contain; flex: none; }

.contact-list a {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--navy);
  text-decoration: none;
  word-break: break-word;
  transition: color .2s ease;
}
.contact-list a:hover { color: var(--gold); }

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255, 253, 249, .78);
  padding: 56px 0 48px;
  text-align: center;
}

.footer-brand {
  font-family: var(--smallcaps);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--gold-light);
  letter-spacing: .05em;
  margin-bottom: .5em;
}

.footer-note { margin-bottom: 1.6em; font-size: .97rem; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 30px;
  margin-bottom: 1.8em;
}

.footer-nav a {
  font-family: var(--smallcaps);
  font-size: .95rem;
  letter-spacing: .07em;
  color: var(--gold-light);
  text-decoration: none;
  transition: color .2s ease;
}
.footer-nav a:hover { color: var(--white); }

.footer-legal { margin: 0; font-size: .82rem; color: rgba(255, 253, 249, .55); }

.footer-version {
  margin-left: 1.2em;
  font-family: var(--smallcaps);
  letter-spacing: .08em;
  color: rgba(255, 253, 249, .45);
  white-space: nowrap;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-body { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .hero-figure { max-width: 340px; margin: 0 auto; }
  .card-grid, .quote-grid { grid-template-columns: 1fr; }
  .bio { text-align: left; }
}

/* Four links plus two pills is tight between the mobile drawer breakpoint and
   the full 1140px wrap. Ease the spacing rather than let the header overflow. */
@media (max-width: 1080px) and (min-width: 781px) {
  .site-nav { gap: 18px; }
  .site-nav a { font-size: .9rem; letter-spacing: .05em; }
  .site-nav .nav-cta,
  .site-nav .nav-contact { padding: 8px 16px; }
}

@media (max-width: 780px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream-soft);
    border-bottom: 1px solid rgba(44, 62, 80, .12);
    padding: 8px 28px 22px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid rgba(44, 62, 80, .08); }
  .site-nav .nav-cta,
  .site-nav .nav-contact { margin-top: 16px; text-align: center; border-bottom: 0; }
  .brand-name { font-size: .92rem; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero, .script-section, .quote-band, .provider,
  .services, .reflections, .welcome { padding-top: 68px; padding-bottom: 72px; }
  .welcome-card { padding: 40px 24px 48px; }
  .contact-list li { gap: 14px; }
  .contact-list img { width: 32px; }
}

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