/* =============================================================
   Wellnest Wellbeing — Foundation Homepage
   Design system: warm clay, deep sage, and plum on soft ivory.
   Deliberately avoids clinical blue and lotus-flower cliché imagery.
   ============================================================= */

:root {
  /* Colour palette */
  --color-bg: #FBF6EE;          /* warm ivory */
  --color-bg-alt: #F1E8DA;      /* warm sand — alternating sections */
  --color-surface: #FFFFFF;     /* cards */
  --color-ink: #2A2420;         /* warm charcoal — primary text */
  --color-ink-soft: #55483E;    /* muted brown-grey — secondary text */
  --color-primary: #9C4A2E;     /* clay terracotta — CTAs */
  --color-primary-dark: #7E3B24;/* hover state */
  --color-secondary: #3F5744;   /* deep sage green */
  --color-accent: #6B3550;      /* plum — women's health highlight */
  --color-gold: #C89B5C;        /* dividers / decorative */
  --color-border: #E3D6C2;

  /* Type */
  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --max-width: 1120px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-soft: 0 12px 32px -16px rgba(42, 36, 32, 0.22);

  --transition: 180ms ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Base ---------- */
body {
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}

h1 { font-size: clamp(2.75rem, 5.5vw + 1rem, 4.75rem); font-weight: 500; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.75rem, 2.5vw + 1rem, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1vw + 1rem, 1.4rem); }

p { color: var(--color-ink-soft); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}
.eyebrow::before {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  background: var(--color-accent);
  flex-shrink: 0;
}

/* ---------- Utility ---------- */
.wrap {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section { padding-block: clamp(3rem, 5vw, 4.5rem); }
.section--alt { background: var(--color-bg-alt); }

/* Hairline divider: the only two adjacent sections sharing the same
   background (hero and Meet Katherine) get a subtle seam between them. */
#katherine { border-top: 1px solid rgba(200, 155, 92, 0.35); }

/* Scroll-reveal: gated behind .has-js so no-JS visitors always see full content. */
.has-js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease-out, transform 700ms ease-out;
}
.has-js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Staggered entrance within card groups — a small luxury-catalogue cue. */
.has-js .benefits .reveal:nth-child(2) { transition-delay: 90ms; }
.has-js .benefits .reveal:nth-child(3) { transition-delay: 180ms; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--color-ink);
  color: var(--color-bg);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  transition: top var(--transition);
  z-index: 100;
}
.skip-link:focus {
  top: 1rem;
}

/* Consistent, visible keyboard focus states everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.85rem 1.75rem;
  transition: background-color 200ms ease, color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--color-primary);
  color: var(--color-bg);
}
.btn--primary:hover { background: var(--color-primary-dark); }
.btn--primary:active { transform: translateY(1px); }
.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: calc(0.85rem - 2px) calc(1.75rem - 2px);
}
.btn--outline:hover { background: var(--color-primary); color: var(--color-bg); }
.btn--outline:active { transform: translateY(1px); }
.btn--large { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn--small { padding: 0.6rem 1.25rem; font-size: 0.9rem; }
.btn--full { width: 100%; }
/* Mailchimp needs an <input type="submit">; strip the native input chrome so it matches the <a>/<button> buttons. */
input.btn { border: 0; cursor: pointer; appearance: none; -webkit-appearance: none; line-height: inherit; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 238, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
  transition: background-color 220ms ease, box-shadow 220ms ease;
}
.site-header.is-scrolled {
  background: rgba(251, 246, 238, 0.98);
  box-shadow: 0 8px 24px -16px rgba(42, 36, 32, 0.28);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.15rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.brand__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--color-ink);
}
.brand__mark {
  display: inline-flex;
  align-items: center;
}
.brand__mark img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-ink);
  transition: transform var(--transition);
}
.nav-toggle__bar::before { transform: translateY(-6px); }
.nav-toggle__bar::after { transform: translateY(4px); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.primary-nav ul {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.primary-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-ink-soft);
  transition: color var(--transition);
}
.primary-nav a:hover { color: var(--color-primary); }
/* .primary-nav a's colour rule above is more specific than .btn--primary's,
   so the nav CTA needs its own override to keep light, readable button text. */
.primary-nav a.btn--primary,
.primary-nav a.btn--primary:hover {
  color: var(--color-bg);
}

/* ---------- Hero ---------- */
.hero {
  padding-block-start: clamp(2.75rem, 7vw, 5.5rem);
  padding-block-end: clamp(2rem, 3.5vw, 3rem);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
}
@media (min-width: 721px) {
  .hero h1 em { display: block; margin-top: 0.15em; }
}
.hero__sub {
  margin-block: 1.25rem 2rem;
  font-size: 1.15rem;
  max-width: 46ch;
}
.hero__note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--color-ink-soft);
}
.hero__visual {
  position: relative;
}
.hero__photo-frame {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* Hero entrance: fades the hero content in on page load, once, with a
   small stagger. The global prefers-reduced-motion rule above already
   collapses animation-duration to ~0 for everyone, so no extra guard
   is needed here. */
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero__copy > *,
.hero__visual {
  animation: hero-fade-up 600ms ease-out both;
}
.hero__copy .eyebrow { animation-delay: 0ms; }
.hero__copy h1 { animation-delay: 100ms; }
.hero__copy .hero__sub { animation-delay: 220ms; }
.hero__copy .btn { animation-delay: 340ms; }
.hero__copy .hero__note { animation-delay: 400ms; }
.hero__visual { animation-delay: 150ms; }

/* ---------- Meet Katherine ---------- */
.katherine {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.portrait-frame {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--color-secondary), var(--color-accent));
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.portrait-frame__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.katherine__copy h2 { margin-bottom: 1.25rem; }
.katherine__copy p { margin-bottom: 1rem; max-width: 62ch; }
.katherine__more { margin-top: 1.25rem; }
.katherine__copy a,
.offer-form__fine-print a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 200ms ease;
}
.katherine__copy a:hover,
.offer-form__fine-print a:hover { color: var(--color-primary-dark); }

