@font-face {
  font-family: "Soulcraft";
  src: url("../fonts/soulcraftgx.ttf");
}

@font-face {
  font-family: "Bilo, sans-serif";
  src: url("../fonts/bilo.otf");
}

/* ==========================================================================
    BASE STYLES & RESET
    ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Soulcraft", sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(#0a1124, #1c2a49);
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  /* Prevent horizontal scroll */
}

/* ==========================================================================
    SNOWFALL BACKGROUND
    ========================================================================== */
.scene {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  will-change: transform;
  transform: translateZ(0);
}

/* Mountains */
.mountain {
  position: absolute;
  bottom: 0;
  width: 40vw;
  height: 40vw;
  background: linear-gradient(to bottom, #1b2747, #0d152a);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.05));
  will-change: transform;
}

.m1 {
  left: 10vw;
  transform: scale(1.2);
}

.m2 {
  right: 10vw;
  transform: scale(1.6);
  opacity: 0.7;
}

/* Snowfall layers */
.snow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: transform;
}

.snow:before,
.snow:after,
.snow div {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  animation: snowfall var(--speed) linear infinite;
  opacity: var(--opacity);
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Layer 1: tiny dense snow */
.snow:before {
  --size: 1px;
  --opacity: 0.5;
  --speed: 15s;
  /* Slower = less CPU */
  background-image: radial-gradient(var(--size) var(--size) at 20% 20%,
      white 90%,
      transparent),
    radial-gradient(var(--size) var(--size) at 80% 40%, white 90%, transparent),
    radial-gradient(var(--size) var(--size) at 10% 70%, white 90%, transparent),
    radial-gradient(var(--size) var(--size) at 50% 10%, white 90%, transparent),
    radial-gradient(var(--size) var(--size) at 90% 60%, white 90%, transparent);
  background-size: 100% 600px;
}

/* Layer 2: medium snow */
.snow:after {
  --size: 2px;
  --opacity: 0.4;
  --speed: 12s;
  background-image: radial-gradient(var(--size) var(--size) at 15% 10%,
      white 90%,
      transparent),
    radial-gradient(var(--size) var(--size) at 70% 20%, white 90%, transparent),
    radial-gradient(var(--size) var(--size) at 40% 50%, white 90%, transparent);
  background-size: 100% 600px;
}

/* Layer 3: large soft flakes */
.snow div {
  --size: 3px;
  --opacity: 0.3;
  --speed: 10s;
  background-image: radial-gradient(var(--size) var(--size) at 10% 30%,
      white 90%,
      transparent),
    radial-gradient(var(--size) var(--size) at 60% 10%, white 90%, transparent),
    radial-gradient(var(--size) var(--size) at 80% 50%, white 90%, transparent);
  background-size: 100% 600px;
}

@keyframes snowfall {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 0 600px;
  }
}

/* ==========================================================================
    ORDERING SECTION BLOCK
    ========================================================================== */
/* .ordering {
    max-width: 1350px;
    margin: 0 auto;
    padding: 3rem 2rem;
    margin-top: 200px;
    z-index: 1;
} */
.ordering {
  max-width: 1350px;
  margin: 0 auto;
  padding: 3rem 2rem;
  margin-top: 180px;
  /* desktop */
  z-index: 1;
}

@media (max-width: 768px) {
  .ordering {
    margin-top: 90px;
    /* navbar height on mobile */
  }
}

/* Flipdish embed container */
.ordering__embed {
  margin-top: 2rem;
  position: relative;
  width: 100%;
  min-height: 70vh;
  /* NOT full screen */
  padding-bottom: 2rem;
  z-index: 1;
}

/* Ensure Flipdish iframe is responsive */
.ordering__embed iframe {
  width: 100% !important;
  min-height: 65vh !important;
  max-height: 80vh !important;
  border: none;
}

/* ==========================================================================
    INFO SECTION BLOCK
    ========================================================================== */
.info {
  backdrop-filter: blur(10px);
  padding: 3rem 2rem;
  margin-top: 2rem;
}

.info__container {
  margin: 0 auto;
  background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
  color: white;
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 2rem;
}

.hero__title {
  font-family: "Soulcraft", sans-serif;
  font-size: 4rem;
}

.download-app {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 10px;
}

.download-app a {
  display: flex;
  align-items: center;
  text-decoration: none;
  background: red;
  color: #ffffff;
  padding: 7px 16px 2px;
}

.download-app a:hover {
  background: #ffffff;
  color: red;
}

.download-app .app-component-one {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  border-right: 2px solid #ffffff;
}

.download-app .app-component-two {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.download-app .icon-component svg {
  width: 35px;
  height: 35px;
  /* color: #ffffff; */
  color: currentColor;
  transition: color 0.4s ease;
}

.download-app .block-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.download-app .block-text .small-text {
  font-size: 10px;
  font-family: "Soulcraft";
  font-weight: 700;
  line-height: 17px;
  color: #ffffff;
  text-transform: capitalize;
}

.download-app .block-text .bold-text {
  font-size: 20px;
  font-family: "Soulcraft";
  font-weight: 700;
  color: #ffffff;
  text-transform: capitalize;
}

.download-app a:hover .block-text .small-text,
.download-app a:hover .block-text .bold-text {
  color: red;
}

@media (max-width: 1045px) {
  .hero__title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {

  .snow:before,
  .snow:after {
    animation: none;
    opacity: 0.2;
  }

  .snow div {
    display: none;
  }

  .hero__title {
    font-size: 2rem;
    padding-bottom: 10px;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .ordering {
    padding: 2rem 1rem;
  }

  .ordering__embed {
    padding: 1rem;
  }

  .info__container {
    grid-template-columns: 1fr;
  }

  .download-app {
    padding-top: 10px;
  }
}

@media (max-width: 740px) {
  .hero {
    padding: 2rem 1rem;
  }

  .hero__title {
    font-size: 1.5rem;
  }

  .download-app {
    transform: scale(0.8);
  }

  .ordering__embed {
    padding: 0.5rem;
  }
}

@media (max-width: 768px) {
  .ordering__embed {
    min-height: auto;
    padding: 0;
  }

  /* Force Flipdish to stay in flow */
  .ordering__embed iframe,
  #flipdish-menu iframe,
  #flipdish-menu>div {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 60vh !important;
    max-height: none !important;
    z-index: 1 !important;
  }

  /* Prevent body lock if flipdish tries to apply it */
  body.fd-open {
    overflow: auto !important;
    position: static !important;
  }
}

@media (max-width: 550px) {
  .hero {
    padding: 2rem 1rem;
  }

  .hero__title {
    font-size: 1.1rem;
  }
}

@media (max-width: 380px) {
  .hero {
    padding: 2rem 1rem;
  }

  .hero__title {
    font-size: 1rem;
  }
}

html,
body {
  overflow-x: hidden;
  overflow-y: auto !important;
}