/* =========================================================
   HappieGut — Stylesheet
   Trendy, card-driven design (Swiggy / Zomato / Blinkit style)
   Teal + gold, bold and modern — no vintage/serif styling
   ========================================================= */

:root {
  --teal:        #0E9C8C;
  --teal-dark:   #0A6D62;
  --teal-deep:   #073F39;
  --teal-tint:   #E4F8F4;
  --gold:        #F5A623;
  --gold-dark:   #D6870A;
  --gold-tint:   #FFF3DE;
  --off-white:   #FAFAF7;
  --cream:       #FFFFFF;
  --ink:         #16211E;
  --ink-soft:    #5B6B67;
  --border-soft: rgba(15, 33, 30, 0.08);

  --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 28px;
  --radius-pill: 999px;
  --shadow-card: 0 10px 28px -12px rgba(10, 109, 98, 0.28);
  --shadow-card-lg: 0 18px 40px -16px rgba(10, 109, 98, 0.32);
  --max-width: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--off-white);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--teal-deep);
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; color: var(--ink-soft); }
button { font-family: inherit; cursor: pointer; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--teal-deep); color: var(--off-white);
  padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-title { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-title.center { text-align: center; }
.section-sub {
  color: var(--ink-soft);
  max-width: 520px;
  margin: -0.4em auto 2.2em;
}
.section-sub.center { text-align: center; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 0.8em;
}
.eyebrow-light { color: var(--gold); }

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--gold);
  color: var(--teal-deep);
  box-shadow: 0 10px 22px -8px rgba(245, 166, 35, 0.55);
}
.btn-primary:hover { background: var(--gold-dark); color: #fff; }
.btn-ghost {
  border: 2px solid var(--teal);
  color: var(--teal-dark);
  background: #fff;
}
.btn-ghost:hover { background: var(--teal); color: #fff; }
.btn-buy {
  background: var(--teal-dark);
  color: #fff;
  width: 100%;
  text-align: center;
  padding: 13px 20px;
  box-shadow: 0 10px 20px -10px rgba(10, 109, 98, 0.6);
}
.btn-buy:hover { background: var(--teal-deep); }

/* ---------- Image frame / placeholder system ---------- */
.img-frame {
  position: relative;
  overflow: hidden;
  background: var(--teal-tint);
}
.img-frame img { width: 100%; height: 100%; object-fit: cover; }

.img-frame--empty { display: flex; align-items: center; justify-content: center; }
.img-frame--empty::before {
  content: '\1F33F  ' attr(data-label);
  white-space: pre-wrap;
  text-align: center;
  padding: 18px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal-dark);
  background: linear-gradient(150deg, var(--teal-tint), var(--gold-tint));
  border-radius: inherit;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}

.img-frame--hero { aspect-ratio: 4 / 5; border-radius: var(--radius-l); box-shadow: var(--shadow-card-lg); }
.img-frame--tall { aspect-ratio: 3 / 4; border-radius: var(--radius-m); }
.img-frame--split { position: absolute; inset: 0; border-radius: var(--radius-l); }
.img-frame--video { aspect-ratio: 16 / 9; border-radius: var(--radius-m); }
.img-frame--round { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 14px; }
.img-frame--product { aspect-ratio: 1 / 1; border-radius: var(--radius-m) var(--radius-m) 0 0; }
.img-frame--square { aspect-ratio: 1 / 1; border-radius: var(--radius-m); }

/* Logo fallback text (if the header logo URL fails to load) */
.brand-name-fallback {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--teal-dark);
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 250, 247, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px;
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 42px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.main-nav a:hover { color: var(--teal); }
.nav-cta {
  background: var(--gold); color: var(--teal-deep) !important;
  padding: 10px 24px; border-radius: var(--radius-pill); font-weight: 700 !important;
  box-shadow: 0 8px 18px -8px rgba(245, 166, 35, 0.6);
}
.nav-cta:hover { background: var(--gold-dark) !important; color: #fff !important; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--teal-deep); border-radius: 2px; }

/* =========================================================
   Hero
   ========================================================= */
.hero { background: var(--off-white); padding-top: 48px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px;
  align-items: center; padding-bottom: 56px;
}
.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.06;
}
.hero-lede { max-width: 440px; font-size: 1.05rem; }
.hero-actions { display: flex; gap: 14px; margin-top: 8px; flex-wrap: wrap; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-badge {
  position: absolute; bottom: -16px; left: -16px;
  background: var(--teal-deep); color: #fff;
  border-radius: 50%; width: 104px; height: 104px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 4px solid var(--gold);
  text-align: center;
  box-shadow: var(--shadow-card);
}
.hero-badge-num { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; }
.hero-badge-txt { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.85; }

/* Stats row — bright floating cards, not a solid band */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; padding-bottom: 72px;
}
.stat-card {
  border-radius: var(--radius-m);
  padding: 26px 20px;
  display: flex; flex-direction: column; gap: 4px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease;
}
.stat-card:hover { transform: translateY(-4px); }
.stat-card--teal { background: var(--teal); }
.stat-card--gold { background: var(--gold); }
.stat-card--dark { background: var(--teal-deep); }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: #fff; }
.stat-card--gold .stat-num { color: var(--teal-deep); }
.stat-label { color: rgba(255,255,255,0.9); font-size: 0.82rem; font-weight: 500; }
.stat-card--gold .stat-label { color: var(--teal-deep); opacity: 0.85; }

/* =========================================================
   Intro
   ========================================================= */
.intro { padding: 20px 0 90px; }
.intro-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center;
  margin-bottom: 64px;
}
.intro-copy h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); }

