/* ==========================================================================
   LactoVault — shared stylesheet
   Mobile-first. No build step required — plain CSS, safe to edit directly.
   ========================================================================== */

:root {
  --navy: #0B2545;
  --teal: #16A6A0;
  --cream: #FBF6EF;
  --sand: #D8A48F;
  --slate: #5C6670;
  --trust-green: #1E9E7C;
  --white: #FFFFFF;
  --border: #E7E2D8;
  --border-soft: #EEE8DE;
  --text: #3A4149;

  --font: 'Inter', Arial, Helvetica, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --container: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--cream);
  font-size: 16px; /* never below 16px — prevents iOS input auto-zoom */
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; }
input, textarea, select { font-family: var(--font); font-size: 16px; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 40px 0; }
.section-white { background: var(--white); }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); }

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--teal); margin-bottom: 8px; display: block;
}
.h1 { font-size: 28px; font-weight: 700; color: var(--navy); line-height: 1.25; margin-bottom: 12px; }
.h2 { font-size: 22px; font-weight: 700; color: var(--navy); line-height: 1.3; margin-bottom: 14px; }
.h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.subhead { font-size: 15px; color: var(--slate); line-height: 1.55; }
@media (min-width: 768px) {
  .h1 { font-size: 40px; }
  .h2 { font-size: 30px; }
}

/* Buttons — min 44x44 touch target */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 14px 22px; border-radius: var(--radius-md);
  font-size: 15.5px; font-weight: 700; border: none; text-align: center;
  transition: opacity .15s ease; width: 100%;
}
@media (min-width: 640px) { .btn { width: auto; } }
.btn:active { opacity: .85; }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: #12938e; }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 640px) { .btn-row { flex-direction: row; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--white);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; color: var(--navy); }
.logo .lv-teal { color: var(--teal); }
.logo svg { width: 28px; height: 28px; }
.nav-desktop { display: none; gap: 28px; align-items: center; }
.nav-desktop a { font-size: 14.5px; font-weight: 600; color: var(--navy); }
.nav-desktop a:hover { color: var(--teal); }
@media (min-width: 900px) { .nav-desktop { display: flex; } }
.header-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn { background: none; border: none; font-size: 20px; color: var(--navy); position: relative; padding: 6px; }
.cart-count {
  position: absolute; top: -2px; right: -2px; background: var(--teal); color: #fff;
  font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
.hamburger { display: inline-flex; font-size: 22px; background: none; border: none; color: var(--navy); }
@media (min-width: 900px) { .hamburger { display: none; } }

.mobile-nav {
  display: none; flex-direction: column; background: var(--white);
  border-bottom: 1px solid var(--border-soft); padding: 8px 20px 16px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 12px 0; font-size: 15px; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--border-soft); }
.mobile-nav a:last-child { border-bottom: none; }
@media (min-width: 900px) { .mobile-nav { display: none !important; } }

