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

/* Let hero stop clipping the mobile dropdown panel */
.hero-section { overflow: hidden; }
@media (max-width: 991.98px) {
  .hero-section { overflow: visible; }
}

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

/* Brand alignment */
.navbar-brand {
  display: flex;
  align-items: center;
  margin-top: 2px;
}

/* Responsive logo box: scalable padding + border */
.logo-box {
  margin-top: 0.5px;
  padding: clamp(3px, 1vw, 3px);               /* responsive padding */
  border: clamp(3px, 0.9vw, 3px) solid black;  /* responsive border thickness */
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  display: inline-block;
}

/* Responsive logo image */
.logo-box img {
  display: block;
  height: clamp(30px, 5.2vw, 55px);            /* scales with screen */
  width: auto;
}

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

/* Hamburger visibility on glassy bg */
.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");
}

/* Small devices navbar padding tweak */
@media (max-width: 576px) {
  .custom-navbar {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .logo-box {
    padding: clamp(4px, 1vw, 6px);
    border-width: clamp(4px, 0.7vw, 5px);
  }
}

/* ===========================
   MOBILE COLLAPSE FIX (no overlap/flash)
   =========================== */
@media (max-width: 991.98px) {

  /* Prevent flash of unstyled collapse (FOUC) */
  .navbar-collapse {
    display: none;                            /* default hidden */
  }

  /* Styled dropdown panel when open */
  .navbar-collapse.collapse.show {
    display: block !important;                /* show instantly with styles */
    position: fixed;
    top: 70px;                                /* same as 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;                         /* scroll if many items */
  }

  /* Dropdown link spacing & style */
  .navbar-nav .nav-link {
    color: #000 !important;
    padding: .65rem 0;
    font-weight: 600;
  }
  .navbar-nav .nav-link.active {
    color: orange !important;
  }
}

/* ===========================
   (Optional) YOUR CARD/SLIDER STYLES
   =========================== */
.spice-slider {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}
.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; }
}
