/* ============================================
   SMASH — Premium Burger Brand
   Global Stylesheet
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --black: #050505;
  --deep-red: #1a0000;
  --accent-red: #e52b2b;
  --mustard: #c8860a;
  --yellow: #f5c518;
  --charcoal: #111111;
  --cream: #f5f2eb;
  --white: #ffffff;

  --font-heading: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow: hidden;
  background: var(--black);
  height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--cream);
  background: var(--black);
  overflow: hidden;
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul {
  list-style: none;
}

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

/* --- Scenes Wrapper (scroll-jacked) --- */
.scenes-wrapper {
  position: relative;
  width: 100%;
  z-index: 10;
  will-change: transform;
}

/* --- Sections --- */
.scene {
  min-height: 100vh;
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.8rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.5s ease, backdrop-filter 0.5s ease;
}

.navbar.scrolled {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.navbar__logo {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  letter-spacing: 0.15em;
}

/* Logo colour split: SMA = yellow, SH = red */
.logo-yellow {
  color: var(--yellow);
}

.logo-red {
  color: var(--accent-red);
}

.navbar__links {
  display: flex;
  gap: 3rem;
}

.navbar__links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.7;
  transition: opacity 0.3s ease;
  position: relative;
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-red);
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar__links a:hover {
  opacity: 1;
}

.navbar__links a:hover::after {
  width: 100%;
}

/* ============================================
   PERSISTENT BURGER LAYER
   ============================================ */
.burger-viewport {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 10vh;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.burger-viewport img {
  width: 36vw;
  max-width: 560px;
  object-fit: contain;
  will-change: transform, opacity, filter;
  filter: drop-shadow(0 30px 80px rgba(0, 0, 0, 0.7));
}

/* ============================================
   SECTION 1 — HERO
   ============================================ */
.hero {
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero__content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 22vw;
  line-height: 0.85;
  letter-spacing: -0.02em;
  /* Hero title letters in yellow */
  color: var(--yellow);
  position: absolute;
  z-index: 60;
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 28vw;
  padding: 0;
  padding-bottom: 10vh;
  pointer-events: none;
}

.hero__title-left {
  opacity: 0;
  will-change: transform, opacity;
}

.hero__title-right {
  opacity: 0;
  will-change: transform, opacity;
}

.hero__tagline {
  position: absolute;
  bottom: 8vh;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 70;
  opacity: 0;
  width: max-content;
}

.hero__tagline p {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(245, 242, 235, 0.6);
  margin-bottom: 2rem;
}

.hero__tagline .btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  border: 1px solid rgba(245, 242, 235, 0.3);
  padding: 1rem 3rem;
  transition: all 0.4s ease;
  pointer-events: all;
  cursor: pointer;
  background: transparent;
}

.hero__tagline .btn:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: var(--white);
}

/* ============================================
   SECTION 2 — INGREDIENT SPOTLIGHT
   ============================================ */
.spotlight {
  /* Transparent/dark bg so navbar blends in naturally */
  background: var(--black);
  display: flex;
  align-items: center;
  padding: 0 6vw;
}

.spotlight__content {
  max-width: 45%;
  z-index: 60;
}

.spotlight__line {
  font-family: var(--font-heading);
  font-size: 6vw;
  line-height: 1.05;
  color: var(--cream);
  overflow: hidden;
}

/* Each line gets a left accent bar instead of coloured dot */
.spotlight__line:first-child {
  color: var(--cream);
}

.spotlight__line:nth-child(2) {
  color: var(--yellow);
}

.spotlight__line:nth-child(3) {
  color: var(--accent-red);
}

.spotlight__line span {
  display: inline-block;
  will-change: transform, opacity;
}

/* Dots removed — .dot is now hidden */
.spotlight__line .dot {
  display: none;
}

.spotlight__desc {
  margin-top: 2rem;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(245, 242, 235, 0.5);
  max-width: 400px;
  opacity: 0;
}

/* ============================================
   SECTION 3 — INGREDIENT SCATTER
   ============================================ */
.scatter {
  background: var(--deep-red);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Background floating sesame seeds */
.scatter__bg-element {
  position: absolute;
  background: var(--yellow);
  opacity: 0;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  pointer-events: none;
  z-index: 10;
  will-change: transform, opacity;
}

.scatter__headline {
  position: absolute;
  top: 13vh;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 60;
  width: 80%;
  opacity: 0;
}

.scatter__headline h2 {
  font-family: var(--font-heading);
  font-size: 4.5vw;
  letter-spacing: 0.08em;
  color: var(--cream);
}

.scatter__cards-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 45;
  pointer-events: none;
}

