/* ---------- Hero ---------- */

.hero-home {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--color-red);
}

.hero-home__copy {
  padding: clamp(2.5rem, 6vw, 3.5rem) clamp(1.25rem, 4vw, 2.5rem) 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-home__eyebrow {
  font-family: var(--font-accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-black);
  letter-spacing: .14em;   /* proportional face needs less tracking than the old mono */
  margin-bottom: 16px;
}

.hero-home__title {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--color-black);
  margin: 0;
  text-transform: uppercase;
}

.hero-home__body {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(15px, 1.4vw + .5rem, 18px);
  color: var(--color-black);
  max-width: 420px;
  margin: 18px 0 0;
  line-height: 1.4;
}

.hero-home__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-home__media {
  position: relative;
  background: var(--color-cyan);
  min-height: 260px;
  aspect-ratio: 4150 / 2000;
  overflow: hidden;

  /* Must stay explicit, or this box sizes itself off its own height.
     min-height makes the height definite, and aspect-ratio then resolves the
     AUTO width from it: 260px x (4150/2000) = 539.5px. A grid item with a
     preferred aspect ratio doesn't stretch to its track, so it took that
     539.5px on every phone and overflowed the 375px column — which is what
     pushed the document's scroll width past the viewport and left every
     100%-width section below painting short, exposing the black body
     background on the right.
     With the width definite, the ratio resolves the other way (width -> height)
     and min-height simply floors the result. The img is object-fit:cover, so a
     shorter box just re-crops rather than distorting. */
  width: 100%;
}
.hero-home__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 900px) {
  .hero-home {
    grid-template-columns: .85fr 1.2fr;
    min-height: clamp(340px, 39vw, 560px);
  }
  .hero-home__copy { padding: 0 clamp(1.5rem, 3vw, 2.5rem); }
  .hero-home__media { min-height: 100%; aspect-ratio: auto; }
}

/* ---------- Marquee ---------- */

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

.marquee {
  background: var(--color-red);
  padding: 12px 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 3px solid var(--color-black);
}
.marquee__track {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(15px, 1.6vw + .5rem, 24px);
  color: var(--color-black);
  animation: home-scrollx 26s linear infinite;
}

/* ---------- Party Pics ---------- */

.party-pics { background: var(--color-yellow); }

.party-pics__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
}

.party-pics__title { color: var(--color-black); margin: 0; }

.party-pics__cta {
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(13px, 1vw + .5rem, 17px);
  color: var(--color-black);
  background: var(--color-red);
  border: none;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
}

.party-pics__viewport { position: relative; }

.party-pics__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--color-red);
  color: var(--color-black);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .5);
}
.party-pics__arrow--prev { left: 4px; }
.party-pics__arrow--next { right: 4px; }

/* At either end of the wall the gallery module disables the arrow that can no longer
   move. Dimmed rather than hidden: it stays in place so the carousel doesn't shift,
   and it reads as "nothing that way" instead of vanishing. */
.party-pics__arrow:disabled {
  opacity: .3;
  cursor: default;
}

.party-pics__track {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  /* Scroll snapping is deliberately off.
   *
   * The photos were scroll-snap-align: center, and centring the *last* photo is not
   * a reachable position — there isn't enough track behind it — so the browser's
   * nearest snap point at the end of the wall is the scroller's hard limit, 50px
   * into the trailing padding. Measured on the ten-photo wall: the last photo's
   * right edge sits at 1830, so flush-right is scroll 1480, but snapping pulled
   * every attempt to land there on to 1530 instead. That last 50px shows no new
   * picture and pushes one off the left, which is the "goes one too far" Ryan hit.
   *
   * Snapping also never bought much here: the photos are consumer uploads of
   * varying width, so a centred one was never aligned to anything in particular.
   * Without it the arrows land exactly where the module puts them. */
  scroll-snap-type: none;
  scroll-behavior: smooth;
  padding: 34px 50px 40px;
  -webkit-overflow-scrolling: touch;
}
.party-pics__track::-webkit-scrollbar { height: 8px; }
.party-pics__track::-webkit-scrollbar-thumb { background: var(--color-border-dark); border-radius: 4px; }
.party-pics__track::-webkit-scrollbar-track { background: transparent; }

.party-pics__photo {
  flex: 0 0 auto;
  height: 210px;
  width: auto;
  border: 5px solid var(--color-white);
  border-radius: 2px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .6);
}
@media (min-width: 700px) {
  .party-pics__photo { height: 260px; }
}
@media (min-width: 1000px) {
  .party-pics__photo { height: 300px; }
}

/* ---------- Party Starters ---------- */

.party-starters {
  background: var(--color-lime);
  position: relative;
}

.party-starters__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}
.party-starters__title, .party-starters__blurb { color: var(--color-black); margin: 0; }
.party-starters__blurb {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(15px, 1vw + .5rem, 18px);
  max-width: 320px;
  line-height: 1.35;
}

.party-starters__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 800px) {
  .party-starters__grid { grid-template-columns: 1fr 1fr; }
  .party-starters__head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}

