/* =========================================================
   BYC — Beat Your Cravings
   Static landing page stylesheet
   ========================================================= */

:root {
  /* Brand colors — pulled from BYC label system */
  --byc-red:       #E63946;
  --byc-red-dark:  #B0202B;
  --byc-orange:    #F58C1F;
  --byc-yellow:    #FBB030;
  --byc-navy:      #0F2749;
  --byc-green:     #7DB93F;
  --byc-black:     #1A1A1A;

  /* Neutrals */
  --bg:            #FDF8F0;   /* warm cream base */
  --bg-alt:        #FFFFFF;
  --ink:           #1F1D1B;
  --ink-soft:      #5A544E;
  --line:          #EBE3D2;
  --line-strong:   #D9CFB8;

  /* WhatsApp */
  --wa:            #25D366;
  --wa-dark:       #128C7E;

  /* Type */
  --f-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-serif: 'Playfair Display', Georgia, serif;

  /* Layout */
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 14px rgba(20, 14, 4, 0.06);
  --shadow-md: 0 12px 28px rgba(20, 14, 4, 0.10);
  --shadow-lg: 0 30px 60px rgba(20, 14, 4, 0.16);
  --container: 1200px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- TYPE PRIMITIVES ---------- */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--byc-red);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.section-title em { font-style: italic; color: var(--byc-red); font-weight: 400; }
.section-sub { color: var(--ink-soft); font-size: 16px; margin: 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
  background: transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--byc-red);
  color: #fff;
  box-shadow: 0 8px 20px rgba(230,57,70,0.28);
}
.btn-primary:hover { background: var(--byc-red-dark); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(230,57,70,0.38); }
.btn-ghost {
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--byc-red); color: var(--byc-red); }
.btn-whatsapp {
  background: var(--wa);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37,211,102,0.28);
}
.btn-whatsapp:hover { background: var(--wa-dark); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(253, 248, 240, 0.9);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 4px 20px rgba(20,14,4,0.05);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
}
.brand-logo {
  height: 68px;
  width: auto;
  display: block;
}
.brand-mark {
  font-family: var(--f-sans);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--byc-black);
  line-height: 1;
}
.brand-mark.small { font-size: 22px; }
.brand-bolt {
  background: linear-gradient(120deg, var(--byc-yellow) 0%, var(--byc-orange) 55%, var(--byc-red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: skewX(-8deg);
  display: inline-block;
}
.brand-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.brand-tag em { color: var(--byc-red); font-style: normal; }
.nav {
  display: flex; gap: 30px;
}
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s;
}
.nav a:hover { color: var(--byc-red); }

@media (max-width: 780px) {
  .nav, .brand-tag { display: none; }
}

/* ---------- HERO ---------- */
.hero {
  padding: 60px 0 80px;
  background:
    radial-gradient(1200px 700px at 90% 10%, rgba(251,176,48,0.15), transparent 60%),
    radial-gradient(900px 600px at 5% 90%, rgba(230,57,70,0.10), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-title {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: clamp(38px, 5.5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.hero-title-em {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--byc-red);
}
.hero-sub {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 0 28px;
}
.hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 30px;
}
.hero-usps {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 22px;
  font-size: 14px; color: var(--ink);
}
.hero-usps li { font-weight: 500; }

.hero-visual {
  position: relative;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 4% 4% 4%;
  background: radial-gradient(closest-side, rgba(230,57,70,0.18), transparent 70%);
  filter: blur(30px);
  z-index: 0;
}
.hero-visual img {
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.5deg);
  transition: transform 0.4s ease;
}
.hero-visual img:hover { transform: rotate(0deg) scale(1.02); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 40px 0 60px; }
}

/* ---------- PRODUCTS ---------- */
.products { padding: 90px 0; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 26px;
}

.product-card {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  display: flex; flex-direction: column;
}
.product-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: var(--card-accent, var(--byc-red));
  z-index: 2;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg);
}
.product-media-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.4s ease;
}
.product-media-img.is-primary { opacity: 1; }
.product-media-img.is-secondary { opacity: 0; }
.product-card:hover .product-media-img.is-primary { opacity: 0; }
.product-card:hover .product-media-img.is-secondary { opacity: 1; }
.product-card:hover .product-media-img {
  transform: scale(1.06);
}
.product-media::after {
  content: "Tap to order";
  position: absolute;
  bottom: 14px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--byc-black);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 8px 16px;
  border-radius: 999px;
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}
.product-card:hover .product-media::after {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.product-info {
  padding: 22px 22px 24px;
  flex: 1;
  display: flex; flex-direction: column;
}
.product-flavor {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--card-accent, var(--byc-red));
  margin-bottom: 8px;
}
.product-title {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 6px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.product-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 18px;
  flex: 1;
}
.product-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
}
.product-price {
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}
.product-price .weight {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-left: 6px;
}
.product-price .price-original {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: line-through;
  margin-right: 6px;
}
.product-price .price-discounted {
  color: var(--byc-red);
}
.product-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--byc-red);
  display: inline-flex; align-items: center; gap: 4px;
}
.product-cta::after { content: "→"; transition: transform 0.2s; }
.product-card:hover .product-cta::after { transform: translateX(4px); }

