/* ============================================================
   Order Mother Nature  |  style.css
   Wellness brand: white, green, earth tones
   ============================================================ */

:root {
  --color-primary: #3b8a4b;        /* leaf green */
  --color-primary-dark: #2c6b39;
  --color-primary-light: #e8f3ea;
  --color-accent: #c89a4a;         /* warm earth amber */
  --color-accent-dark: #a47b35;
  --color-text: #2a2f2c;
  --color-text-soft: #5a635e;
  --color-muted: #8a938e;
  --color-bg: #ffffff;
  --color-bg-soft: #f7f5f0;        /* warm off-white */
  --color-bg-tint: #f1ede4;        /* sand */
  --color-border: #e6e2d7;
  --color-success: #3b8a4b;
  --color-error: #c0392b;

  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 3px rgba(42,47,44,0.06);
  --shadow: 0 6px 24px rgba(42,47,44,0.08);
  --shadow-lg: 0 18px 48px rgba(42,47,44,0.12);

  --container: 1200px;
  --header-h: 84px;
  --topbar-h: 36px;

  --t: 0.25s ease;
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--color-primary-dark); }
button { font-family: inherit; cursor: pointer; }

h1,h2,h3,h4,h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); }
h4 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 600; }
p  { margin: 0 0 1em; color: var(--color-text-soft); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--color-primary); color: #fff; padding: 10px 16px; z-index: 9999;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Top Bar ---------- */
.topbar {
  background: var(--color-primary-dark);
  color: #f3ede0;
  font-size: 0.85rem;
  height: var(--topbar-h);
  display: flex; align-items: center;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar a { color: #f3ede0; }
.topbar a:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
}
.logo img { height: 56px; width: auto; }

.primary-nav { flex: 1; }
.nav-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; align-items: center; justify-content: flex-end; gap: 4px;
  flex-wrap: wrap;
}
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 12px;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.nav-list > li > a:hover,
.nav-list > li:hover > a { color: var(--color-primary); background: var(--color-primary-light); }
.caret { font-size: 0.7em; opacity: 0.7; }

.nav-cta {
  background: var(--color-primary); color: #fff !important;
  padding: 10px 20px !important; border-radius: 999px;
}
.nav-cta:hover { background: var(--color-primary-dark) !important; }

/* Dropdowns */
.has-dropdown .dropdown {
  position: absolute; top: 100%; left: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 240px;
  list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
  z-index: 100;
  max-height: 70vh; overflow-y: auto;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown li a {
  display: block; padding: 8px 12px; color: var(--color-text);
  border-radius: var(--radius-sm); font-size: 0.92rem;
}
.dropdown li a:hover { background: var(--color-primary-light); color: var(--color-primary-dark); }

/* Right-align last few dropdowns so they don't overflow */
.nav-list > li:nth-last-child(-n+3) .dropdown { left: auto; right: 0; }

/* Mobile toggle */
.mobile-toggle {
  display: none;
  background: transparent; border: none; padding: 8px;
  width: 44px; height: 44px;
  flex-direction: column; gap: 5px; justify-content: center; align-items: center;
}
.mobile-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--color-text); border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}
.mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed; top: calc(var(--header-h) + var(--topbar-h)); left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 999;
  overflow-y: auto;
  border-top: 1px solid var(--color-border);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-inner { padding: 20px 24px 60px; }
