/* ============================================================
   Marrone Beverages — chocolate cream RTD cocktail
   Palette sampled from the can label:
   tan #B0895E · deep brown #472A00 · cream #F1E7D6 · gold #C9973F
   ============================================================ */

:root {
  --brown-950: #241408;
  --brown-900: #2e1a0a;
  --brown-800: #3b2410;
  --brown-700: #4a2e14;
  --tan: #b0895e;
  --tan-light: #c9a876;
  --cream: #f4ecdd;
  --cream-soft: #ece0ca;
  --paper: #f8f2e7;
  --gold: #c9973f;
  --gold-bright: #dcae55;
  --ink: #33200e;
  --ink-soft: rgba(51, 32, 14, 0.72);
  --line: rgba(51, 32, 14, 0.14);
  --radius: 26px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { overflow-x: clip; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container { width: min(1160px, 92vw); margin-inline: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h1 em, h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: 0.5em; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-sub {
  max-width: 46ch;
  color: var(--ink-soft);
  margin-bottom: 2.2rem;
}

section { padding: clamp(4rem, 9vw, 7.5rem) 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

/* ---------- placeholder flags ---------- */
mark.ph {
  display: inline-block;
  background: rgba(201, 151, 63, 0.16);
  border: 1px dashed rgba(201, 151, 63, 0.75);
  border-radius: 8px;
  color: #8a6420;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.15em 0.6em;
  line-height: 1.45;
}

mark.ph--dark { color: var(--gold-bright); background: rgba(220, 174, 85, 0.12); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.85em 1.9em;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn--solid { background: var(--brown-800); color: var(--cream); }
.btn--solid:hover { background: var(--brown-950); }

.btn--gold { background: var(--gold); color: var(--brown-950); }
.btn--gold:hover { background: var(--gold-bright); }

.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }

.btn--outline-light { border-color: rgba(244, 236, 221, 0.45); color: var(--cream); background: transparent; }
.btn--outline-light:hover { border-color: var(--cream); }

/* ---------- age gate ---------- */
.age-gate {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(36, 20, 8, 0.9);
  backdrop-filter: blur(9px);
  padding: 1.5rem;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.age-gate.is-hidden { opacity: 0; pointer-events: none; }

.age-gate__card {
  background: var(--paper);
  border-radius: var(--radius);
  max-width: 460px;
  padding: 3rem 2.5rem 2.2rem;
  text-align: center;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
}

.age-gate__monogram {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 2.6rem;
  color: var(--cream);
  background: var(--brown-800);
  width: 76px; height: 76px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  margin-bottom: 1.2rem;
}

.age-gate__card h2 { font-size: 1.7rem; margin-bottom: 0.6rem; }
.age-gate__card p { color: var(--ink-soft); margin-bottom: 1.6rem; }
.age-gate__actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.4rem; }
.age-gate__card small { color: var(--ink-soft); font-size: 0.78rem; }

/* ---------- ticker ---------- */
.ticker {
  background: var(--brown-950);
  color: var(--tan-light);
  overflow: hidden;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.55rem 0;
}

.ticker__track {
  display: inline-flex; align-items: center; gap: 2.2rem;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
}

.ticker__track i { color: var(--gold); font-style: normal; }

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 242, 231, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex; align-items: center; gap: 2rem;
  padding: 0.9rem 0;
}

.nav__logo {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 1.7rem;
  color: var(--brown-800);
  text-decoration: none;
  margin-right: auto;
}

.nav__links { display: flex; gap: 1.8rem; }

.nav__links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.nav__links a:hover { color: var(--gold); }

.nav__burger { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__burger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: 0.2s; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 78% 18%, rgba(201, 151, 63, 0.22), transparent 60%),
    linear-gradient(168deg, var(--brown-900) 0%, var(--brown-800) 55%, var(--brown-700) 100%);
  color: var(--cream);
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(6rem, 10vw, 9rem);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  font-weight: 900;
  margin-bottom: 1.2rem;
}

.hero h1 em { color: var(--gold-bright); }

.hero__sub {
  color: rgba(244, 236, 221, 0.82);
  font-size: 1.08rem;
  max-width: 50ch;
  margin-bottom: 2.2rem;
  font-weight: 300;
}

.hero .eyebrow { color: var(--gold-bright); }

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__media { position: relative; }

.hero__glow {
  position: absolute; inset: -12%;
  background: radial-gradient(closest-side, rgba(220, 174, 85, 0.32), transparent 72%);
  filter: blur(8px);
}

.hero__media img {
  position: relative;
  border-radius: var(--radius);
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.5);
  transform: rotate(1.6deg);
  height: auto;
}

.wave { display: block; width: 100%; height: 32px; position: absolute; bottom: -1px; left: 0; }
.wave--hero path { fill: var(--paper); }

/* ---------- stats strip ---------- */
.strip { padding: 2.6rem 0; border-bottom: 1px solid var(--line); }

.strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.strip__item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--brown-800);
}

