/* ==========================================================================
   AD!KTED — pages/home.css
   ========================================================================== */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--brand-blue);
  overflow: hidden;
}

/* ---------- Hero slider ----------
   Slide count comes from the markup, so adding a .hero-slide is all that's
   needed to extend the carousel. */
.hero-slider {
  position: relative;
  overflow: hidden;
}

.hero-slider__track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* No min-height: the painted banner is a 2:1 artwork with text baked in, so
   forcing extra height would object-fit-crop its lettering. */
.hero-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  max-height: clamp(300px, 50vw, 960px);
  aspect-ratio: 1920 / 960;
  overflow: hidden;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Composed slides: photo + brand-blue wash + headline, matching the
   language of the painted banner. */
.hero-slide__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(5, 81, 246, 0.94) 0%,
      rgba(5, 81, 246, 0.82) 45%,
      rgba(5, 81, 246, 0.35) 100%);
}

.hero-slide__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-2);
  padding-inline: clamp(1.25rem, 6vw, 5rem);
  max-width: 62%;
}

.hero-slide__eyebrow {
  font-family: var(--font-script);
  color: var(--brand-yellow);
  font-size: clamp(0.8rem, 1.6vw, 1.2rem);
}

.hero-slide__title {
  font-family: var(--font-display);
  color: var(--brand-white);
  font-size: clamp(1.4rem, 5vw, 3.6rem);
  line-height: 1;
}

.hero-slide__title .accent {
  color: var(--brand-orange);
}

.hero-slide__sub {
  color: var(--brand-white);
  font-size: clamp(0.72rem, 1.5vw, 1rem);
  opacity: 0.92;
  max-width: 34ch;
}

/* ---------- Slider controls ---------- */
.hero-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: clamp(34px, 3.4vw, 46px);
  aspect-ratio: 1 / 1;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.hero-slider__arrow:hover {
  background: var(--brand-orange);
  color: var(--brand-white);
}

.hero-slider__arrow--prev {
  left: clamp(8px, 1.5vw, 20px);
}

.hero-slider__arrow--next {
  right: clamp(8px, 1.5vw, 20px);
}

.hero-slider__arrow svg {
  width: 45%;
  height: 45%;
}

.hero-slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(8px, 1.6vw, 18px);
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-slider__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.25s ease, width 0.25s ease;
}

.hero-slider__dot.is-active {
  background: var(--brand-white);
  width: 24px;
  border-radius: var(--radius-pill);
}

/* A 2:1 slide is only ~195px tall on a phone, so the composed slides trim
   down to eyebrow + headline and give the text the full width. */
@media (max-width: 640px) {

  /* Arrows would sit on top of the headline in this short slide — swipe and
     the dots cover navigation on touch. */
  .hero-slider__arrow {
    display: none;
  }

  .hero-slide__content {
    max-width: 100%;
    gap: 2px;
    padding-inline: 1.1rem;
  }

  .hero-slide__title {
    font-size: clamp(1rem, 5.4vw, 1.5rem);
  }

  .hero-slide__sub {
    display: none;
  }

  .hero-slide__scrim {
    background: linear-gradient(90deg,
        rgba(5, 81, 246, 0.95) 0%,
        rgba(5, 81, 246, 0.86) 60%,
        rgba(5, 81, 246, 0.55) 100%);
  }

  .hero-slider__dots {
    bottom: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .hero-slider__track,
  .hero-slider__arrow,
  .hero-slider__dot {
    transition: none;
  }
}

.hero__ctas {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
  justify-content: center;
  padding-block: var(--space-6);
  color: var(--brand-white);
}



/* ---------- Category row ---------- */
.category-row {
  padding-block: var(--space-8);
}

@media (max-width: 959px) {
  .category-row {
    padding-block: var(--space-4);
  }

  .category-row .grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    gap: 0.85rem;
    padding-inline: var(--space-3);
    padding-bottom: var(--space-3);
    padding-top: var(--space-1);
    margin-inline: calc(var(--space-3) * -1);
  }

  .category-row .grid::-webkit-scrollbar {
    display: none;
  }

  .category-row .category-tile {
    flex: 0 0 155px;
    width: 155px;
    min-height: 155px;
    padding: 1.35rem 0.75rem 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    scroll-snap-align: start;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  }

  .category-row .category-tile__name {
    font-size: 0.98rem;
    line-height: 1.15;
    margin-bottom: 0.25rem;
  }

  .category-row .category-tile__desc {
    font-size: 0.76rem;
    line-height: 1.25;
    margin-bottom: auto;
  }

  .category-row .category-tile__arrow {
    width: 34px;
    height: 34px;
    margin-top: 0.85rem;
  }

  .category-row .category-tile__arrow svg {
    width: 14px;
    height: 14px;
  }
}

@media (min-width: 600px) and (max-width: 959px) {
  .category-row .category-tile {
    flex: 0 0 175px;
    width: 175px;
    min-height: 165px;
    padding: 1.5rem 0.9rem 1.25rem;
  }

  .category-row .category-tile__name {
    font-size: 1.05rem;
  }

  .category-row .category-tile__desc {
    font-size: 0.78rem;
  }

  .category-row .category-tile__arrow {
    width: 36px;
    height: 36px;
    margin-top: 1rem;
  }
}