.mobile-list { list-style: none; padding: 0; margin: 0; }
.mobile-list > li { border-bottom: 1px solid var(--color-border); }
.mobile-list > li > a,
.mobile-list .m-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 16px 4px;
  color: var(--color-text); font-weight: 600; font-size: 1.05rem;
  background: transparent; border: none; text-align: left;
}
.m-group ul {
  list-style: none; padding: 0 0 12px 0; margin: 0;
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.m-group.open ul { max-height: 1500px; }
.m-group ul li a {
  display: block; padding: 10px 16px; color: var(--color-text-soft); font-size: 0.95rem;
}
.m-group ul li a:hover { color: var(--color-primary); background: var(--color-primary-light); }
.m-toggle .caret { transition: transform var(--t); }
.m-group.open .m-toggle .caret { transform: rotate(180deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px;
  background: var(--color-primary); color: #fff;
  border: 2px solid var(--color-primary);
  border-radius: 999px;
  font-weight: 600; font-size: 1rem;
  text-decoration: none;
  transition: background var(--t), border-color var(--t), color var(--t), transform var(--t);
}
.btn:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-1px);
}
.btn-outline { background: transparent; color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-accent { background: var(--color-accent); border-color: var(--color-accent); }
.btn-accent:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(135deg, rgba(232,243,234,0.95) 0%, rgba(247,245,240,0.85) 100%);
  padding: 80px 0 90px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(59,138,75,0.08) 0%, transparent 50%),
                    radial-gradient(circle at 20% 80%, rgba(200,154,74,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 820px; }
.hero h1 { color: var(--color-text); margin-bottom: 16px; }
.hero .lead { font-size: 1.2rem; color: var(--color-text-soft); margin-bottom: 28px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-tight { padding: 60px 0; }
.section-soft { background: var(--color-bg-soft); }
.section-tint { background: var(--color-bg-tint); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { font-size: 1.1rem; }

/* ---------- Page Header (interior) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-bg-soft) 100%);
  padding: 60px 0 50px;
  border-bottom: 1px solid var(--color-border);
}
.page-header h1 { margin-bottom: 12px; }
.page-header .lead { font-size: 1.15rem; color: var(--color-text-soft); max-width: 720px; margin: 0; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  font-size: 0.88rem; color: var(--color-muted);
  margin-bottom: 18px; padding: 0;
}
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li:not(:last-child)::after { content: '›'; margin-left: 6px; color: var(--color-muted); }
.breadcrumbs a { color: var(--color-text-soft); }
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs li[aria-current] { color: var(--color-text); }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--color-primary-light);
}
.card h3 { margin-bottom: 12px; }
.card p { margin-bottom: 16px; }
.card .card-link {
  font-weight: 600; color: var(--color-primary);
  display: inline-flex; align-items: center; gap: 6px;
}
.card .card-link::after { content: '→'; transition: transform var(--t); }
.card:hover .card-link::after { transform: translateX(4px); }

.icon-card {
  text-align: center;
}
.icon-card .icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 16px;
}

/* Category tile */
.cat-tile {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  text-decoration: none;
  color: var(--color-text);
  transition: all var(--t);
  display: block;
}
.cat-tile:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: var(--color-primary-dark);
}
.cat-tile .icon {
  font-size: 36px; color: var(--color-primary); margin-bottom: 12px;
}
.cat-tile h3 { font-size: 1.2rem; margin-bottom: 6px; }
.cat-tile p { font-size: 0.92rem; margin: 0; color: var(--color-text-soft); }

/* Sub-item link tiles (for category page child lists) */
.sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.sub-tile {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text); font-weight: 500; font-size: 0.95rem;
  transition: all var(--t);
}
.sub-tile::before { content: '◆'; color: var(--color-primary); font-size: 0.6em; }
.sub-tile:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
  transform: translateX(2px);
}

/* Two-column content */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.two-col.reverse > div:first-child { order: 2; }

/* Why / Features list */
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
  display: flex; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list .check {
  flex: 0 0 28px; width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--color-primary-light); color: var(--color-primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
}
.feature-list strong { display: block; color: var(--color-text); margin-bottom: 2px; }
.feature-list span { color: var(--color-text-soft); font-size: 0.95rem; }

