/* Fruity Fresh — Home Page Stylesheet */
/* Split from main.css */
/* Last updated: 2026-05-13 */

/* ══════════════════════════════════════════════
   HERO — FULL SCREEN
══════════════════════════════════════════════ */
#hero {
  position: relative;
  width: 100%; height: 100svh; min-height: 700px;
  overflow: hidden;
  display: flex; align-items: center;
}

/* — Background gradient (changes per flavor) */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, #FF8C00, #FFB347, #FF6600);
  transition: background 1.4s ease;
}

/* Condensation drops on hero background */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 2px 4px at 8% 20%, rgba(255,255,255,.28) 0%, transparent 100%),
    radial-gradient(ellipse 1px 3px at 15% 65%, rgba(255,255,255,.18) 0%, transparent 100%),
    radial-gradient(ellipse 2px 5px at 23% 40%, rgba(255,255,255,.22) 0%, transparent 100%),
    radial-gradient(ellipse 1px 2px at 31% 78%, rgba(255,255,255,.15) 0%, transparent 100%),
    radial-gradient(ellipse 2px 4px at 42% 25%, rgba(255,255,255,.20) 0%, transparent 100%),
    radial-gradient(ellipse 1px 3px at 55% 55%, rgba(255,255,255,.18) 0%, transparent 100%),
    radial-gradient(ellipse 2px 5px at 63% 82%, rgba(255,255,255,.25) 0%, transparent 100%),
    radial-gradient(ellipse 1px 2px at 71% 38%, rgba(255,255,255,.16) 0%, transparent 100%),
    radial-gradient(ellipse 2px 4px at 79% 70%, rgba(255,255,255,.20) 0%, transparent 100%),
    radial-gradient(ellipse 1px 3px at 88% 15%, rgba(255,255,255,.18) 0%, transparent 100%),
    radial-gradient(ellipse 2px 4px at 93% 50%, rgba(255,255,255,.22) 0%, transparent 100%),
    radial-gradient(ellipse 1px 2px at 5% 88%, rgba(255,255,255,.14) 0%, transparent 100%);
  animation: condensDrift 12s ease-in-out infinite alternate;
}
@keyframes condensDrift {
  0%   { opacity: 0.4; transform: translateY(0px); }
  50%  { opacity: 0.7; }
  100% { opacity: 0.4; transform: translateY(6px); }
}

/* Noise texture overlay */
.hero-noise {
  position: absolute; inset: 0; z-index: 1;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
}

/* Dark vignette at edges */
.hero-vignette {
  position: absolute; inset: 0; z-index: 2;
  background: radial-gradient(ellipse 85% 75% at 50% 50%, transparent 40%, rgba(14,5,22,.65) 100%);
  pointer-events: none;
}

/* Frosted-glass shimmer at hero bottom (freezer display feel) */
.hero-frost {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.08));
  z-index: 5;
  pointer-events: none;
}

/* Glowing orbs that parallax */
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
  transition: background 1.4s ease;
  pointer-events: none;
  z-index: 1;
}
.orb-a {
  width: 700px; height: 700px; top: -20%; left: -15%; opacity: .55;
  border-radius: 60% 40% 55% 45%;
  filter: blur(60px);
  animation: morphOrb 8s ease-in-out infinite alternate;
}
.orb-b {
  width: 550px; height: 550px; bottom: -25%; right: -15%; opacity: .45;
  border-radius: 45% 55% 40% 60%;
  filter: blur(60px);
}
.orb-c {
  width: 280px; height: 280px; top: 35%; left: 50%; opacity: .25;
  border-radius: 50% 45% 60% 40%;
}
@keyframes morphOrb {
  from { border-radius: 60% 40% 55% 45%; }
  to   { border-radius: 45% 60% 50% 50%; }
}