.strip__item span { color: var(--ink-soft); font-size: 0.88rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- product cards ---------- */
.products__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-top: 2.6rem;
}

.card {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(51, 32, 14, 0.14); }

.card__media { position: relative; aspect-ratio: 4 / 3.4; overflow: hidden; }

.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }

.card__media--caramel {
  background: linear-gradient(160deg, #d8b076 0%, #b98b4e 60%, #93662f 100%);
  display: flex; align-items: center; justify-content: center;
}

.card__media--espresso {
  background: linear-gradient(160deg, #6b4a2c 0%, #4a2e14 60%, #2e1a0a 100%);
  display: flex; align-items: center; justify-content: center;
}

.card__cansil {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 5.5rem;
  color: rgba(244, 236, 221, 0.4);
}

.card__badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(36, 20, 8, 0.82);
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4em 1em;
  border-radius: 999px;
}

.card__badge--gold { background: var(--gold); color: var(--brown-950); }

.card__body { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; gap: 0.55rem; }

.card__body h3 { font-size: 1.35rem; }

.card__notes {
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.card__body > p:not(.card__notes):not(.card__spec) { color: var(--ink-soft); font-size: 0.95rem; }

.card__spec { margin-top: auto; font-weight: 600; font-size: 0.88rem; color: var(--brown-700); }

/* ---------- what's inside ---------- */
.inside {
  margin-top: 4rem;
  background: var(--brown-800);
  color: var(--cream);
  border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 3.2rem);
}

.inside h3 { font-size: 1.5rem; margin-bottom: 1.4rem; }

.inside__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.2rem;
}

.inside__list li {
  border-left: 2px solid var(--gold);
  padding-left: 0.9rem;
}

.inside__list strong { display: block; font-weight: 600; }
.inside__list span { color: rgba(244, 236, 221, 0.6); font-size: 0.85rem; font-style: italic; }

/* ---------- comparison ---------- */
.compare { background: var(--cream-soft); }

.compare__wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: 0 18px 44px rgba(51, 32, 14, 0.1); }

.compare__table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: #fffdf8;
  font-size: 0.97rem;
}

.compare__table th, .compare__table td { padding: 1.05rem 1.4rem; text-align: left; border-bottom: 1px solid var(--line); }

.compare__table thead th {
  font-family: var(--font-display);
  font-size: 1.15rem;
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
}

.compare__table tbody th { font-weight: 600; color: var(--ink); width: 26%; }

.compare__table tbody tr:last-child th,
.compare__table tbody tr:last-child td { border-bottom: 0; }

.compare__table td { color: var(--ink-soft); }

.compare__marrone { background: rgba(201, 151, 63, 0.1); }

td.compare__marrone { color: var(--ink); font-weight: 500; }

.yes, .no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.5em; height: 1.5em;
  border-radius: 50%;
  font-size: 0.8em;
  margin-right: 0.5em;
  font-weight: 700;
}

.yes { background: var(--gold); color: var(--brown-950); }
.no { background: rgba(51, 32, 14, 0.1); color: var(--ink-soft); }

/* ---------- lifestyle bands ---------- */
.band__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.band__grid--flip { grid-template-columns: 1.1fr 0.9fr; }

.band__media img {
  border-radius: var(--radius);
  box-shadow: 0 28px 60px rgba(51, 32, 14, 0.22);
  height: auto;
}

