/* ============================================================
   Rainbow Moringa — Main Stylesheet
   Design system: forest green (#1D9E75) primary, clean sans-serif
   Maintained by: handoff agent
   ============================================================ */

/* --- Reset & Base ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-50:  #E1F5EE;
  --green-100: #9FE1CB;
  --green-400: #1D9E75;
  --green-600: #0F6E56;
  --green-800: #085041;
  --green-900: #04342C;

  --gray-0:   #FFFFFF;
  --gray-50:  #F7F7F5;
  --gray-100: #EFEFEC;
  --gray-200: #DEDED9;
  --gray-400: #9B9B95;
  --gray-600: #5F5E5A;
  --gray-900: #1A1A18;

  --text-primary:   var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-muted:     var(--gray-400);
  --surface-0:      var(--gray-50);
  --surface-1:      var(--gray-100);
  --surface-2:      var(--gray-0);
  --border:         var(--gray-200);
  --border-strong:  var(--gray-400);

  --radius-sm: 6px;
  --radius:    8px;
  --radius-lg: 12px;

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
}

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

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--surface-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* --- Utility ----------------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.container { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
.text-green { color: var(--green-400); }
.text-muted  { color: var(--text-secondary); }

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; border: none;
  transition: opacity 0.15s, transform 0.1s;
}
.btn:hover { opacity: 0.88; }
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--green-400); color: #fff; }
.btn-primary:hover { background: var(--green-600); opacity: 1; }

.btn-outline {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover { background: var(--surface-1); opacity: 1; }

.btn-ghost {
  background: transparent; color: var(--green-400);
  border: 1px solid var(--green-400);
}
.btn-ghost:hover { background: var(--green-50); opacity: 1; }

.btn-lg { padding: 13px 26px; font-size: 15px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-full { width: 100%; justify-content: center; }

/* --- Navigation -------------------------------------------- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex; align-items: center;
  gap: 24px; padding: 14px 32px;
  max-width: 1080px; margin: 0 auto;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0; text-decoration: none;
}

.nav-logo-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--green-400);
  display: flex; align-items: center; justify-content: center;
}

.nav-logo-mark svg { width: 18px; height: 18px; fill: #fff; }

.nav-logo-text { line-height: 1.2; }
.nav-logo-name { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.nav-logo-sub  { font-size: 11px; color: var(--text-secondary); }

.nav-links {
  display: flex; gap: 4px; list-style: none;
  flex: 1; justify-content: center;
}

.nav-links a {
  padding: 6px 14px; border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text-secondary);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
  background: var(--surface-1);
}

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-cart {
  position: relative; background: none; border: none;
  padding: 6px; color: var(--text-secondary); font-size: 20px;
  border-radius: var(--radius-sm); transition: color 0.15s;
}
.nav-cart:hover { color: var(--text-primary); }
.nav-cart-count {
  position: absolute; top: 1px; right: 1px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--green-400); color: #fff;
  font-size: 10px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  display: none;
}
.nav-cart-count.visible { display: flex; }

.nav-hamburger {
  display: none; background: none; border: none;
  padding: 6px; font-size: 22px; color: var(--text-secondary);
}

/* --- Mobile nav -------------------------------------------- */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: var(--surface-2); padding: 20px 24px;
  flex-direction: column; gap: 8px;
}
.mobile-menu.open { display: flex; }
.mobile-menu-close {
  align-self: flex-end; background: none; border: none;
  font-size: 24px; color: var(--text-secondary); padding: 4px;
}
.mobile-menu a {
  padding: 14px 0; font-size: 18px; font-weight: 500;
  border-bottom: 1px solid var(--border); color: var(--text-primary);
}
.mobile-menu .btn { margin-top: 16px; }

/* --- Hero -------------------------------------------------- */
.hero {
  background: var(--surface-1);
  border-bottom: 1px solid var(--border);
  padding: 72px 32px 64px;
}

.hero-inner {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 420px; gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green-50); color: var(--green-600);
  border-radius: 20px; padding: 4px 12px;
  font-size: 13px; font-weight: 500; margin-bottom: 20px;
}
.hero-eyebrow svg { width: 14px; height: 14px; fill: var(--green-600); }

.hero h1 {
  font-size: 42px; font-weight: 600; line-height: 1.15;
  letter-spacing: -0.5px; margin-bottom: 18px;
}
.hero h1 em { color: var(--green-400); font-style: normal; }

.hero-desc {
  font-size: 17px; color: var(--text-secondary);
  line-height: 1.7; margin-bottom: 32px; max-width: 460px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-trust-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-secondary);
}
.hero-trust-item svg { width: 15px; height: 15px; fill: var(--green-400); flex-shrink: 0; }

