/* ==========================================================================
   DrinkWana brand normalization (FB2)
   Loaded last on purpose: plain (unlayered) rules here win over the
   Tailwind utilities, which live inside @layer, without needing !important.
   ========================================================================== */

:root {
  --brand-green: #0c4d27;        /* sampled from the Asia F&B logo */
  --brand-green-dark: #083d1f;
  --brand-leaf: #3f9a3a;
  --brand-gold: #f1eb11;
  --brand-gold-dark: #d4cb0a;
  --brand-light: #f5f9ee;
  --site-max: 1240px;
  --site-gutter: 16px;
}
@media (min-width: 640px) {
  :root { --site-gutter: 24px; }
}

/* ── 1. One page width for every page ─────────────────────────────────────
   Header, top bar, content and footer used a mix of 1152/1240/1280px boxes
   with 16/20/24px padding, so edges drifted in and out between sections. */
.npv-container,
.site-container {
  max-width: var(--site-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--site-gutter) !important;
  padding-right: var(--site-gutter) !important;
  width: 100%;
  box-sizing: border-box;
}

/* ── 2. Typography ────────────────────────────────────────────────────────
   Familjen Grotesk only ships 400–700. Bolder utilities made the browser
   synthesize fake weights, which rendered unevenly next to real bold text. */
body, input, button, select, textarea,
.font-serif, .font-sans, .font-heading {
  font-family: 'Familjen Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}
.font-extrabold, .font-black { font-weight: 700 !important; }
body { font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* Collapse the ~15 hand-picked sizes used across the pages into 4 steps. */
#yt_wrapper :is(.text-\[10px\], .text-\[11px\], .text-xs, .text-\[12px\], .text-\[12\.5px\]) { font-size: 13px; line-height: 1.5; }
#yt_wrapper :is(.text-\[13px\], .text-\[13\.5px\], .text-sm, .text-\[14px\], .text-\[14\.5px\]) { font-size: 14px; line-height: 1.6; }
#yt_wrapper :is(.text-\[15px\], .text-\[15\.5px\]) { font-size: 15px; line-height: 1.65; }
#yt_wrapper :is(.text-base, .text-\[16px\], .text-\[16\.5px\], .text-\[17px\]) { font-size: 16px; line-height: 1.6; }

/* ── 3. Standard section headline (x-client::section-heading) ─────────── */
.section-heading { text-align: center; max-width: 820px; margin: 0 auto 40px; }
.section-heading--left { text-align: left; margin-left: 0; }
.section-heading__title {
  color: var(--brand-green);
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
  margin: 0;
}
@media (min-width: 768px) { .section-heading__title { font-size: 32px; } }
.section-heading__bar {
  width: 64px; height: 4px; border-radius: 4px;
  background: var(--brand-gold);
  margin: 14px auto 0;
}
.section-heading--left .section-heading__bar { margin-left: 0; }
.section-heading__sub {
  color: #4b5563;
  font-size: 15px;
  line-height: 1.7;
  margin: 14px auto 0;
  max-width: 680px;
}
.section-heading--left .section-heading__sub { margin-left: 0; }
.section-heading--light .section-heading__title { color: #fff; }
.section-heading--light .section-heading__sub { color: rgba(255,255,255,.85); }

/* ── 4. Footer: solid logo green, newsletter band in gold ────────────────── */
#yt_spotlight6 { background-color: var(--brand-green) !important; padding: 56px 0 32px !important; }
#footer_newsletter { background: var(--brand-gold) !important; color: var(--brand-green); border-bottom: 0 !important; }

/* ── 5. Storefront pagination (client.partials.pagination) ───────────────── */
.client-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 32px 0 8px; list-style: none; padding: 0; }
.client-pagination a,
.client-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: 10px; border: 1px solid #d9e3dc; background: #fff;
  color: var(--brand-green); font-weight: 600; font-size: 14px; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.client-pagination a:hover { border-color: var(--brand-green); background: var(--brand-light); }
.client-pagination .is-active { background: var(--brand-green); border-color: var(--brand-green); color: var(--brand-gold); }
.client-pagination .is-disabled { color: #9ca3af; background: #f9fafb; cursor: default; }
.client-pagination-summary { text-align: center; color: #6b7280; font-size: 13px; margin-top: 4px; }

/* ── 6. Floating widgets: never cover content on phones ──────────────────── */
@media (max-width: 767px) {
  #floating-widgets { right: 10px; bottom: 76px; gap: 8px; }
  #floating-widgets .fw-dealer-btn { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 9999px; }
  #floating-widgets .fw-dealer-btn .fw-dealer-label,
  #floating-widgets .fw-dealer-btn .fw-dealer-ping { display: none; }
  #floating-widgets > a { width: 44px; height: 44px; }
}

/* ── 7. Nothing animates behind the registration popup ────────────────────
   Endless ping/pulse loops under an open modal kept the page repainting, which
   made screenshot and automation tools wait forever for it to settle. */
body.dealer-modal-open .animate-ping,
body.dealer-modal-open .animate-pulse { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .animate-ping, .animate-pulse { animation: none !important; }
}

/* ── 8. YouTube banner fills the hero like object-fit: cover ───────────────
   Hero is 16:9 on phones and 21:8 from 640px; a 16:9 video must be 148% of a
   21:8 box's height to cover it without letterboxing. */
.hero-youtube { width: 100%; height: 100%; }
@media (min-width: 640px) { .hero-youtube { height: 148%; } }

/* ── 9. Banner frames on browsers without aspect-ratio (iOS < 15) ──────────
   Their slides are absolutely placed, so without aspect-ratio the frame had
   no height of its own. Padding in % of the width gives the same shape. */
@supports not (aspect-ratio: 1 / 1) {
  .ratio-frame-21x8, .ratio-frame-1920x560, .ratio-frame-group { height: 0; }
  .ratio-frame-21x8 { padding-top: 38.1%; }
  .ratio-frame-1920x560 { padding-top: 29.17%; }
  .ratio-frame-group { padding-top: 56.25%; }
  @media (min-width: 640px) { .ratio-frame-group { padding-top: 38.1%; } }
}