.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.split-card {
  position: relative;
  display: block;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease;
}
.split-card:hover { transform: translateY(-6px); }
.split-card-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px 24px 22px;
  background: linear-gradient(0deg, rgba(7,63,57,0.92) 0%, rgba(7,63,57,0.55) 55%, rgba(7,63,57,0) 100%);
  color: #fff;
}
.split-card-overlay h3 { color: #fff; margin-bottom: 2px; }
.split-card-overlay p { color: rgba(255,255,255,0.85); margin-bottom: 10px; font-size: 0.9rem; }
.split-card-cta {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem; font-weight: 700; color: var(--teal-deep);
  background: var(--gold);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
}

/* =========================================================
   Why HappieGut
   ========================================================= */
.why { padding: 90px 0; background: #fff; }
.fact-strip {
  display: flex; align-items: center; gap: 22px;
  background: var(--teal-deep);
  color: #fff;
  border-radius: var(--radius-l);
  padding: 30px 34px;
  max-width: 760px; margin: 0 auto 40px;
  box-shadow: var(--shadow-card);
}
.fact-icon {
  color: var(--gold); flex-shrink: 0;
  background: rgba(255,255,255,0.1); border-radius: 50%;
  width: 68px; height: 68px; display: flex; align-items: center; justify-content: center;
}
.fact-kicker { font-family: var(--font-display); font-weight: 700; color: var(--gold); margin-bottom: 4px; }
.fact-body { margin: 0; color: rgba(255,255,255,0.9); }

.why-copy { max-width: 720px; margin: 0 auto 48px; text-align: center; }

.compare-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: 980px; margin: 0 auto;
}
.compare-card {
  background: var(--off-white);
  border-radius: var(--radius-m);
  padding: 28px 26px;
}
.compare-card h4 { font-size: 1.05rem; margin-bottom: 14px; }
.compare-card li {
  padding: 8px 0; border-top: 1px solid var(--border-soft);
  color: var(--ink-soft); font-size: 0.9rem;
}
.compare-card li:first-child { border-top: none; }
.compare-card--featured {
  background: var(--teal);
  position: relative;
  box-shadow: var(--shadow-card-lg);
}
.compare-card--featured h4 { color: #fff; }
.compare-card--featured li { color: rgba(255,255,255,0.9); border-top-color: rgba(255,255,255,0.2); }
.compare-tag {
  position: absolute; top: -13px; left: 26px;
  background: var(--gold); color: var(--teal-deep);
  font-family: var(--font-display);
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.03em;
  padding: 5px 14px; border-radius: var(--radius-pill);
}

/* =========================================================
   Science
   ========================================================= */
.science { padding: 90px 0; background: var(--teal-deep); color: #fff; }
.science-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.science h2 { color: #fff; }
.science-copy p { color: rgba(255,255,255,0.82); }
.science-stats { display: flex; gap: 30px; margin-top: 24px; }
.science-stats div { color: rgba(255,255,255,0.82); font-size: 0.85rem; max-width: 150px; }
.science-stats span {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: 2rem; color: var(--gold); margin-bottom: 4px;
}
.play-btn {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px;
  border-radius: 50%; background: var(--gold);
  border: none; color: var(--teal-deep);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.3);
}
.play-btn svg { transform: translateX(2px); }

/* =========================================================
   Horizontal scroll rows (reviews + media) — Swiggy/Zomato style
   ========================================================= */
.scroll-row { position: relative; }
.scroll-track {
  display: flex; gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.scroll-track::-webkit-scrollbar { display: none; }
.carousel-controls {
  display: flex; justify-content: center; gap: 14px; margin-top: 22px;
}
.carousel-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: none; background: #fff;
  color: var(--teal-dark); font-size: 1.3rem; line-height: 1;
  box-shadow: var(--shadow-card);
}
.carousel-btn:hover { background: var(--teal); color: #fff; }

/* ---------- Reviews ---------- */
.reviews { padding: 90px 0; background: var(--teal-tint); }
.review-card {
  scroll-snap-align: start;
  flex: 0 0 300px;
  background: #fff;
  border-radius: var(--radius-m);
  padding: 30px 26px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.review-quote {
  font-family: var(--font-body); font-size: 1rem; font-weight: 500;
  color: var(--ink); line-height: 1.55;
}
.review-name { font-family: var(--font-display); font-weight: 700; color: var(--gold-dark); font-size: 0.88rem; }

/* =========================================================
   Products
   ========================================================= */
.products { padding: 90px 0; background: #fff; }
.product-tabs {
  display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; flex-wrap: wrap;
}
.tab-btn {
  padding: 11px 26px; border-radius: var(--radius-pill); border: none;
  background: var(--off-white); color: var(--teal-dark);
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
}
.tab-btn.active { background: var(--teal); color: #fff; box-shadow: 0 8px 18px -8px rgba(14,156,140,0.6); }

.product-panel { display: none; }
.product-panel.active { display: block; }
.product-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  max-width: 760px; margin: 0 auto;
}
.product-grid--single { grid-template-columns: 1fr; max-width: 400px; }
.product-card {
  background: #fff; border-radius: var(--radius-m);
  overflow: hidden; box-shadow: var(--shadow-card);
  border: 1px solid var(--border-soft);
  padding-bottom: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card-lg); }
.product-card h3 { padding: 18px 20px 0; font-size: 1.1rem; }
.product-card p { padding: 4px 20px 14px; font-size: 0.88rem; }
.product-card .btn-buy { width: calc(100% - 40px); margin: 0 20px; }
.product-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--teal-dark); color: #fff;
  font-family: var(--font-display);
  font-size: 0.68rem; font-weight: 700; padding: 6px 14px; border-radius: var(--radius-pill);
}
.product-tag--gold { background: var(--gold-dark); }
.product-tag--combo { background: var(--gold); color: var(--teal-deep); }

/* =========================================================
   Media
   ========================================================= */
.media { padding: 90px 0; background: var(--off-white); }
.media-card {
  scroll-snap-align: start;
  flex: 0 0 220px;
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease;
}
.media-card:hover { transform: translateY(-4px); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--teal-deep); color: rgba(255,255,255,0.75); padding: 70px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
  padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: #fff; }
.footer-col h3 { color: #fff; font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 14px; }
.footer-col a, .footer-note { display: block; color: rgba(255,255,255,0.75); font-size: 0.9rem; margin-bottom: 10px; }
.footer-col a:hover { color: var(--gold); }
.footer-form { display: flex; gap: 8px; margin-top: 6px; }
.footer-form input {
  flex: 1; padding: 11px 16px; border-radius: var(--radius-pill); border: none;
  background: rgba(255,255,255,0.12); color: #fff; font-family: inherit;
}
.footer-form input::placeholder { color: rgba(255,255,255,0.6); }
.footer-form button {
  padding: 11px 22px; border-radius: var(--radius-pill); border: none;
  background: var(--gold); color: var(--teal-deep); font-family: var(--font-display); font-weight: 700;
}
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 22px 0 26px; font-size: 0.8rem; color: rgba(255,255,255,0.5);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .hero-grid, .intro-grid, .science-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 340px; margin: 0 auto 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .compare-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed; top: 78px; left: 0; right: 0;
    background: var(--off-white);
    flex-direction: column; align-items: flex-start;
    gap: 0; padding: 10px 24px 24px;
    border-bottom: 1px solid var(--border-soft);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 12px 0; width: 100%; border-top: 1px solid var(--border-soft); }
  .main-nav a:first-child { border-top: none; }
  .nav-cta { margin-top: 10px; text-align: center; width: 100%; }
  .nav-toggle { display: flex; }

  .split-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .fact-strip { flex-direction: column; text-align: center; padding: 26px 22px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}