/* ============================================================
   MAWNI - Luxury Wellness Juice Design System
   Palette locked to Main.JPEG brand reference
   ============================================================ */
:root {
  /* Brand base */
  --blush: #F9E9E4;
  --blush-deep: #F3D9D3;
  --peach: #FBEAD9;
  --powder: #DCEBF5;
  --lavender: #EDE7F3;
  --cream: #FBF3E6;
  --ivory: #FDF8F0;
  --charcoal: #4A4238;
  --gray: #7A7166;

  /* Luxury accent */
  --gold: #C9A227;
  --gold-deep: #B8860B;
  --gold-soft: #E3C878;

  /* Flavor accents */
  --kiwi: #7CB342;
  --strawberry: #E8638C;
  --mango: #F59E3C;
  --pineapple: #E4C11E;
  --coconut: #3E8E5A;
  --grape: #9B7EC8;

  /* Gradients */
  --hero-grad: linear-gradient(135deg, #F9E9E4 0%, #FBEAD9 38%, #F6EFE6 62%, #DCEBF5 100%);
  --word-grad: linear-gradient(100deg, #E88CA0 0%, #F5B98A 30%, #E4C11E 55%, #7CB342 78%, #6BA8D8 100%);
  --gold-grad: linear-gradient(135deg, #D9B44A 0%, #C9A227 45%, #A87F16 100%);

  /* Type */
  --font-serif: 'Playfair Display', 'Didot', 'Bodoni MT', Georgia, serif;
  --font-sans: 'Jost', 'Avenir Next', 'Segoe UI', sans-serif;
  --font-script: 'Pinyon Script', 'Snell Roundhand', cursive;

  --shadow-soft: 0 12px 40px rgba(90, 62, 40, 0.10);
  --shadow-lift: 0 22px 60px rgba(90, 62, 40, 0.16);
  --radius: 22px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--gold-soft); color: #fff; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 64px);
  transition: background .45s ease, box-shadow .45s ease, padding .45s ease;
}
.nav.scrolled {
  background: rgba(253, 248, 240, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 4px 30px rgba(90, 62, 40, 0.08);
  padding: 12px clamp(20px, 5vw, 64px);
}
.nav__brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.45rem; font-weight: 700; letter-spacing: 0.22em;
}
.nav__brand img { height: 34px; width: auto; }
.nav__links { display: flex; gap: clamp(14px, 2.6vw, 38px); align-items: center; }
.nav__links a {
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 500; color: var(--charcoal);
  position: relative; padding: 6px 0; transition: color .3s;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1.5px; background: var(--gold);
  transition: width .35s ease;
}
.nav__links a:hover { color: var(--gold-deep); }
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }
.nav__links a.active { color: var(--gold-deep); }
.nav__cta {
  background: var(--gold-grad); color: #fff !important;
  padding: 11px 26px !important; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(201, 162, 39, 0.35);
  transition: transform .3s ease, box-shadow .3s ease;
}
.nav__cta::after { display: none; }
.nav__cta:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(201, 162, 39, 0.45); }

/* Cart badge in the nav CTA */
.cart-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; margin-left: 10px; padding: 0 7px;
  background: #fff; color: var(--gold-deep); border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0; line-height: 1;
  box-shadow: 0 2px 8px rgba(74, 62, 40, 0.25);
  transform: scale(1); transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.nav__cta.has-items .cart-count { animation: cartPop .35s cubic-bezier(.34,1.56,.64,1); }
@keyframes cartPop {
  0% { transform: scale(.6); } 55% { transform: scale(1.25); } 100% { transform: scale(1); }
}

/* Add-to-cart button states */
.js-add-to-cart { cursor: pointer; font-family: inherit; }
.js-add-to-cart.is-added { filter: saturate(.35) brightness(.94); }
.js-add-to-cart.is-added .btn-label::after { content: ''; }
.more--btn { background: none; border: none; cursor: pointer; font-family: inherit; }

/* Cart toast */
.cart-toast {
  position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 20px);
  background: var(--charcoal); color: var(--ivory);
  padding: 14px 26px; border-radius: 999px;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  box-shadow: 0 14px 40px rgba(58, 51, 43, .35);
  opacity: 0; pointer-events: none; transition: opacity .35s ease, transform .35s ease;
  z-index: 3000; white-space: nowrap;
}
.cart-toast.show { opacity: 1; transform: translate(-50%, 0); }
.cart-toast strong { color: var(--gold-soft); font-weight: 700; }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__burger span { width: 24px; height: 2px; background: var(--charcoal); border-radius: 2px; transition: .3s; }

