/* ==========================================================================
   Christina Gerdes, MD — Marketing Site
   Built on the design-system tokens (../styles.css). Accessible earth-tone
   theme. AA-contrast action colors, visible focus, reduced-motion aware.
   ========================================================================== */

@import url('design-tokens.css');

/* --- Site-level overrides / accessible action colors --------------------- */
:root {
  /* Filled buttons & links need >=4.5:1 on cream/white. --olive-500 is only
     ~3:1 with white, so text-on-color and links use the darker olive-700. */
  --action:        var(--olive-700);   /* #5E673C  ~6:1 on cream with white */
  --action-hover:  var(--olive-800);
  --link:          var(--olive-700);
  --link-hover:    var(--olive-900);
  --focus-ring:    0 0 0 3px #FAF7F0, 0 0 0 5.5px var(--olive-600);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--surface-page);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- Accessibility primitives -------------------------------------------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--action); color: #fff; padding: 10px 18px;
  border-radius: var(--radius-md); font-weight: 600; text-decoration: none;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* --- Layout -------------------------------------------------------------- */
.container { max-width: 1140px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding: 72px 0; }
.section--tint { background: var(--surface-accent); }
.section--sunken { background: var(--surface-sunken); }
.section--ink { background: var(--olive-900); color: var(--sand-100); }

/* --- Typography ---------------------------------------------------------- */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; color: var(--text-strong); letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; max-width: 66ch; text-wrap: pretty; }
.lead { font-size: 1.22rem; color: var(--text-body); max-width: 60ch; }
.eyebrow {
  font-family: var(--font-sans); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--link);
  margin: 0 0 14px; display: block;
}
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--sand-50); }
.section--ink .eyebrow { color: var(--olive-300); }

a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--link-hover); }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  font-family: var(--font-sans); font-size: 1rem; font-weight: 600; line-height: 1;
  padding: 14px 26px; border-radius: var(--radius-lg); border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; transition: background .15s ease, transform .12s ease, box-shadow .15s ease;
  min-height: 48px; /* comfortable touch target */
}
.btn--primary { background: var(--action); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--action-hover); color: #fff; }
.btn--secondary { background: var(--surface-card); color: var(--action); border-color: var(--olive-400); }
.btn--secondary:hover { background: var(--brand-soft); color: var(--action-hover); }
.btn--onink { background: var(--sand-50); color: var(--stone-800); }
.btn--onink:hover { background: #fff; color: var(--stone-900); }
.btn:active { transform: scale(.975); }
.btn svg { width: 19px; height: 19px; }

/* --- Cards --------------------------------------------------------------- */
.card {
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl); padding: 28px; box-shadow: var(--shadow-sm);
}
.card--tint { background: var(--surface-accent); border-color: var(--olive-200); }
.card--clay { background: var(--surface-accent-2); border-color: var(--clay-100); }
a.card, .card--link { display: block; text-decoration: none; color: inherit; transition: box-shadow .18s ease, transform .18s ease; }
a.card:hover, .card--link:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__icon {
  width: 52px; height: 52px; border-radius: var(--radius-lg); background: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-xs);
  margin-bottom: 18px; color: var(--action);
}
.card--clay .card__icon { color: var(--clay-600); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 1rem; margin-bottom: 0; }

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* --- Pills / chips (states, tags) ---------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
  border-radius: var(--radius-pill); background: var(--brand-soft);
  color: var(--brand-soft-text); font-size: 0.92rem; font-weight: 600;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px;
  border-radius: var(--radius-pill); background: var(--surface-card);
  border: 1px solid var(--border-default); color: var(--text-body);
  font-size: 0.9rem; font-weight: 600;
}
.badge svg { width: 16px; height: 16px; color: var(--action); }

/* --- Header / nav -------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in oklch, var(--olive-900) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.site-header .brand__name { color: var(--sand-50); }
.site-header .brand__role { color: var(--olive-300); }
.site-header .brand__mark { background: var(--olive-500); color: var(--stone-900); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; max-width: 1140px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 50%; background: var(--olive-600);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 19px; font-weight: 500;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.08; }
.brand__name { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 500; color: var(--text-strong); line-height: 1.15; white-space: nowrap; }
.brand__role { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--link); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 15px; border-radius: var(--radius-md); text-decoration: none;
  font-weight: 500; color: var(--sand-100); font-size: 1rem;
}
.nav a:hover { background: rgba(255,255,255,0.12); color: #fff; }
.nav a[aria-current="page"] { color: #fff; font-weight: 600; background: rgba(255,255,255,0.16); }
.nav .btn { margin-left: 8px; padding: 10px 18px; min-height: 44px; }

.nav-toggle { display: none; }

/* --- Footer -------------------------------------------------------------- */
.site-footer { background: var(--olive-900); color: var(--sand-100); }
.site-footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; padding: 56px 24px 40px; max-width: 1140px; margin: 0 auto; }
.site-footer h2 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--olive-300); margin-bottom: 14px; font-family: var(--font-sans); }
.site-footer a { color: var(--stone-300); text-decoration: none; display: block; padding: 6px 0; font-size: 0.98rem; }
.site-footer a:hover { color: var(--sand-50); }
.footer-brand p { color: var(--stone-300); font-size: 0.98rem; max-width: 34ch; }
.site-footer__disclaimer {
  border-top: 1px solid rgba(255,255,255,0.12); padding: 22px clamp(24px, 5vw, 64px);
  width: 100%; color: var(--stone-300); font-size: 0.85rem; line-height: 1.6;
}
.site-footer__disclaimer p { max-width: none; }
.site-footer__disclaimer strong { color: var(--sand-100); }
.site-footer__legal { color: var(--stone-400); font-size: 0.82rem; margin-top: 10px; text-align: center; }