/* Hero visual panel */
.hero-visual {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-card);
}
.hero-visual-title {
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 20px;
}
.process-steps { display: flex; flex-direction: column; gap: 0; }
.process-step {
  display: flex; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid var(--border); align-items: flex-start;
}
.process-step:last-child { border-bottom: none; }
.process-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--green-400); color: #fff;
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.process-step-title { font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.process-step-desc  { font-size: 13px; color: var(--text-secondary); }

/* --- Metrics bar ------------------------------------------- */
.metrics-bar {
  background: var(--green-800);
  border-bottom: 1px solid var(--green-900);
}
.metrics-inner {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.metric-item {
  padding: 24px 20px; text-align: center;
  border-right: 1px solid var(--green-600);
}
.metric-item:last-child { border-right: none; }
.metric-num   { font-size: 30px; font-weight: 600; color: #fff; }
.metric-label { font-size: 12px; color: var(--green-100); margin-top: 4px; }

/* --- Section base ------------------------------------------ */
.section { padding: 72px 32px; }
.section-sm { padding: 48px 32px; }
.section-alt { background: var(--surface-1); }
.section-dark { background: var(--green-800); color: #fff; }

.section-header { text-align: center; margin-bottom: 48px; }
.section-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--green-400); margin-bottom: 12px;
}
.section-dark .section-eyebrow { color: var(--green-100); }
.section-title { font-size: 28px; font-weight: 600; margin-bottom: 10px; }
.section-sub { font-size: 16px; color: var(--text-secondary); max-width: 520px; margin: 0 auto; }
.section-dark .section-sub { color: var(--green-100); }

/* --- Products ---------------------------------------------- */
.products-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; max-width: 1080px; margin: 0 auto;
}

.product-card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  display: flex; flex-direction: column;
  position: relative; box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s;
}
.product-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.09); }
.product-card.featured { border: 2px solid var(--green-400); }

.product-badge {
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  background: var(--green-400); color: #fff;
  font-size: 11px; font-weight: 600; padding: 3px 14px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  white-space: nowrap; letter-spacing: 0.04em;
}

.product-icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: var(--green-50); margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
}
.product-icon svg { width: 22px; height: 22px; fill: var(--green-400); }

.product-name  { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.product-count { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; }

.product-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.product-price { font-size: 30px; font-weight: 600; }
.product-price-unit { font-size: 14px; color: var(--text-secondary); }
.product-sub-price {
  font-size: 13px; color: var(--green-600); margin-bottom: 20px;
}

.product-features { list-style: none; flex: 1; margin-bottom: 24px; }
.product-features li {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--text-secondary);
  padding: 5px 0;
}
.product-features li svg { width: 15px; height: 15px; fill: var(--green-400); flex-shrink: 0; }

/* Shopify buy button placeholder */
.shopify-btn-wrap { margin-top: auto; }
.shopify-btn-wrap .btn { width: 100%; justify-content: center; }

/* --- Subscribe banner -------------------------------------- */
.sub-banner { background: var(--green-900); padding: 40px 32px; }
.sub-banner-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  flex-wrap: wrap;
}
.sub-banner h2 { font-size: 20px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.sub-banner p  { font-size: 14px; color: var(--green-100); }
.sub-form { display: flex; gap: 8px; }
.sub-input {
  padding: 10px 16px; border-radius: var(--radius);
  border: 1px solid var(--green-600); background: var(--green-800);
  color: #fff; font-size: 14px; width: 240px; outline: none;
  font-family: inherit;
}
.sub-input::placeholder { color: var(--green-100); opacity: 0.6; }
.sub-input:focus { border-color: var(--green-400); }

/* --- About / Story ----------------------------------------- */
.story-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  max-width: 1080px; margin: 0 auto; align-items: center;
}
.story-text h2 { font-size: 28px; font-weight: 600; margin-bottom: 16px; }
.story-text p  { font-size: 15px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 14px; }

.story-card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-card);
}
.story-card-header {
  background: var(--green-50); padding: 28px;
  display: flex; align-items: center; gap: 16px;
  border-bottom: 1px solid var(--border);
}
.story-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green-400); color: #fff;
  font-size: 20px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.story-avatar-name { font-size: 16px; font-weight: 600; }
.story-avatar-handle { font-size: 13px; color: var(--text-secondary); }
.story-card-body { padding: 24px; }
.story-card-body p { font-size: 14px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 20px; }
.story-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.story-stat {
  background: var(--surface-1); border-radius: var(--radius);
  padding: 12px; text-align: center;
}
.story-stat-num   { font-size: 22px; font-weight: 600; color: var(--green-400); }
.story-stat-label { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }

/* Credential list */
.cred-list { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.cred-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface-1); border-radius: var(--radius);
  padding: 10px 14px; font-size: 13px; color: var(--text-secondary);
}
.cred-item svg { width: 16px; height: 16px; fill: var(--green-400); flex-shrink: 0; }

