/* ===========================
   GLOBAL
   =========================== */
body {
  padding-top: 70px;                /* keep content clear of fixed navbar */
  background-color: #F5F5F5;
}

/* ===========================
   HERO
   =========================== */
.hero-section {
  position: relative;
  height: 70vh;                     /* not full-height; keeps fold clean */
  overflow: hidden;                 /* will be relaxed on mobile */
}

.bg-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -1;
}

.overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;          /* vertically center logo + button */
  text-align: center;
  padding: 2rem;
  gap: 16px;                        /* space between logo and button */
}

/* Base logo rule (phones first) */
.hero-logo {
  max-width: min(85vw, 360px) !important;  /* override inline width safely */
  height: auto;
  display: block;
}

/* Laptops / desktops: grow but never overflow screen */
@media (min-width: 992px) {
  .hero-logo {
    /* Scales with viewport width, stays between 420px and 800px, and also
       hard-capped to 92vw so it never spills outside small laptops */
    max-width: clamp(900px, 40vw, 1000px) !important;
    max-width: min(92vw, clamp(900px, 40vw, 1000px)) !important;
    max-height: 70vh;              /* also cap by height so button stays visible */
    margin-top: -5%;
  }
}

/* ===========================
   NAVBAR
   =========================== */
.custom-navbar {
  background-color: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: 70px;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
  z-index: 1000;
}

/* On very small screens, reduce the horizontal padding (HTML uses px-5) */
@media (max-width: 576px) {
  .custom-navbar {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* Responsive logo container around the brand in navbar */
.logo-box {
  margin-top: 9px;
  padding: clamp(3px, 1vw, 3px);
  border: clamp(3px, 0.9vw, 3px) solid black;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  display: inline-block;
}

/* Responsive logo image in navbar box */
.logo-box img {
  height: clamp(38px, 6vw, 55px);
  width: auto;
  display: block;
}

/* Nav links */
.navbar-nav .nav-link { color: black !important; font-weight: 500; }
.navbar-nav .nav-link.active { color: orange !important; font-weight: bold; }

/* Make hamburger lines visible on glassy background */
.navbar-toggler { border-color: rgba(0,0,0,.35); }
.navbar-toggler-icon {
  background-image:
    url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0,0,0,0.85)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* --- Fix mobile collapse overlapping / flash --- */
@media (max-width: 991.98px) {
  .hero-section { overflow: visible; }   /* allow the drawer to overflow hero */

  /* OPEN state: fixed dropdown panel under the navbar */
  .navbar-collapse.collapse.show {
    position: fixed;
    top: 70px;               /* navbar height */
    left: 0; right: 0;
    z-index: 1040;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 12px;
    margin: 0 12px;
    padding: 12px 16px;
    box-shadow: 0 12px 28px rgba(0,0,0,.16);
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }

  /* TRANSITION state: same layout to prevent the “flash” */
  .navbar-collapse.collapsing {
    position: fixed;
    top: 70px;
    left: 0; right: 0;
    z-index: 1040;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 12px;
    margin: 0 12px;
    padding: 12px 16px;
    box-shadow: 0 12px 28px rgba(0,0,0,.16);
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    height: auto !important;       /* stop default height animation */
    transition: none !important;   /* avoid flicker */
  }

  .navbar-nav .nav-link {
    padding: .65rem 0;
  }
  .navbar-nav .nav-link.active { color: orange !important; }
}

/* ===========================
   FEATURED IMAGE CARDS
   =========================== */
.spice-slider {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}
@media (min-width: 992px) {
  .hero-section .btn {
    margin-top: -70px;  /* adjust button position */
  }
}

.slider-viewport { overflow: hidden; width: 100%; }

.slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  will-change: transform;
  transition: transform 400ms ease;
}

.card-img {
  flex: 0 0 calc((100% - 2*24px) / 3);
  border-radius: 40px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.card-img img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

@media (max-width: 992px) {
  .card-img { flex: 0 0 calc((100% - 24px) / 2); }
}


@media (max-width: 576px) {
  .card-img { flex: 0 0 100%; }
  .card-img img { height: 220px; }
}


