/* ==========================================================================
   Ol' Glory Energy — site styles
   Colors, fonts and spacing live in :root. Change them there.
   ========================================================================== */

:root {
  --navy: #0B1B3F;
  --blue: #1A47C8;
  --red: #D7262E;
  --white: #FFFFFF;
  --bone: #F3EFE6;
  --gold: #F5B83D;      /* Citrus accent */
  --gold-ink: #8A5A00;
  --silver: #A9B0BC;    /* Citrus Zero accent */
  --silver-ink: #5B6475;
  --berry: #A3123A;     /* Mixed Berry accent */
  --ink-soft: #3A4664;  /* body text on light backgrounds */
  --mist: #D5DBEA;      /* body text on navy */
  --line: #22345F;      /* borders on navy */
  --footer-text: #A7B1C9;

  --font-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --font-label: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', system-ui, sans-serif;

  --max: 1320px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
a:hover { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--navy); padding: 10px 16px;
  font-family: var(--font-label); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */
.display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.display-xl { font-size: clamp(64px, 9vw, 136px); line-height: 0.86; }
.display-lg { font-size: clamp(48px, 6vw, 84px); }
.display-md { font-size: clamp(40px, 4.4vw, 60px); line-height: 0.95; }
.eyebrow {
  margin: 0;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.label {
  font-family: var(--font-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.text-red { color: var(--red); }
.lede { margin: 0; font-size: 21px; line-height: 1.5; color: var(--mist); max-width: 540px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px;
  border: 2px solid transparent; border-radius: 0;
  font-family: var(--font-label); font-weight: 700; font-size: 19px;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: #b81d24; color: var(--white); }
.btn-outline { border-color: currentColor; color: var(--white); background: transparent; }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { color: var(--white); background: #13295c; }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { color: var(--navy); }
.btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Announcement + header ---------- */
.announce {
  background: var(--red); text-align: center; padding: 10px 16px;
  font-family: var(--font-label); font-weight: 700; font-size: 15px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.site-header { position: relative; z-index: 20; }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 18px; padding-bottom: 18px;
}
.logo {
  display: inline-flex; flex-direction: column; text-decoration: none; color: var(--white);
  font-family: var(--font-display); font-weight: 900; line-height: 0.82; font-size: 30px;
}
.logo:hover { color: var(--white); }
.logo-top { display: flex; align-items: center; gap: 6px; }
.logo-top img { width: 1.5em; height: auto; }
.logo-lg { font-size: 48px; }

.nav { display: flex; gap: 30px; }
.nav a {
  font-family: var(--font-label); font-weight: 700; font-size: 18px;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
}
.nav a[aria-current="page"] { color: var(--gold); }
.header-cta { min-height: 46px; padding: 0 20px; font-size: 17px; }
.menu-toggle {
  display: none; width: 46px; height: 46px; border: 0; background: var(--white);
  color: var(--navy); cursor: pointer; align-items: center; justify-content: center;
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--navy);
    border-top: 2px solid var(--line); border-bottom: 2px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 16px var(--gutter); font-size: 22px; border-top: 1px solid var(--line); }
}

/* ---------- Hero ---------- */
.hero .container {
  display: flex; flex-wrap: wrap; align-items: center; gap: 56px;
  padding-top: 40px; padding-bottom: 72px;
}
.hero-copy { flex: 1 1 460px; display: flex; flex-direction: column; gap: 28px; }
.hero-media { flex: 1 1 400px; position: relative; }
.hero-media img { width: 100%; height: 640px; object-fit: cover; object-position: center 35%; }
.sticker {
  position: absolute; left: -16px; bottom: 32px; transform: rotate(-3deg);
  background: var(--gold); color: var(--navy); padding: 14px 20px;
  font-family: var(--font-display); font-weight: 900; font-size: 26px; line-height: 1;
  text-transform: uppercase;
}
@media (max-width: 640px) {
  .hero .container { gap: 28px; padding-top: 8px; }
  .hero-media { order: -1; }
  .hero-media img { height: 400px; }
  .sticker { left: -6px; font-size: 20px; padding: 10px 14px; }
  .hero .btn { width: 100%; }
}

/* ---------- Ticker ---------- */
.ticker {
  background: var(--white); color: var(--navy); overflow: hidden; white-space: nowrap;
  padding: 16px 0; font-family: var(--font-display); font-weight: 900; font-size: 30px;
  text-transform: uppercase;
}
.ticker-track { display: inline-flex; animation: ticker 32s linear infinite; }
.ticker-track span { padding-right: 24px; }
.ticker .star { color: var(--red); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-bone { background: var(--bone); color: var(--navy); }
.section-red { background: var(--red); }
.section-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end;
  gap: 24px; margin-bottom: 48px;
}
.section-head p { margin: 0; max-width: 400px; color: var(--ink-soft); }
@media (max-width: 640px) { .section { padding: 56px 0; } }

/* ---------- Flavor cards ---------- */
.flavor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 28px; }
.flavor-card {
  background: var(--white); color: var(--navy); display: flex; flex-direction: column;
  border-top: 8px solid var(--accent, var(--gold)); text-decoration: none;
  transition: transform .2s ease;
}
.flavor-card:hover { transform: translateY(-4px); color: var(--navy); }
.flavor-card img { width: 100%; height: 400px; object-fit: cover; object-position: center 40%; }
.flavor-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.flavor-tag { font-size: 15px; color: var(--accent-ink, var(--gold-ink)); }
.flavor-name { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: 44px; line-height: .95; text-transform: uppercase; }
.flavor-body p { margin: 0; color: var(--ink-soft); flex-grow: 1; }
.flavor-meta { font-size: 16px; color: var(--ink-soft); }
.flavor-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; }
.price { font-family: var(--font-display); font-weight: 800; font-size: 30px; }
.price small { font-family: var(--font-body); font-weight: 500; font-size: 15px; color: var(--ink-soft); }
.flavor-link { font-size: 17px; color: var(--red); }
.accent-citrus { --accent: var(--gold); --accent-ink: var(--gold-ink); }
.accent-zero { --accent: var(--silver); --accent-ink: var(--silver-ink); }
.accent-berry { --accent: var(--berry); --accent-ink: var(--berry); }
@media (max-width: 640px) { .flavor-card img { height: 320px; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2px; background: var(--line); margin-top: 48px; }
.stat { background: var(--navy); padding: 32px 28px; display: flex; flex-direction: column; gap: 8px; }
.stat-value { font-family: var(--font-display); font-weight: 900; font-size: 64px; line-height: 1; }
.stat-value small { font-size: 28px; }
.stat-label { font-size: 18px; color: var(--gold); }
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 20px 18px; }
  .stat-value { font-size: 42px; }
  .stat-label { font-size: 14px; }
}

/* ---------- Split layouts ---------- */
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split > * { flex: 1 1 420px; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack p { margin: 0; font-size: 20px; line-height: 1.6; }

/* Warning-label joke card */
.warning {
  background: var(--bone); color: var(--navy); border: 4px solid var(--navy);
  padding: 36px; display: flex; flex-direction: column; gap: 16px;
}
.warning-title {
  font-family: var(--font-display); font-weight: 900; font-size: 40px; line-height: 1;
  text-transform: uppercase; border-bottom: 4px solid var(--navy); padding-bottom: 12px;
}
.warning ul { margin: 0; padding-left: 22px; line-height: 1.7; }
.warning .fine { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* ---------- Find us + signup ---------- */
.cta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.cta-card { padding: 40px; display: flex; flex-direction: column; gap: 18px; }
.cta-card p { margin: 0; }
.cta-outline { border: 2px solid var(--line); }
.cta-outline p { color: var(--mist); }
.cta-gold { background: var(--gold); color: var(--navy); }
.form-row { display: flex; flex-wrap: wrap; gap: 12px; }
.form-row input {
  flex: 1 1 200px; min-height: 56px; padding: 0 16px; border: 2px solid var(--navy);
  background: var(--white); color: var(--navy); font: inherit; border-radius: 0;
}
.form-note { font-size: 15px; min-height: 1.5em; margin: 0; }
@media (max-width: 640px) { .cta-card { padding: 28px 22px; } .form-row .btn { width: 100%; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 2px solid var(--line); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 56px; line-height: 2; font-size: 16px; }
.footer-cols div { display: flex; flex-direction: column; }
.footer-cols .label { color: var(--gold); }
.footer-cols a { text-decoration: none; }
.footer-legal { padding-bottom: 40px; font-size: 13px; color: var(--footer-text); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-legal p { margin: 0; }

/* ---------- Product page ---------- */
.breadcrumb { font-size: 15px; color: var(--ink-soft); margin-bottom: 28px; }
.product { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.product-media { flex: 1 1 460px; border-top: 10px solid var(--accent); background: var(--white); }
.product-media img { width: 100%; height: 680px; object-fit: cover; object-position: center 40%; }
.product-info { flex: 1 1 420px; display: flex; flex-direction: column; gap: 22px; }
.product-info .tagline { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1.1; text-transform: uppercase; }
.product-info .desc { margin: 0; font-size: 19px; color: var(--ink-soft); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px;
  border: 2px solid var(--navy); background: var(--white); color: var(--navy);
  font-family: var(--font-label); font-weight: 700; font-size: 17px;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
}
.pill:hover { color: var(--navy); background: var(--bone); }
.pill[aria-current="page"] { background: var(--navy); color: var(--white); box-shadow: inset 0 -5px 0 var(--accent); }
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: #D9D3C4; }
.mini-stats div { background: var(--white); padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.mini-stats strong { font-family: var(--font-display); font-weight: 900; font-size: 36px; line-height: 1; }
.mini-stats span { font-size: 14px; color: var(--ink-soft); }
.product-price { font-family: var(--font-display); font-weight: 900; font-size: 52px; line-height: 1; }
.product-price small { font-family: var(--font-body); font-weight: 500; font-size: 16px; color: var(--ink-soft); margin-left: 8px; }
.product-info .btn { flex: 1 1 240px; }
.product-info .note { margin: 0; font-size: 15px; color: var(--ink-soft); }
.product-info .note a { color: var(--blue); }
@media (max-width: 640px) { .product-media img { height: 420px; } }

/* Nutrition label */
.nutrition-wrap { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.nutrition-wrap > .stack { flex: 1 1 400px; }
.callout { border: 2px solid var(--line); padding: 22px; font-size: 15px; color: var(--mist); }
.nutrition {
  flex: 0 1 380px; width: 100%; background: var(--white); color: #000;
  border: 1px solid #000; padding: 14px 16px; font-family: var(--font-body); font-size: 15px;
}
.nutrition h3 { margin: 0; font-family: var(--font-label); font-weight: 700; font-size: 40px; line-height: 1; border-bottom: 1px solid #000; padding-bottom: 4px; }
.nutrition .row { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid #000; }
.nutrition .indent { padding-left: 16px; }
.nutrition .serving { font-weight: 700; font-size: 17px; padding: 6px 0; border-bottom: 10px solid #000; }
.nutrition .calories { align-items: end; border-bottom: 5px solid #000; }
.nutrition .calories span { font-weight: 700; font-size: 28px; }
.nutrition .calories b { font-size: 40px; line-height: 1; }
.nutrition .dv { justify-content: flex-end; font-weight: 700; font-size: 13px; }
.nutrition .thick { border-bottom: 10px solid #000; }
.nutrition .foot { font-size: 11px; line-height: 1.4; padding-top: 6px; border-top: 5px solid #000; margin: 0; }
.nutrition-pending { flex: 0 1 380px; background: var(--white); color: var(--navy); padding: 28px; border-top: 8px solid var(--silver); }
.nutrition-pending h3 { margin: 0 0 10px; font-family: var(--font-label); font-size: 32px; }
.nutrition-pending p { margin: 0; }

/* Cross-sell */
.xsell { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.xsell a {
  display: flex; align-items: center; gap: 18px; padding: 14px; background: var(--white);
  color: var(--navy); text-decoration: none;
}
.xsell a:hover { color: var(--navy); outline: 3px solid var(--navy); }
.xsell img { width: 96px; height: 120px; object-fit: cover; object-position: center 40%; flex-shrink: 0; }
.xsell strong { display: block; font-family: var(--font-display); font-weight: 900; font-size: 30px; line-height: 1; text-transform: uppercase; }
.xsell span { font-size: 15px; color: var(--ink-soft); }
.xsell em { display: block; margin-top: 6px; font-style: normal; color: var(--red); font-size: 15px; }

/* ---------- Our Story ---------- */
.polaroid { background: var(--white); padding: 16px 16px 20px; border-top: 8px solid var(--red); transform: rotate(-1.5deg); }
.polaroid img { width: 100%; aspect-ratio: 299 / 169; object-fit: cover; filter: grayscale(1) contrast(1.08); }
figure { margin: 0; }
figcaption { margin-top: 14px; font-size: 16px; color: var(--ink-soft); }
.stamp {
  display: inline-flex; flex-direction: column; gap: 6px; text-align: center;
  border: 6px solid var(--red); color: var(--red); padding: 22px 30px; transform: rotate(-8deg);
}
.stamp strong { font-family: var(--font-display); font-weight: 900; font-size: 84px; line-height: .9; text-transform: uppercase; }
.stamp span { font-size: 18px; letter-spacing: .2em; }
.stamp-wrap { display: flex; justify-content: center; flex: 0 1 380px !important; }
.memorial { border-top: 6px solid var(--red); border-bottom: 6px solid var(--red); text-align: center; }
.memorial .container { max-width: 900px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.memorial p { margin: 0; font-size: 22px; color: var(--mist); max-width: 640px; }
.memorial img { width: 88px; height: auto; }
.closing .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }
.closing h2 { max-width: 760px; }
@media (max-width: 640px) {
  .stamp-wrap { flex: 1 1 100% !important; }
  .stamp { padding: 16px 20px; transform: rotate(-5deg); }
  .stamp strong { font-size: 56px; }
  .stamp span { font-size: 13px; letter-spacing: .14em; }
}
main { overflow-x: clip; }