/* --- Wholesale --------------------------------------------- */
.wholesale-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; max-width: 1080px; margin: 0 auto 48px;
}
.wholesale-card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow-card);
}
.wholesale-icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: var(--green-50); margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
}
.wholesale-icon svg { width: 22px; height: 22px; fill: var(--green-400); }
.wholesale-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.wholesale-card p  { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

.wholesale-cta {
  max-width: 1080px; margin: 0 auto; text-align: center;
  padding: 40px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.wholesale-cta h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.wholesale-cta p  { font-size: 15px; color: var(--text-secondary); margin-bottom: 24px; }

/* --- Contact form ------------------------------------------ */
.contact-form { max-width: 560px; margin: 0 auto; }
.form-row { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.form-input, .form-textarea {
  width: 100%; padding: 10px 14px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface-2);
  font-size: 14px; font-family: inherit; color: var(--text-primary);
  outline: none; transition: border-color 0.15s;
}
.form-input:focus, .form-textarea:focus { border-color: var(--green-400); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-select {
  width: 100%; padding: 10px 14px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface-2);
  font-size: 14px; font-family: inherit; color: var(--text-primary); outline: none;
}
.form-select:focus { border-color: var(--green-400); }

/* --- FAQ --------------------------------------------------- */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border); overflow: hidden;
}
.faq-question {
  width: 100%; background: none; border: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; font-size: 15px; font-weight: 500;
  color: var(--text-primary); text-align: left; cursor: pointer;
  gap: 16px;
}
.faq-chevron { flex-shrink: 0; transition: transform 0.2s; }
.faq-chevron svg { width: 16px; height: 16px; fill: none; stroke: var(--text-secondary); stroke-width: 2; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.faq-answer-inner {
  padding-bottom: 18px; font-size: 14px;
  color: var(--text-secondary); line-height: 1.8;
}
.faq-item.open .faq-answer { max-height: 400px; }

/* --- Footer ------------------------------------------------ */
.site-footer {
  background: var(--green-900); color: #fff;
  padding: 56px 32px 32px;
}
.footer-inner {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 40px;
  border-bottom: 1px solid var(--green-800);
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand-mark {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--green-400);
  display: flex; align-items: center; justify-content: center;
}
.footer-brand-mark svg { width: 16px; height: 16px; fill: #fff; }
.footer-brand-name { font-size: 15px; font-weight: 600; }
.footer-tagline { font-size: 13px; color: var(--green-100); line-height: 1.6; margin-bottom: 20px; max-width: 240px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--green-800); color: var(--green-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: background 0.15s;
}
.footer-social a:hover { background: var(--green-600); }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }

.footer-col h4 {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--green-100); margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--green-100); opacity: 0.8; transition: opacity 0.15s; }
.footer-col a:hover { opacity: 1; }

.footer-bottom {
  max-width: 1080px; margin: 0 auto; padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 12px; color: var(--green-100); opacity: 0.6; }
.footer-bottom a { font-size: 12px; color: var(--green-100); opacity: 0.6; margin-left: 20px; }
.footer-bottom a:hover { opacity: 1; }

/* --- Responsive -------------------------------------------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 34px; }
  .hero-visual { max-width: 480px; }

  .metrics-inner { grid-template-columns: repeat(2, 1fr); }
  .metric-item { border-right: none; border-bottom: 1px solid var(--green-600); }
  .metric-item:nth-child(2n) { border-right: none; }
  .metric-item:nth-last-child(-n+2) { border-bottom: none; }

  .products-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .wholesale-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: 48px 20px 40px; }
  .section, .section-sm { padding: 48px 20px; }
  .container { padding: 0 20px; }
  .nav-inner { padding: 12px 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .hero h1 { font-size: 28px; }
  .hero-desc { font-size: 15px; }
  .metrics-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .sub-banner-inner { flex-direction: column; }
  .sub-form { flex-direction: column; }
  .sub-input { width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* --- Page transitions -------------------------------------- */
.page { display: none; }
.page.active { display: block; }

/* --- Announcement bar -------------------------------------- */
.announcement-bar {
  background: var(--green-400); color: #fff;
  text-align: center; padding: 8px 20px;
  font-size: 13px; font-weight: 500;
}
.announcement-bar a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* --- Subscription toggle ----------------------------------- */
.pricing-toggle {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-bottom: 40px;
}
.toggle-label { font-size: 14px; color: var(--text-secondary); }
.toggle-label.active { color: var(--text-primary); font-weight: 500; }
.toggle-switch {
  position: relative; width: 44px; height: 24px;
  background: var(--border-strong); border-radius: 12px;
  cursor: pointer; border: none; transition: background 0.2s;
}
.toggle-switch.on { background: var(--green-400); }
.toggle-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; transition: transform 0.2s;
}
.toggle-switch.on .toggle-thumb { transform: translateX(20px); }
.toggle-save-badge {
  background: var(--green-50); color: var(--green-600);
  font-size: 11px; font-weight: 600; padding: 2px 8px;
  border-radius: 10px;
}
