/* ============================================================
   GRABBLY — Stylesheet v2
   ============================================================ */

/* ----- RESET ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1C1C1C;
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { border: none; cursor: pointer; font-family: inherit; background: none; }
input { font-family: inherit; }

/* ----- VARIABLES ----- */
:root {
  --black: #111111;
  --white: #FFFFFF;
  --text: #1C1C1C;
  --text-muted: #6B6B6B;
  --border: #EBEBEB;
  --radius-card: 20px;
  --radius-btn: 50px;
  --shadow: 0 2px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 16px 48px rgba(0,0,0,0.16);
}

/* Variant: brekkie — bright morning yellow */
body.brekkie {
  --hero-bg:    #FFDE45;
  --hero-text:  #111111;
  --hero-muted: rgba(17,17,17,0.6);
  --btn-hero-bg: #111111;
  --btn-hero-text: #FFFFFF;
}
/* Variant: snack — bold hungry orange */
body.snack {
  --hero-bg:    #FF5500;
  --hero-text:  #FFFFFF;
  --hero-muted: rgba(255,255,255,0.72);
  --btn-hero-bg: #FFFFFF;
  --btn-hero-text: #111111;
}
/* Variant: indulge — deep chocolate */
body.indulge {
  --hero-bg:    #1C0B00;
  --hero-text:  #FEF3C7;
  --hero-muted: rgba(254,243,199,0.65);
  --btn-hero-bg: #FEF3C7;
  --btn-hero-text: #1C0B00;
}


/* ----- TYPOGRAPHY ----- */
h1 {
  font-size: clamp(44px, 7.5vw, 88px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -3px;
}
h2 {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.5px;
}
h3 { font-size: clamp(18px, 2vw, 22px); font-weight: 700; line-height: 1.25; }
p  { font-size: 16px; line-height: 1.65; }
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}


/* ----- LAYOUT ----- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }


/* ----- BUTTONS ----- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--black); color: var(--white);
  font-size: 15px; font-weight: 700; letter-spacing: 0.2px;
  padding: 16px 32px; border-radius: var(--radius-btn);
  transition: opacity 0.2s, transform 0.2s;
  cursor: pointer; white-space: nowrap;
}
.btn-primary:hover  { opacity: 0.82; transform: translateY(-2px); }
.btn-primary:active { opacity: 1;    transform: translateY(0); }

.btn-hero {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--btn-hero-bg); color: var(--btn-hero-text);
  font-size: 16px; font-weight: 700;
  padding: 18px 36px; border-radius: var(--radius-btn);
  transition: opacity 0.2s, transform 0.2s;
  cursor: pointer; white-space: nowrap;
}
.btn-hero:hover { opacity: 0.88; transform: translateY(-2px); }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--black);
  border: 2px solid var(--black);
  font-size: 14px; font-weight: 700;
  padding: 11px 22px; border-radius: var(--radius-btn);
  transition: background 0.2s, color 0.2s, transform 0.2s;
  cursor: pointer; white-space: nowrap;
}
.btn-outline:hover { background: var(--black); color: var(--white); transform: translateY(-2px); }


/* ----- NAV ----- */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img { height: 56px; width: auto; }


/* ----- MARQUEE ----- */
.marquee {
  background: var(--black);
  color: var(--white);
  padding: 13px 0;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
}
.marquee-track {
  display: inline-flex;
  animation: marquee-scroll 24s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0 20px;
}
.marquee-sep { color: rgba(255,255,255,0.35); padding: 0 4px; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ----- HERO ----- */
.hero {
  background: var(--hero-bg);
  padding: 80px 0 140px;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 40px; align-items: center;
}
.hero-text {
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 28px;
}
.hero-text h1 { color: var(--hero-text); }
.hero-sub {
  font-size: 19px; line-height: 1.6;
  color: var(--hero-muted); max-width: 36ch;
}
.hero-images {
  display: flex; align-items: flex-end;
  justify-content: center; gap: 12px;
}
.hero-images img {
  width: 32%; border-radius: 20px;
  transition: transform 0.4s ease;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
  flex-shrink: 0;
}
.hero-images img.center {
  width: 32%; transform: translateY(-20px);
}
.hero-images img:hover { transform: translateY(-12px) scale(1.03); }
.hero-images img.center:hover { transform: translateY(-32px) scale(1.03); }

/* Single hero image (transparent PNG spanning full column) */
.hero-images--single {
  display: flex; align-items: center; justify-content: center;
}
.hero-images--single img {
  width: 100%; max-width: 620px;
  border-radius: 0;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.18));
  transform: none;
}
.hero-images--single img:hover { transform: translateY(-10px) scale(1.08); }