/* Giant ghost flavor name */
.ghost-name {
  position: absolute; z-index: 3;
  font-family: var(--FD); font-weight: 700;
  font-size: clamp(90px, 16vw, 260px);
  color: rgba(255,255,255,.07);
  white-space: nowrap;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none; user-select: none;
  letter-spacing: -2px;
  transition: opacity .5s ease;
}

/* Ghost name letter cascade */
.ghost-name span {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s ease, transform .4s ease;
}
.ghost-name span.gn-in { opacity: 1; transform: none; }

/* ── Hero grid layout */
.hero-grid {
  position: relative; z-index: 10;
  max-width: 1360px; width: 100%; margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
  padding-top: 78px;
  padding-bottom: 60px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 40px;
  align-items: center;
}

/* — Text column */
.h-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.28);
  color: rgba(255,255,255,.92); font-weight: 600; font-size: 13px;
  padding: 8px 18px; border-radius: 999px; margin-bottom: 28px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0; animation: slideL .7s ease .15s forwards;
  transition: opacity .3s ease;
}
.h-title {
  font-family: var(--FD);
  font-weight: 700;
  font-size: clamp(38px, 5.2vw, 72px);
  line-height: 1.12; color: #fff;
  margin-bottom: 22px;
  text-shadow: 0 4px 30px rgba(0,0,0,.3);
  opacity: 0; animation: slideL .7s ease .3s forwards;
}
.h-title em {
  font-style: normal;
  color: rgba(255,255,255,.82);
  -webkit-text-stroke: 0;
}
.h-sub {
  font-size: clamp(15px, 1.7vw, 17.5px);
  line-height: 1.75; color: rgba(255,255,255,.68);
  max-width: 430px; margin-bottom: 40px; font-weight: 400;
  opacity: 0; animation: slideL .7s ease .45s forwards;
}
.h-btns {
  display: flex; gap: 14px; flex-wrap: wrap;
  opacity: 0; animation: slideL .7s ease .6s forwards;
}

/* — Popsicle column */
.hero-visual {
  display: flex; justify-content: center; align-items: center;
  position: relative;
  min-width: 300px;
  flex: 1;
}
.popsicle-wrap {
  position: relative;
  width: min(400px, 80vw);
  background: rgba(255,255,255,.08);
  border-radius: 28px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18);
  padding: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.25),
              inset 0 1px 0 rgba(255,255,255,.2);
}

/* Rotating rings */
.ring {
  position: absolute; border-radius: 30px;
  border: 1px solid rgba(255,255,255,.12);
  transition: border-color .8s;
}
.ring-1 { inset: -18px; border-radius: 36px; animation: spin1 14s linear infinite; }
.ring-2 { inset: -36px; border-radius: 50px; animation: spin1 22s linear infinite reverse; opacity: .5; }
@keyframes spin1 { to { transform: rotate(360deg); } }

/* Glow beneath */
.pop-glow {
  position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%);
  width: 80%; height: 70px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255,200,100,.5), transparent 70%);
  filter: blur(22px);
  z-index: 0;
  transition: background 1.4s ease;
}

/* The popsicle 3D container */
.pop-3d {
  position: relative; z-index: 2;
  opacity: 1 !important;
  transform-style: preserve-3d;
  transition: transform .14s ease;
  animation: popEntry .9s cubic-bezier(.34,1.56,.64,1) .08s;
}
@keyframes popEntry {
  from { opacity: 0; transform: translateY(-90px) scale(.82) rotateX(-12deg); }
  to   { opacity: 1; transform: none; }
}

.pop-img {
  width: 100%;
  border-radius: 22px;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,.4));
  transition: opacity .45s ease, transform .14s ease;
  display: block;
}
.pop-img.fade-out { opacity: 0; transform: scale(.9) translateY(16px); }

.pop-fallback {
  width: 100%; aspect-ratio: 1;
  display: none; align-items: center; justify-content: center;
  font-size: 110px;
  filter: drop-shadow(0 40px 80px rgba(0,0,0,.55));
}