/* ---------- Signature burgers ---------- */
.signature {
  background: var(--brand-cream);
}

/* ---------- Promo banner ---------- */
/* Padding and artwork scale with the viewport so the banner stays compact on
   short laptop screens (it was taking ~44% of the height at 1280x720)
   without looking cramped on large monitors. */
.promo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-inline: calc(var(--container-pad) + 1rem);
  padding: clamp(1.5rem, 2.6vw, 2.5rem) clamp(1.25rem, 2.4vw, 2rem);
  color: var(--brand-ink);
}

@media (min-width: 1280px) {
  .promo {
    margin-inline: auto;
    max-width: 1100px;
  }
}

.promo__stripe {
  position: absolute;
  inset: 0;
  opacity: 0.16;
}

.promo__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-6);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .promo__inner {
    grid-template-columns: 1.1fr 0.7fr 1fr;
  }
}

.promo__eyebrow {
  font-family: var(--font-script);
  font-size: 1.3rem;
  color: var(--brand-orange);
}

.promo__title {
  font-size: clamp(1.5rem, 3.1vw, 2.25rem);
  margin-block: var(--space-1) var(--space-2);
}

.promo__img {
  justify-self: center;
  width: 100%;
  max-width: clamp(150px, 16vw, 240px);
}

.promo__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

.promo__cta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #6b5b3a;
}

/* ---------- Born to Crave / brand story ---------- */
.story {
  position: relative;
  /* The copy/media slide in from off-centre, so their pre-reveal offset
     would otherwise push the page into horizontal scroll. `clip` (rather
     than `hidden`) contains it without creating a scroll container, which
     would break the sticky header. */
  overflow-x: clip;
}

.story__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-lg);
}

.story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story__copy p {
  color: #4a4a4a;
  max-width: 46ch;
  margin-top: var(--space-3);
}

.story__copy p+p {
  margin-top: var(--space-2);
}

@media (max-width: 719px) {
  .story__copy {
    text-align: center;
  }

  .story__copy p {
    margin-inline: auto;
  }

  .story__copy .btn {
    margin-inline: auto;
  }
}

/* ---------- Find your ADIKTED (locations preview) ---------- */
.locations-preview {
  background: var(--brand-cream);
}

/* Only the real outlet plus the "view all" tile, so the row is centred at a
   readable width rather than stretched across four columns. */
.locations-preview__grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
  max-width: 720px;
  margin-inline: auto;
}

@media (min-width: 640px) {
  .locations-preview__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.locations-preview__note {
  margin-top: var(--space-6);
  text-align: center;
  color: #6b6b6b;
  font-size: 0.95rem;
}

/* ---------- Crew / Instagram feed ---------- */
.crew__handle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 800;
  letter-spacing: 0.03em;
}

.crew-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .crew-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 960px) {
  .crew-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.crew-slide {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.crew-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.crew-slide__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.45) 100%);
}

.crew-slide__play svg {
  width: 22px;
  height: 22px;
}

.preloader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--brand-ink);
  transition: background-color 0.4s;
}

.preloader-loader {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-trace-svg {
  width: clamp(240px, 60vw, 360px);
  height: auto;
  overflow: visible;
}

.preloader-trace-text {
  font-family: var(--font-script);
  font-size: 52px;
  fill: var(--brand-orange);
  fill-opacity: 0;
  stroke: var(--brand-orange);
  stroke-width: 1.5px;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  text-anchor: middle;
  dominant-baseline: central;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.preloader-trace-text.is-tracing {
  opacity: 1;
  animation: textTrace 2.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes textTrace {
  0% {
    stroke-dashoffset: 600;
    fill-opacity: 0;
  }
  72% {
    stroke-dashoffset: 0;
    fill-opacity: 0;
  }
  95%, 100% {
    stroke-dashoffset: 0;
    fill-opacity: 1;
  }
}

.preloader-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.preloader-panel--blue {
  z-index: 5;
  background-color: #0551f6;
  transform: translateY(-100%);
  transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1);
}

.preloader-logo-wrap {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.preloader-logo {
  max-width: clamp(180px, 30vw, 320px);
  height: auto;
}

.preloader-panel--orange {
  z-index: 8;
  background-color: var(--brand-orange);
  transform: translateY(100%);
  transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1);
}

body.preloader-active {
  overflow: hidden;
}

.preloader-slogan {
  color: var(--brand-yellow);
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 7.5vw, 3.8rem);
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.03em;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding-inline: var(--space-4);
}

/* Mobile & Tablet Responsive Adjustments */
@media (max-width: 768px) {
  .preloader-trace-svg {
    width: clamp(180px, 75vw, 320px);
  }

  .preloader-logo {
    max-width: clamp(150px, 55vw, 260px);
  }

  .preloader-slogan {
    font-size: clamp(1.6rem, 8vw, 3rem);
  }
}