/* ============================================================
   Doctor Ilana — Naturopathic Gastro
   Design system: deep teal + warm gold + warm cream
   ============================================================ */

:root {
  --teal-950: #011e28;
  --teal-900: #022b38;
  --teal-800: #073848;
  --teal-700: #0e4558;
  --teal-100: #d9e4e8;
  --gold: #e3b873;
  --gold-soft: #eccd99;
  --gold-deep: #c99a4e;
  --cream: #faf6ef;
  --cream-dim: #f3ecdf;
  --ink: #1d2b31;
  --ink-soft: #4a5c63;
  --white: #ffffff;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1140px;
  --radius: 6px;
  --shadow: 0 18px 50px -18px rgba(6, 34, 46, 0.25);
}

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

html { scroll-behavior: smooth; }

[id] { scroll-margin-top: 92px; } /* keep anchor targets clear of the sticky header */

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

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

a { color: inherit; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */

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

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 18px;
}

.on-dark .eyebrow { color: var(--gold); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--cream); }
.on-dark p { color: var(--teal-100); }

.lede {
  font-size: 20px;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(11, 46, 60, 0.08);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

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

.brand img { width: 40px; height: 40px; }

.brand-name {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--teal-900);
  letter-spacing: 0.01em;
}

.brand-sub {
  display: block;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  line-height: 1;
  margin-top: 2px;
}

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

.nav a {
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-800);
  transition: color 0.2s;
}

.nav a:hover { color: var(--gold-deep); }
.nav a.active { color: var(--gold-deep); }

.nav .btn { margin-left: 6px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--teal-900);
  margin: 5px 0;
  transition: 0.25s;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 34px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.25s;
  border: 1px solid transparent;
  text-align: center;
}

.btn-gold {
  background: var(--gold);
  color: var(--teal-950);
}
.btn-gold:hover { background: var(--gold-deep); color: var(--white); }

.btn-outline {
  border-color: var(--teal-800);
  color: var(--teal-900);
  background: transparent;
}
.btn-outline:hover { background: var(--teal-900); color: var(--cream); }

.on-dark .btn-outline {
  border-color: var(--gold);
  color: var(--gold);
}
.on-dark .btn-outline:hover { background: var(--gold); color: var(--teal-950); }

.btn-small { padding: 10px 22px; font-size: 12px; }

.text-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
  transition: color 0.2s;
}
.text-link:hover { color: var(--teal-900); }
.on-dark .text-link:hover { color: var(--cream); }

/* ---------- Hero (interior pages) ---------- */

.page-hero {
  background: var(--teal-900);
  padding: 96px 0 84px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(38px, 5.5vw, 58px);
  color: var(--cream);
  max-width: 20ch;
  margin: 0 auto;
}

.page-hero p {
  color: var(--teal-100);
  max-width: 58ch;
  margin: 20px auto 0;
  font-size: 18px;
}

/* ---------- Sections ---------- */

.section { padding: 96px 0; }
.section-dark { background: var(--teal-900); }
.section-dim { background: var(--cream-dim); }
.section-white { background: var(--white); }

.section-head {
  max-width: 640px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-head h2 { font-size: clamp(30px, 4vw, 42px); }
.section-head p { margin-top: 16px; color: var(--ink-soft); }

/* ---------- Cards ---------- */

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

.card {
  background: var(--white);
  border: 1px solid rgba(11, 46, 60, 0.08);
  border-radius: var(--radius);
  padding: 40px 34px;
}

.card h3 { font-size: 24px; margin-bottom: 12px; }
.card p { font-size: 15.5px; color: var(--ink-soft); }

.card .text-link { display: inline-block; margin-top: 18px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--teal-950);
  color: var(--teal-100);
  padding: 72px 0 36px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(227, 184, 115, 0.18);
}

.site-footer h4 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--teal-100); text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: var(--gold); }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-brand img { width: 44px; height: 44px; }
.footer-brand span {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--cream);
}

.footer-note {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(217, 228, 232, 0.55);
}

/* ---------- Utilities ---------- */

.center { text-align: center; }
.mt-1 { margin-top: 16px; }
.mt-2 { margin-top: 32px; }
.mt-3 { margin-top: 56px; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 28px 24px 34px;
    gap: 22px;
    border-bottom: 1px solid rgba(11, 46, 60, 0.1);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