/* --- Hero ---------------------------------------------------------------- */
.hero { padding: 68px 0 40px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--olive-700); }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* --- Media placeholder --------------------------------------------------- */
.media {
  position: relative; border-radius: var(--radius-2xl); overflow: hidden;
  background: linear-gradient(150deg, var(--olive-200), var(--olive-500));
  min-height: 380px; display: flex; align-items: center; justify-content: center;
}
.media--clay { background: linear-gradient(150deg, var(--clay-200), var(--clay-400)); }
.media--sand { background: linear-gradient(150deg, var(--sand-200), var(--stone-300)); }
.media--portrait { aspect-ratio: 4/5; min-height: 0; }
.media svg { width: 64px; height: 64px; color: rgba(255,255,255,0.55); }
.media__note { position: absolute; left: 16px; bottom: 14px; font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.9); background: rgba(47,43,36,0.28); padding: 5px 11px; border-radius: var(--radius-pill); }

/* --- Forms --------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-weight: 600; color: var(--text-strong); font-size: 0.98rem; }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
  font-family: var(--font-sans); font-size: 1rem; color: var(--text-strong);
  background: var(--surface-card); border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md); padding: 12px 14px; width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--olive-600); box-shadow: 0 0 0 3px var(--ring);
}
.field .hint { font-size: 0.88rem; color: var(--text-muted); }
.notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 15px 17px;
  background: var(--warning-soft); border: 1px solid #E0C98A; border-radius: var(--radius-lg);
  color: var(--stone-800); font-size: 0.95rem; line-height: 1.5; margin-bottom: 22px;
}
.notice svg { width: 22px; height: 22px; color: #A97F1E; flex: none; margin-top: 1px; }
.form-status {
  display: none; padding: 16px 18px; border-radius: var(--radius-lg);
  background: var(--success-soft); border: 1px solid var(--olive-300);
  color: var(--olive-900); font-weight: 500; margin-top: 6px;
}
.form-status.is-visible { display: block; }

/* --- Cookie consent banner ------------------------------------------------ */
.cookie-banner {
  position: fixed; right: 16px; bottom: 16px; left: auto; z-index: 90;
  width: 340px; max-width: calc(100vw - 32px); display: flex; flex-direction: column; gap: 14px;
  background: var(--olive-900); color: var(--sand-100);
  border-radius: var(--radius-xl); padding: 18px 20px; box-shadow: var(--shadow-md);
}
.cookie-banner p { margin: 0; font-size: 0.88rem; line-height: 1.5; }
.cookie-banner a { color: var(--sand-50); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; flex: none; justify-content: flex-end; }
.cookie-banner .btn { min-height: 38px; padding: 8px 16px; font-size: 0.88rem; }
.cookie-banner .btn--secondary { background: transparent; color: var(--sand-100); border-color: rgba(255,255,255,0.35); }
.cookie-banner .btn--secondary:hover { background: rgba(255,255,255,0.08); color: #fff; }
@media (max-width: 480px) { .cookie-banner { right: 12px; left: 12px; bottom: 12px; width: auto; } }

/* --- Prose lists --------------------------------------------------------- */
.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; gap: 13px; align-items: flex-start; }
.check-list svg { width: 22px; height: 22px; color: var(--action); flex: none; margin-top: 2px; }
.check-list strong { color: var(--text-strong); }

.eyecap { color: var(--text-muted); font-size: 0.95rem; }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__media { order: -1; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }

  /* Mobile nav */
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: var(--radius-md); border: 1.5px solid var(--border-default);
    background: var(--surface-card); cursor: pointer; color: var(--text-strong);
  }
  .nav-toggle svg { width: 24px; height: 24px; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--olive-900); border-bottom: 1px solid rgba(255,255,255,0.12);
    padding: 12px 16px 20px; box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 15px; }
  .nav .btn { margin-left: 0; margin-top: 6px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero__cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  a.card:hover, .card--link:hover { transform: none; }
}
