/* Fruity Fresh — Base Stylesheet (shared across all pages) */
/* Split from main.css */
/* Last updated: 2026-05-13 */

/* ══════════════════════════════════════════════
   ROOT VARIABLES
══════════════════════════════════════════════ */
:root {
  --accent:   #FF6B9D;
  --accent-dk:#D94F7E;
  --mint:     #4ECDC4;
  --dark:     #140820;
  --white:    #ffffff;
  --FH: 'Pacifico', cursive;
  --FD: 'Fredoka', sans-serif;
  --FB: 'DM Sans', sans-serif;
}

/* ══════════════════════════════════════════════
   RESET
══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--FB);
  background: var(--dark);
  color: #fff;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ══════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  padding: 0 clamp(20px, 5vw, 64px);
  transition: background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
nav.solid {
  background: rgba(20, 8, 32, .88);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  border-color: rgba(255,107,157,.12);
}
.nav-inner {
  max-width: 1360px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 78px;
}
.nav-brand {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
}
.nav-brand img {
  height: 56px;
  vertical-align: middle;
  filter: drop-shadow(0 4px 12px rgba(255,107,157,.5));
}
.nav-brand span {
  font-family: var(--FD);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .3px;
}
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  padding: 8px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,.65);
  transition: all .2s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-links .nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-dk));
  color: #fff; font-weight: 600;
  box-shadow: 0 6px 20px rgba(255,107,157,.4);
}
.nav-links .nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255,107,157,.55); }

.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: 0; -webkit-appearance: none; appearance: none; }
.burger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }

@media (max-width: 680px) {
  .nav-links {
    display: none; position: fixed; top: 78px; left: 0; right: 0;
    flex-direction: column; padding: 16px 20px 24px;
    background: rgba(14, 5, 22, .97);
    border-bottom: 1px solid rgba(255,107,157,.1);
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .burger { display: flex; }
}

/* ══════════════════════════════════════════════
   SHARED BUTTONS
══════════════════════════════════════════════ */
.btn-solid {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--dark);
  font-family: var(--FB); font-weight: 700; font-size: 15px;
  padding: 14px 30px; border-radius: 999px;
  box-shadow: 0 12px 36px rgba(0,0,0,.35);
  transition: transform .22s, box-shadow .22s;
}
.btn-solid:hover { transform: translateY(-3px); box-shadow: 0 20px 48px rgba(0,0,0,.4), 0 0 24px rgba(255,255,255,.15); }
.btn-outline-w {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid rgba(255,255,255,.38);
  color: #fff; font-family: var(--FB); font-weight: 600; font-size: 15px;
  padding: 12px 28px; border-radius: 999px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: all .22s;
}
.btn-outline-w:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.65); }

/* ══════════════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; }
.rv-d2 { transition-delay: .17s; }
.rv-d3 { transition-delay: .26s; }
.rv-d4 { transition-delay: .35s; }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
footer {
  background: linear-gradient(160deg, #1a0828 0%, #0e0420 100%);
  border-top: 1px solid rgba(255,107,157,.15);
  color: rgba(255,255,255,.45);
  padding: 56px clamp(20px,5vw,64px) 28px;
}
.foot-inner {
  max-width: 1360px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr;
  gap: 40px;
  align-items: flex-start;
  padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: 24px;
}
@media (max-width: 900px) {
  .foot-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .foot-inner { grid-template-columns: 1fr; }
}
.foot-brand img { height: 64px; margin-bottom: 16px; }
.foot-brand p { font-size: 13.5px; line-height: 1.7; max-width: 220px; }
.foot-col h4 { color: rgba(255,255,255,.85); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; }
.foot-col a { display: block; font-size: 14px; margin-bottom: 9px; color: rgba(255,255,255,.45); transition: color .2s; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom { max-width: 1360px; margin: 0 auto; font-size: 13px; text-align: center; }
.foot-credit { display: inline-block; margin-top: 6px; font-size: 11.5px; opacity: .7; }
.foot-credit a { color: var(--accent); transition: color .2s; }
.foot-credit a:hover { color: #fff; }

/* Footer social row */
.foot-social { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.foot-soc-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.6);
  transition: all .2s;
}
.foot-soc-btn:hover {
  background: rgba(255,107,157,.2);
  border-color: rgba(255,107,157,.4);
  color: #fff;
}

/* Footer map column */
.foot-map { min-width: 200px; }
.foot-map-wrap {
  border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  margin-top: 6px;
}

/* Mobile footer centering */
@media (max-width: 680px) {
  footer { padding: 40px 24px 24px; }
  .foot-inner {
    align-items: center;
    text-align: center;
    gap: 32px;
  }
  .foot-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .foot-brand img {
    margin: 0 auto 12px;
  }
  .foot-social {
    justify-content: center;
  }
  .foot-col {
    text-align: center;
    width: 100%;
  }
  .foot-col h4 {
    margin-bottom: 12px;
  }
  .foot-map {
    width: 100%;
  }
  .foot-map-wrap iframe {
    width: 100%;
    height: 160px;
  }
  .foot-bottom {
    text-align: center;
    padding: 0 16px;
  }
}

/* ══════════════════════════════════════════════
   ACTIVE NAV LINK (current-page indicator, all pages)
══════════════════════════════════════════════ */
.nav-links a.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(255,107,157,.35);
}