/* Floating info chip on popsicle */
.pop-chip {
  position: absolute; top: 24px; right: -24px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.32);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-radius: 18px; padding: 14px 18px;
  color: #fff; min-width: 145px;
  opacity: 0; animation: slideR .7s ease .85s forwards;
  z-index: 10;
  transition: all .5s ease;
}
.pop-chip-name {
  font-family: var(--FD); font-size: 19px; font-weight: 700;
  margin-bottom: 3px; white-space: nowrap;
}
.pop-chip-sub { font-size: 12.5px; opacity: .65; }

/* Flavor dots nav */
.fdots {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 9px; z-index: 20;
}
.fdot {
  width: 8px; height: 8px; border-radius: 999px;
  background: rgba(255,255,255,.28);
  border: none; cursor: pointer; padding: 0;
  transition: all .35s ease;
}
.fdot.active { background: #fff; width: 26px; }

/* Scroll cue */
.scroll-cue {
  position: absolute; bottom: 32px; right: clamp(20px,5vw,64px);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(255,255,255,.35); font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; z-index: 20;
  animation: cueFloat 2.2s ease-in-out infinite;
}
.scroll-cue::before {
  content: '';
  display: block; width: 1px; height: 44px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.35));
}
@keyframes cueFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(7px); }
}

/* Hero left/right nav arrows */
.hero-arrow {
  position: absolute; top: 50%; z-index: 20;
  transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.35);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff; font-size: 20px;
  cursor: pointer;
  transition: background .2s, transform .2s;
  display: flex; align-items: center; justify-content: center;
}
.hero-arrow:hover {
  background: rgba(255,255,255,.28);
  transform: translateY(-50%) scale(1.1);
}
.hero-arrow-prev { left: clamp(16px, 3vw, 40px); }
.hero-arrow-next { right: clamp(16px, 3vw, 40px); }
@media (max-width: 800px) { .hero-arrow { display: none; } }

/* Keyframe helpers */
@keyframes slideL {
  from { opacity:0; transform: translateX(-26px); }
  to   { opacity:1; transform: none; }
}
@keyframes slideR {
  from { opacity:0; transform: translateX(26px); }
  to   { opacity:1; transform: none; }
}

/* ── Mobile hero ── */
@media (max-width: 800px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 90px;
    gap: 20px;
  }
  .hero-visual { order: -1; margin-top: 52px; }
  .popsicle-wrap { width: min(220px, 60vw); }
  .h-sub { margin: 0 auto 32px; text-align: center; }
  .h-btns { justify-content: center; margin-bottom: 60px; }
  .h-btns .btn-outline-w { display: none; }
  .pop-chip { display: none; }
  .scroll-cue { display: none; }
  .fdots { bottom: 16px; }
}

/* ══════════════════════════════════════════════
   SECTION: FLAVORS SCROLL
══════════════════════════════════════════════ */
#sec-flavors {
  padding: 110px clamp(20px,5vw,64px) 80px;
  background: linear-gradient(180deg, #fff8fb 0%, #ffffff 100%);
  position: relative;
}
/* Dark-to-white transition from hero */
#sec-flavors::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 90px;
  background: linear-gradient(to bottom, var(--dark), #fff);
}