.starter-card {
  display: block;
  background: var(--color-black);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.starter-card__media {
  position: relative;
  padding: 60px 32px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
.starter-card__media--187 { background: var(--color-cyan); }
.starter-card__media--1l { background: var(--color-orange); }

.starter-card__label {
  position: absolute;
  top: 16px;
  left: 18px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(20px, 1.5vw + .5rem, 30px);
  color: var(--color-black);
  letter-spacing: -.02em;
}

.starter-card__video, .starter-card__img {
  width: 70%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 4px solid var(--color-black);
  border-radius: var(--radius-sm);
}

.starter-card__badge-new {
  position: absolute;
  top: 8px;
  right: 8px;
  transform: rotate(10deg);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(16px, 1.2vw + .5rem, 26px);
  color: var(--color-black);
  background: var(--color-red);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 3px solid var(--color-black);
  box-shadow: var(--shadow-hard-md);
  letter-spacing: -.02em;
  z-index: 2;
}

.starter-card__badge-ratio {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(11px, .7vw + .5rem, 16px);
  color: var(--color-black);
  background: var(--color-red);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 3px solid var(--color-black);
  box-shadow: var(--shadow-hard-sm);
  letter-spacing: -.01em;
  z-index: 2;
}

.starter-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
}
.starter-card__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(18px, 1.2vw + .5rem, 26px);
  color: var(--color-white);
  text-transform: uppercase;
}
.starter-card__explore {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
}
.starter-card__explore--187 { color: var(--color-red); }
.starter-card__explore--1l { color: var(--color-orange); }

.party-starters__abv-badge {
  position: absolute;
  left: 50%;
  top: 0;
  width: clamp(90px, 10vw, 170px);
  height: auto;
  transform: translate(-50%, -46%);
  z-index: 30;
  filter: drop-shadow(0 12px 22px rgba(10, 10, 10, .4));
  pointer-events: none;
}

/* ---------- Social Media ---------- */

/* The purple section + heading are reused by the social-feed module (the tiles come from
   modules/social-feed/module.css). The old static two-card markup was removed with it. */
.social { background: var(--color-purple); }
.social__title { color: var(--color-black); margin: 0; }

/* Heading and follow buttons share a row on desktop; the buttons wrap below on mobile.
   Mirrors .party-pics__head. */
.social__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
}

/* Persistent follow buttons — always shown, independent of whether the feed has posts. */
.social__follow {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.social__follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(13px, 1vw + .4rem, 16px);
  color: var(--color-white);
  background: var(--color-black);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: var(--shadow-hard-sm);
  transition: transform .15s ease;
}
.social__follow-btn img { width: 20px; height: 20px; object-fit: contain; }
@media (hover: hover) {
  .social__follow-btn:hover { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .social__follow-btn { transition: none; }
}

/* ---------- Recipes teaser ---------- */

.recipes-teaser {
  background: var(--color-pink);
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  overflow: hidden;
}
@media (min-width: 900px) {
  .recipes-teaser { grid-template-columns: 1fr 1.05fr; }
}
.recipes-teaser__title, .recipes-teaser__body { color: var(--color-black); }
.recipes-teaser__body {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(15px, 1vw + .5rem, 20px);
  max-width: 400px;
  margin: 18px 0 24px;
  line-height: 1.35;
}
.recipes-teaser__gallery {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  flex-wrap: nowrap;
}
.recipes-teaser__gallery img {
  width: clamp(100px, 38%, 320px);
  flex: 0 0 auto;
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(10, 10, 10, .45);
  position: relative;
}
.recipes-teaser__gallery img:nth-of-type(1) { transform: rotate(-11deg) translateX(46%); z-index: 1; }
.recipes-teaser__gallery img:nth-of-type(2) { transform: rotate(-3deg) translateX(16%); z-index: 2; width: clamp(105px, 40%, 335px); }
.recipes-teaser__gallery img:nth-of-type(3) { transform: rotate(5deg) translateX(-16%); z-index: 3; width: clamp(105px, 40%, 335px); }
.recipes-teaser__gallery img:nth-of-type(4) { transform: rotate(12deg) translateX(-46%); z-index: 2; }

.recipes-teaser__sticker {
  position: absolute;
  top: 0;
  right: 4%;
  z-index: 5;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
  color: var(--color-white);
  background: #E11F26;
  border: 3px solid var(--color-black);
  border-radius: 50%;
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: .95;
  transform: rotate(12deg);
  box-shadow: 4px 4px 0 rgba(10, 10, 10, .3);
}

/* ---------- Sustainability ---------- */

.sustainability { background: var(--color-cyan); }
.sustainability__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 40px;
}
@media (min-width: 800px) {
  .sustainability__grid { grid-template-columns: 1fr 1fr; }
}
.sustainability__title { color: var(--color-black); margin: 0; }
.sustainability__body {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(16px, 1vw + .5rem, 22px);
  color: var(--color-black);
  margin: 0;
  line-height: 1.4;
}
.sustainability__stats-label { color: var(--color-black); margin-bottom: 18px; }
.sustainability img { width: 100%; height: auto; }
