/* ============================================================
   Body Armor Supplements — Design System
   Brand: Blue #046BD2 · Athletic · Premium · App-feel
   ============================================================ */

:root {
  --blue:      #046BD2;
  --blue-600:  #0459b0;
  --blue-700:  #043f7d;
  --blue-050:  #eef5fe;
  --blue-100:  #d9ebfd;
  --ink:       #0b1b2b;   /* near-black navy */
  --ink-2:     #12263b;
  --slate:     #334155;
  --muted:     #64748b;
  --line:      #e6ebf1;
  --bg:        #ffffff;
  --bg-soft:   #f5f8fc;
  --white:     #ffffff;
  --amber:     #f4b740;
  --green:     #16a34a;
  --red:       #dc2626;
  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 10px 30px -12px rgba(4,45,90,.22);
  --shadow-sm: 0 2px 10px -4px rgba(4,45,90,.18);
  --shadow-lg: 0 30px 60px -20px rgba(4,45,90,.30);
  --maxw:      1180px;
  --header-h:  72px;
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --display:   'Barlow Condensed', 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
svg { vertical-align: middle; flex-shrink: 0; }
body {
  margin: 0; font-family: var(--font); color: var(--slate);
  background: var(--bg); line-height: 1.6; font-size: 16px;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .15s; }
a:hover { color: var(--blue-700); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.1; margin: 0 0 .4em; font-weight: 800; }
.display { font-family: var(--display); font-weight: 700; letter-spacing: .3px; text-transform: uppercase; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.bg-soft { background: var(--bg-soft); }
.bg-ink { background: var(--ink); color: #cdd8e4; }
.text-center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--display);
  text-transform: uppercase; letter-spacing: 2px; font-weight: 600; font-size: 14px;
  color: var(--blue); background: var(--blue-050); padding: 6px 14px; border-radius: 999px;
}
.bg-ink .eyebrow { background: rgba(255,255,255,.08); color: #7fb6f2; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 620px; }
.bg-ink h1, .bg-ink h2, .bg-ink h3 { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 15px; padding: 13px 26px; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer; transition: all .18s ease;
  text-align: center; line-height: 1; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(4,107,210,.7); }
.btn-primary:hover { background: var(--blue-600); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(4,107,210,.85); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-050); }
.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover { background: var(--blue-050); color: var(--blue-700); transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; }
.nav-desktop { display: flex; align-items: center; gap: 6px; }
.nav-desktop a {
  color: var(--ink); font-weight: 600; font-size: 15px; padding: 9px 15px; border-radius: 10px;
  transition: background .15s, color .15s;
}
.nav-desktop a:hover, .nav-desktop a.active { background: var(--blue-050); color: var(--blue); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.hamburger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.hamburger svg { width: 26px; height: 26px; }

/* Mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 200; background: rgba(11,27,43,.5);
  opacity: 0; visibility: hidden; transition: opacity .2s;
}
.mobile-drawer.open { opacity: 1; visibility: visible; }
.drawer-panel {
  position: absolute; top: 0; right: 0; width: min(84vw, 340px); height: 100%;
  background: #fff; padding: 22px; transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
}
.mobile-drawer.open .drawer-panel { transform: translateX(0); }
.drawer-panel a { color: var(--ink); font-weight: 600; font-size: 17px; padding: 14px 12px; border-radius: 12px; display: flex; align-items: center; gap: 12px; }
.drawer-panel a:hover, .drawer-panel a.active { background: var(--blue-050); color: var(--blue); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.drawer-close { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; background: linear-gradient(160deg, #06294d 0%, var(--ink) 55%, #06182b 100%);
  color: #e6eef7; overflow: hidden; padding: 84px 0 96px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(900px 380px at 80% -10%, rgba(4,107,210,.45), transparent 60%),
    radial-gradient(600px 300px at 10% 110%, rgba(4,107,210,.28), transparent 60%);
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.6rem, 6vw, 4.4rem); color: #fff; letter-spacing: .5px; line-height: .98; margin-bottom: 18px; }
.hero h1 .accent { color: #4ea1f0; }
.hero p.lead { color: #b8cadd; max-width: 520px; font-size: 1.15rem; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-badges { display: flex; gap: 22px; margin-top: 40px; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 10px; color: #cfe0f2; font-weight: 600; font-size: 14px; }
.hero-badge svg { width: 22px; height: 22px; color: #4ea1f0; }
.hero-visual {
  position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3; background: #0a1f38; border: 1px solid rgba(255,255,255,.08);
}
.hero-visual video, .hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-tag {
  position: absolute; left: 18px; bottom: 18px; z-index: 3; background: rgba(4,107,210,.92);
  color: #fff; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 13px;
  font-family: var(--display); letter-spacing: 1px; text-transform: uppercase;
}

/* ---------- Stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 18px; }
.stat .num { font-family: var(--display); font-weight: 700; font-size: 2.6rem; color: var(--blue); line-height: 1; }
.stat .lbl { color: var(--muted); font-weight: 600; font-size: 14px; margin-top: 6px; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Section headers ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: .5px; margin: 14px 0 12px; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------- Category chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.chip {
  padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  color: var(--slate); font-weight: 600; font-size: 14px; cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- Product grid & cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.product-media { position: relative; aspect-ratio: 1/1; background: linear-gradient(160deg,#f7fafd,#eef4fb); padding: 6px; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transform: scale(1.3); transition: transform .3s; }
.product-card:hover .product-media img { transform: scale(1.38); }
.product-cat { position: absolute; top: 12px; left: 12px; background: rgba(4,107,210,.1); color: var(--blue);
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .5px; }
.product-body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 15px; font-weight: 700; margin: 0 0 6px; color: var(--ink); line-height: 1.3; }
.product-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.tag { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--bg-soft); padding: 4px 10px; border-radius: 8px; }
.product-link { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 700; font-size: 14px; }
.product-link svg { width: 16px; height: 16px; transition: transform .15s; }
.product-card:hover .product-link svg { transform: translateX(3px); }

/* ---------- Feature cards ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
  transition: transform .2s, box-shadow .2s;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature-ico {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-050); color: var(--blue); margin-bottom: 18px;
}
.feature-ico svg { width: 28px; height: 28px; }
.feature h3 { font-size: 1.2rem; margin-bottom: 10px; }
.feature p { color: var(--muted); margin: 0; font-size: .97rem; }

/* ---------- Certifications ---------- */
.certs { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px; }
.cert-badge {
  display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line);
  padding: 18px 26px; border-radius: 14px; box-shadow: var(--shadow-sm); min-width: 210px;
}
.cert-badge .cb-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue); color: #fff; flex-shrink: 0; }
.cert-badge .cb-ico svg { width: 24px; height: 24px; }
.cert-badge b { display: block; color: var(--ink); font-size: 1.05rem; }
.cert-badge span { color: var(--muted); font-size: 13px; }