.sec-head {
  max-width: 1360px; margin: 0 auto 52px;
  padding-top: 20px;
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.sec-lbl {
  font-size: 12px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.sec-title {
  font-family: var(--FD); font-size: clamp(28px,4vw,46px);
  font-weight: 700; color: var(--dark); line-height: 1.15;
  margin-bottom: 8px;
}
.sec-sub {
  font-size: 15.5px; color: #6B4D7A; line-height: 1.65; max-width: 440px;
  margin-top: 10px;
}
.sec-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 700; color: var(--accent);
  border-bottom: 2px solid var(--accent); padding-bottom: 2px;
  white-space: nowrap; align-self: flex-end;
  transition: gap .2s;
}
.sec-link:hover { gap: 12px; }

.fscroll-outer { max-width: 1360px; margin: 0 auto; }
.fscroll {
  display: flex; gap: 20px;
  overflow-x: auto; padding-bottom: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.fscroll::-webkit-scrollbar { display: none; }

.fcard {
  position: relative;
  flex: 0 0 280px; scroll-snap-align: start;
  background: #fff; border-radius: 24px; overflow: hidden;
  box-shadow: 0 6px 28px rgba(45,27,51,.09);
  border: 1.5px solid rgba(255,107,157,.06);
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
}
.fcard::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px; border-radius: 24px 24px 0 0;
  background: var(--accent);
  transition: height .3s ease;
  z-index: 6;
}
.fcard:hover::before { height: 7px; }
.fcard:hover { box-shadow: 0 22px 60px rgba(255,107,157,.2); }

.fcard-img-box {
  position: relative;
  width: 100%; aspect-ratio: 4 / 5; overflow: hidden;
}
.fcard-img-box img { width:100%;height:100%;object-fit:cover; transition:transform .42s ease; }
.fcard:hover .fcard-img-box img { transform: scale(1.07); }
.fcard-ph {
  width:100%;height:100%;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px;
}
.fcard-ph-emoji { font-size: 60px; }
.fcard-ph-label { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.82); }

.fcard-body {
  padding: 16px 18px 20px;
  background: linear-gradient(180deg, #fff 60%, color-mix(in srgb, var(--flavor-c, #FF6B9D) 8%, white) 100%);
}
.fcard-name { font-family: var(--FD); font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 7px; }
.fcard-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.fcard-desc {
  font-size: 12.5px;
  color: #6B4D7A;
  line-height: 1.55;
  margin-top: 8px;
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Flavor card hover pill */
.fcard-pill {
  position: absolute;
  left: 50%; bottom: 14px;
  transform: translate(-50%, calc(100% + 28px));
  background: var(--accent);
  color: #fff;
  font-family: var(--FB); font-weight: 700; font-size: 13px;
  padding: 8px 18px; border-radius: 999px;
  white-space: nowrap; letter-spacing: .3px;
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
  transition: transform .25s ease;
  pointer-events: none;
  z-index: 5;
}
.fcard:hover .fcard-pill { transform: translate(-50%, 0); }

/* Flavor scroll controls + progress bar */
.fscroll-controls {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  align-self: flex-end;
}
.fscroll-arrows { display: flex; gap: 8px; }
.fscroll-arrow {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid rgba(255,107,157,.25);
  background: #fff; color: var(--accent);
  font-size: 22px; font-family: var(--FB); cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center; line-height: 1;
  transition: all .2s;
}
.fscroll-arrow:hover {
  background: var(--accent); color: #fff; border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(255,107,157,.32);
}
.fscroll-progress {
  max-width: 1360px; margin: 0 auto 18px;
  height: 3px; background: rgba(255,107,157,.12);
  border-radius: 2px; overflow: hidden;
}
.fscroll-progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-dk));
  border-radius: 2px;
  transition: width .12s linear;
}
@media (max-width: 800px) {
  .fscroll-arrows, .fscroll-progress { display: none; }
}