/* Hamper card gets a badge */
.product-card.hamper .product-media::before {
  content: "Best Value";
  position: absolute;
  top: 14px; right: 14px; z-index: 3;
  background: var(--byc-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

/* ---------- WHY BYC ---------- */
.why {
  position: relative;
  padding: 90px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.why::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../images/hero-lineup.jpg') center/cover no-repeat;
  filter: blur(10px);
  transform: scale(1.1);
  opacity: 0.08;
  z-index: 0;
}
.why .container {
  position: relative;
  z-index: 1;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.why-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.why-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--byc-orange);
}
.why-icon svg {
  width: 28px;
  height: 28px;
}
.why-card h3 {
  font-family: var(--f-serif);
  font-size: 20px;
  margin: 0 0 8px;
}
.why-card p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- STORY ---------- */
.story { padding: 100px 0; }
.story-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.story-visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.story-copy p {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.story-copy strong { color: var(--ink); font-weight: 600; }
.story-copy .btn { margin-top: 12px; }

@media (max-width: 900px) {
  .story-inner { grid-template-columns: 1fr; }
}

/* ---------- REVIEWS ---------- */
.reviews {
  padding: 90px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.review-carousel {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}
.review-track {
  position: relative;
  min-height: 260px;
}
.review-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.review-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.review-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.review-stars {
  color: var(--byc-orange);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.review-message {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink);
  max-width: 560px;
  margin: 0 0 20px;
}
.review-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.review-city {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.review-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 32px;
}
.review-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--line-strong);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.review-dot:hover { background: var(--byc-orange); }
.review-dot.active {
  background: var(--byc-red);
  transform: scale(1.3);
}

@media (max-width: 600px) {
  .review-track { min-height: 320px; }
  .review-message { font-size: 17px; }
}

/* ---------- CTA STRIP ---------- */
.cta-strip {
  padding: 60px 0;
  background: var(--byc-black);
  color: #fff;
}
.cta-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-strip h2 {
  font-family: var(--f-serif);
  font-size: 32px;
  margin: 0 0 6px;
}
.cta-strip p {
  color: rgba(255,255,255,0.65);
  margin: 0;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--bg);
  color: var(--ink-soft);
  padding: 40px 0 30px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1.5fr;
  gap: 30px;
  align-items: start;
}
.footer-logo {
  height: 48px;
}
.footer-brand p {
  font-size: 13px;
  margin: 10px 0 0;
  max-width: 280px;
}
.footer-links {
  display: flex; flex-wrap: wrap; gap: 18px;
  align-items: center;
}
.footer-links a {
  font-size: 14px;
  color: var(--ink-soft);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--byc-red); }
.footer-meta { text-align: right; font-size: 13px; }
.footer-meta p { margin: 0 0 4px; }
.footer-meta .small { font-size: 12px; color: var(--ink-soft); opacity: 0.7; }

@media (max-width: 780px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-logo { margin: 0 auto; }
  .footer-brand p { margin: 10px auto 0; }
  .footer-links { justify-content: center; }
  .footer-meta { text-align: center; }
}

/* ---------- MODAL ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: modal-in 0.25s ease;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(20, 14, 4, 0.55);
  backdrop-filter: blur(4px);
}
.modal-card {
  position: relative;
  background: var(--bg);
  border-radius: var(--radius);
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: card-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.modal-close {
  position: absolute;
  top: 12px; right: 14px;
  background: rgba(255,255,255,0.9);
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
  z-index: 3;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s;
}
.modal-close:hover { background: #fff; }
.modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.modal-visual {
  min-width: 0;
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
}
.modal-visual #modalImage {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.modal-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px;
  flex-wrap: wrap;
}
.modal-thumbs[hidden] { display: none; }
.modal-thumb {
  width: 56px; height: 56px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
}
.modal-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.modal-thumb:hover { opacity: 0.85; }
.modal-thumb.active {
  opacity: 1;
  border-color: var(--card-accent, var(--byc-red));
}
.modal-copy {
  min-width: 0;
  padding: 34px 32px;
  display: flex; flex-direction: column;
}
.modal-copy h3 {
  font-family: var(--f-serif);
  font-size: 28px;
  margin: 0 0 8px;
}
.modal-copy p { color: var(--ink-soft); margin: 0 0 14px; font-size: 15px; }
.modal-meta {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.modal-meta .dot { margin: 0 6px; }

.qty-block {
  margin-bottom: 20px;
}
.qty-block label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-alt);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 4px 8px;
}
.qty-btn {
  background: transparent;
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  transition: background 0.15s;
}
.qty-btn:hover { background: var(--line); }
#qtyValue {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
}

.modal-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-top: 1px dashed var(--line-strong);
  border-bottom: 1px dashed var(--line-strong);
  margin-bottom: 20px;
}
.modal-total span { color: var(--ink-soft); font-size: 14px; }
.modal-total strong {
  font-family: var(--f-serif);
  font-size: 24px;
}
.modal-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
}

@media (max-width: 700px) {
  .modal-body { grid-template-columns: 1fr; }
  .modal-visual #modalImage { aspect-ratio: 16 / 10; }
  .modal-copy { padding: 24px; }
}

@keyframes modal-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes card-in {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