/* ---------- Split / CTA ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-media { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 5/4; }
.split-media img, .split-media video { width: 100%; height: 100%; object-fit: cover; }
.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; color: var(--slate); font-weight: 500; }
.checklist svg { width: 22px; height: 22px; color: var(--blue); flex-shrink: 0; margin-top: 1px; }

.cta-band {
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue-700) 100%); color: #fff;
  border-radius: 24px; padding: 54px 48px; text-align: center; position: relative; overflow: hidden;
}
.cta-band::after { content: ''; position: absolute; inset: 0;
  background: radial-gradient(500px 200px at 90% 0%, rgba(255,255,255,.15), transparent 60%); }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; font-family: var(--display); text-transform: uppercase; font-size: clamp(1.8rem,4vw,2.6rem); }
.cta-band p { color: #d5e6fa; max-width: 560px; margin: 12px auto 26px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #9fb2c6; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-family: var(--display); text-transform: uppercase; letter-spacing: 1px; font-size: 1.05rem; margin-bottom: 16px; }
.site-footer img.f-logo { height: 36px; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a { color: #9fb2c6; font-size: 15px; }
.footer-links a:hover { color: #fff; }
.footer-contact { display: grid; gap: 12px; font-size: 15px; }
.footer-contact div { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding: 22px 0; text-align: center; font-size: 14px; color: #6b8199; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--ink); font-size: 14px; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px;
  font-family: inherit; font-size: 15px; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-050);
}
.field .req { color: var(--red); }
.hp { position: absolute; left: -9999px; opacity: 0; }

/* ---------- Alerts ---------- */
.alert { padding: 14px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.alert-success { background: #ecfdf3; color: #15803d; border: 1px solid #bbf7d0; }
.alert-error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; padding: 20px 0; }
.breadcrumb svg { width: 15px; height: 15px; opacity: .7; }
.eyebrow svg { width: 15px; height: 15px; }
.alert svg { width: 18px; height: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(150deg, #06294d, var(--ink)); color: #fff; padding: 54px 0; position: relative; overflow: hidden; }
.page-hero::before { content:''; position:absolute; inset:0; background: radial-gradient(700px 300px at 85% 0%, rgba(4,107,210,.4), transparent 60%); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-family: var(--display); text-transform: uppercase; font-size: clamp(2rem,5vw,3.2rem); color:#fff; letter-spacing:.5px; }
.page-hero p { color: #b8cadd; max-width: 620px; margin: 8px 0 0; }

/* ---------- Product detail ---------- */
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.pd-media { background: linear-gradient(160deg,#f7fafd,#eef4fb); border-radius: 20px; padding: 40px; display: grid; place-items: center; border: 1px solid var(--line); }
.pd-media img { max-height: 420px; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.pd-info h1 { font-size: clamp(1.6rem,3vw,2.2rem); margin-bottom: 14px; }
.pd-attrs { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.pd-attr { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; }
.pd-attr .k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.pd-attr .v { font-weight: 700; color: var(--ink); }
.pd-desc { color: var(--slate); margin: 20px 0; line-height: 1.75; }

/* ---------- Map ---------- */
.map-embed { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; min-height: 340px; }

/* ---------- Mobile bottom nav (app feel) ---------- */
.bottom-nav { display: none; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .header-cta .btn:not(.hamburger) { display: none; }
  .hamburger { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { order: -1; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .feature-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .pd-grid { grid-template-columns: 1fr; gap: 28px; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .hero { padding: 60px 0 90px; }
  body { padding-bottom: 66px; } /* room for bottom nav */

  /* App-style bottom navigation */
  .bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
    justify-content: space-around;
  }
  .bottom-nav a {
    display: flex; flex-direction: column; align-items: center; gap: 3px; flex: 1;
    color: var(--muted); font-size: 11px; font-weight: 600; padding: 4px;
  }
  .bottom-nav a svg { width: 22px; height: 22px; }
  .bottom-nav a.active { color: var(--blue); }
}
@media (max-width: 380px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
