/* ===================================================================
   LOLLI — design tokens
   =================================================================== */
:root {
  --cream:       #E7D2BD;   /* page background — matched to hero-bg.png bg */
  --cream-soft:  #EFDDCC;   /* lighter panel            */
  --oxblood:     #3D1119;   /* primary text / buttons   */
  --oxblood-2:   #5A2330;   /* hover / secondary        */
  --muted:       #8A7F72;   /* tracked labels, captions */
  --rule:        #C9BEAD;   /* hairline dividers        */

  --serif: "Fraunces", Georgia, serif;
  --sans:  "Jost", "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(1.25rem, 4vw, 3.5rem);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--oxblood);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* shared label style: tracked uppercase sans */
.nav__link,
.flavor,
.flavors__count,
.hero__sub,
.hero__cta,
.hero__spin,
.gallery__word,
.benefit__title,
.benefit__text,
.footer__input,
.btn {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

a { color: inherit; text-decoration: none; }

/* ===================================================================
   1. NAVIGATION
   =================================================================== */
.nav {
  position: absolute;          /* overlay the hero — one united section, no divider */
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1rem, 2.5vw, 1.75rem) var(--pad);
}

.nav__logo {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.75rem);
}

.nav__link {
  font-size: 0.7rem;
  color: var(--oxblood);
  transition: opacity 0.25s;
}
.nav__link:hover { opacity: 0.55; }

.btn--pill {
  background: var(--oxblood);
  color: var(--cream);
  font-size: 0.68rem;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  transition: background 0.25s, transform 0.25s;
}
.btn--pill:hover { background: var(--oxblood-2); transform: translateY(-1px); }

/* ===================================================================
   2. HERO
   =================================================================== */
.hero {
  position: relative;
  min-height: 100vh;          /* full-screen experience */
}

/* product photo — full-bleed, fills the entire screen */
.hero__stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__product {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* full-bleed background — nav sits on top, one united section */
  object-position: 50% 42%;   /* anchored on the lollipop (50.5% × 44%) so it stays the focus as the photo zooms */
}

/* overlaid content, centred in the first viewport */
.hero__content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr minmax(0, 1fr) 0.9fr;
  align-items: center;
  padding: 0 var(--pad);
}
.hero__copy    { grid-column: 1; }
.hero__flavors { grid-column: 3; }

/* left copy */
.hero__copy { max-width: 34ch; }

.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 7.5vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  white-space: nowrap;       /* keep "grown-ups." on one line */
}

.hero__sub {
  margin-top: 1.8rem;
  font-size: 0.72rem;
  line-height: 2;
  color: var(--oxblood);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  margin-top: 2.5rem;
  font-size: 0.7rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--oxblood);
}
.hero__cta-arrow { transition: transform 0.3s; }
.hero__cta:hover .hero__cta-arrow { transform: translateX(8px); }

/* right flavor selector */
.hero__flavors { justify-self: end; text-align: left; }

.flavors { list-style: none; display: grid; gap: 1.4rem; }

.flavor {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.72rem;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.25s;
}
.flavor__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 1px solid var(--muted);
  transition: background 0.25s, border-color 0.25s;
}
.flavor:hover { color: var(--oxblood-2); }
.flavor.is-active { color: var(--oxblood); }
.flavor.is-active .flavor__dot { background: var(--oxblood); border-color: var(--oxblood); }

.flavors__count {
  margin-top: 2.5rem;
  font-size: 0.72rem;
  color: var(--oxblood);
}

/* ===================================================================
   3. THE COLLECTION  (product variety)
   =================================================================== */
.collection {
  position: relative;
  z-index: 2;
  padding: clamp(3rem, 6vw, 6.5rem) var(--pad) clamp(2.5rem, 5vw, 4.5rem);
  text-align: center;
}
.collection__eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.65rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.collection__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  letter-spacing: -0.01em;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.collection__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.5vw, 2.75rem);
  max-width: 1500px;
  margin: 0 auto;
}
.product {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.45s cubic-bezier(.2,.7,.2,1);
}
.product:hover { transform: translateY(-10px); }
.product__img {
  width: 100%;
  max-width: 330px;
  height: auto;
  object-fit: contain;
}
.product__cap {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 1.6rem;
}
.product__tag {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.6rem;
  color: var(--muted);
}
.product__name {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--oxblood);
}
.product__note {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ===================================================================
   4. BENEFITS ROW
   =================================================================== */
.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--cream-soft);
  padding: clamp(2.5rem, 5vw, 4rem) var(--pad);
}
.benefit {
  text-align: center;
  padding: 0 1.5rem;
  border-left: 1px solid var(--rule);
}
.benefit:first-child { border-left: none; }

