/* ============================================================
   ACRO GRUB — styles.css
   Order: tokens → reset → base type → layout utilities →
   components → sections → responsive
   ============================================================ */

/* ============================================================
   1. TOKENS
   ============================================================ */
:root {
  --ag-bark:        #10231A;  /* near-black forest green — hero, footer, training block */
  --ag-forest:      #1B4332;  /* mid green — section fills, cards on dark */
  --ag-moss:        #2D6A4F;  /* lighter green — borders, secondary buttons on dark */
  --ag-gold:        #C9A227;  /* the brand gold — primary accent, borders, headings on dark */
  --ag-gold-soft:   #E4C86B;  /* hover / lighter gold */
  --ag-cream:       #F6F2E7;  /* main light page surface */
  --ag-cream-deep:  #EBE4D2;  /* alternating band on light sections */
  --ag-ink:         #16201A;  /* body text on light */
  --ag-ink-muted:   #56604F;  /* secondary text on light */
  --ag-wa:          #25D366;  /* WhatsApp brand green — ONLY on WhatsApp buttons */

  /* Fonts */
  --font-display: 'Sora', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --content-max: 1200px;
  --side-pad: 20px;
  --header-h: 68px;
  --radius: 10px;
  --radius-sm: 8px;

  /* Motion */
  --t-btn: 150ms ease;
}

/* ============================================================
   2. RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden; /* safety net; real overflow causes are fixed below */
  background: var(--ag-cream);
  color: var(--ag-ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; cursor: pointer; }

/* Respect reduced motion globally. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Visible keyboard focus everywhere. */
:focus-visible {
  outline: 2px solid var(--ag-gold);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Skip link for keyboard users. */
.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  background: var(--ag-gold);
  color: var(--ag-bark);
  padding: 10px 16px;
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus {
  inset-inline-start: 8px;
  top: 8px;
}

/* ============================================================
   3. BASE TYPE
   ============================================================ */
h1, h2, h3 { font-family: var(--font-display); }

.hero__headline {
  font-weight: 700;
  font-size: clamp(2rem, 1.2rem + 3.6vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.section__heading {
  font-weight: 600;
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.25rem);
  line-height: 1.15;
}
.card__title {
  font-weight: 600;
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.25rem);
  line-height: 1.25;
}
.card__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
}
.small, .meta { font-size: 0.875rem; font-weight: 500; }

/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--side-pad);
}
.section {
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
}
.section--dark {
  background: var(--ag-bark);
  color: var(--ag-cream);
}
.section--cream { background: var(--ag-cream); color: var(--ag-ink); }
.section--cream-deep { background: var(--ag-cream-deep); color: var(--ag-ink); }

.section__head { max-width: 60ch; margin-bottom: 2.25rem; }
.section__intro { margin-top: 0.75rem; color: var(--ag-ink-muted); }
.section--dark .section__intro { color: #C9D6CB; }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Section headings on dark use gold. */
.section--dark .section__heading { color: var(--ag-gold); }

/* ============================================================
   5. COMPONENTS
   ============================================================ */

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 44px;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color var(--t-btn), color var(--t-btn), border-color var(--t-btn);
}
.btn--primary {
  background: var(--ag-gold);
  color: var(--ag-bark);
}
.btn--primary:hover { background: var(--ag-gold-soft); }
.btn--outline {
  background: transparent;
  color: var(--ag-cream);
  border-color: var(--ag-moss);
}
.btn--outline:hover { border-color: var(--ag-gold); color: var(--ag-gold-soft); }

/* WhatsApp buttons — the only place --ag-wa appears. */
.btn--wa {
  background: var(--ag-wa);
  color: #fff;
  border-color: var(--ag-wa);
}
.btn--wa:hover { background: #1FB457; border-color: #1FB457; }
.btn--wa .wa-glyph { flex: none; }

/* Compact header WhatsApp button. */
.btn--wa-compact {
  padding: 0.4rem 0.85rem;
  min-height: 44px;
  font-size: 0.9rem;
}

/* ---- Header ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--ag-bark);
  color: var(--ag-cream);
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
}
.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ag-gold);
}
/* Badge icon — sized up so it actually reads at a glance; the fine
   detail baked into the artwork (ring, bee) holds up small, but its own
   baked-in text doesn't, which is why the wordmark is set separately. */
.brand__img { height: 44px; width: auto; flex: none; }
@media (min-width: 1024px) {
  .brand__img { height: 52px; }
}
.brand__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--ag-gold);
  line-height: 1;
  white-space: nowrap;
}
/* Gold underline only applies when the text is standing in alone —
   i.e. the badge image failed to load and was removed. */
