/* =========================================================
   Xotica Badboy Kebabs – Bootstrap 5 build
   ========================================================= */

:root {
  --primary: #cb280c;
  --secondary: #f6a930;
  --black: #000;
  --white: #fff;
  --font: "Chivo", sans-serif;
  --font-heading: "Chivo", sans-serif;
  --header-h: 92px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--black);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

/* width/height attributes reserve space while loading; keep the real aspect ratio */
img { height: auto; }

/* Heavy oblique uppercase – the site's signature type style */
.flavours-title,
.drip-copy,
.btn-brand, .btn-orange, .btn-white,
.navbar .nav-link,
.rewards-text,
.footer-title,
.footer-links a,
.product-label,
.sauce-info .sauce-name {
  font-family: var(--font);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
}

.flavours-title,
.footer-title,
.sauce-info .sauce-name {
  font-family: var(--font-heading);
}

/* ---------- Buttons ---------- */
.btn-brand,
.btn-orange,
.btn-white {
  border-radius: 0;
  border: 2px solid transparent;
  padding: 7px 18px;
  letter-spacing: 0.3px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-brand { background: var(--primary); color: var(--white); }
.btn-brand:hover, .btn-brand:focus-visible { background: var(--white); color: var(--primary); border-color: var(--primary); }

.btn-orange { background: var(--secondary); color: var(--white); font-size: 18px; }
.btn-orange:hover, .btn-orange:focus-visible { background: var(--white); color: var(--secondary); border-color: var(--secondary); }

.btn-white { background: var(--white); color: var(--primary); font-size: 22px; padding: 6px 24px; }
.btn-white:hover, .btn-white:focus-visible { background: var(--secondary); color: var(--white); }

/* Homepage buttons lift on hover, like the previous site */
.flavours .btn-orange,
.rewards .btn-white { transition: background-color .2s, color .2s, border-color .2s, transform .4s; }
.flavours .btn-orange:hover,
.flavours .btn-orange:focus-visible,
.rewards .btn-white:hover,
.rewards .btn-white:focus-visible { transform: translateY(-5px); }

a:focus-visible, button:focus-visible, .sauce-tile:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}


/* =========================================================
   SECTION 1 – HERO CAROUSEL
   ========================================================= */

.hero .carousel-item {
  background: var(--white);
}
.hero .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hero .carousel-control-prev,
.hero .carousel-control-next {
  width: 6%;
  opacity: 1;
}
.hero .carousel-control-prev i,
.hero .carousel-control-next i {
  color: var(--primary);
  font-size: 38px;
  -webkit-text-stroke: 1px var(--primary);
  transition: color .3s;
}
/* White arrows on colourful slides (data-arrows="light") */
.hero .carousel:has(.carousel-item.active[data-arrows="light"]) .carousel-control-prev i,
.hero .carousel:has(.carousel-item.active[data-arrows="light"]) .carousel-control-next i {
  color: var(--white);
  -webkit-text-stroke-color: var(--white);
}
.hero .carousel-indicators [data-bs-target] {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 0;
  background: var(--primary);
}

/* =========================================================
   SECTION 2 – SIGNATURE FLAVOURS
   ========================================================= */
.flavours-intro {
  position: relative;
  background: var(--primary);
  color: var(--white);
  padding: 44px 0 66px;
  overflow: hidden;
  isolation: isolate;
}
/* Pattern sits on a parallax layer so it can move while scrolling */
.flavours-layer {
  background-image: url("../images/homepage/bg-pattern-1.svg");
  background-size: 1366px auto;
  background-position: center;
}
.flavours-intro > .container { position: relative; }

.flavours-title {
  font-size: 42px;
  margin-bottom: 82px;
  letter-spacing: 0.4px;
}

.drip-heading {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: var(--font-heading);
  font-size: 72px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--white);
}
.drip-gold { color: var(--secondary); }

.drip-copy {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 1.5px;
  margin: 0 0 24px;
}

/* ---------- Marquee ---------- */
.sauce-marquee {
  overflow: hidden;
  background: var(--white);
}
.sauce-track {
  display: flex;
  width: max-content;
  gap: 10px;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 5px)); }
}

.sauce-tile {
  --tile: var(--primary);
  position: relative;
  flex: 0 0 auto;
  width: 255px;
  aspect-ratio: 270 / 185;
  background: var(--tile);
  overflow: hidden;
  cursor: pointer;
}
.sauce-tile img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52%;
  height: 82%;
  object-fit: contain;
  transform: translate(-50%, -50%);
  transition: transform 1.2s cubic-bezier(.25, .8, .25, 1);
}

/* content is hidden until hover/focus – slides in on the tile colour */
.sauce-info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 22px;
  color: var(--tile-text, var(--white));
  text-align: left;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 1.2s cubic-bezier(.25, .8, .25, 1), opacity 1s;
}
.sauce-info .sauce-name { font-size: 24px; line-height: 1; margin: 0 0 6px; color: inherit; }
.sauce-info p  { font-size: 16px; line-height: 1.3; margin: 0; }
.sauce-info .heat { display: none; }

