/* WellNest shared stylesheet — DARK PREMIUM always. Never light, never device-following. */
:root {
  color-scheme: dark;
  --bg: #0c0e0d;
  --surface: #151917;
  --surface-2: #1d2421;
  --surface-3: #28251d;
  --text: #eef2ee;
  --body: #d5dcd5;
  --muted: #a7b3ab;
  --line: #2a332e;
  --border: #2a332e;
  --green: #63d68b;
  --green-bright: #63d68b;
  --green-dark: #9ed7ba;
  --gold: #e6b85c;
  --field: #151917;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

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

html { background: var(--bg); }

body {
  background: var(--bg);
  color: var(--body, var(--text));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Shared header */
header.site {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  background: var(--surface);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.logo { font-weight: 800; font-size: 1.35rem; letter-spacing: 0.5px; color: var(--text); }
.logo span { color: var(--green); }
nav.main-nav { display: flex; gap: 22px; flex-wrap: wrap; }
nav.main-nav a { color: var(--body, var(--text)); font-weight: 600; font-size: 0.95rem; }
nav.main-nav a:hover { color: var(--green); }
nav.main-nav a[aria-current="page"] {
  background: var(--gold);
  color: #0c0e0d;
  padding: 6px 14px;
  border-radius: 999px;
}
.nav-cta {
  background: var(--gold);
  color: #0c0e0d;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
}
.nav-cta:hover { background:#d9a94a; text-decoration: none; }

/* Shared footer */
footer.site {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 40px 0;
  margin-top: 40px;
}
footer.site .disclosure {
  font-size: 0.85rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 28px;
}
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 28px; }
.foot-brand strong { display: block; color: var(--text); font-size: 1.1rem; margin-bottom: 8px; }
.foot-brand span { display: block; color: var(--muted); font-size: 0.9rem; margin-bottom: 4px; }
footer.site nav a { display: block; color: var(--muted); font-size: 0.9rem; margin-bottom: 8px; }
footer.site nav a:hover { color: var(--green); }
footer.site nav strong { display: block; color: var(--text); margin-bottom: 10px; font-size: 0.95rem; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

@media (max-width: 760px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* Buttons (used by tool pages' cross-links) */
.btn{display:inline-block;font-weight:700;padding:12px 24px;border-radius:999px;text-decoration:none;font-size:.95rem}
.btn.primary{background:var(--gold);color:#0c0e0d}
.btn.primary:hover{background:#d9a94a;text-decoration:none}
.btn.secondary{background:transparent;color:var(--green);border:2px solid var(--green)}
.btn.secondary:hover{background:#d9a94a;color:#0c0e0d;text-decoration:none}

/* Button text guard (Nov 7, 2026): a plain .btn anchor must never inherit a
   same-color link color. On the FODMAP food chart, .tool-body a (0,1,1) beat
   .btn (0,1,0) and rendered the CTA label green on the same green; page rules
   like .email-nudge .btn (0,2,0) also set white text on light green. This
   guard at (0,2,1) beats both; .btn.secondary is excluded by :not so outline
   buttons keep their green text. */
a.btn:not(.secondary){color:#0c0e0d;-webkit-text-fill-color:#0c0e0d}

/* Tool CTA sales-box buttons: gold primary standard (Fouad, Nov 5, 2026). */
.tool-cta .btn{background:var(--gold);color:#0c0e0d;-webkit-text-fill-color:#0c0e0d}
.tool-cta .btn:hover{background:var(--gold);color:#0c0e0d;filter:brightness(1.08);text-decoration:none}
