/* SupplementsOrg – Root Domain CSS */
:root {
  --green: #1a6b3c;
  --green-light: #2d9b5a;
  --green-pale: #e8f5ee;
  --green-dark: #0f4226;
  --accent: #f0a500;
  --accent-light: #fdf3da;
  --text: #1c2b20;
  --text-muted: #5a7063;
  --bg: #ffffff;
  --bg-off: #f7fbf8;
  --border: #d4e6da;
  --radius: 10px;
  --shadow: 0 2px 16px rgba(26,107,60,0.09);
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --max: 1120px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-light); }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; color: var(--green-dark); }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1rem; color: var(--text); }
p:last-child { margin-bottom: 0; }

/* ── LAYOUT ── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.section--alt { background: var(--bg-off); }
.section--dark { background: var(--green-dark); color: #fff; }
.section--dark h2, .section--dark h3 { color: #e8f5ee; }
.section--dark p { color: #b8d9c5; }

/* ── HEADER ── */
.site-header {
  background: var(--bg);
  border-bottom: 2px solid var(--green-pale);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(26,107,60,0.07);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem; max-width: var(--max); margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo-mark {
  width: 38px; height: 38px; background: var(--green);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #fff; font-weight: bold; font-family: var(--font-head);
}
.logo-text { font-family: var(--font-head); font-size: 1.3rem; color: var(--green-dark); font-weight: 700; }
.logo-text span { color: var(--green-light); }

nav.main-nav { display: flex; align-items: center; gap: .25rem; }
nav.main-nav a {
  padding: .45rem .85rem; border-radius: 6px; font-size: .92rem;
  color: var(--text-muted); font-weight: 500; transition: all .2s;
}
nav.main-nav a:hover, nav.main-nav a.active { background: var(--green-pale); color: var(--green); }
.nav-cta {
  background: var(--green) !important; color: #fff !important;
  padding: .45rem 1.1rem !important; border-radius: 6px !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--green-light) !important; }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: .5rem; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--green); border-radius: 2px; transition: .3s; }
.mobile-nav {
  display: none; flex-direction: column; background: var(--bg);
  border-top: 1px solid var(--border); padding: 1rem 1.5rem 1.5rem;
}
.mobile-nav a { display: block; padding: .6rem 0; border-bottom: 1px solid var(--green-pale); color: var(--text); font-size: 1rem; }
.mobile-nav.open { display: flex; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 60%, #2aa86a 100%);
  color: #fff; padding: 5rem 0 4rem; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.hero h1 { color: #fff; margin-bottom: 1.2rem; }
.hero p { color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 600px; margin-bottom: 2rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  border-radius: 50px; padding: .35rem 1rem; font-size: .85rem; color: rgba(255,255,255,.9);
  margin-bottom: 1.5rem;
}
.badge-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; transition: all .2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--accent); color: var(--green-dark); }
.btn-primary:hover { background: #e09600; color: var(--green-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(240,165,0,.35); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-light); color: #fff; }

/* ── CARDS ── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; transition: all .25s; box-shadow: var(--shadow);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(26,107,60,.13); border-color: var(--green-light); }
.card-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .92rem; color: var(--text-muted); }
.card-link { display: inline-flex; align-items: center; gap: .3rem; margin-top: 1rem; font-size: .88rem; font-weight: 600; color: var(--green); }
.card-link::after { content: '→'; transition: transform .2s; }
.card:hover .card-link::after { transform: translateX(4px); }

/* ── CATEGORY PILL ── */
.pills { display: flex; flex-wrap: wrap; gap: .75rem; }
.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--green-pale); border: 1px solid var(--border);
  border-radius: 50px; padding: .4rem 1rem; font-size: .88rem; color: var(--green-dark); font-weight: 500;
  transition: all .2s;
}
.pill:hover { background: var(--green); color: #fff; border-color: var(--green); }

/* ── BREADCRUMB ── */
.breadcrumb { padding: .75rem 0; font-size: .85rem; color: var(--text-muted); }
.breadcrumb a { color: var(--green); }
.breadcrumb span { margin: 0 .4rem; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  padding: 3rem 0 2.5rem; color: #fff;
}
.page-hero h1 { color: #fff; font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: .6rem; }
.page-hero p { color: rgba(255,255,255,.82); font-size: 1.05rem; max-width: 600px; }
.page-hero .breadcrumb { color: rgba(255,255,255,.65); margin-bottom: 1rem; }
.page-hero .breadcrumb a { color: rgba(255,255,255,.85); }

/* ── TRUST STRIP ── */
.trust-strip { background: var(--green-pale); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 1rem 0; }
.trust-items { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1.5rem 3rem; }
.trust-item { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--text-muted); font-weight: 500; }
.trust-item .icon { color: var(--green); font-size: 1.1rem; }

/* ── NOTICE BOX ── */
.notice {
  border-left: 4px solid var(--accent); background: var(--accent-light);
  padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .9rem; color: #5a4200; margin-bottom: 1.5rem;
}
.notice.green { border-color: var(--green); background: var(--green-pale); color: var(--green-dark); }
.notice strong { display: block; margin-bottom: .25rem; }

/* ── TABLE OF CONTENTS ── */
.toc { background: var(--bg-off); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 2rem; }
.toc h4 { font-size: 1rem; margin-bottom: .75rem; color: var(--green-dark); }
.toc ol { padding-left: 1.25rem; }
.toc li { margin-bottom: .35rem; }
.toc a { font-size: .9rem; color: var(--green); }

/* ── CONTENT PROSE ── */
.prose h2 { margin: 2rem 0 .75rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.prose h3 { margin: 1.5rem 0 .5rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: .35rem; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ── FOOTER ── */
.site-footer { background: var(--green-dark); color: #b8d9c5; padding: 3.5rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-col h4 { color: #e8f5ee; font-family: var(--font-head); margin-bottom: 1rem; font-size: 1rem; }
.footer-col p { font-size: .88rem; line-height: 1.65; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul a { color: #9fcfb0; font-size: .88rem; transition: color .2s; }
.footer-col ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 1.25rem 0;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem;
}
.footer-bottom p { font-size: .82rem; margin: 0; color: #7aab8a; }
.footer-bottom a { color: #9fcfb0; font-size: .82rem; }

/* ── FUTURE READY: Subdomain Sections (hidden until populated via JS) ── */
.subdomain-hub { padding: 4rem 0; }
.subdomain-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.subdomain-card {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: all .25s; background: var(--bg); box-shadow: var(--shadow);
}
.subdomain-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(26,107,60,.13); }
.subdomain-card-head { background: var(--green); padding: 1.25rem 1.5rem; }
.subdomain-card-head h3 { color: #fff; font-size: 1.05rem; }
.subdomain-card-body { padding: 1.25rem 1.5rem; }
.subdomain-card-body p { font-size: .88rem; color: var(--text-muted); margin-bottom: .75rem; }
.subdomain-card-links { display: flex; flex-direction: column; gap: .3rem; }
.subdomain-card-links a { font-size: .85rem; color: var(--green); padding: .2rem 0; border-bottom: 1px solid var(--green-pale); }
#subdomain-section { display: none; } /* shown by JS when subdomains.json is populated */

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  nav.main-nav { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero { padding: 3rem 0 2.5rem; }
  .section { padding: 2.5rem 0; }
  .cards-grid { grid-template-columns: 1fr; }
}