/* logo slides up and out of the tile */
.sauce-tile:hover img,
.sauce-tile:focus img { transform: translate(-50%, -170%); }

.sauce-tile:hover .sauce-info,
.sauce-tile:focus .sauce-info { transform: translateY(0); opacity: 1; }

/* =========================================================
   SECTION 3 – PRODUCTS
   ========================================================= */
.products {
  padding: 30px 0px;
}
.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  text-align: center;
}
.product-label {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 30px;
  line-height: 1;
  padding: 11px 17px;
  transform: rotate(-3deg);
  box-shadow: 5px 5px 0 var(--secondary);
  position: relative;
  z-index: 1;
  margin-bottom: -10px;
  max-width: 100%;
}
.product-label-wrap {
  min-height: 72px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-size: 30px;
}
.product-label-wrap .product-label { font-size: 30px; }
.product-card img { transition: transform .4s; }
.product-card:hover img,
.product-card:focus-visible img { transform: translateY(-15px); }

/* =========================================================
   SECTION 4 – REWARDS BAND + MILD TO WILD
   ========================================================= */
.rewards {
  position: relative; /* keeps the band above products while they slide in */
  background: var(--primary);
  border-top: 12px solid var(--secondary);
  border-bottom: 12px solid var(--secondary);
  padding: 38px 0;
  color: var(--white);
}
.rewards-text {
  font-size: 28px;
  line-height: 1.2;
  margin: 0;
  max-width: 460px;
}
.rewards-ticket {
  --notch: 14px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 14px 34px;
  background:
    radial-gradient(circle at 0 50%, transparent var(--notch), var(--white) calc(var(--notch) + 1px)) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 50%, transparent var(--notch), var(--white) calc(var(--notch) + 1px)) right / 51% 100% no-repeat;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .2));
  position: relative;
}
/* Dashed perforation inside the ticket */
.rewards-ticket::after {
  content: "";
  position: absolute;
  inset: 7px calc(var(--notch) + 4px);
  border: 2px dashed rgba(203, 40, 12, .35);
  border-radius: 4px;
  pointer-events: none;
}
.rewards-ticket-star { font-size: 30px; color: var(--secondary); }
.rewards-ticket-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1;
  color: var(--primary);
}
.rewards-ticket-sm { font-size: 16px; letter-spacing: 3px; color: #222; }
.rewards-ticket-lg { font-size: 36px; }

/* App Store / Google Play badges */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}
.store-badge {
  display: block;
  width: 196px;
  transition: transform .3s;
}
.store-badge:hover,
.store-badge:focus-visible { transform: translateY(-4px); }
.store-badge img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Classic to extreme – dishes overlapping the headline ---------- */
.flavour-blast {
  --blast-dark: #202020;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 110px 0 120px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(246, 169, 48, .16), transparent 70%),
    var(--white);
}
/* Food-icon pattern behind everything, faded towards the centre */
.flavour-blast::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../images/homepage/bg-pattern-1.svg") center / 900px auto repeat;
  opacity: .7;
  -webkit-mask-image: radial-gradient(ellipse 55% 55% at 50% 50%, transparent 30%, #000 85%);
  mask-image: radial-gradient(ellipse 55% 55% at 50% 50%, transparent 30%, #000 85%);
  pointer-events: none;
}
/* Shrink-wraps the headline so the dishes are placed relative to the words */
.blast-banner {
  /* Distance from the banner to the screen edge (page content is 1320px max) */
  --blast-edge: max(calc(50% - 660px), calc(50% - 50vw));
  position: relative;
  display: inline-block;
}

.blast-title {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: -1px;
}
.blast-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
}
/* Each word gets a white offset echo outlined in black */
.blast-word {
  --blast-ink: var(--blast-dark);
  display: inline-block;
  color: var(--blast-ink);
  filter: drop-shadow(6px -6px 0 var(--white)) drop-shadow(0 0 1px var(--blast-dark));
}
.blast-red { --blast-ink: var(--primary); }
.blast-sm { font-size: 52px; }
.blast-xl { font-size: 124px; }
.blast-xxl { font-size: 168px; letter-spacing: -3px; }
.blast-stack {
  font-size: 46px;
  line-height: .9;
  text-align: right;
  margin-bottom: 12px;
}

/* Outline copy above the dishes – same layout, stroke only, in each word's own
   colour so it only shows where a dish covers the letters */
.blast-title-outline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  pointer-events: none;
}
.blast-title-outline .blast-word {
  color: transparent;
  filter: none;
  -webkit-text-stroke: 2px var(--blast-ink);
}

/* Dishes sit in the four corners of the section; where one reaches a word,
   the outline copy shows that letter over the food */
