/* ============================================================
   LILAN — Custom Styles
   Preloader · Hero Slider · Marquee · Mobile Nav · Accessibility
   ============================================================ */

/* ----------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   ---------------------------------------------------------- */
:root {
  --lilan-red: #E30613;
  --lilan-red-hover: #D60512;
  --lilan-red-deep: #BA040F;
  --lilan-red-soft: #FEE2E2;
  --lilan-yellow: #FFC700;
  --lilan-yellow-soft: #FEF3C7;
  --lilan-charcoal: #121214;
  --lilan-charcoal-text: #191C1D;
  --lilan-charcoal-subtle: #4B5563;
  --lilan-surface: #F8F9FA;
  --lilan-surface-low: #F3F4F5;
  --lilan-white: #FFFFFF;
  --lilan-border: #E5E7EB;
  --lilan-green: #10B981;
  --lilan-pill-bg: #FFF3F1;

  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  --header-utility-height: 32px;
  --header-nav-height: 80px;
  --header-total-height: 112px;
  --header-actual-height: 112px;
}

/* ----------------------------------------------------------
   1. PRELOADER
   ---------------------------------------------------------- */
.lilan-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--lilan-white);
  transition: opacity 0.4s var(--ease-premium), transform 0.4s var(--ease-premium);
  will-change: opacity, transform;
}

.lilan-preloader.is-hidden {
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
}

.lilan-preloader.is-removed {
  display: none;
}

.preloader__logo {
  width: 140px;
  height: auto;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(8px);
  animation: preloaderFadeIn 0.5s var(--ease-premium) 0.1s forwards;
}

.preloader__tagline {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lilan-charcoal-subtle);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(6px);
  animation: preloaderFadeIn 0.5s var(--ease-premium) 0.25s forwards;
}

.preloader__progress {
  width: 120px;
  height: 2px;
  background: var(--lilan-border);
  border-radius: 999px;
  overflow: hidden;
  opacity: 0;
  animation: preloaderFadeIn 0.4s var(--ease-premium) 0.35s forwards;
}

.preloader__progress-bar {
  width: 0%;
  height: 100%;
  background: var(--lilan-red);
  border-radius: 999px;
  animation: preloaderProgress 0.6s var(--ease-smooth) 0.4s forwards;
}

@keyframes preloaderFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes preloaderProgress {
  to {
    width: 100%;
  }
}

/* ----------------------------------------------------------
   2. HEADER ENHANCEMENTS
   ---------------------------------------------------------- */

/* Sticky header scroll state */
.site-header {
  transition: box-shadow 0.3s var(--ease-smooth);
}

.site-header.is-scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

/* Focus states */
.site-header a:focus-visible,
.site-header button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.20);
  border-radius: 8px;
}

/* Mobile hamburger button */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 60;
  transition: background 0.2s;
}

.mobile-menu-btn:hover {
  background: var(--lilan-surface-low);
}

.mobile-menu-btn .hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--lilan-charcoal);
  border-radius: 2px;
  transition: all 0.3s var(--ease-premium);
  position: absolute;
}

.mobile-menu-btn .hamburger-line:nth-child(1) {
  transform: translateY(-6px);
}

.mobile-menu-btn .hamburger-line:nth-child(2) {
  transform: translateY(0);
}

.mobile-menu-btn .hamburger-line:nth-child(3) {
  transform: translateY(6px);
}

.mobile-menu-btn.is-active .hamburger-line:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}

.mobile-menu-btn.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.is-active .hamburger-line:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
}

@media (max-width: 1279px) {
  .mobile-menu-btn {
    display: flex;
  }
}

/* Mobile navigation drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(340px, 85vw);
  height: 100vh;
  height: 100dvh;
  background: var(--lilan-white);
  z-index: 60;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-premium);
  overflow-y: auto;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
  padding: 20px;
}

.mobile-nav-drawer.is-open {
  transform: translateX(0);
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 18, 20, 0.6);
  backdrop-filter: blur(4px);
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-smooth);
}

.mobile-nav-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}


/* Utility strip */
.utility-strip {
  height: 32px;
  display: flex;
  align-items: center;
}

@media (max-width: 767px) {
  .utility-strip {
    height: auto;
    min-height: 28px;
    padding: 6px 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
}

/* ----------------------------------------------------------
   3. HERO SLIDER (Redesigned — Full-bleed dark overlay)
   ---------------------------------------------------------- */
.hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0a0a0c;
}