/* Trust bar */
.trust-bar {
  background: var(--navy); padding: 9px 0; text-align: center;
}
.trust-bar .container { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.trust-bar a, .trust-bar span { color: #EAF3F2; font-size: 11px; font-weight: 600; letter-spacing: .2px; }
.trust-bar a:hover { color: #fff; text-decoration: underline; }

/* Hero */
.hero { padding: 36px 0 28px; }
.hero-cta { max-width: 420px; }

/* Cards / grid */
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (min-width: 700px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .card-grid { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 14px; display: block;
}
.card-img { height: 110px; background: #EAF3F2; border-radius: var(--radius-sm); margin-bottom: 10px; }
.card-label { font-size: 10.5px; font-weight: 700; letter-spacing: .5px; }
.card-label.bulk { color: var(--teal); }
.card-label.single { color: var(--sand); }
.card-title { font-size: 14px; font-weight: 700; color: var(--navy); margin: 3px 0 5px; }
.card-price { font-size: 15px; font-weight: 700; color: var(--navy); }
.card-rate { font-size: 11px; color: var(--slate); }

/* Trust list */
.check-list { display: flex; flex-direction: column; gap: 10px; }
.check-list li { font-size: 14px; color: var(--text); display: flex; gap: 8px; }
.check-list li::before { content: "✓"; color: var(--trust-green); font-weight: 700; }

/* Trust chip */
.chip {
  display: inline-block; font-size: 10.5px; font-weight: 600; padding: 5px 11px;
  border-radius: 20px; background: #EAF3F2; color: var(--navy); margin-right: 6px; margin-bottom: 6px;
}

/* Steps */
.step { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.step-num {
  min-width: 32px; height: 32px; border-radius: 50%; background: var(--cream); border: 2px solid var(--teal);
  color: var(--navy); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center;
}
.step-title { font-weight: 700; color: var(--navy); font-size: 14.5px; }
.step-desc { font-size: 13px; color: var(--slate); }

/* Accordion (native details/summary — works with zero JS) */
.accordion-item { border-bottom: 1px solid var(--border-soft); }
.accordion-item summary {
  padding: 13px 0; font-size: 14px; font-weight: 600; color: var(--navy);
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::after { content: "+"; color: var(--teal); font-size: 18px; font-weight: 700; }
.accordion-item[open] summary::after { content: "−"; }
.accordion-item p { padding: 0 0 14px; font-size: 13.5px; color: var(--slate); line-height: 1.6; }

/* Pricing calculator */
.calc-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; max-width: 480px; }
.calc-toggle { display: flex; gap: 8px; margin-bottom: 18px; }
.calc-toggle button {
  flex: 1; padding: 12px 8px; border-radius: 10px; border: 2px solid var(--navy);
  background: var(--white); color: var(--navy); font-weight: 700; font-size: 13px;
}
.calc-toggle button.active { background: var(--navy); color: #fff; }
.calc-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; font-size: 13px; color: var(--slate); font-weight: 600; }
.calc-row span.value { font-size: 15px; color: var(--navy); font-weight: 700; }
input[type="range"] { width: 100%; accent-color: var(--teal); margin-bottom: 6px; }
.calc-minmax { display: flex; justify-content: space-between; font-size: 11px; color: #9AA3AC; margin-bottom: 18px; }
.calc-rush { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text); margin-bottom: 18px; }
.calc-rush input { width: 18px; height: 18px; accent-color: var(--teal); }
.calc-total-box { background: var(--cream); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.calc-total-box .row { display: flex; justify-content: space-between; align-items: baseline; }
.calc-total { font-size: 28px; color: var(--teal); font-weight: 700; }
.calc-note { font-size: 12px; color: var(--slate); margin-bottom: 18px; }

/* Sticky bottom action bar (product detail pages) */
.sticky-bar {
  position: sticky; bottom: 0; left: 0; right: 0; background: var(--white);
  border-top: 1px solid var(--border); padding: 12px 20px; display: flex; gap: 12px;
  align-items: center; box-shadow: 0 -4px 16px rgba(11,37,69,0.08); z-index: 40;
}
.sticky-bar .price { font-size: 18px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.sticky-bar .btn { flex: 1; margin: 0; }

/* Forms */
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-field input, .form-field textarea {
  width: 100%; border: 1px solid #C9D2D8; border-radius: 10px; padding: 13px 14px; font-size: 15px; color: var(--text);
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; }

/* Footer */
.site-footer { background: var(--navy); color: #fff; padding: 40px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-bottom: 30px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-grid h4 { color: #fff; font-size: 13px; margin-bottom: 12px; letter-spacing: .5px; }
.footer-grid a, .footer-grid li { color: #B7C0C9; font-size: 13.5px; display: block; margin-bottom: 9px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: 12px; color: #8593A0; }

/* Utility */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.filter-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 18px; }
.filter-chip { white-space: nowrap; padding: 8px 16px; border-radius: 20px; border: 1px solid #C9D2D8; color: var(--navy); font-size: 13px; font-weight: 600; background: var(--white); }
.filter-chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.cta-banner { background: var(--navy); padding: 34px 0; text-align: center; }
.cta-banner .h2 { color: #fff; }
.cta-banner p { color: #B7C0C9; margin-bottom: 18px; }

.disclaimer-flag {
  background: #FFF4E5; border: 1px solid #F3C98B; color: #7A5200; font-size: 13px;
  padding: 14px 16px; border-radius: 10px; margin-bottom: 24px; line-height: 1.5;
}
