/* ==========================================================================
   Beyond Brew — base styles
   Design tokens, base elements, typography, shared components,
   header and footer. Section-specific styles live in sections.css.
   ========================================================================== */

/* Tokens
   -------------------------------------------------------------------------- */
:root {
  --black: #0A0A0A;
  --gold: #B8923A;
  --gold-light: #D4AF5A;
  --brand-green: #3F7D3A;
  --forest-green: #1E4D2B;
  --cream: #FBE9D7;
  --cream-dark: #F3D9BF;
  --coffee-brown: #4A2A1A;
  --ochre: #7A5A12;
  --white: #FFFFFF;
  --muted: #BDBDBD;
  --card: #141414;

  --line-gold: rgba(184, 146, 58, .35);
  --line-gold-soft: rgba(184, 146, 58, .25);
  --line-dashed: rgba(212, 175, 90, .55);
  --line-white: rgba(255, 255, 255, .1);

  --font-body: 'Barlow', sans-serif;
  --font-display: 'Barlow Condensed', sans-serif;
}

/* Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* keep anchored sections clear of the sticky header */
  scroll-padding-top: 76px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

img { max-width: 100%; height: auto; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: 'Barlow', system-ui, sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
}

a { color: var(--gold-light); text-decoration: none; }
a:hover { color: var(--white); }

h1, h2, h3, p { margin: 0; }

/* Layout
   -------------------------------------------------------------------------- */
/* overflow: clip trims stray horizontal overflow without creating a scroll
   container, so the sticky header (and founder photo) can stick.
   Older browsers fall back to hidden. */
.site-wrap { background: var(--black); overflow: hidden; overflow: clip; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.sec { padding: 120px 0; position: relative; }

/* Centered section heading stack (eyebrow + title) */
.sec-head { display: flex; flex-direction: column; align-items: center; gap: 20px; }

/* Typography
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
}

.h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: .95;
  color: var(--white);
}
.h1 { font-size: clamp(64px, 9vw, 128px); }
.h2 { font-size: clamp(44px, 6vw, 84px); }
.h3 { font-size: clamp(30px, 3.4vw, 44px); }

.em { color: var(--gold-light); }

.lead { font-size: 20px; color: var(--muted); max-width: 520px; }
.lead.lead-wide { max-width: none; }
.lead.lead-intro { font-size: 24px; color: var(--white); font-weight: 400; }
.lead.lead-strong { font-size: 22px; color: var(--white); font-weight: 400; }

.muted { color: var(--muted); }
.center { text-align: center; }
.sr-only { position: absolute; left: -9999px; }

/* Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 34px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--gold); color: var(--black); }
.btn-primary:hover { background: var(--gold-light); color: var(--black); }

.btn-secondary { background: transparent; color: var(--gold-light); }
.btn-secondary:hover { background: var(--gold); color: var(--black); }

.btn-dark { background: var(--black); color: var(--gold-light); border-color: var(--black); }
.btn-dark:hover { background: var(--coffee-brown); color: var(--white); }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.btn-row-center { justify-content: center; }

/* Shared components
   -------------------------------------------------------------------------- */

/* Decorative divider: line — icon — line */
.rule { display: flex; align-items: center; justify-content: center; gap: 20px; color: var(--gold); }
.rule i { display: block; height: 1px; width: min(180px, 28vw); background: var(--gold); opacity: .7; }

/* Image placeholder */
.ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  border: 1px dashed var(--line-dashed);
  border-radius: 24px;
  background: var(--card);
  color: var(--gold-light);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.ph span { font-weight: 300; letter-spacing: .04em; text-transform: none; font-size: 14px; color: var(--muted); }
.ph-cream { background: var(--cream-dark); border-color: var(--coffee-brown); color: var(--coffee-brown); }
.ph-cream span { color: var(--coffee-brown); }

/* Price line */
.price {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.price strong { font-family: var(--font-display); font-weight: 800; font-size: 44px; letter-spacing: 0; color: var(--white); }

/* Certification line: FDA • Halal • Proudly Filipino */
.trustline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.trustline .sep { color: var(--gold); }
.trustline .flag-label { display: inline-flex; align-items: center; gap: 8px; }

/* Star rating row */
.stars { display: flex; justify-content: center; gap: 6px; margin-top: 32px; }

/* Header
   -------------------------------------------------------------------------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, .94);
  border-bottom: 1px solid var(--line-gold);
}
.hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }

.logo {
  display: flex;
  flex-direction: column;
  line-height: .9;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: .02em;
  color: var(--gold);
}
.logo small {
  margin-top: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: .3em;
  color: var(--muted);
}

.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--white);
}
.nav a:hover { color: var(--gold-light); }

.hdr-cta { min-height: 44px; padding: 0 24px; font-size: 13px; }

/* Burger button: three bars that morph into an X while the menu is open */
.burger {
  display: none;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.burger-line {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-light);
  transition: transform .25s ease, opacity .2s ease;
}
.menu-open .burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .burger-line:nth-child(2) { opacity: 0; }
.menu-open .burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu: drops down over the page below the header.
   Visibility (not display) is toggled so the open/close can animate;
   hidden links are also removed from the tab order and screen readers. */
.mmenu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 68px);
  max-height: calc(100dvh - 68px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 24px 28px;
  background: var(--black);
  border-top: 1px solid var(--line-gold);
  border-bottom: 1px solid var(--line-gold);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.menu-open .mmenu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .25s ease, transform .25s ease, visibility 0s;
}
.mmenu-link {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--white);
}
.mmenu-link:hover,
.mmenu-link:focus-visible { color: var(--gold-light); }
.mmenu-cta { margin-top: 24px; }

