/* =========================================================
   Oakwell Health & Wellness — Global Stylesheet
   Theme: Modern, clean, glassy, natural with oak/forest green
   ========================================================= */

:root {
  --forest-deep: #1f3a2b;
  --forest: #2d5a3d;
  --sage: #87a96b;
  --sage-light: #b8d3a3;
  --moss: #4a7c59;
  --bark: #6b5742;
  --cream: #f5f1e8;
  --cream-soft: #fbf9f3;
  --mist: rgba(255, 255, 255, 0.55);
  --mist-strong: rgba(255, 255, 255, 0.78);
  --ink: #1a2a20;
  --ink-soft: #3d4d44;
  --ink-muted: #6b7a72;
  --line: rgba(45, 90, 61, 0.18);
  --shadow-sm: 0 2px 8px rgba(31, 58, 43, 0.06);
  --shadow: 0 8px 32px rgba(31, 58, 43, 0.10);
  --shadow-lg: 0 20px 60px rgba(31, 58, 43, 0.14);
  --radius: 18px;
  --radius-lg: 28px;
  --maxw: 1200px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  background:
    radial-gradient(1200px 700px at 10% -10%, rgba(135, 169, 107, 0.35), transparent 60%),
    radial-gradient(1000px 600px at 110% 10%, rgba(184, 211, 163, 0.45), transparent 55%),
    radial-gradient(900px 500px at 50% 110%, rgba(74, 124, 89, 0.20), transparent 60%),
    linear-gradient(180deg, #f4f7ef 0%, #eaf1e2 50%, #f5f1e8 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--forest);
  text-decoration: none;
  transition: color .2s ease;
}
a:hover { color: var(--moss); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--forest-deep);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .5em; }
h3 { font-size: 1.3rem; margin-bottom: .4em; }
h4 { font-size: 1.05rem; margin-bottom: .3em; }

p { margin-bottom: 1em; color: var(--ink-soft); }

ul, ol { padding-left: 1.25rem; margin-bottom: 1em; }
li { margin-bottom: .35em; color: var(--ink-soft); }

/* =========== Layout =========== */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 4rem 0; }

/* =========== Navigation =========== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: rgba(245, 247, 240, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1.5rem;
  max-width: var(--maxw);
  margin: 0 auto;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--forest-deep);
}
.brand svg { width: 34px; height: 34px; }
.brand:hover { color: var(--moss); }

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links a {
  display: inline-block;
  padding: .5rem .85rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: .95rem;
  font-weight: 500;
  transition: background .2s ease, color .2s ease;
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(135, 169, 107, 0.22);
  color: var(--forest-deep);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .5rem .65rem;
  cursor: pointer;
  color: var(--forest-deep);
  justify-items: end;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem 1rem 1rem;
    background: rgba(245, 247, 240, 0.95);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links a { padding: .85rem 1rem; border-radius: 12px; }
}

/* =========== Glass cards =========== */
.glass {
  background: var(--mist-strong);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.glass-soft {
  background: var(--mist);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* =========== Hero =========== */
.hero {
  padding: 5rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 { margin-bottom: 1rem; }
.hero .lede {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 36em;
  margin-bottom: 1.75rem;
}
.hero-cta {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.hero-art .glass {
  padding: 2rem;
  width: 100%;
  max-width: 380px;
  text-align: center;
}
.hero-art svg { width: 220px; height: 220px; margin: 0 auto; }

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero { padding: 3rem 0 2rem; }
}

/* =========== Buttons =========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--forest), var(--moss));
  color: #fff;
  box-shadow: 0 8px 22px rgba(45, 90, 61, 0.35);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(45, 90, 61, 0.42);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.6);
  color: var(--forest-deep);
  border-color: var(--line);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.85); }

/* =========== Topic grid =========== */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.topic-card {
  display: block;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.topic-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}
.topic-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(135, 169, 107, 0.25), rgba(74, 124, 89, 0.18));
  color: var(--forest-deep);
  margin-bottom: .9rem;
}
.topic-icon svg { width: 26px; height: 26px; }
.topic-card h3 { margin-bottom: .35rem; }
.topic-card p { font-size: .95rem; margin: 0; color: var(--ink-muted); }

/* =========== Page header =========== */
.page-head {
  padding: 4rem 0 2rem;
}
.page-head .eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  color: var(--moss);
  font-weight: 600;
  margin-bottom: .75rem;
  display: inline-block;
}
.page-head h1 { margin-bottom: .8rem; }
.page-head .lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 50em;
}

/* =========== Content =========== */
.content {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  padding-bottom: 4rem;
}
.content article {
  padding: 2.5rem;
}
.content article h2 { margin-top: 1.5rem; }
.content article h2:first-child { margin-top: 0; }
.content article h3 { margin-top: 1.2rem; color: var(--moss); }
.content article ul, .content article ol { margin-bottom: 1.2em; }