/* Slide container */
.hero-slides-container {
  position: relative;
  width: 100%;
}

/* Individual slide */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

/* Full-background slide variant */
.hero-slide--fullbg {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.8s var(--ease-premium);
  min-height: calc(100vh - 112px);
}

.hero-slide--fullbg.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

/* Background image — full-bleed */
.hero-slide__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

/* Mobile bg hidden by default on desktop */
.hero-slide__bg--mobile {
  display: none;
}

.hero-slide__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  transition: transform 8s ease-out;
}

.hero-slide--fullbg.is-active .hero-slide__bg-img {
  transform: scale(1.06);
}

/* Dark gradient overlay — cinematic left-heavy for text legibility */
.hero-slide__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
      rgba(10, 10, 12, 0.88) 0%,
      rgba(10, 10, 12, 0.65) 40%,
      rgba(10, 10, 12, 0.35) 65%,
      rgba(10, 10, 12, 0.15) 100%);
  z-index: 2;
}

/* Legacy mobile image class — no longer used */
.hero-slide__mobile-img {
  display: none;
}

/* Overlay — content sits at bottom like references */
.hero-slide__overlay {
  position: relative;
  z-index: 10;
  padding: 0;
  display: flex;
  align-items: flex-end;
  min-height: calc(100vh - 112px);
  padding-bottom: 80px;
}

.hero-slide__content-wrap {
  max-width: 620px;
}

/* Content stagger animation */
.hero-slide__content-wrap>* {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease-premium), transform 0.65s var(--ease-premium);
}

.hero-slide.is-active .hero-slide__content-wrap>* {
  opacity: 1;
  transform: translateY(0);
}

.hero-slide.is-active .hero-slide__content-wrap>*:nth-child(1) {
  transition-delay: 0.05s;
}

.hero-slide.is-active .hero-slide__content-wrap>*:nth-child(2) {
  transition-delay: 0.15s;
}

.hero-slide.is-active .hero-slide__content-wrap>*:nth-child(3) {
  transition-delay: 0.25s;
}

.hero-slide.is-active .hero-slide__content-wrap>*:nth-child(4) {
  transition-delay: 0.35s;
}

/* ── Eyebrow ──────────────────────────────────────────── */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

.hero-eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lilan-white);
  flex-shrink: 0;
}

/* ── Heading ──────────────────────────────────────────── */
.hero-heading {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--lilan-white);
  margin: 0 0 20px;
}

.hero-heading__highlight {
  color: var(--lilan-white);
  position: relative;
  display: inline;
}

.hero-heading__highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 3px;
  background: var(--lilan-red);
  border-radius: 2px;
}

/* ── Body text ────────────────────────────────────────── */
.hero-body {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
  max-width: 440px;
  margin: 0 0 32px;
}

/* ── CTA ──────────────────────────────────────────────── */
.hero-cta-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 12px;
  background: var(--lilan-red);
  color: var(--lilan-white);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all 0.25s var(--ease-smooth);
  box-shadow: 0 8px 24px rgba(227, 6, 19, 0.3);
}

.hero-cta:hover {
  background: #c50514;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(227, 6, 19, 0.4);
}

/* ----------------------------------------------------------
   3a. HERO SLIDER — PAGINATION (Redesigned thin bars)
   ---------------------------------------------------------- */
.hero-pagination {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 20;
}

.hero-dot {
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width 0.4s var(--ease-premium),
    background 0.3s var(--ease-smooth);
}

.hero-dot:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.hero-dot.is-active {
  width: 56px;
  background: var(--lilan-white);
}

/* Legacy: keep for backward compat, no longer used */
.hero-highlight {
  color: var(--lilan-red);
  position: relative;
  display: inline-block;
}

.hero-highlight svg {
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 8px;
}

/* ----------------------------------------------------------
   3b. HERO — Visual Composition Elements
   ---------------------------------------------------------- */
.hero-visual-backing {
  position: absolute;
  width: 92%;
  height: 82%;
  border-radius: 24px;
  transform: rotate(2deg);
  z-index: 1;
}