.blast-tray {
  position: absolute;
  z-index: 2;
  height: auto;
  filter: drop-shadow(0 22px 24px rgba(0, 0, 0, .25));
  animation: blastFloat 7s ease-in-out infinite;
  pointer-events: none;
}
.blast-tray-1 { width: 300px; top: -40px; left: var(--blast-edge); --r: -16deg; }
.blast-tray-2 { width: 330px; top: -20px; right: var(--blast-edge); --r: 14deg; animation-delay: -2s; }
.blast-tray-3 { width: 290px; bottom: -70px; left: var(--blast-edge); --r: 10deg; animation-delay: -4s; }
.blast-tray-4 { width: 300px; bottom: -60px; right: var(--blast-edge); --r: -12deg; animation-delay: -5.5s; }
@keyframes blastFloat {
  0%, 100% { transform: translateY(0) rotate(var(--r)); }
  50% { transform: translateY(-14px) rotate(calc(var(--r) + 3deg)); }
}

.blast-buttons {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 48px;
}
.blast-buttons .btn-page { font-size: 24px; }

@media (prefers-reduced-motion: reduce) {
  .blast-tray { animation: none; transform: rotate(var(--r)); }
}

/* =========================================================
   INNER PAGES – shared components (About Us, Our Food)
   ========================================================= */
.page-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--primary);
  margin: 0 0 20px;
}

.page-text {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--black);
}
.page-text p { margin: 0 0 14.4px; }
.page-text strong { font-weight: 700; }

/* Hero – text left, image bleeding off the right edge */
.page-hero {
  background: var(--white);
  overflow: hidden;
}
.page-hero-logo { padding-right: 50px; }
.page-hero-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--primary);
  margin: 35px 0 0;
}
.page-hero-media { height: 670px; }
.page-hero-media img {
  display: block;
  height: 670px;
  width: auto;
  max-width: none;
}

/* Two-column content */
.page-split { margin: 60px 0; }
.split-row {
  display: flex;
  gap: 60px;
}
.split-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.split-col img {
  max-width: 100%;
  height: auto;
}

/* Large page buttons */
.page-buttons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}
.btn-page {
  display: inline-block;
  padding: 12px 24px;
  font-family: var(--font);
  font-size: 27px;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1;
  color: var(--white);
  text-align: center;
  text-decoration: none;
  transition: transform .4s;
}
.btn-page:hover,
.btn-page:focus-visible {
  color: var(--white);
  transform: translateY(-5px);
}
.btn-page-primary { background: var(--primary); }
.btn-page-accent { background: var(--secondary); }

/* =========================================================
   PARALLAX LAYER – background that moves while scrolling
   (height and position are set in main.js)
   ========================================================= */
.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 1s cubic-bezier(0, .33, .07, 1.03);
  will-change: transform;
}

/* =========================================================
   SCROLL ANIMATIONS – elements animate in as they enter the viewport
   (main.js adds .animated plus the data-animate name)
   ========================================================= */
[data-animate] { visibility: hidden; }
[data-animate].animated {
  visibility: visible;
  animation-duration: .9s;
  animation-timing-function: cubic-bezier(.16, 1, .3, 1);
}
.animated.rise   { animation-name: rise; }
.animated.reveal { animation-name: reveal; animation-duration: 1.1s; }

/* Short lift with a slight skew that settles flat */
@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 32px, 0) skewY(2.5deg); }
  to   { opacity: 1; transform: translate3d(0, 0, 0) skewY(0); }
}
/* Soft zoom-out from a light blur */
@keyframes reveal {
  from { opacity: 0; transform: scale(1.05); filter: blur(8px); }
  to   { opacity: 1; transform: scale(1); filter: blur(0); }
}

/* =========================================================
   PAGE LOADER – logo over a white screen until the page has loaded
   ========================================================= */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  background: var(--white);
  transition: opacity .45s ease, visibility .45s ease;
  /* Failsafe – hides itself even if main.js never runs */
  animation: loaderFailsafe 0s 8s forwards;
}
.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}
.page-loader-logo {
  width: 170px;
  height: auto;
  animation: loaderPulse 1.2s ease-in-out infinite;
}
/* Red bar with a yellow stripe sweeping across it */
.page-loader-bar {
  position: relative;
  width: 140px;
  height: 5px;
  overflow: hidden;
  background: var(--primary);
}
.page-loader-bar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 40%;
  background: var(--secondary);
  animation: loaderSweep 1s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}
@keyframes loaderSweep {
  to { left: 100%; }
}
@keyframes loaderFailsafe {
  to { opacity: 0; visibility: hidden; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .sauce-track { animation: none; overflow-x: auto; }
  .sauce-marquee { overflow-x: auto; }
  .sauce-tile img, .sauce-info, .product-card img, .btn-page { transition: none; }
  [data-animate] { visibility: visible; }
  .animated { animation: none !important; }
  .food-pattern-layer, .parallax-layer { transform: none !important; transition: none; }
  .page-loader-logo, .page-loader-bar::after { animation: none; }
}