/* Cards: no background, no border — just the image floating */
.scatter__card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0.5rem;
  text-align: center;
  width: 200px;
  will-change: transform, opacity;
}

.scatter__card img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  margin: 0.5rem auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
}

/* Custom sizing for Lettuce and Patty cards to make them visually prominent */
.scatter__card--lettuce,
.scatter__card--patty {
  width: 240px;
}

.scatter__card--lettuce img,
.scatter__card--patty img {
  width: 220px;
  height: 220px;
}

.scatter__card span {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 0.18em;
  color: var(--cream);
  opacity: 0.8;
  display: block;
  margin-top: 0.5rem;
}

/* ============================================
   SECTION 4 — COLOR SHIFT + HERO MOMENT
   ============================================ */
.hero-moment {
  background: var(--deep-red);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Burger z-index is 50 — text sits behind at z-index 40 */
.hero-moment__text {
  position: absolute;
  z-index: 40;
  text-align: center;
  pointer-events: none;
}

.hero-moment__text h2 {
  font-family: var(--font-heading);
  font-size: 18vw;
  line-height: 0.85;
  color: var(--white);
  opacity: 0;
  will-change: transform, opacity;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

/* ULTRA slides from left, FRESH from right — set in JS */
#hero-moment-ultra {
  transform: translateX(-120px);
}

#hero-moment-fresh {
  transform: translateX(120px);
}

.hero-moment__stat {
  position: absolute;
  bottom: 8vh;
  right: 6vw;
  text-align: right;
  z-index: 60;
  opacity: 0;
}