.hero-visual-backing--yellow {
  background: linear-gradient(135deg, #FDC914, #FFC700, #FFE08B);
  box-shadow: 0 8px 32px rgba(255, 199, 0, 0.25);
  opacity: 0.95;
}

.hero-visual-backing--dark {
  position: absolute;
  width: 90%;
  height: 80%;
  background: var(--lilan-charcoal);
  border-radius: 24px;
  transform: rotate(-1deg);
  opacity: 0.08;
  z-index: 0;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: visible;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  z-index: 2;
}

.hero-img-packaging {
  position: absolute;
  left: 8px;
  bottom: 16px;
  width: 60%;
  z-index: 10;
  transition: transform 0.3s var(--ease-smooth);
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.22));
  border-radius: 8px;
}

.hero-img-packaging:hover {
  transform: scale(1.04);
}

.hero-img-mascot {
  position: relative;
  width: 65%;
  z-index: 20;
  margin-right: -48px;
  margin-bottom: -12px;
  transition: transform 0.3s var(--ease-smooth);
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.25));
}

.hero-img-mascot:hover {
  transform: scale(1.03);
}

/* Single image compositions (slides 2 & 3) */
.hero-img-single {
  position: relative;
  width: 85%;
  max-width: 480px;
  z-index: 10;
  transition: transform 0.3s var(--ease-smooth);
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.22));
}

.hero-img-single:hover {
  transform: scale(1.03);
}

.hero-img-single-mascot {
  position: relative;
  width: 70%;
  max-width: 400px;
  z-index: 10;
  transition: transform 0.3s var(--ease-smooth);
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.25));
}

.hero-img-single-mascot:hover {
  transform: scale(1.03);
}

/* ----------------------------------------------------------
   4. MARQUEE / TRUST STRIP
   ---------------------------------------------------------- */
.marquee-section {
  width: 100%;
  background: var(--lilan-surface);
  padding: 24px 0;
  overflow: hidden;
  border-top: 1px solid var(--lilan-border);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
}

.marquee-section:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--lilan-pill-bg);
  border: 1px solid var(--lilan-border);
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  height: 48px;
  transition: transform 0.2s var(--ease-smooth), box-shadow 0.2s var(--ease-smooth);
}

.marquee-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.marquee-pill__icon {
  color: var(--lilan-red);
  font-size: 18px;
  flex-shrink: 0;
}

.marquee-pill__text {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--lilan-charcoal);
  line-height: 1;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ----------------------------------------------------------
   4c. LEGACY SECTION
   ---------------------------------------------------------- */
.legacy-section {
  width: 100%;
  background: var(--lilan-white);
  padding: 80px 0 0;
  overflow: hidden;
}

.legacy-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── Header: Left eyebrow + Right heading ─────────────── */
.legacy-header {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 56px;
}

.legacy-header__left {
  padding-top: 8px;
}

.legacy-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lilan-charcoal);
}

.legacy-eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lilan-charcoal);
  flex-shrink: 0;
}

.legacy-heading {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--lilan-charcoal);
  margin: 0;
  max-width: 720px;
}

.legacy-heading__italic {
  font-style: italic;
  font-weight: 500;
}

.legacy-accent {
  white-space: nowrap;
}

.legacy-accent__icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  vertical-align: middle;
  position: relative;
  top: -2px;
}

.legacy-accent__icon--red {
  background: var(--lilan-red);
}

.legacy-accent__icon--yellow {
  background: var(--lilan-yellow);
}

/* ── 4 Stat Cards Grid ────────────────────────────────── */
.legacy-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 64px;
}

/* Base card */
.legacy-card {
  border-radius: 20px;
  padding: 28px 24px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

/* Card variant: White with tags */
.legacy-card--tags {
  background: var(--lilan-white);
  border: 1px solid var(--lilan-border);
}

.legacy-card__tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: auto;
}

.legacy-card__tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--lilan-border);
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--lilan-charcoal);
  white-space: nowrap;
  background: var(--lilan-white);
  transition: background 0.2s, border-color 0.2s;
}

.legacy-card__tag:hover {
  background: var(--lilan-surface);
  border-color: var(--lilan-charcoal-subtle);
}

.legacy-card__footer {
  margin-top: 20px;
}

.legacy-card__small-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--lilan-charcoal-subtle);
  margin-bottom: 2px;
}

.legacy-card__stat-text {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--lilan-charcoal);
  line-height: 1;
  letter-spacing: -0.02em;
}