.brand__text:only-child {
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ag-gold);
}

.nav { display: none; }
.nav__list { display: flex; gap: 1.5rem; align-items: center; }
.nav__link {
  text-decoration: none;
  color: var(--ag-cream);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color var(--t-btn), border-color var(--t-btn);
}
.nav__link:hover { color: var(--ag-gold); }

.header__right { display: flex; align-items: center; gap: 0.75rem; }

/* Hamburger. */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--ag-moss);
  border-radius: 8px;
  color: var(--ag-cream);
}
.menu-toggle svg { display: block; }

/* Full-screen mobile menu overlay. */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: var(--ag-bark);
  color: var(--ag-cream);
  display: flex;
  flex-direction: column;
  padding: 20px;
}
.mobile-menu__top { display: flex; justify-content: flex-end; }
.mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 2rem;
}
.mobile-menu__link {
  text-decoration: none;
  color: var(--ag-cream);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
}
.mobile-menu__link:hover { color: var(--ag-gold); }
body.is-menu-open { overflow: hidden; }

/* ---- Hero ---- */
.hero {
  position: relative;
  background: var(--ag-bark);
  color: var(--ag-cream);
  overflow: hidden;
}
.hero__art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__art-svg { width: 100%; height: 100%; display: block; }
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(3.5rem, 2.5rem + 6vw, 7rem);
  max-width: 46rem;
}
.hero__sub {
  margin-top: 1.25rem;
  font-size: 1.0625rem;
  color: #D7E1D9;
  max-width: 42rem;
}
.hero__actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Hero intro animation targets. */
[data-hero-anim] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}
[data-hero-anim].is-in { opacity: 1; transform: none; }

/* ---- Why BSF grid ---- */
.why-grid { gap: 1.5rem; }
.why-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.why-item__icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--ag-cream-deep);
  color: var(--ag-forest);
}
.why-item__icon svg { display: block; }
.why-item__text { color: var(--ag-ink); }

/* ---- Cards ---- */
.card {
  display: flex;
  flex-direction: column;
  background: var(--ag-cream);
  border: 1px solid rgba(22, 32, 26, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 24px -14px rgba(16, 35, 26, 0.45);
  transition: border-color var(--t-btn);
}
.card:hover { border-color: var(--ag-gold); }

/* Feed cards sit on the cream-deep band. */
.section--cream-deep .card { background: var(--ag-cream); }

/* Training cards on dark, gold hairline border. */
.card--training {
  background: var(--ag-forest);
  color: var(--ag-cream);
  border: 1px solid var(--ag-gold);
}
.card--training:hover { border-color: var(--ag-gold-soft); }

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--ag-forest);
  overflow: hidden;
}
/* Branded illustration behind the photo (shows when no photo present). */
.card__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}
/* Training images are tall posters — show the branded top (logo + title). */
.card--training .card__img { object-position: top center; }

/* Short product clips: same framing as a photo, muted/looping/no controls. */
.card__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  background: var(--ag-forest); /* shows while the poster frame loads */
}

/* Clickable photo: pointer + small "enlarge" hint badge. */
.card__media.is-clickable { cursor: zoom-in; }
.card__zoom-hint {
  position: absolute;
  inset-block-end: 8px;
  inset-inline-end: 8px;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(16, 35, 26, 0.72);
  color: var(--ag-gold);
  pointer-events: none;
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(9, 18, 13, 0.92);
}
.lightbox__img,
.lightbox__video {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox__close {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--ag-moss);
  color: var(--ag-cream);
}
.lightbox__close:hover { border-color: var(--ag-gold); color: var(--ag-gold-soft); }

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem;
  gap: 0.6rem;
}
.card__price { color: var(--ag-forest); }
.card--training .card__price { color: var(--ag-gold); }
/* Coming-soon products: price line reads as a status, not a number. */
.card__price--soon { color: var(--ag-ink-muted); font-style: italic; }