/* ══════════════════════════════════════════════
   SECTION: WHY US
══════════════════════════════════════════════ */
#sec-why {
  padding: 60px clamp(20px,5vw,64px) 100px;
  background: #FFF8FB;
}
.why-grid {
  max-width: 1360px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 22px;
}
.why-card {
  background: #fff; border-radius: 26px;
  padding: 36px 24px;
  text-align: center;
  border: 1.5px solid rgba(255,107,157,.07);
  border-top: 4px solid transparent;
  box-shadow: 0 6px 26px rgba(45,27,51,.07);
  transition: transform .3s, box-shadow .3s;
}
.why-card:hover { transform: translateY(-8px); box-shadow: 0 22px 56px rgba(255,107,157,.14); }
.why-ico {
  width: 72px; height: 72px;
  border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px;
  margin: 0 auto 24px auto;
}
.why-card h3 { font-family: var(--FD); font-size: 19px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.why-card p  { font-size: 14.5px; color: #6B4D7A; line-height: 1.72; }

/* Why-Us icon spring pop */
@keyframes iconPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}
.why-card.in .why-ico {
  animation: iconPop .42s cubic-bezier(.34,1.56,.64,1) both;
}
.why-card.rv-d1.in .why-ico { animation-delay: .63s; }
.why-card.rv-d2.in .why-ico { animation-delay: .72s; }
.why-card.rv-d3.in .why-ico { animation-delay: .81s; }
.why-card.rv-d4.in .why-ico { animation-delay: .9s; }

/* ══════════════════════════════════════════════
   SECTION: CTA BANNER
══════════════════════════════════════════════ */
#sec-cta {
  padding: 110px clamp(20px,5vw,64px);
  background: linear-gradient(135deg, #1a0428 0%, #2d0a4e 50%, #1a1040 100%);
  text-align: center; position: relative; overflow: hidden;
}
.cta-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.cta-inner h2 {
  font-family: var(--FD); font-weight: 700;
  font-size: clamp(30px,4.5vw,54px);
  color: #fff; margin-bottom: 20px; line-height: 1.2;
}
.cta-inner p { font-size: 16.5px; color: rgba(255,255,255,.6); line-height: 1.75; margin-bottom: 44px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-addr { margin-top: 28px; font-size: 13px; color: rgba(255,255,255,.28); }

/* Floating popsicle decorations in CTA */
.cta-pops {
  position: absolute; inset: 0;
  pointer-events: none; overflow: hidden;
  z-index: 0;
}
.cta-pop {
  position: absolute;
  width: 170px; border-radius: 20px;
  opacity: .09;
  filter: blur(3px) drop-shadow(0 20px 40px rgba(0,0,0,.4));
}
.cta-pop-left {
  left: -40px; bottom: -20px;
  transform: rotate(-18deg);
  animation: popFloat1 7s ease-in-out infinite;
}
.cta-pop-right {
  right: -30px; top: -10px;
  transform: rotate(15deg);
  animation: popFloat2 8s ease-in-out infinite;
}
@keyframes popFloat1 {
  0%,100% { transform: rotate(-18deg) translateY(0); }
  50%     { transform: rotate(-18deg) translateY(-18px); }
}
@keyframes popFloat2 {
  0%,100% { transform: rotate(15deg) translateY(0); }
  50%     { transform: rotate(15deg) translateY(-14px); }
}
@media (max-width: 680px) { .cta-pops { display: none; } }

/* CTA button refinements (scoped to .cta-inner so hero buttons are unaffected) */
.cta-inner .btn-solid {
  background: linear-gradient(135deg, var(--accent), var(--accent-dk));
  color: #fff;
  font-weight: 700;
}
.cta-inner .btn-outline-w {
  border-color: rgba(255,255,255,.5);
  font-weight: 600;
}

/* CTA drifting blobs */
.cta-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(20px);
  z-index: 0;
  will-change: transform, translate;
  transition: translate .35s ease;
}
.cta-blob-1 {
  width: 700px; height: 500px;
  top: 18%; left: -8%;
  background: radial-gradient(ellipse, rgba(255,107,157,.18), transparent 60%);
  animation: blobDrift1 26s ease-in-out infinite;
}
.cta-blob-2 {
  width: 600px; height: 400px;
  top: 28%; right: -8%;
  background: radial-gradient(ellipse, rgba(78,205,196,.12), transparent 60%);
  animation: blobDrift2 32s ease-in-out infinite;
}
@keyframes blobDrift1 {
  0%,100% { transform: translate(0, 0); }
  33%     { transform: translate(35px, -30px); }
  66%     { transform: translate(-25px, 40px); }
}
@keyframes blobDrift2 {
  0%,100% { transform: translate(0, 0); }
  50%     { transform: translate(-40px, 28px); }
}