/* Card variant: Yellow */
.legacy-card--yellow {
  background: var(--lilan-yellow);
}

.legacy-card__label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--lilan-charcoal-subtle);
  margin-bottom: 4px;
}

.legacy-card--yellow .legacy-card__label {
  color: rgba(18, 18, 20, 0.6);
}

.legacy-card__stat-wrap {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.legacy-card__stat {
  font-family: 'Poppins', sans-serif;
  font-size: 52px;
  font-weight: 700;
  color: var(--lilan-charcoal);
  line-height: 1;
  letter-spacing: -0.03em;
}

.legacy-card__stat-suffix {
  font-family: 'Poppins', sans-serif;
  font-size: 36px;
  font-weight: 600;
  color: var(--lilan-charcoal);
  line-height: 1;
}

.legacy-card__desc {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--lilan-charcoal-subtle);
  margin: 8px 0 0;
}

.legacy-card--yellow .legacy-card__desc {
  color: rgba(18, 18, 20, 0.55);
}

/* Card variant: Background image */
.legacy-card--image {
  padding: 0;
  position: relative;
}

.legacy-card__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  z-index: 1;
}

.legacy-card__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 18, 20, 0.15) 0%, rgba(18, 18, 20, 0.7) 100%);
  border-radius: 20px;
  z-index: 2;
}

.legacy-card__image-content {
  position: relative;
  z-index: 3;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.legacy-card__stat--light {
  color: var(--lilan-white);
}

.legacy-card__label--light {
  color: rgba(255, 255, 255, 0.8);
}

.legacy-card__desc--light {
  color: rgba(255, 255, 255, 0.65);
}

/* Card variant: White (Product Range) */
.legacy-card--white {
  background: var(--lilan-white);
  border: 1px solid var(--lilan-border);
}

/* Card variant: Red (Product Range) */
.legacy-card--red {
  background: linear-gradient(135deg, #BA040F 0%, #E30613 100%);
  border: 1px solid rgba(227, 6, 19, 0.3);
  box-shadow: 0 10px 25px -5px rgba(227, 6, 19, 0.25);
}

.legacy-card--red .legacy-card__label {
  color: rgba(255, 255, 255, 0.85);
}

.legacy-card--red .legacy-card__stat,
.legacy-card--red .legacy-card__stat-suffix {
  color: #FFFFFF;
}

.legacy-card--red .legacy-card__desc {
  color: rgba(255, 255, 255, 0.85);
}

/* ── Brand Logo Infinite Ticker ───────────────────────── */
.brand-ticker {
  width: 100%;
  padding: 40px 0 48px;
  overflow: hidden;
  border-top: 1px solid var(--lilan-border);
}

.brand-ticker__track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: brandTickerScroll 35s linear infinite;
}

.brand-ticker:hover .brand-ticker__track {
  animation-play-state: paused;
}

.brand-ticker__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lilan-charcoal);
  opacity: 0.35;
  transition: opacity 0.3s var(--ease-smooth);
}

.brand-ticker__logo:hover {
  opacity: 0.7;
}

.brand-ticker__logo svg {
  height: 28px;
  width: auto;
  display: block;
}

@keyframes brandTickerScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ----------------------------------------------------------
   4c. WHY LILAN SECTION (Accordion + Visual Showcase)
   ---------------------------------------------------------- */
.why-lilan-section {
  width: 100%;
  background: var(--lilan-surface);
  padding: 84px 0 100px;
  position: relative;
  border-top: 1px solid var(--lilan-border);
}

/* Accordion Item Card */
.why-accordion {
  background: var(--lilan-white);
  border: 1px solid var(--lilan-border);
  border-radius: 18px;
  transition: border-color 0.3s var(--ease-premium), box-shadow 0.3s var(--ease-premium);
  overflow: hidden;
  position: relative;
}

.why-accordion:hover {
  border-color: rgba(18, 18, 20, 0.24);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.why-accordion.is-active {
  border-color: var(--lilan-red);
  box-shadow: 0 8px 28px rgba(227, 6, 19, 0.09), 0 2px 8px rgba(0, 0, 0, 0.03);
}

.why-accordion::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--lilan-red);
  opacity: 0;
  transition: opacity 0.3s var(--ease-premium);
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;
  z-index: 1;
}