.credentials {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 2rem;
}
.credentials li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.95rem;
  color: var(--color-ink);
}
.credentials li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-gold);
}

/* ---------- How We Help ---------- */
.section-head { max-width: 62ch; margin-bottom: 2.5rem; }
.section-head__sub { margin-top: 0.75rem; font-size: 1.05rem; }

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
.benefit-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 300ms ease-out, box-shadow 300ms ease-out;
}
.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}
.benefit-card__icon {
  color: var(--color-secondary);
}
.benefit-card__tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.benefit-card--featured {
  background: var(--color-surface);
  border: 1px solid var(--color-accent);
  box-shadow: var(--shadow-soft);
}
.benefit-card--featured .benefit-card__icon { color: var(--color-accent); }

/* On the widescreen 3-up grid, give the featured card a touch more room */
@media (min-width: 900px) {
  .benefits { grid-template-columns: 1.15fr 1fr 1fr; }
}

/* ---------- Offer ---------- */
.offer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.offer__sub {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--color-ink-soft);
  margin-top: 0.25rem;
  margin-bottom: 1.25rem;
}
.offer__copy p { max-width: 46ch; }
.offer__list {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
}
.offer__list li {
  padding-left: 1.6rem;
  position: relative;
  color: var(--color-ink);
}
.offer__list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: 600;
}

.offer__form-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-soft);
}
.offer-form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.9rem; font-weight: 500; color: var(--color-ink); }
.field input {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-ink);
}
.field input:focus-visible { outline-offset: 2px; }
.consent-group { display: grid; gap: 0.4rem; }
.consent { display: flex; align-items: flex-start; gap: 0.65rem; }
.consent input {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.1rem 0 0;
  accent-color: var(--color-primary);
  cursor: pointer;
}
.consent label {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--color-ink-soft);
  cursor: pointer;
}
.consent__error {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-primary-dark);
}
.offer-form__fine-print {
  font-size: 0.8rem;
  color: var(--color-ink-soft);
  line-height: 1.5;
}

/* ---------- Clinic ---------- */
.clinic__body p { max-width: 62ch; margin-bottom: 1rem; }
.clinic__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-secondary);
  color: var(--color-bg);
  padding-top: clamp(3.5rem, 6vw, 5rem);
}
.site-footer p, .site-footer a { color: rgba(251, 246, 238, 0.85); }
.site-footer a { transition: color 200ms ease; }
.site-footer a:hover { color: var(--color-bg); }
.site-footer h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-gold);
  margin-bottom: 0.9rem;
}
.brand__name--footer {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-bg);
  display: block;
  margin-bottom: 0.6rem;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.site-footer__col ul { display: grid; gap: 0.55rem; font-size: 0.92rem; }
.site-footer__legal {
  border-top: 1px solid rgba(251, 246, 238, 0.18);
  padding-block: 1.75rem;
  display: grid;
  gap: 0.6rem;
  font-size: 0.78rem;
}
.site-footer__legal p:first-child { max-width: 62ch; color: rgba(251, 246, 238, 0.7); }

/* =============================================================
   Responsive — collapse to single column, reveal mobile nav
   ============================================================= */
@media (max-width: 899px) {
  .hero__inner,
  .katherine,
  .offer__inner {
    grid-template-columns: 1fr;
  }
  .katherine__portrait { max-width: 260px; }

  /* Hero photo, mobile only: shown above the text as a short landscape
     crop, so two tall portrait photos don't stack (this one, then
     Katherine's) and read as cluttered. */
  .hero__visual { order: -1; }
  .hero__photo-frame { aspect-ratio: 4 / 3; }
  .hero__photo { object-position: 75% 60%; }
  .hero__visual { animation-delay: 0ms; }
  .hero__copy .eyebrow { animation-delay: 80ms; }
  .hero__copy h1 { animation-delay: 160ms; }
  .hero__copy .hero__sub { animation-delay: 260ms; }
  .hero__copy .btn { animation-delay: 340ms; }
  .hero__copy .hero__note { animation-delay: 380ms; }

  .benefits {
    grid-template-columns: 1fr;
  }
  .site-footer__inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .brand__mark img { height: 40px; }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1.25rem 1.5rem 1.75rem;
    gap: 1.25rem;
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav ul {
    flex-direction: column;
    gap: 1rem;
  }
  .nav-cta { align-self: flex-start; }
  .clinic__actions { flex-direction: column; align-items: flex-start; }
  .credentials { grid-template-columns: 1fr; }
}