/* Wave divider */
.hero-wave {
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  line-height: 0;
}
.hero-wave svg { display: block; width: 100%; }


/* ----- SCROLL ANIMATIONS ----- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }


/* ----- PRODUCTS ----- */
.products { padding: 104px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { margin-bottom: 10px; }
.section-header p { color: var(--text-muted); font-size: 18px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

/* ----- FLIP CARD ----- */
.product-card {
  perspective: 1200px;
  cursor: pointer;
  height: 560px;
}
.card-inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .card-inner,
.product-card.flipped .card-inner {
  transform: rotateY(180deg);
}
.card-face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-card);
  overflow: hidden;
}

/* Front */
.card-front {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card-front-img {
  flex: 0 0 260px;
  background: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; overflow: hidden;
}
.card-front-img img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform 0.4s ease;
}
.product-card:hover .card-front-img img { transform: scale(1.06); }
.card-front-body {
  padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.product-name { font-size: 18px; font-weight: 800; }
.product-desc { font-size: 14px; color: var(--text-muted); line-height: 1.65; flex: 1; }
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--border); margin-top: 8px;
}
.product-price { font-size: 22px; font-weight: 800; }

/* Back */
.card-back {
  transform: rotateY(180deg);
  display: flex; flex-direction: column;
}
.card-back.flavor-apple    { background: #FFFBEA; }
.card-back.flavor-strawberry { background: #FFF3F6; }
.card-back.flavor-chocolate  { background: #1C0B00; color: #FEF3C7; }

.card-back-img {
  flex: 0 0 58%; overflow: hidden;
}
.card-back-img img { width: 100%; height: 100%; object-fit: cover; }
.card-back-body {
  flex: 1; padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  justify-content: center;
}
.back-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; opacity: 0.55;
}
.back-ingredients {
  font-size: 14px; line-height: 1.7; font-weight: 500;
}
.back-cta-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 4px;
}
.back-price { font-size: 22px; font-weight: 800; }
.card-back.flavor-chocolate .btn-outline {
  border-color: #FEF3C7; color: #FEF3C7;
}
.card-back.flavor-chocolate .btn-outline:hover {
  background: #FEF3C7; color: #1C0B00;
}

/* View product link on back */
.back-pdp-link {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  margin-top: 4px;
  transition: color 0.2s;
}
.back-pdp-link:hover { color: var(--text); }
.flavor-chocolate .back-pdp-link { color: rgba(254,243,199,0.6); }
.flavor-chocolate .back-pdp-link:hover { color: #FEF3C7; }

/* Hint label on front */
.flip-hint {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-muted);
  margin-top: 6px;
}
.flip-hint svg { width: 14px; height: 14px; }


/* ----- BENEFITS ----- */
.benefits {
  background: #F7F7F7;
  padding: 80px 0;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.benefit-item {
  background: var(--white);
  padding: 40px 32px;
  display: flex; flex-direction: column; gap: 12px;
}
.benefit-item:first-child { border-radius: var(--radius-card) 0 0 var(--radius-card); }
.benefit-item:last-child  { border-radius: 0 var(--radius-card) var(--radius-card) 0; }
.benefit-num {
  font-size: 48px; font-weight: 800; line-height: 1;
  color: #EBEBEB;
}
.benefit-label {
  font-size: 15px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.benefit-desc { font-size: 14px; color: var(--text-muted); line-height: 1.65; }


/* ----- WAITLIST ----- */
.waitlist { padding: 104px 0; }
.waitlist-inner {
  max-width: 540px; margin: 0 auto;
  text-align: center;
  display: flex; flex-direction: column; gap: 14px;
}
.waitlist-inner h2 { margin-bottom: 4px; }
.waitlist-inner > p { color: var(--text-muted); font-size: 18px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; gap: 12px; }
.input-wrap  { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.input-field {
  width: 100%; padding: 16px 20px;
  border: 2px solid var(--border); border-radius: 14px;
  font-size: 15px; color: var(--text); background: var(--white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input-field:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(17,17,17,0.07);
}
.input-field.has-error { border-color: #E53E3E; }
.input-field::placeholder { color: #B5B5B5; }
.field-error { font-size: 12px; color: #E53E3E; display: none; padding-left: 4px; }
.field-error.show { display: block; }
.btn-submit {
  width: 100%; padding: 18px;
  font-size: 16px; font-weight: 800;
  background: var(--black); color: var(--white);
  border-radius: var(--radius-btn);
  transition: opacity 0.2s, transform 0.2s;
}
.btn-submit:hover:not(:disabled) { opacity: 0.82; transform: translateY(-2px); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.success-state {
  padding: 32px 0; display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.success-check {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--black); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.success-state h4 { font-size: 22px; font-weight: 800; }
.success-state p { color: var(--text-muted); font-size: 16px; max-width: 28ch; }


/* Brekkie — yellow waitlist */
body.brekkie .waitlist {
  background: #FFDE45;
}
body.brekkie .waitlist-inner h2,
body.brekkie .waitlist-inner p { color: #111111; }
body.brekkie .waitlist-inner > p { color: rgba(17,17,17,0.65); }
body.brekkie .eyebrow { color: rgba(17,17,17,0.5); }

/* Bottom marquee (reuses .marquee styles; add extra top space) */
.bottom-marquee { margin-top: 0; }

/* Section wave separators */
.wave-sep {
  line-height: 0;
  overflow: hidden;
  display: block;
  margin-top: -2px;
  margin-bottom: -2px;
}
.wave-sep svg { display: block; width: 100%; }


/* Cart modal step 2 */
.pin-sorry {
  text-align: center;
  padding: 20px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.pin-icon { font-size: 44px; line-height: 1; }
.pin-sorry h3 { font-size: 26px; letter-spacing: -0.5px; }
.pin-sorry > p { color: var(--text-muted); font-size: 15px; max-width: 30ch; line-height: 1.6; }
.pin-sub { font-size: 14px !important; color: var(--text-muted); }
.pin-sorry .btn-submit { margin-top: 8px; }

/* Product name as link */
a.product-name, a.slide-name {
  display: block;
  color: inherit;
  text-decoration: none;
}
a.product-name:hover, a.slide-name:hover { text-decoration: underline; }
a.slide-name { font-size: 17px; font-weight: 800; line-height: 1.2; }


/* ----- STICKY WHATSAPP BUTTON ----- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float svg { width: 28px; height: 28px; }
.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 28px rgba(37,211,102,0.55);
}


/* ----- FOOTER ----- */
.footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-logo img { height: 36px; }
.footer-right { text-align: right; }
.footer-tagline { font-size: 14px; color: var(--text-muted); font-style: italic; }
.footer-copy { font-size: 12px; color: #CCCCCC; margin-top: 4px; }


/* ----- MODAL ----- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-card {
  background: var(--white); border-radius: 28px;
  padding: 48px 44px; max-width: 440px; width: 100%;
  position: relative;
  transform: translateY(28px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.active .modal-card { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 18px; right: 22px;
  font-size: 28px; color: var(--text-muted); padding: 4px;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--text); }
.modal-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.modal-card h3 { font-size: 30px; font-weight: 800; letter-spacing: -1px; margin-bottom: 8px; }
.modal-card > p { color: var(--text-muted); font-size: 15px; line-height: 1.55; margin-bottom: 6px; }
.modal-price-note {
  font-size: 13px; color: var(--text-muted);
  background: #F5F5F5; padding: 9px 14px; border-radius: 8px;
  margin-bottom: 24px; display: inline-block;
}
.modal-price-note strong { color: var(--text); }


/* ----- MOBILE CAROUSEL ----- */
.mobile-carousel-wrap {
  display: none; /* shown only on mobile via media query */
  position: relative;
  padding-bottom: 8px;
}

.carousel-track {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 16px;
  /* 9% side padding centers first/last slide and shows peek of adjacent */
  padding: 16px 9% 24px;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-slide {
  flex: 0 0 82%;
  scroll-snap-align: center;
  border-radius: 20px;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
  display: flex;
  flex-direction: column;
}

.slide-cup {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #FFFFFF;
  flex-shrink: 0;
}

.slide-cup img {
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.18));
}

.slide-bowl { display: none; } /* bowl image shown only on desktop flip cards */
.slide-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.slide-name {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
}
.slide-ingredients {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}
.slide-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.slide-price {
  font-size: 20px;
  font-weight: 800;
}

/* Chocolate slide — same as other cards (no special dark theme) */

/* Arrow buttons */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, opacity 0.2s, box-shadow 0.15s;
}
.carousel-arrow:hover { transform: translateY(-50%) scale(1.1); box-shadow: 0 4px 14px rgba(0,0,0,0.22); }
.carousel-arrow:active { transform: translateY(-50%) scale(0.96); }
.carousel-arrow svg { width: 18px; height: 18px; stroke: #111; }
.carousel-arrow--prev { left: 6px; }
.carousel-arrow--next { right: 6px; }
.carousel-arrow.hidden { opacity: 0; pointer-events: none; }

/* Dot indicators */
.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px 0 12px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #DDDDDD;
  padding: 0;
  transition: all 0.25s ease;
}
.dot.active {
  background: var(--black);
  width: 24px;
  border-radius: 4px;
}


/* ----- RESPONSIVE ----- */
@media (max-width: 960px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); gap: 2px; }
  .benefit-item:nth-child(1) { border-radius: var(--radius-card) 0 0 0; }
  .benefit-item:nth-child(2) { border-radius: 0 var(--radius-card) 0 0; }
  .benefit-item:nth-child(3) { border-radius: 0 0 0 var(--radius-card); }
  .benefit-item:nth-child(4) { border-radius: 0 0 var(--radius-card) 0; }
}

@media (max-width: 768px) {
  .hero { padding: 52px 0 120px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-images { order: -1; }
  .hero-images img { width: 30%; }
  .hero-images img.center { width: 30%; transform: translateY(-12px); }

  .products { padding: 72px 0; }
  .product-grid { display: none; }
  .mobile-carousel-wrap { display: block; }
  .product-card { height: auto; perspective: none; }
  .card-inner { transform: none !important; height: auto; }
  .card-face { position: static; backface-visibility: visible; -webkit-backface-visibility: visible; transform: none !important; }
  .card-back { display: none; }
  .flip-hint { display: none; }

  .benefits { padding: 60px 0; }
  .benefit-item { padding: 28px 24px; }
  .benefit-num { font-size: 36px; }

  .waitlist { padding: 72px 0; }

  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer-right { text-align: center; }
  .footer-logo img { height: 30px; }

  .modal-card { padding: 36px 24px; }
  .modal-card h3 { font-size: 24px; }
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  h1 { letter-spacing: -2px; }
  h2 { letter-spacing: -1px; }
}

@media (max-width: 480px) {
  .hero-images img:not(.center) { display: none; }
  .hero-images img.center { width: 72%; max-width: 260px; transform: none; }
  .hero-images--single img { display: block !important; width: 90%; max-width: 340px; transform: none; }
  .benefits-grid { grid-template-columns: 1fr; }
  .benefit-item { border-radius: 0 !important; }
  .benefit-item:first-child { border-radius: var(--radius-card) var(--radius-card) 0 0 !important; }
  .benefit-item:last-child  { border-radius: 0 0 var(--radius-card) var(--radius-card) !important; }
}
