/* =========================================================
   Dr. Jamie Selby, ND — site styles
   Palette: calm & natural (sage, cream, warm earth)
   ========================================================= */

:root {
  --sage:        #6f8f72;
  --sage-deep:   #45624a;
  --sage-soft:   #e7efe6;
  --cream:       #faf7f0;
  --cream-deep:  #f1ebe0;
  --sand:        #c9a87c;
  --ink:         #2c352d;
  --muted:       #5e6b60;
  --line:        #e2ddd0;
  --white:       #ffffff;
  --shadow:      0 10px 30px rgba(60, 75, 60, 0.10);
  --radius:      16px;
  --maxw:        1080px;
  --font-head:   "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:   "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--sage-deep);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; color: var(--ink); }

p { margin: 0 0 1.1em; }

a { color: var(--sage-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-sage { background: var(--sage-soft); }
.section-cream { background: var(--white); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sage);
  margin-bottom: 0.8em;
}

.lead { font-size: 1.18rem; color: var(--muted); }

.center { text-align: center; }
.measure { max-width: 680px; }
.measure.center { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  border: 2px solid transparent;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--sage-deep); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: #3a5440; color: #fff; }
.btn-outline { border-color: var(--sage-deep); color: var(--sage-deep); background: transparent; }
.btn-outline:hover { background: var(--sage-deep); color: #fff; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-row.center { justify-content: center; }
.fineprint { font-size: 0.92rem; color: var(--muted); margin-top: 16px; }
.fineprint a { font-weight: 700; color: var(--sage-deep); }
.callout .fineprint { color: rgba(255,255,255,.85); }
.callout .fineprint a { color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--sage-deep);
  line-height: 1.1;
}
.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 700;
}
.brand:hover { text-decoration: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
}
.nav-links a:hover { color: var(--sage-deep); text-decoration: none; }
.nav-links a.active { color: var(--sage-deep); border-bottom: 2px solid var(--sand); padding-bottom: 2px; }
.nav-links .btn { padding: 10px 20px; }
.nav-links .btn:hover { color: #fff; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--sage-soft) 0%, var(--cream) 70%);
  padding: 84px 0 72px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { margin-bottom: 0.3em; }
.hero .lead { margin-bottom: 1.5em; }
.portrait {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow);
  background: var(--sage-soft);
  margin-left: auto;
}
.portrait-wrap { position: relative; }
.portrait-wrap::after {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 2px solid var(--sand);
  border-radius: 20px;
  z-index: -1;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 36px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: 0 4px 16px rgba(60,75,60,.05);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--sage-soft);
  margin-bottom: 16px;
  font-size: 1.4rem;
}
.card h3 { margin-bottom: 0.4em; }
.card p { margin-bottom: 0; color: var(--muted); font-size: 0.98rem; }

/* ---------- Pill list (conditions) ---------- */
.pill-group { margin-bottom: 28px; }
.pill-group h3 { color: var(--sage-deep); margin-bottom: 14px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.pills li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Two-column content ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split.text-img { grid-template-columns: 1.1fr 0.9fr; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 22px; margin-top: 30px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.step .num {
  counter-increment: step;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--sage-deep);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.2rem;
}
.step .num::before { content: counter(step); }
.step h3 { margin-bottom: 0.2em; }
.step p { margin-bottom: 0; color: var(--muted); }

/* ---------- Quote / callout ---------- */
.callout {
  background: var(--sage-deep);
  color: #fff;
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
}
.callout h2 { color: #fff; }
.callout p { color: rgba(255,255,255,.9); }
.callout .btn-outline { border-color: #fff; color: #fff; }
.callout .btn-outline:hover { background: #fff; color: var(--sage-deep); }

.quote {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  color: var(--sage-deep);
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.4;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.info-block { margin-bottom: 26px; }
.info-block h3 { font-size: 1.05rem; color: var(--sage-deep); margin-bottom: 6px; }
.info-block p { margin: 0; color: var(--ink); }
.map-frame { width: 100%; height: 100%; min-height: 340px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Note / placeholder flag ---------- */
.note {
  background: #fff7e6;
  border: 1px dashed var(--sand);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.9rem;
  color: #7a5d2e;
  margin-top: 28px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--sage-deep);
  color: rgba(255,255,255,.85);
  padding: 54px 0 28px;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 32px;
}
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 0.85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-brand { font-family: var(--font-head); font-size: 1.3rem; color: #fff; margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.2);
  padding-top: 20px;
  font-size: 0.82rem;
  color: rgba(255,255,255,.6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .portrait { margin: 0 auto; }
  .portrait-wrap::after { display: none; }
  .btn-row { justify-content: center; }
  .split, .split.text-img, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links a.active { border-bottom: 1px solid var(--line); }
  .nav-links .btn { width: 100%; text-align: center; margin-top: 10px; }
}

@media (max-width: 520px) {
  body { font-size: 17px; }
  .section { padding: 52px 0; }
}