/* Pill list (uses) */
.pill-list { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list li {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  padding: 6px 14px; border-radius: 999px;
  font-size: 0.88rem; font-weight: 500;
}

/* ---------- FAQ Accordion ---------- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left;
  padding: 20px 24px;
  background: transparent; border: none;
  font-size: 1.05rem; font-weight: 600; color: var(--color-text);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .plus { font-size: 1.4rem; color: var(--color-primary); transition: transform var(--t); flex-shrink: 0; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
  padding: 0 24px;
}
.faq-item.open .faq-a { max-height: 800px; padding-bottom: 20px; }
.faq-a p { margin: 0; color: var(--color-text-soft); }

/* ---------- CTA Strip ---------- */
.cta-strip {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 70px 0;
  text-align: center;
}
.cta-strip h2 { color: #fff; margin-bottom: 14px; }
.cta-strip p { color: rgba(255,255,255,0.92); font-size: 1.15rem; margin-bottom: 28px; max-width: 640px; margin-left: auto; margin-right: auto; }
.cta-strip .btn {
  background: #fff; color: var(--color-primary-dark); border-color: #fff;
}
.cta-strip .btn:hover { background: var(--color-bg-soft); color: var(--color-primary-dark); }

/* ---------- Forms ---------- */
.form { max-width: 640px; }
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block; font-weight: 600; margin-bottom: 6px;
  font-size: 0.92rem; color: var(--color-text);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem;
  background: #fff; color: var(--color-text);
  transition: border-color var(--t), box-shadow var(--t);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(59,138,75,0.15);
}
.form-row textarea { resize: vertical; min-height: 140px; }
.form-row .req { color: var(--color-error); }
.form-msg { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; }
.form-msg.success { background: var(--color-primary-light); color: var(--color-primary-dark); border-left: 4px solid var(--color-primary); }
.form-msg.error { background: #fbe9e7; color: var(--color-error); border-left: 4px solid var(--color-error); }

/* ---------- Tables (e.g. terms, comparison) ---------- */
.content-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.content-table th, .content-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--color-border); text-align: left;
}
.content-table th { background: var(--color-bg-soft); font-weight: 600; }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 820px; }
.prose h2 { margin-top: 40px; }
.prose ul, .prose ol { padding-left: 22px; color: var(--color-text-soft); }
.prose li { margin-bottom: 6px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #1f2622;
  color: #c8d0cc;
  padding: 70px 0 24px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand img { filter: brightness(0) invert(1); margin-bottom: 16px; max-height: 48px; width: auto; }
.footer-brand p { color: #a0a8a4; font-size: 0.95rem; }
.footer-contact a { color: #fff; font-weight: 600; }
.footer-col h4 {
  color: #fff; font-family: var(--font-body); font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #b8c0bc; font-size: 0.93rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding-top: 24px;
  font-size: 0.85rem; color: #8a938e;
  text-align: center;
}
.footer-bottom p { margin: 4px 0; color: #8a938e; }
.footer-disclaimer { max-width: 820px; margin: 8px auto 0 !important; font-size: 0.78rem; line-height: 1.5; }
.footer-disclaimer a { color: #b8c0bc; text-decoration: underline; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1.5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-list > li > a { padding: 10px 8px; font-size: 0.9rem; }
}

@media (max-width: 980px) {
  :root { --header-h: 72px; }
  .primary-nav { display: none; }
  .mobile-toggle { display: inline-flex; }
  .mobile-nav { display: block; }
  .two-col { grid-template-columns: 1fr; gap: 30px; }
  .two-col.reverse > div:first-child { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .section { padding: 56px 0; }
  .hero { padding: 50px 0 60px; }
  .topbar-text { display: none; }
  .topbar-inner { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
  .logo img { height: 44px; }
}

/* ============================================================
   AMAZON / AFFILIATE CTAs
   ============================================================ */
.amazon-cta {
  background: linear-gradient(180deg, #ff9900 0%, #f08800 100%);
  color: #111;
  border: 2px solid #e47911;
  border-radius: 10px;
  padding: 22px 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 30px 0;
  box-shadow: 0 4px 16px rgba(228, 121, 17, 0.18);
}
.amazon-cta-text { flex: 1 1 280px; }
.amazon-cta-text h3 {
  font-size: 1.15rem;
  margin: 0 0 4px;
  color: #111;
  font-family: var(--font-body);
  font-weight: 700;
}
.amazon-cta-text p {
  margin: 0;
  color: #2a2a2a;
  font-size: 0.95rem;
}
.amazon-cta-btn {
  background: #111;
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-size: 1rem;
  border: 2px solid #111;
}
.amazon-cta-btn:hover {
  background: #fff;
  color: #111;
  transform: translateY(-1px);
}
.amazon-cta-btn::after { content: "→"; font-size: 1.1rem; }

/* Inline / compact variant */
.amazon-cta-inline {
  background: #fff7e6;
  border: 2px solid #ff9900;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 24px 0;
  text-align: center;
}
.amazon-cta-inline a {
  color: #c45500;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
}
.amazon-cta-inline a:hover { text-decoration: underline; }

/* Final / hero variant — full-width banner */
.amazon-cta-banner {
  background: linear-gradient(135deg, #232f3e 0%, #131a22 100%);
  color: #fff;
  border-radius: 12px;
  padding: 36px 30px;
  margin: 40px 0;
  text-align: center;
}
.amazon-cta-banner h3 {
  color: #fff;
  font-size: 1.5rem;
  margin: 0 0 10px;
  font-family: var(--font-heading);
}
.amazon-cta-banner p {
  color: #d8d8d8;
  margin: 0 0 22px;
  font-size: 1.05rem;
}
.amazon-cta-banner .amazon-cta-btn {
  background: #ff9900;
  color: #111;
  border-color: #ff9900;
  padding: 16px 36px;
  font-size: 1.1rem;
}
.amazon-cta-banner .amazon-cta-btn:hover {
  background: #ffb84d;
  border-color: #ffb84d;
  color: #111;
}

.affiliate-note {
  font-size: 0.78rem;
  color: var(--color-text-soft);
  margin-top: 8px;
  font-style: italic;
}