.hero-moment__stat .stat-number {
  font-family: var(--font-heading);
  font-size: 4vw;
  color: var(--white);
  letter-spacing: 0.05em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-moment__stat .stat-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.3rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ============================================
   SECTION 5 — PRODUCT SHOWCASE
   ============================================ */
.showcase {
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6vw;
}

.showcase__grid {
  display: flex;
  gap: 2.5rem;
  z-index: 60;
  perspective: 1000px;
}

.showcase__card {
  width: 300px;
  height: 420px;
  border-radius: 20px;
  position: relative;
  overflow: visible;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  will-change: transform, opacity;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}

.showcase__card:hover {
  transform: translateY(-12px);
}

.showcase__card--red {
  background: linear-gradient(165deg, #3a0a0a, #1a0505);
  border: 1px solid rgba(229, 43, 43, 0.15);
}

.showcase__card--orange {
  background: linear-gradient(165deg, #2a1a05, #140d03);
  border: 1px solid rgba(200, 134, 10, 0.15);
}

.showcase__card--blue {
  background: linear-gradient(165deg, #0a0a2a, #050515);
  border: 1px solid rgba(80, 80, 200, 0.15);
}

/* Single image card (card 1) */
.showcase__card-img {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.showcase__card:hover .showcase__card-img:not(.showcase__card-img--dual-secondary):not(.showcase__card-img--dual-left):not(.showcase__card-img--dual-right):not(.showcase__card-img--triple-center):not(.showcase__card-img--triple-left):not(.showcase__card-img--triple-right) {
  transform: translateX(-50%) translateY(-10px) scale(1.05);
}

/* --- Dual Images (Card 2) --- */
.showcase__card-img--dual-left {
  position: absolute;
  top: -30px;
  left: 36%;
  transform: translateX(-50%) rotate(-5deg);
  width: 170px;
  height: 170px;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 3;
}

.showcase__card-img--dual-right {
  position: absolute;
  top: -10px;
  left: 64%;
  transform: translateX(-50%) rotate(8deg);
  width: 130px;
  height: 160px;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 2;
}

.showcase__card:hover .showcase__card-img--dual-left {
  transform: translateX(-50%) translateY(-10px) rotate(-3deg) scale(1.04);
}

.showcase__card:hover .showcase__card-img--dual-right {
  transform: translateX(-50%) translateY(-6px) rotate(12deg) scale(1.04);
}

/* --- Triple Images (Card 3) --- */
.showcase__card-img--triple-center {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 170px;
  height: 170px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 4;
}

.showcase__card-img--triple-left {
  position: absolute;
  top: -10px;
  left: 28%;
  transform: translateX(-50%) rotate(-12deg);
  width: 130px;
  height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 2;
}

.showcase__card-img--triple-right {
  position: absolute;
  top: -10px;
  left: 72%;
  transform: translateX(-50%) rotate(12deg);
  width: 110px;
  height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 2;
}

.showcase__card:hover .showcase__card-img--triple-center {
  transform: translateX(-50%) translateY(-10px) scale(1.04);
}

.showcase__card:hover .showcase__card-img--triple-left {
  transform: translateX(-50%) translateY(-6px) rotate(-16deg) scale(1.04);
}

.showcase__card:hover .showcase__card-img--triple-right {
  transform: translateX(-50%) translateY(-6px) rotate(16deg) scale(1.04);
}

.showcase__card-tag {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-red);
  margin-bottom: 0.5rem;
}

.showcase__card--orange .showcase__card-tag {
  color: var(--mustard);
}

.showcase__card--blue .showcase__card-tag {
  color: #6b7bff;
}

.showcase__card-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  letter-spacing: 0.05em;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.showcase__card-desc {
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(245, 242, 235, 0.45);
}

.showcase__card-price {
  margin-top: 1.2rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--cream);
  letter-spacing: 0.05em;
}

/* ============================================
   SECTION 6 — FINAL CTA
   ============================================ */
.cta {
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cta__content {
  text-align: center;
  z-index: 100;
  position: relative;
}

.cta__headline {
  font-family: var(--font-heading);
  font-size: 10vw;
  line-height: 0.9;
  color: var(--cream);
  margin-bottom: 3rem;
  opacity: 0;
}

/* "SMASH?" in yellow */
.cta__headline-smash {
  color: var(--yellow);
}

.cta__button {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  letter-spacing: 0.25em;
  color: var(--black);
  background: var(--accent-red);
  padding: 1.4rem 5rem;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
  opacity: 0;
}

.cta__button:hover {
  transform: scale(1.04);
  box-shadow: 0 0 60px rgba(229, 43, 43, 0.35), 0 0 120px rgba(229, 43, 43, 0.15);
}

.cta__footer {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4rem;
  z-index: 60;
}

.cta__footer span {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245, 242, 235, 0.25);
}

/* ============================================
   LOADING SCREEN
   ============================================ */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--black);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.loader__text {
  font-family: var(--font-heading);
  font-size: 5vw;
  letter-spacing: 0.3em;
  color: var(--cream);
  overflow: hidden;
}

.loader__text span {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
}

.loader__bar {
  width: 200px;
  height: 1px;
  background: rgba(245, 242, 235, 0.1);
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}

.loader__bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--accent-red);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero__title {
    font-size: 18vw;
  }

  .showcase__grid {
    gap: 1.5rem;
  }

  .showcase__card {
    width: 260px;
    height: 380px;
  }

  .scatter__card {
    width: 160px;
  }

  .scatter__card img {
    width: 120px;
    height: 120px;
  }

  .scatter__card--lettuce,
  .scatter__card--patty {
    width: 190px;
  }

  .scatter__card--lettuce img,
  .scatter__card--patty img {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1.2rem 2rem;
  }

  .navbar__links {
    gap: 1.5rem;
  }

  .navbar__links a {
    font-size: 0.75rem;
  }

  .hero__title {
    font-size: 22vw;
    padding: 0 3vw;
  }

  .spotlight {
    padding: 0 4vw;
  }

  .spotlight__content {
    max-width: 60%;
  }

  .spotlight__line {
    font-size: 8vw;
  }

  .showcase__grid {
    flex-direction: column;
    align-items: center;
    gap: 4rem;
  }

  .showcase__card {
    width: 85vw;
    max-width: 340px;
    height: 400px;
  }

  .burger-viewport img {
    width: 55vw;
  }

  .hero-moment__text h2 {
    font-size: 22vw;
  }

  .scatter__card {
    width: 120px;
    padding: 0.4rem;
  }

  .scatter__card img {
    width: 90px;
    height: 90px;
  }

  .scatter__card--lettuce,
  .scatter__card--patty {
    width: 140px;
  }

  .scatter__card--lettuce img,
  .scatter__card--patty img {
    width: 110px;
    height: 110px;
  }

  .scatter__headline h2 {
    font-size: 6vw;
  }

  .cta__headline {
    font-size: 14vw;
  }

  .cta__button {
    font-size: 1.1rem;
    padding: 1.2rem 3.5rem;
  }

  .cta__footer {
    padding: 0 2rem;
    flex-direction: column;
    gap: 0.5rem;
  }
}