/* Coming-soon badge pinned to the media corner. */
.card__badge {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  z-index: 2;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--ag-gold);
  color: var(--ag-bark);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(16, 35, 26, 0.35);
}
.card__desc { font-size: 1rem; }
.card--training .card__desc { color: #DCE6DE; }

.card__duration {
  font-size: 0.9rem;
  color: #C9D6CB;
}
.card__duration-label { color: var(--ag-gold); font-weight: 600; }

.card__list-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ag-gold);
  margin-top: 0.25rem;
}
.card__list { display: flex; flex-direction: column; gap: 0.45rem; }
.card__list li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.925rem;
  color: #DCE6DE;
}
.card__check { flex: none; color: var(--ag-gold); margin-top: 2px; }

/* Button pinned to card bottom so rows align. */
.card__actions { margin-top: auto; padding-top: 0.9rem; }
.card__actions .btn--wa { width: 100%; }

/* ---- Floating WhatsApp button ---- */
.wa-float {
  position: fixed;
  inset-inline-end: 20px;
  bottom: 20px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ag-wa);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.85);
  transition: opacity 250ms ease, transform 250ms ease, visibility 250ms;
}
.wa-float.is-visible { opacity: 1; visibility: visible; transform: scale(1); }
.wa-float.no-motion { transition: none; }
.wa-float:hover { background: #1FB457; }

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
.map-wrap {
  border: 1px solid var(--ag-moss);
  border-radius: var(--radius-sm);
  overflow: hidden;
  line-height: 0;
}
.map-wrap iframe { display: block; width: 100%; }
.map-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--ag-gold);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.4;
}
.map-link:hover { color: var(--ag-gold-soft); text-decoration: underline; }

.contact-details { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--ag-gold);
  margin-bottom: 0.15rem;
}
.contact-item__value { font-size: 1.05rem; color: var(--ag-cream); }
.contact-item a { color: var(--ag-cream); text-decoration: none; }
.contact-item a:hover { color: var(--ag-gold-soft); text-decoration: underline; }
.contact-details .btn--wa { align-self: flex-start; }

/* ---- Footer ---- */
.footer {
  background: var(--ag-bark);
  color: var(--ag-cream);
  padding-block: 3rem 1.5rem;
  border-top: 1px solid rgba(201, 162, 39, 0.25);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.footer__tagline { margin-top: 0.75rem; color: #C9D6CB; max-width: 32ch; }
.footer__col-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--ag-gold);
  margin-bottom: 0.75rem;
}
.footer__nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__nav a, .footer__contact a {
  color: var(--ag-cream);
  text-decoration: none;
  font-size: 0.95rem;
}
.footer__nav a:hover, .footer__contact a:hover { color: var(--ag-gold-soft); }
.footer__contact { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__social {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
}
.footer__social-link { color: var(--ag-cream); text-decoration: none; }
.footer__social-link:hover { color: var(--ag-gold-soft); }
.footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201, 162, 39, 0.15);
  font-size: 0.85rem;
  color: #A9B8AC;
}

/* ============================================================
   6. SECTIONS (spacing handled by .section; nothing per-section
   should also set block margins — keep specificity flat)
   ============================================================ */

/* ============================================================
   7. RESPONSIVE
   ============================================================ */
@media (min-width: 480px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  :root { --side-pad: 32px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1.3fr 1fr; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  :root { --side-pad: 48px; }
  .nav { display: block; }
  .menu-toggle { display: none; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Mobile: lift floating button above browser chrome. */
@media (max-width: 767px) {
  .wa-float { bottom: 84px; }
  :root { --header-h: 56px; }
}

/* Very narrow: header WhatsApp button becomes icon-only to avoid wrapping. */
@media (max-width: 479px) {
  .btn--wa-compact { padding: 0; width: 44px; }
  .btn--wa-compact span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Anchor scroll offset for the sticky header. */
:target { scroll-margin-top: calc(var(--header-h) + 12px); }
section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