.band__media--label img { box-shadow: 0 24px 56px rgba(51, 32, 14, 0.25); }

.band__media figcaption {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
  text-align: center;
}

.band__copy p { color: var(--ink-soft); margin-bottom: 1.2rem; max-width: 50ch; }

.band__copy .btn { margin-top: 0.6rem; }

/* ---------- reviews carousel ---------- */
.reviews {
  background:
    radial-gradient(900px 420px at 20% 10%, rgba(201, 151, 63, 0.16), transparent 60%),
    var(--brown-900);
  color: var(--cream);
}

.reviews .section-sub { color: rgba(244, 236, 221, 0.65); }

.carousel {
  position: relative;
  max-width: 780px;
  margin: 2.5rem auto 0;
  text-align: center;
}

.carousel__viewport { position: relative; min-height: 240px; }

.carousel__slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.4rem;
  padding: 0 3.4rem;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.carousel__slide.is-active { opacity: 1; transform: none; pointer-events: auto; }

.carousel__slide blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
}

.carousel__slide figcaption {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-weight: 600;
}

.carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 2;
  background: rgba(244, 236, 221, 0.1);
  border: 1px solid rgba(244, 236, 221, 0.25);
  color: var(--cream);
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease;
}

.carousel__arrow:hover { background: rgba(244, 236, 221, 0.22); }
.carousel__arrow--prev { left: -6px; }
.carousel__arrow--next { right: -6px; }

.carousel__dots { display: flex; gap: 0.6rem; justify-content: center; margin-top: 1.8rem; }

.carousel__dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(244, 236, 221, 0.28);
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.carousel__dots button.is-active { background: var(--gold-bright); transform: scale(1.3); }

/* ---------- story ---------- */
.story { background: var(--paper); }

/* ---------- find ---------- */
.find { background: var(--cream-soft); text-align: center; }

.find__inner { max-width: 640px; }
.find .section-sub { margin-inline: auto; }
.find .btn { margin-top: 0.4rem; }

/* ---------- footer ---------- */
.footer {
  background: var(--brown-950);
  color: var(--cream);
  padding: clamp(4rem, 8vw, 6rem) 0 2.4rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(244, 236, 221, 0.14);
}

.footer h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }

.footer__news > p { color: rgba(244, 236, 221, 0.7); margin: 0.6rem 0 1.5rem; }

.news-form { display: flex; gap: 0.7rem; flex-wrap: wrap; max-width: 460px; }

.news-form input {
  flex: 1 1 220px;
  background: rgba(244, 236, 221, 0.08);
  border: 1px solid rgba(244, 236, 221, 0.3);
  border-radius: 999px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.85em 1.4em;
  outline: none;
  transition: border-color 0.18s ease;
}

.news-form input::placeholder { color: rgba(244, 236, 221, 0.45); }
.news-form input:focus { border-color: var(--gold-bright); }

.news-form__note { min-height: 1.4em; margin-top: 0.7rem; font-size: 0.9rem; color: var(--gold-bright); }

.footer__news mark.ph { margin-top: 0.9rem; }

.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

.footer__cols h4 {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer__cols a {
  display: block;
  color: rgba(244, 236, 221, 0.78);
  text-decoration: none;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
}

.footer__cols a:hover { color: var(--cream); }
.footer__cols small { color: rgba(244, 236, 221, 0.4); }

.footer__legal { text-align: center; padding-top: 2.2rem; }

.footer__logo {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 2rem;
  color: var(--tan-light);
  margin-bottom: 0.8rem;
}

.footer__legal p { color: rgba(244, 236, 221, 0.5); font-size: 0.82rem; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 420px; margin-inline: auto; }
  .products__row { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .band__grid, .band__grid--flip { grid-template-columns: 1fr; }
  .band__media { max-width: 460px; margin-inline: auto; }
  .footer__grid { grid-template-columns: 1fr; }
  .strip__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 4vw 1rem;
  }

  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__cta { display: none; }
  .nav__burger { display: block; }

  .carousel__arrow--prev { left: -4px; }
  .carousel__arrow--next { right: -4px; }
  .carousel__slide { padding: 0 2.6rem; }
  .carousel__viewport { min-height: 300px; }
}