/* Dimmed page behind the open menu; tapping it closes the menu */
.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, .6);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
.menu-open .menu-backdrop { opacity: 1; visibility: visible; transition: opacity .25s ease, visibility 0s; }

/* Lock page scroll while the menu is open */
html.menu-open { overflow: hidden; }

/* Footer
   -------------------------------------------------------------------------- */
.ftr { background: var(--black); border-top: 1px solid var(--gold); padding: 96px 0 40px; }
.ftr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 48px; }
.ftr h4 {
  margin: 0 0 20px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
}
.ftr ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.ftr ul a { color: var(--white); }
.ftr ul a:hover { color: var(--gold-light); }
.ftr p { font-size: 16px; color: var(--muted); }
.ftr .logo { margin-bottom: 20px; }
.ftr .ftr-tagline { color: var(--white); font-weight: 400; }
.ftr .ftr-about { margin-top: 12px; }
.ftr .ftr-handle { color: var(--white); }

.soc { display: flex; gap: 12px; margin-top: 20px; }
.soc a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gold);
  border-radius: 50%;
}
.soc a:hover { background: var(--gold); }

.copy { margin-top: 72px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; color: var(--muted); }

/* Responsive
   -------------------------------------------------------------------------- */
@media (min-width: 901px) {
  .mmenu, .menu-backdrop { display: none; }
}

@media (min-width: 641px) {
  .mmenu-cta { align-self: flex-start; }
}

@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
  .sec { padding: 80px 0; }
  .nav, .hdr-cta { display: none; }
  .burger { display: flex; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 68px; }
  body { font-size: 17px; }
  .sec { padding: 64px 0; }
  .lead { font-size: 18px; }
  .lead.lead-intro { font-size: 22px; }
  .lead.lead-strong { font-size: 20px; }
  .btn, .btn-row { width: 100%; }
  .hdr-in { min-height: 68px; gap: 16px; }
  .price { flex-wrap: wrap; row-gap: 4px; }
  .price strong { font-size: 40px; }

  /* footer: roomier tap targets, tighter spacing */
  .ftr { padding: 64px 0 32px; }
  .ftr-grid { gap: 40px; }
  .ftr ul { gap: 0; }
  .ftr ul li { padding: 8px 0; }
  .ftr ul a { display: block; margin: -8px 0; padding: 8px 0; }
  .copy { margin-top: 48px; }
}

@media (max-width: 400px) {
  .logo { font-size: 26px; }
  .logo small { letter-spacing: .14em; white-space: nowrap; }
}
