/*! Spark & Sugar · home.css — hero carousel, editorial rows, trust row, Instagram grid (docs/REDESIGN.md "Home") */

/* ---------- Hero: flat palette panel + real photos ---------- */
.hero { position: relative; }
.hero__track {
  position: relative; display: flex; margin: 0; padding: 0; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
.hero__track::-webkit-scrollbar { display: none; }
.hero-slide {
  flex: 0 0 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  height: clamp(460px, 44.5vw, 680px); scroll-snap-align: start; scroll-snap-stop: always;
}
.hero-slide__panel { display: flex; align-items: center; padding: clamp(40px, 5.5vw, 96px); padding-bottom: clamp(72px, 6vw, 104px); }
.hero-slide__content { display: grid; justify-items: start; gap: 18px; max-width: 540px; }
.hero-slide__title { font-size: var(--fs-hero); font-weight: 800; line-height: 1.02; letter-spacing: -.025em; }
.hero-slide__text { max-width: 40ch; font-size: 1.125rem; line-height: 1.5; }
.hero-slide__content .btn { margin-top: 6px; }
.hero-slide__media { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; background: var(--lavender-soft); }
.hero-slide__media--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero-slide__media img { width: 100%; height: 100%; object-fit: cover; }

.hero__controls {
  position: absolute; z-index: 2; left: clamp(40px, 5.5vw, 96px); bottom: clamp(24px, 2.4vw, 36px);
  display: flex; align-items: center; gap: 8px;
}
.hero__controls .round-btn { width: 36px; height: 36px; border-color: currentColor; background: transparent; color: inherit; }
.hero__dots { display: flex; align-items: center; gap: 2px; }
.hero__dot { position: relative; width: 24px; height: 36px; padding: 0; border: 0; background: none; cursor: pointer; color: inherit; }
.hero__dot::before { content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; translate: -50% -50%; transition: width var(--dur) var(--ease), background-color var(--dur); }
.hero__dot[aria-current="true"]::before { width: 20px; border-radius: 999px; background: currentColor; }
.hero__pause .icon--play, .hero.is-paused .hero__pause .icon--pause { display: none; }
.hero.is-paused .hero__pause .icon--play { display: block; }
/* Controls take the colour of the visible slide's panel text */
.hero[data-tone="purple"] .hero__controls { color: var(--white); }
.hero[data-tone="purple"] .hero__controls .round-btn:hover { background: var(--white); color: var(--purple); }
.hero:not([data-tone="purple"]) .hero__controls { color: var(--ink); }
.hero:not([data-tone="purple"]) .hero__controls .round-btn:hover { background: var(--ink); color: var(--white); }
.hero__controls .round-btn:focus-visible, .hero__dot:focus-visible { outline-color: currentColor; }

@media (max-width: 767.98px) {
  .hero-slide { display: flex; flex-direction: column; height: auto; }
  .hero-slide__media { order: -1; aspect-ratio: 4 / 5; }
  .hero-slide__media--two { grid-template-columns: minmax(0, 1fr); }
  .hero-slide__media--two img + img { display: none; }
  .hero-slide__panel { flex: 1; align-items: flex-start; padding: 28px var(--gutter) 84px; }
  .hero-slide__content { gap: 14px; }
  .hero-slide__text { font-size: 1rem; }
  .hero__controls { left: var(--gutter); bottom: 24px; }
}

/* ---------- Sections ---------- */
.home-favs { padding-bottom: clamp(48px, 6vw, 88px); }
.home-season { padding-top: clamp(48px, 6vw, 88px); }

/* Slim trust row */
.home-trust { padding-block: clamp(24px, 3vw, 36px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-trust .trust__icon { background: var(--lavender-soft); }
.home-cats + .home-events + .home-trust, .home-events + .home-trust { border-top: 0; }

/* Instagram grid */
.home-ig__head { align-items: flex-end; }
.ig-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.ig-grid__item { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--lavender); color: var(--white); }
.ig-grid__img { width: 100%; height: 100%; object-fit: cover; transition: scale .5s var(--ease); }
.ig-grid__icon { position: absolute; right: 10px; bottom: 10px; opacity: 0; transition: opacity var(--dur); filter: drop-shadow(0 1px 3px rgb(0 0 0 / .45)); }
.ig-grid__item:hover { color: var(--white); }
.ig-grid__item:hover .ig-grid__img { scale: 1.04; }
.ig-grid__item:hover .ig-grid__icon, .ig-grid__item:focus-visible .ig-grid__icon { opacity: 1; }
@media (max-width: 767.98px) { .ig-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; } }