.why-accordion.is-active::before {
  opacity: 1;
}

/* Header button */
.why-accordion__header {
  width: 100%;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}

.why-accordion__title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.why-accordion__icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--lilan-surface-low);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lilan-charcoal);
  flex-shrink: 0;
  transition: background 0.3s var(--ease-premium), color 0.3s var(--ease-premium);
}

.why-accordion.is-active .why-accordion__icon-box {
  background: var(--lilan-red-soft);
  color: var(--lilan-red);
}

.why-accordion__title {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--lilan-charcoal);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* Toggle Pill */
.why-accordion__toggle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--lilan-surface-low);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lilan-charcoal);
  flex-shrink: 0;
  transition: all 0.3s var(--ease-premium);
}

.why-accordion:hover .why-accordion__toggle {
  background: var(--lilan-charcoal);
  color: var(--lilan-white);
}

.why-accordion.is-active .why-accordion__toggle {
  background: var(--lilan-charcoal);
  color: var(--lilan-white);
  transform: rotate(45deg);
}

.why-accordion__toggle-icon {
  font-size: 18px;
  line-height: 1;
  transition: transform 0.3s var(--ease-premium);
}

/* Accordion Body (CSS grid 0fr -> 1fr smooth transition) */
.why-accordion__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s var(--ease-premium);
  padding: 10px 0;
}

.why-accordion.is-active .why-accordion__body {
  grid-template-rows: 1fr;
}

.why-accordion__content {
  overflow: hidden;
  padding: 0 22px 22px 76px;
  /* indented past the icon */
}

.why-accordion__desc {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--lilan-charcoal-subtle);
  line-height: 1.6;
  margin-bottom: 14px;
}

/* Tags (Inspired by Image 1) */
.why-accordion__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.why-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 9999px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--lilan-surface-low);
  color: var(--lilan-charcoal-text);
  border: 1px solid var(--lilan-border);
  transition: background 0.2s, border-color 0.2s;
}

.why-tag:hover {
  background: var(--lilan-yellow-soft);
  border-color: rgba(255, 199, 0, 0.4);
}

/* Right Showcase Panel (Desktop) */
.why-showcase {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  overflow: hidden;
  background: #101012;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.why-showcase__images {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.why-showcase__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.55s var(--ease-premium), transform 0.65s var(--ease-premium);
  will-change: opacity, transform;
}

.why-showcase__img.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