.benefit__icon {
  width: 30px; height: 30px;
  margin-bottom: 1.5rem;
  fill: none;
  stroke: var(--oxblood);
  stroke-width: 1.3;
  stroke-linejoin: round;
  stroke-linecap: round;
}
/* the bolt + drop read better filled */
.benefit:nth-child(1) .benefit__icon,
.benefit:nth-child(2) .benefit__icon { fill: var(--oxblood); stroke: none; }

.benefit__title {
  font-size: 0.78rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.benefit__text {
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* ===================================================================
   5. EMAIL CAPTURE / FOOTER
   =================================================================== */
.footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(2.5rem, 5vw, 3.5rem) var(--pad);
}
.footer__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.01em;
}
.footer__form {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--oxblood);
  padding-bottom: 0.6rem;
}
.footer__input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--oxblood);
  font-size: 0.72rem;
}
.footer__input::placeholder { color: var(--muted); }
.footer__submit {
  background: none;
  border: none;
  color: var(--oxblood);
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.3s;
}
.footer__submit:hover { transform: translateX(6px); }

.footer__social { display: flex; gap: 1.5rem; }
.footer__icon svg {
  width: 20px; height: 20px;
  fill: none;
  stroke: var(--oxblood);
  stroke-width: 1.4;
  stroke-linejoin: round;
  stroke-linecap: round;
  transition: opacity 0.25s;
}
.footer__icon:hover svg { opacity: 0.55; }

/* ===================================================================
   POLISH — entrance animations (staggered, reduced-motion safe)
   =================================================================== */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.hero__stage  { animation: fade 1.4s ease both; }
.hero__copy   { animation: rise 0.9s cubic-bezier(.2,.7,.2,1) 0.2s both; }
.hero__flavors{ animation: rise 0.9s cubic-bezier(.2,.7,.2,1) 0.35s both; }

@media (prefers-reduced-motion: reduce) {
  .hero__copy, .hero__stage, .hero__flavors { animation: none; }
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 900px) {
  /* keep the nav from colliding on small screens */
  .nav__link { display: none; }

  /* photo STAYS a full-bleed background at every width — it covers (zooms) to fit
     and is anchored on the lollipop. Text overlays: headline at the top, flavors at
     the bottom, leaving the lollipop the clear focus in the middle. */
  .hero__content {
    grid-template-columns: 1fr;
    align-content: space-between;
    text-align: center;
    padding: 6rem var(--pad) 2.75rem;
  }
  .hero__copy    { grid-column: auto; max-width: none; justify-self: center; }
  .hero__flavors { grid-column: auto; justify-self: center; }
  .hero__cta { justify-content: center; margin-top: 1rem; }   /* compact top block */
  .hero__title  { font-size: clamp(2.1rem, 8.5vw, 2.7rem); line-height: 0.98; }
  .hero__sub    { margin-top: 0.8rem; }
  /* zoom in on the lollipop & shift it lower so the top stays clear cream for text */
  .hero__product { object-position: 50% 50%; transform: scale(1.6); transform-origin: 50% 0%; }
  /* legibility scrim — solid over the top text band & bottom flavors, clear over the lollipop */
  .hero__content::before {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg,
      rgba(231,210,189,0.97) 0%, rgba(231,210,189,0.80) 16%, rgba(231,210,189,0) 33%,
      rgba(231,210,189,0) 61%, rgba(231,210,189,0.82) 80%, rgba(231,210,189,0.97) 100%);
  }

  .collection__grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1rem; }
  .benefits { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 0; }
  .benefit:nth-child(3) { border-left: none; }
  .footer { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer__form { width: 100%; }
}