/* ══════════════════════════════════════════════
   SECONDARY PAGE HERO (About, Flavors, Contact)
══════════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg,#140820 0%,#2d0a4e 100%);
  padding: 120px clamp(20px,5vw,64px) 80px;
  text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content:''; position:absolute; inset:0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 50%,
      rgba(255,107,157,.12),transparent 60%),
    radial-gradient(ellipse 500px 350px at 80% 50%,
      rgba(78,205,196,.08),transparent 60%);
}
.page-hero-inner {
  position:relative; z-index:1;
  max-width:680px; margin:0 auto;
}
.ph-label {
  font-size:12px; font-weight:700; letter-spacing:3px;
  text-transform:uppercase; color:var(--accent); margin-bottom:16px;
}
.ph-title {
  font-family:var(--FD); font-weight:700;
  font-size:clamp(36px,5vw,64px);
  color:#fff; line-height:1.15; margin-bottom:20px;
}
.ph-sub {
  font-size:16px; color:rgba(255,255,255,.65);
  line-height:1.75;
}

/* ══════════════════════════════════════════════
   SHARED FLAVOR TAG PILL (.ftag)
══════════════════════════════════════════════ */
.ftag {
  font-size: 11.5px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px;
  background: linear-gradient(135deg,#FFD6E7,#FFF0F6);
  color: var(--accent-dk);
}

/* ══════════════════════════════════════════════
   PAGE LOADER — "The First Drop" (shared, all pages)
   Markup injected by base.js. Mobile-first.
   FAIL-OPEN: the #ff-loader keyframe auto-dismisses the
   overlay at 2.2s even if JavaScript never runs, so content
   can never be blocked permanently.
══════════════════════════════════════════════ */
#ff-loader {
  position: fixed; inset: 0; z-index: 9999;
  height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 20px;
  background: var(--dark);
  overflow: hidden;
  animation: ff-failsafe 3.5s ease forwards;   /* fail-open without JS — matches the 3500ms JS cap */
}
#ff-loader.ff-hide {
  transform: translateY(-100%);
  opacity: 0;
  transition: transform .6s cubic-bezier(.16,1,.3,1), opacity .6s ease;
}

/* Atmospheric orbs */
.ff-orb { position: absolute; border-radius: 50%; filter: blur(55px); opacity: .5; pointer-events: none; }
.ff-orb-a { width: 240px; height: 240px; background: var(--accent); top: -30px; left: -30px;
  animation: ff-drift 6s ease-in-out infinite alternate; }
.ff-orb-b { display: none; width: 240px; height: 240px; background: var(--mint); bottom: -40px; right: -30px;
  animation: ff-drift 7s ease-in-out infinite alternate-reverse; }

/* Logo + wordmark */
.ff-logo { height: 64px; filter: drop-shadow(0 4px 14px rgba(255,107,157,.5)); }
.ff-word { font-family: var(--FH); font-size: 18px; color: #fff; letter-spacing: .5px; }

/* Popsicle silhouette + rising gradient fill */
.ff-pop { display: flex; flex-direction: column; align-items: center; }
.ff-pop-body {
  position: relative; width: 64px; height: 130px;
  border: 1.5px solid rgba(255,255,255,.18);
  border-radius: 32px 32px 14px 14px;
  background: rgba(255,255,255,.04);
  overflow: hidden;
}
.ff-pop-fill {
  position: absolute; left: 0; right: 0; bottom: 0; height: 0;
  background: linear-gradient(180deg, var(--mint) 0%, var(--accent-dk) 55%, var(--accent) 100%);
  animation: ff-rise .9s cubic-bezier(.4,0,.2,1) forwards;
}
.ff-pop-sweep {
  position: absolute; inset: 0; transform: translateX(-130%);
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%);
  animation: ff-sweep .55s ease .8s forwards;
}
.ff-pop-stick {
  width: 8px; height: 26px; margin-top: -2px;
  background: rgba(255,255,255,.22);
  border-radius: 0 0 4px 4px;
}

@keyframes ff-rise    { to { height: 100%; } }
@keyframes ff-sweep   { to { transform: translateX(130%); } }
@keyframes ff-drift   { to { transform: translate(26px, 18px); } }
@keyframes ff-failsafe { 0%, 90% { opacity: 1; } 100% { opacity: 0; visibility: hidden; pointer-events: none; } }

/* Desktop sizing (existing 800/801 boundary — no new breakpoint) */
@media (min-width: 801px) {
  #ff-loader { gap: 24px; }
  .ff-orb-a { width: 340px; height: 340px; filter: blur(60px); }
  .ff-orb-b { display: block; width: 300px; height: 300px; filter: blur(60px); }
  .ff-logo { height: 88px; }
  .ff-word { font-size: 22px; }
  .ff-pop-body { width: 76px; height: 150px; border-radius: 38px 38px 16px 16px; }
  .ff-pop-stick { width: 9px; height: 30px; }
}

/* Reduced motion: drop all decorative motion + the lift; keep an opacity-only
   fade-out (and the opacity-only fail-safe) so the loader still clears. */
@media (prefers-reduced-motion: reduce) {
  .ff-orb-a, .ff-orb-b { animation: none; }
  .ff-pop-sweep { display: none; }
  .ff-pop-fill { animation: none; height: 100%; }
  #ff-loader.ff-hide { transform: none; transition: opacity .4s ease; }
}
