/* ============================================================
   Fizzy Leaf — shared chrome (palette, base, nav, footer)
   Palette: Fizzy-leaf-claude (maroon/gold). Copy + spindrift
   color tokens are aliased to this palette so section markup
   pasted from those sources renders on-palette unchanged.
   Page-specific section CSS lives inline in each page.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;600;700&display=swap');

* { box-sizing: border-box; }

:root {
  /* --- claude palette (canonical) --- */
  --maroon: #9c6f1f;
  --maroon-dark: #5c4420;
  --gold: #9c6f1f;
  --gold-soft: #c9a86b;
  --gold-pale: #f6ecd4;
  --cream: #fffefb;
  --cream-deep: #f7f0e3;
  --ink: #3a3024;

  /* --- aliases for Fizzy-leaf-copy tokens --- */
  --hibiscus: var(--maroon);
  --hibiscus-dark: var(--maroon-dark);
  --leaf: var(--maroon);
  --leaf-dark: var(--maroon-dark);
  --text: var(--ink);
  --text-muted: #6b5544;
  --cream-dark: var(--cream-deep);
  --warm-white: #fffdf8;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 10px;
  --shadow: 0 4px 14px rgba(156, 111, 31, 0.08);
  --shadow-lg: 0 20px 50px rgba(156, 111, 31, 0.18);
  --shadow-md: 0 8px 22px rgba(156, 111, 31, 0.14);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 72px;

  /* --- aliases for Fizzy-leaf-spindrift tokens --- */
  --primary: var(--maroon);
  --primary-hover: var(--maroon-dark);
  --primary-light: var(--gold-pale);
  --text-dark: var(--maroon-dark);
  --bg-card: #fff;
  --border-color: rgba(156, 111, 31, 0.15);
  --font-heading: 'Playfair Display', serif;
}

/* background lives on <html> so page-transition opacity fades only the
   content, never the background color */
html { background: var(--cream); }

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
}

/* page transition: fade only the page content (main + footer) so the
   navbar / floating hamburger stay put during navigation. Slow enough
   that the page change is felt. */
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }
/* quick, smooth fade in; quick fade out before navigating */
main, .site-footer { animation: pageFadeIn 0.4s ease-out both; }
body.is-leaving main,
body.is-leaving .site-footer {
  animation: none;
  opacity: 0;
  transition: opacity 0.22s ease;
}
@media (prefers-reduced-motion: reduce) {
  main, .site-footer { animation: none; }
  body.is-leaving main,
  body.is-leaving .site-footer { transition: none; opacity: 1; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* --- shared typography --- */
h1, h2, h3 { font-family: 'Playfair Display', serif; color: var(--maroon-dark); }
h2 { font-size: 2.7rem; font-weight: 700; margin: 0 0 1rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--maroon);
  margin-bottom: 0.8rem;
  display: block;
}
.lead { font-size: 1.1rem; color: var(--text-muted); max-width: 620px; }

/* --- shared layout helpers --- */
section { padding: 7rem 2rem 5rem; }
.section-inner { max-width: 1180px; margin: 0 auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* --- shared buttons --- */
.btn {
  display: inline-block;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.95rem 2.1rem;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }

/* tactile press feedback on clickable elements */
.btn:active,
.nav-desktop a.nav-cta:active,
.filter-btn:active,
.pack-btn:active,
.purchase-option:active,
.shop-thumb:active,
.location-card:active { transform: scale(0.96); }
.btn-primary, .btn--primary { background: var(--maroon); color: #fff; box-shadow: 0 10px 24px rgba(92, 68, 32, 0.25); }
.btn-primary:hover, .btn--primary:hover { background: var(--maroon-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--maroon); border: 2px solid var(--maroon); }
.btn-outline:hover { background: rgba(156, 111, 31, 0.06); }

/* ============================================================
   NAVBAR — copy desktop bar + spindrift hamburger
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: rgba(253, 251, 246, 0.96);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(156, 111, 31, 0.12);
  z-index: 1000;
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--header-h);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin: 0;
}
.nav-desktop a {
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  transition: color var(--transition);
}
.nav-desktop a:hover, .nav-desktop a.active { color: var(--maroon); }
.nav-desktop a.nav-cta {
  background: var(--maroon);
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-size: 0.88rem;
}
.nav-desktop a.nav-cta:hover { background: var(--maroon-dark); color: #fff; }
.nav-desktop a.nav-cta.active { color: #fff; }

/* hamburger — hidden on desktop/tablet, floating circle on phone only */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1200;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 0 auto;
  background: var(--maroon-dark);
  border-radius: 3px;
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* full-screen overlay menu */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(253, 251, 246, 0.98);
  backdrop-filter: blur(20px);
  z-index: 1150;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }
.nav-overlay a {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--maroon-dark);
  padding: 0.6rem 1.5rem;
  transition: color var(--transition);
}
.nav-overlay a:hover { color: var(--maroon); }
.nav-overlay a.btn { font-family: 'Montserrat', sans-serif; font-size: 1rem; color: #fff; }

/* phone: navbar hidden entirely — only the floating circle hamburger shows */
@media (max-width: 768px) {
  .site-header {
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
    height: 0;
  }
  .header-inner { height: 0; padding: 0; overflow: visible; }
  .nav-desktop { display: none; }
  .menu-toggle {
    display: flex;
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--maroon);
    box-shadow: 0 6px 20px rgba(92, 68, 32, 0.45);
    gap: 6px;
  }
  .menu-toggle span { background: #fff; width: 28px; }
  .menu-toggle.open { background: var(--maroon-dark); }
}

/* ============================================================
   FOOTER — spindrift, lighter + shorter, on claude palette
   ============================================================ */
.site-footer {
  background: var(--maroon-dark);
  color: rgba(255, 254, 251, 0.72);
  padding: 2.5rem 2rem 1.5rem;
  text-align: center;
  border-top: 3px solid var(--maroon);
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 1px solid rgba(255, 254, 251, 0.14);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-heading);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
}
.footer-brand img { height: 32px; }
.footer-links { display: flex; gap: 1.8rem; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: rgba(255, 254, 251, 0.72); transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-bottom { font-size: 0.85rem; }

@media (max-width: 768px) {
  .footer-content { flex-direction: column; gap: 1.2rem; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 1rem; }
}