/* Mobile nav */
@media (max-width: 860px) {
  .nav__links {
    position: fixed; top: 0; right: -100%; height: 100vh; width: min(78vw, 340px);
    background: rgba(253, 248, 240, 0.97);
    backdrop-filter: blur(22px);
    flex-direction: column; justify-content: center; gap: 28px;
    transition: right .45s cubic-bezier(.77,0,.18,1);
    box-shadow: -20px 0 60px rgba(90, 62, 40, 0.15);
    z-index: 1100;
  }
  .nav__links.open { right: 0; }
  .nav__burger { display: flex; z-index: 1200; }
}

/* ---------- Shared sections ---------- */
.section { padding: clamp(70px, 10vw, 130px) clamp(20px, 6vw, 80px); position: relative; }
.section--cream { background: var(--cream); }
.section--blush { background: var(--blush); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 600; margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: var(--gold); }

.h1, .h2, .h3 { font-family: var(--font-serif); font-weight: 700; line-height: 1.12; }
.h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
.h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }

.grad-text {
  background: var(--word-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.gold-text { color: var(--gold-deep); }
.script { font-family: var(--font-script); color: var(--strawberry); font-size: 1.4em; font-weight: 400; }
.lead { font-size: clamp(1rem, 1.6vw, 1.18rem); line-height: 1.85; color: var(--gray); max-width: 62ch; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600;
  padding: 16px 36px; border-radius: 999px; border: none; cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease, background .3s;
}
.btn--gold { background: var(--gold-grad); color: #fff; box-shadow: 0 8px 24px rgba(201, 162, 39, 0.35); }
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(201, 162, 39, 0.45); }
.btn--ghost { background: transparent; color: var(--charcoal); border: 1.5px solid var(--charcoal); }
.btn--ghost:hover { background: var(--charcoal); color: var(--ivory); transform: translateY(-3px); }

/* Cards */
.card {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 162, 39, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform .4s ease, box-shadow .4s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }

/* Gold hairline divider */
.rule {
  width: 64px; height: 2px; margin: 26px 0;
  background: var(--gold-grad); border-radius: 2px;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s ease, transform .8s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: none; }
/* No-JS / observer-failure fallback: everything becomes visible shortly
   after load even if main.js never runs. */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
html:not(.js) .reveal { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; } .reveal.d4 { transition-delay: .4s; }

/* ---------- Footer ---------- */
.footer {
  background: linear-gradient(180deg, #4A4238 0%, #3A332B 100%);
  color: var(--cream); padding: clamp(56px, 8vw, 96px) clamp(24px, 6vw, 80px) 36px;
}
.footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px;
  max-width: 1240px; margin: 0 auto;
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 {
  font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 20px;
}
.footer a { color: #CBBFB0; font-size: 0.92rem; line-height: 2.2; transition: color .3s; display: block; }
.footer a:hover { color: var(--gold-soft); }
.footer__tag { font-family: var(--font-script); font-size: 1.9rem; color: #E8B4C0; margin: 14px 0 22px; }
.footer__word {
  font-family: var(--font-serif); font-size: 2rem; letter-spacing: 0.24em; font-weight: 700;
  background: var(--word-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer__social { display: flex; gap: 14px; margin-top: 18px; }
.footer__social a {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, 0.5);
  display: flex; align-items: center; justify-content: center;
  transition: background .3s, transform .3s;
}
.footer__social a:hover { background: var(--gold); transform: translateY(-3px); }
.footer__social svg { width: 17px; height: 17px; fill: var(--gold-soft); }
.footer__social a:hover svg { fill: #fff; }
.footer__bottom {
  max-width: 1240px; margin: 48px auto 0; padding-top: 26px;
  border-top: 1px solid rgba(251, 243, 230, 0.14);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.78rem; color: #9E9284; letter-spacing: 0.08em;
}
.footer__motto { color: var(--gold-soft); }

/* Trust bar motif */
.trustbar {
  display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap;
  font-size: 0.74rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 600; padding: 22px 16px;
  background: rgba(201, 162, 39, 0.07);
  border-top: 1px solid rgba(201, 162, 39, 0.22);
  border-bottom: 1px solid rgba(201, 162, 39, 0.22);
}
.trustbar .hrt { color: var(--strawberry); font-size: 0.9rem; }

/* ---------- Marquee ribbon ---------- */
.marquee {
  background: var(--gold-grad); color: #fff; overflow: hidden; white-space: nowrap;
  padding: 14px 0; font-size: .74rem; letter-spacing: .34em; text-transform: uppercase; font-weight: 600;
}
.marquee__track { display: inline-block; animation: mq 30s linear infinite; }
.marquee__track span { margin: 0 34px; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* Floating decorative blobs */
.blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5;
  pointer-events: none; z-index: 0;
}