.toc {
  position: sticky;
  top: 90px;
  align-self: start;
  padding: 1.4rem;
  font-size: .95rem;
}
.toc h4 {
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: .14em;
  color: var(--ink-muted);
  margin-bottom: .8rem;
}
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0; }
.toc a {
  display: block;
  padding: .45rem .6rem;
  border-radius: 8px;
  color: var(--ink-soft);
  border-left: 2px solid transparent;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.toc a:hover {
  background: rgba(135, 169, 107, 0.15);
  border-left-color: var(--sage);
  color: var(--forest-deep);
}

@media (max-width: 900px) {
  .content { grid-template-columns: 1fr; }
  .toc { position: static; }
  .content article { padding: 1.6rem; }
}

/* =========== Stat cards =========== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.stat {
  padding: 1.25rem;
  text-align: center;
}
.stat .num {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--forest-deep);
  font-weight: 600;
  display: block;
  margin-bottom: .15rem;
}
.stat .label { font-size: .85rem; color: var(--ink-muted); }

/* =========== Callouts =========== */
.callout {
  padding: 1.4rem 1.6rem;
  border-left: 4px solid var(--sage);
  background: rgba(135, 169, 107, 0.10);
  border-radius: 12px;
  margin: 1.5rem 0;
}
.callout strong { color: var(--forest-deep); }
.callout.warn {
  border-left-color: #c98b4d;
  background: rgba(201, 139, 77, 0.10);
}

/* =========== Product cards =========== */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.product {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
}
.product .tag {
  display: inline-block;
  padding: .25rem .65rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--forest-deep);
  background: rgba(135, 169, 107, 0.25);
  border-radius: 999px;
  margin-bottom: .65rem;
  align-self: flex-start;
}
.product h4 { margin-bottom: .35rem; }
.product p { font-size: .92rem; margin: 0; }

/* =========== Tables =========== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  overflow: hidden;
}
th, td {
  padding: .75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
th {
  background: rgba(135, 169, 107, 0.18);
  font-weight: 600;
  color: var(--forest-deep);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
tr:last-child td { border-bottom: none; }

/* =========== Plan / checklist =========== */
.checklist {
  list-style: none;
  padding: 0;
}
.checklist li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: .65rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .35rem;
  width: 1.2rem;
  height: 1.2rem;
  background: linear-gradient(135deg, var(--sage), var(--moss));
  border-radius: 6px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35);
}
.checklist li::after {
  content: "✓";
  position: absolute;
  left: .27rem;
  top: .15rem;
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
}

/* =========== Day plan grid =========== */
.day-plan {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.day {
  padding: 1.3rem;
}
.day h4 {
  color: var(--moss);
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
  margin-bottom: .6rem;
}
.day ul { padding-left: 1.1rem; margin: 0; font-size: .94rem; }

/* =========== CTA banner =========== */
.cta-banner {
  margin: 4rem auto;
  padding: 3rem 2rem;
  text-align: center;
  max-width: var(--maxw);
}
.cta-banner h2 { margin-bottom: .75rem; }
.cta-banner p { max-width: 36em; margin: 0 auto 1.5rem; }

/* =========== Featured (Trumodern) =========== */
.featured {
  padding: 2.5rem;
  margin: 2rem 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .7), rgba(184, 211, 163, .35)),
    radial-gradient(800px 400px at 80% 20%, rgba(135, 169, 107, .35), transparent 60%);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: var(--radius-lg);
}
.featured .tag {
  display: inline-block;
  padding: .3rem .8rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--forest), var(--moss));
  border-radius: 999px;
  margin-bottom: 1rem;
}
.featured h3 {
  font-size: 1.7rem;
  margin-bottom: .5rem;
}
.featured .meta {
  color: var(--ink-muted);
  font-size: .92rem;
  margin-bottom: 1rem;
}

/* =========== Footer =========== */
footer {
  margin-top: 3rem;
  padding: 3rem 0 2rem;
  background: linear-gradient(180deg, transparent, rgba(31, 58, 43, 0.06));
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-grid h4 {
  font-family: var(--font-sans);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--forest-deep);
  margin-bottom: .9rem;
}
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li { margin-bottom: .4rem; }
.footer-grid a { color: var(--ink-soft); font-size: .94rem; }
.footer-bottom {
  text-align: center;
  font-size: .85rem;
  color: var(--ink-muted);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

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

/* =========== Misc =========== */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  color: var(--moss);
  font-weight: 600;
}
.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-head h2 { margin-bottom: .5rem; }
.section-head p { color: var(--ink-muted); max-width: 38em; margin: 0 auto; }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* Selection */
::selection { background: rgba(135, 169, 107, 0.4); color: var(--forest-deep); }

/* Focus states */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
  border-radius: 6px;
}