/* Bottom Glassmorphic Badge over Image */
.why-showcase__badge {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  z-index: 10;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(18, 18, 20, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Mobile responsive adjustments */
@media (max-width: 1023px) {
  .why-lilan-section {
    padding: 64px 0 76px;
  }

  .why-accordion__content {
    padding: 0 18px 18px 18px;
    /* full width on mobile/tablet */
  }

  .why-accordion__header {
    padding: 16px 18px 12px 18px;
  }

  .why-accordion__title {
    font-size: 15px;
  }
}

/* ----------------------------------------------------------
   5. RESPONSIVE — HERO
   ---------------------------------------------------------- */

/* Tablet */
@media (max-width: 1023px) {

  .hero-slide--fullbg,
  .hero-slide__overlay {
    min-height: calc(100vh - 90px);
  }

  .hero-heading {
    font-size: clamp(28px, 4vw, 42px);
  }

  .hero-slide__overlay {
    padding-bottom: 64px;
  }
}

/* Mobile */
@media (max-width: 767px) {

  /* Swap to portrait mobile images */
  .hero-slide__bg:not(.hero-slide__bg--mobile) {
    display: none;
  }

  .hero-slide__bg--mobile {
    display: block;
  }

  /* Bottom-up dark gradient scrim for mobile text legibility */
  .hero-slide__bg::after {
    background: linear-gradient(to top,
        rgba(10, 10, 12, 0.94) 0%,
        rgba(10, 10, 12, 0.85) 45%,
        rgba(10, 10, 12, 0.45) 75%,
        rgba(10, 10, 12, 0.15) 100%);
  }

  .hero-slide--fullbg,
  .hero-slide__overlay {
    min-height: calc(100vh - 80px);
  }

  .hero-slide__overlay {
    padding-bottom: 56px;
    align-items: flex-end;
  }

  .hero-slide__content-wrap {
    max-width: 100%;
  }

  .hero-heading {
    font-size: 28px;
    line-height: 1.15;
  }

  .hero-body {
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    max-width: 100%;
  }

  .hero-cta {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
  }

  .hero-pagination {
    bottom: 20px;
  }

  .hero-dot {
    width: 24px;
    height: 2px;
  }

  .hero-dot.is-active {
    width: 40px;
  }

  /* Marquee mobile — slightly slower */
  .marquee-track {
    animation-duration: 30s;
  }

  .marquee-pill {
    padding: 10px 16px;
    height: 42px;
  }

  .marquee-pill__text {
    font-size: 11px;
  }
}

/* ----------------------------------------------------------
   5b. RESPONSIVE — LEGACY SECTION
   ---------------------------------------------------------- */

/* Tablet */
@media (max-width: 1023px) {
  .legacy-header {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .legacy-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .legacy-card {
    min-height: 220px;
  }

  .legacy-card__stat {
    font-size: 44px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .legacy-section {
    padding: 48px 0 0;
  }

  .legacy-header {
    margin-bottom: 36px;
  }

  .legacy-heading {
    font-size: 26px;
  }

  .legacy-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .legacy-card {
    min-height: 200px;
    padding: 24px 20px;
  }

  .legacy-card__stat {
    font-size: 38px;
  }

  .legacy-card__stat-text {
    font-size: 34px;
  }

  .legacy-card__stat-suffix {
    font-size: 28px;
  }

  .brand-ticker__track {
    gap: 40px;
    animation-duration: 25s;
  }

  .brand-ticker__logo svg {
    height: 22px;
  }
}

/* ----------------------------------------------------------
   6. REDUCED MOTION
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {

  /* Preloader */
  .lilan-preloader {
    transition: none;
  }

  .preloader__logo,
  .preloader__tagline,
  .preloader__progress {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .preloader__progress-bar {
    animation: none;
    width: 100%;
  }

  /* Hero slider */
  .hero-slide__content>* {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .hero-slide__visual .hero-visual-wrapper {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .hero-dot {
    transition: none;
  }

  /* Marquee */
  .marquee-track {
    animation: none;
  }

  /* Brand Ticker */
  .brand-ticker__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    padding: 0 16px;
  }

  .marquee-section .marquee-track {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
  }

  /* General */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ----------------------------------------------------------
   7. UTILITY — SCROLLBAR HIDE
   ---------------------------------------------------------- */
::-webkit-scrollbar {
  display: none;
}

html {
  scrollbar-width: none;
}

/* ----------------------------------------------------------
   8. GLOBAL FOCUS STYLES
   ---------------------------------------------------------- */
a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.20);
  border-radius: 8px;
}

/* ----------------------------------------------------------
   9. SKIP LINK
   ---------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--lilan-charcoal);
  color: var(--lilan-white);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border-radius: 0 0 12px 12px;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ----------------------------------------------------------
   10. PROVEN PAN-INDIA NETWORK SECTION
   ---------------------------------------------------------- */
.proven-network-section {
  position: relative;
  background-color: #ffffff;
}

.proven-network__visual-wrapper {
  box-shadow: 0 20px 48px -12px rgba(18, 18, 18, 0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.proven-network__visual-wrapper:hover {
  box-shadow: 0 24px 56px -12px rgba(18, 18, 18, 0.18);
}

.proven-network__stat-item {
  position: relative;
}

/* ----------------------------------------------------------
   11. SWEETALERT2 CUSTOM TOAST STYLING (LILAN BRAND THEME)
   ---------------------------------------------------------- */
.lilan-swal-popup {
  border-radius: 16px !important;
  background: #18181b !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.6) !important;
  padding: 16px 20px !important;
  font-family: 'Inter', -apple-system, sans-serif !important;
}

.lilan-swal-popup .swal2-title {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 !important;
  padding: 0 !important;
}

.lilan-swal-popup .swal2-html-container {
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  color: #d4d4d8 !important;
  line-height: 1.45 !important;
  margin-top: 4px !important;
}

.lilan-swal-popup .swal2-timer-progress-bar {
  background: #E30613 !important;
  height: 3px !important;
}

@media (max-width: 639px) {
  .swal2-container.swal2-top {
    padding: 12px !important;
  }
  .lilan-swal-popup {
    width: 94% !important;
    margin: 8px auto !important;
    border-radius: 14px !important;
  }
}