/**
 * MEC Logistics & MEC International (Bangladesh)
 * Advanced Web 2.0 Design System — Full Rewrite
 * Mobile-first | Custom Properties | Animations | Scroll-Reveal | Ken-Burns Hero
 */

/* ============================================================
   1. CSS CUSTOM PROPERTIES — DESIGN TOKEN SYSTEM
   ============================================================ */
:root {
  /* Brand Palette */
  --brand-red:        #D52B2B;
  --brand-red-dark:   #B71C1C;
  --brand-red-light:  #FDE8E8;
  --brand-navy:       #0F172A;
  --brand-slate:      #1E293B;
  --brand-slate-mid:  #334155;

  /* Surface & UI */
  --surface-white:    #FFFFFF;
  --surface-light:    #F8FAFC;
  --surface-muted:    #F1F5F9;
  --border-light:     rgba(226, 232, 240, 0.85);
  --border-red:       rgba(213, 43, 43, 0.3);

  /* Typography */
  --font-body:        'Inter', system-ui, sans-serif;
  --font-display:     'Bebas Neue', 'Outfit', system-ui, sans-serif;
  --font-bebas:       'Bebas Neue', sans-serif;
  --font-outfit:      'Outfit', system-ui, sans-serif;

  /* Shadows */
  --shadow-card:      0 4px 6px -1px rgba(0,0,0,.05), 0 2px 4px -2px rgba(0,0,0,.03);
  --shadow-hover:     0 20px 40px -10px rgba(15,23,42,.12), 0 8px 16px -6px rgba(0,0,0,.06);
  --shadow-glow-red:  0 0 24px rgba(213,43,43,.35);
  --shadow-web2:      0 10px 25px -5px rgba(0,0,0,.08), 0 8px 10px -6px rgba(0,0,0,.04);

  /* Timing */
  --ease-spring:      cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth:      cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:         cubic-bezier(0, 0, 0.2, 1);

  /* Spacing scale */
  --space-section:    5rem;
}

/* ============================================================
   2. BASE RESETS & GLOBAL
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: #1E293B;
  background: var(--surface-light);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3.font-display, .font-display, .font-bebas, [style*="Bebas Neue"] {
  font-family: 'Bebas Neue', sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em !important;
  word-spacing: normal !important;
  line-height: 1.22 !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1 {
  font-family: var(--font-bebas);
  font-weight: 400 !important;
  letter-spacing: 0.025em !important;
  word-spacing: normal !important;
  line-height: 1.2 !important;
  color: var(--brand-navy);
}

h2 {
  font-family: var(--font-bebas);
  font-weight: 400 !important;
  letter-spacing: 0.02em !important;
  word-spacing: normal !important;
  line-height: 1.22 !important;
  color: var(--brand-navy);
}

h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400 !important;
  letter-spacing: 0.015em !important;
  word-spacing: normal !important;
  line-height: 1.25 !important;
  color: var(--brand-navy);
}

.font-bebas {
  font-family: 'Bebas Neue', sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em !important;
  word-spacing: normal !important;
}

.font-display {
  font-family: 'Bebas Neue', sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em !important;
  word-spacing: normal !important;
}

.stat-counter, .stat-number, .stat-value {
  font-family: 'Bebas Neue', sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: 0.03em !important;
  line-height: 1 !important;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

::selection {
  background: var(--brand-red);
  color: #fff;
}

/* ============================================================
   3. FONT AWESOME SOLID ICON HELPERS (Brand Unified)
   ============================================================ */
.fas, .fa-solid {
  transition: transform 0.2s ease, color 0.2s ease;
}

.fas-red, .fa-red {
  color: #D52B2B !important;
}

.fas-navy, .fa-navy {
  color: #0F172A !important;
}

.fas-white, .fa-white {
  color: #ffffff !important;
}

/* ============================================================
   4. ANIMATED GRADIENT TEXT UTILITY
   ============================================================ */
.text-gradient-red {
  background: linear-gradient(135deg, #D52B2B 0%, #EF4444 60%, #FCA5A5 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s linear infinite alternate;
}

@keyframes gradient-shift {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ============================================================
   5. BUTTON SYSTEM
   ============================================================ */

/* Primary Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  border: 2px solid transparent;
  box-shadow: 0 4px 14px rgba(213,43,43,.35);
  transition: all 0.25s var(--ease-smooth);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.12) 0%, transparent 60%);
  pointer-events: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-red);
  background: linear-gradient(135deg, var(--brand-red-dark) 0%, #9B1515 100%);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(213,43,43,.25);
}

/* Ghost / Outline Button */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--brand-red);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  border: 2px solid var(--brand-red);
  transition: all 0.25s var(--ease-smooth);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.btn-ghost:hover {
  background: var(--brand-red);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-red);
}

.btn-ghost:active {
  transform: translateY(0);
}

/* Navy ghost variant */
.btn-navy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--brand-navy);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  border: 2px solid transparent;
  transition: all 0.25s var(--ease-smooth);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.btn-navy:hover {
  background: var(--brand-slate);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15,23,42,.3);
}

/* ============================================================
   6. SECTION HEADING UTILITY
   ============================================================ */
.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading .sh-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #FDE8E8 0%, #FFF1F1 100%);
  border: 1px solid rgba(213,43,43,.2);
  color: var(--brand-red-dark);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.section-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.section-heading .sh-sub {
  font-size: 0.9375rem;
  color: #64748B;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Left-aligned variant */
.section-heading.text-left {
  text-align: left;
}
.section-heading.text-left .sh-sub {
  margin-left: 0;
}

/* ============================================================
   7. WEB2 CARD — Elevated Glass Surface
   ============================================================ */
.web2-card {
  background: var(--surface-white);
  border-radius: 1rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  transition: all 0.3s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.web2-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent);
  pointer-events: none;
}

.web2-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-red);
  box-shadow:
    var(--shadow-hover),
    0 0 0 1px rgba(213,43,43,.1),
    0 0 20px rgba(213,43,43,.08);
}

.web2-card .card-icon-wrap {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  background: linear-gradient(135deg, #FDE8E8 0%, #FFF 100%);
  border: 1px solid rgba(213,43,43,.15);
  flex-shrink: 0;
  transition: all 0.25s var(--ease-smooth);
}

.web2-card:hover .card-icon-wrap {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  border-color: transparent;
}

.web2-card:hover .card-icon-wrap .fas,
.web2-card:hover .card-icon-wrap i {
  color: #ffffff !important;
}

/* Glossy gloss line helper */
.web2-gloss {
  position: relative;
}
.web2-gloss::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.8), transparent);
  pointer-events: none;
}

/* Gradient Badge */
.web2-badge {
  background: linear-gradient(135deg, #FDE8E8 0%, #FFFFFF 100%);
  border: 1px solid rgba(213,43,43,.2);
  color: #B71C1C;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================
   8. HERO SLIDER — Ken-Burns Zoom Effect
   ============================================================ */
.hero-slider-container {
  position: relative;
  overflow: hidden;
  height: 580px;
  background: var(--brand-navy);
}

@media (min-width: 640px) {
  .hero-slider-container { height: 640px; }
}
@media (min-width: 1024px) {
  .hero-slider-container { height: 720px; }
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s var(--ease-smooth);
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

/* Ken-Burns zoom on background images */
.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  transition: transform 6s ease-out;
  will-change: transform;
}

.hero-slide.active .hero-slide-bg {
  transform: scale(1);
}

/* Overlay */
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15,23,42,.75) 0%,
    rgba(15,23,42,.4) 60%,
    transparent 100%
  );
}

/* Slide content */
.hero-slide-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

/* Prev / Next arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-arrow:hover {
  background: var(--brand-red);
  border-color: var(--brand-red);
}

.hero-arrow-prev { left: 1rem; }
.hero-arrow-next { right: 1rem; }

@media (min-width: 768px) {
  .hero-arrow-prev { left: 2rem; }
  .hero-arrow-next { right: 2rem; }
}

/* Dot indicators */
.hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-dot.active {
  background: var(--brand-red);
  width: 24px;
  border-radius: 4px;
}

/* ============================================================
   9. PAGE BANNER — Inner Pages with Diagonal Clip
   ============================================================ */
.page-banner {
  position: relative;
  background:
    linear-gradient(135deg, var(--brand-navy) 0%, #1A2744 55%, #24334E 100%);
  padding: 4rem 1.5rem 5.5rem;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  margin-bottom: -2rem;
  min-height: 260px;
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .page-banner {
    padding: 5rem 2rem 7rem;
    min-height: 320px;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
  }
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(213,43,43,.18) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.page-banner-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.page-banner h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.6rem;
}

.page-banner .breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,.55);
  font-size: 0.8125rem;
  font-weight: 500;
}

.page-banner .breadcrumb a:hover { color: rgba(255,255,255,.9); }
.page-banner .breadcrumb .sep { color: rgba(255,255,255,.3); }

/* ============================================================
   10. STICKY HEADER SCROLL SHRINK
   ============================================================ */
#mainHeader {
  transition: all 0.3s var(--ease-smooth);
}

/* Applied by JS when window.scrollY > 50 */
#mainHeader.header-scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
}

#mainHeader.header-scrolled .header-inner {
  height: 3.5rem; /* h-14 */
}

#mainHeader .header-inner {
  height: 4.5rem; /* h-18 */
  transition: height 0.3s var(--ease-smooth);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.5rem;
}

@media (min-width: 1280px) {
  #mainHeader .header-inner {
    height: 5rem; /* h-20 */
    gap: 1rem;
  }
}

/* ============================================================
   11. SCROLL-REVEAL ANIMATION CLASSES
   ============================================================ */

/* Fade Up */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}

.fade-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Fade In */
.fade-in {
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}

.fade-in.revealed {
  opacity: 1;
}

/* Stagger delays for children */
.fade-up:nth-child(1), .fade-in:nth-child(1) { transition-delay: 0s; }
.fade-up:nth-child(2), .fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3), .fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4), .fade-in:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5), .fade-in:nth-child(5) { transition-delay: 0.4s; }
.fade-up:nth-child(6), .fade-in:nth-child(6) { transition-delay: 0.5s; }

/* Slide from left */
.fade-left {
  opacity: 0;
  transform: translateX(-32px);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}
.fade-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Slide from right */
.fade-right {
  opacity: 0;
  transform: translateX(32px);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}
.fade-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* @keyframes for CSS-driven variants */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

/* ============================================================
   12. STATS COUNTER ANIMATION
   ============================================================ */
.stat-counter-wrap {
  position: relative;
}

.stat-counter {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  display: inline-block;
  transition: transform 0.3s var(--ease-spring);
}

.stat-counter.counting {
  animation: counterPop 0.15s var(--ease-spring);
}

@keyframes counterPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.stat-block {
  text-align: center;
  padding: 1.5rem;
}

.stat-block .stat-label {
  font-size: 0.8125rem;
  color: #64748B;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.4rem;
}

/* ============================================================
   13. FILTER TABS — Gallery / Services
   ============================================================ */
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1.5px solid #E2E8F0;
  background: #fff;
  color: #64748B;
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
}

.filter-btn:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

.filter-btn.active {
  background: var(--brand-red);
  color: #fff;
  border-color: var(--brand-red);
  box-shadow: 0 4px 12px rgba(213,43,43,.25);
}

/* Gallery card hide/show transition */
.gallery-card {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.gallery-card.hidden-filter {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  position: absolute;
}

/* ============================================================
   14. LIGHTBOX MODAL
   ============================================================ */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-modal img {
  max-width: min(90vw, 900px);
  max-height: 80vh;
  border-radius: 0.75rem;
  box-shadow: 0 30px 60px rgba(0,0,0,.5);
  object-fit: contain;
  transform: scale(0.9);
  transition: transform 0.3s var(--ease-spring);
}

.lightbox-modal.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox-close:hover {
  background: var(--brand-red);
}

/* ============================================================
   15. MOBILE DRAWER (Slide from Left)
   ============================================================ */
#mobileDrawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(320px, 85vw);
  height: 100dvh;
  height: 100vh;
  background: #fff;
  z-index: 999;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.35s var(--ease-smooth);
  box-shadow: 8px 0 32px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
}

#mobileDrawer.drawer-open {
  transform: translateX(0);
}

/* Dark overlay behind drawer */
#drawerOverlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

#drawerOverlay.overlay-active {
  opacity: 1;
  pointer-events: auto;
}

/* Drawer header strip */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #E2E8F0;
  background: var(--brand-navy);
  flex-shrink: 0;
}

/* Mobile submenu (collapsible) */
.mobile-submenu {
  display: none;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(213,43,43,.35);
  margin: 0.25rem 0 0.25rem 1.5rem;
}

.mobile-submenu.submenu-open {
  display: block;
  animation: fadeIn 0.2s ease;
}

.mobile-submenu-toggle .toggle-icon {
  transition: transform 0.25s ease;
}

.mobile-submenu-toggle.open .toggle-icon {
  transform: rotate(45deg);
}

/* ============================================================
   16. HAMBURGER → X ANIMATION
   ============================================================ */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  gap: 5px;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: background 0.2s ease;
  border: none;
  background: transparent;
  padding: 0;
}

.hamburger:hover { background: #F1F5F9; }

.hamburger .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #334155;
  border-radius: 2px;
  transform-origin: center;
  transition: all 0.3s var(--ease-smooth);
}

/* Morphed state (X) */
.hamburger.is-active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--brand-red);
}
.hamburger.is-active .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.is-active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--brand-red);
}

/* ============================================================
   17. TRACK & TRACE — PROGRESS BAR ANIMATION
   ============================================================ */
.track-step {
  position: relative;
}

.track-progress-bar {
  height: 4px;
  background: #E2E8F0;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.track-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-red) 0%, #EF4444 100%);
  border-radius: 2px;
  width: 0%;
  transition: width 1.2s var(--ease-out);
}

.track-progress-fill.animated {
  box-shadow: 0 0 8px rgba(213,43,43,.4);
}

/* Stepper dots */
.track-stepper {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 1.5rem;
}

.track-stepper::before {
  content: '';
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: #E2E8F0;
  z-index: 0;
}

.track-step-dot {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid #E2E8F0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #94A3B8;
  position: relative;
  z-index: 1;
  transition: all 0.4s var(--ease-smooth);
}

.track-step-dot.completed {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(213,43,43,.15);
}

.track-step-dot.current {
  border-color: var(--brand-red);
  color: var(--brand-red);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(213,43,43,.4); }
  50%       { box-shadow: 0 0 0 8px rgba(213,43,43,0); }
}

/* ============================================================
   18. DESKTOP DROPDOWN PANELS
   ============================================================ */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 260px;
  background: #fff;
  border-radius: 0.875rem;
  box-shadow: var(--shadow-web2);
  border: 1px solid rgba(226,232,240,.8);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.2s var(--ease-smooth),
    transform 0.2s var(--ease-smooth),
    visibility 0.2s;
  z-index: 100;
}

.nav-item:hover .nav-dropdown,
.nav-dropdown:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 0.6rem 0.9rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  transition: all 0.15s ease;
}

.nav-dropdown a:hover {
  background: var(--brand-red-light);
  color: var(--brand-red-dark);
}

.nav-dropdown a .dd-title {
  display: block;
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--brand-navy);
}

.nav-dropdown a .dd-sub {
  display: block;
  font-size: 0.6875rem;
  font-weight: 400;
  color: #94A3B8;
  margin-top: 1px;
}

.nav-dropdown a .dd-icon {
  font-size: 1rem;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

/* ============================================================
   19. FOOTER STYLES
   ============================================================ */
.footer-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #94A3B8;
  transition: color 0.2s ease;
  padding: 0.2rem 0;
}

.footer-link:hover { color: #CBD5E1; }
.footer-link i, .footer-link svg { flex-shrink: 0; }

/* ============================================================
   20. INQUIRY FORM & AJAX STYLES
   ============================================================ */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #E2E8F0;
  border-radius: 0.625rem;
  font-size: 0.9375rem;
  font-family: var(--font-body);
  color: #1E293B;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(213,43,43,.12);
}

.form-input::placeholder { color: #94A3B8; }

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.4rem;
}

/* Loading spinner */
.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.75;
}

.btn-loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 1rem;
  margin: -0.5rem 0 0 -0.5rem;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Alert banners */
.form-alert {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.form-alert-success {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
}

.form-alert-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}

/* ============================================================
   21. WHATSAPP FLOATING ACTION BUTTON
   ============================================================ */
.whatsapp-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.4);
  z-index: 90;
  transition: all 0.25s var(--ease-spring);
  cursor: pointer;
}

.whatsapp-fab:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 32px rgba(37,211,102,.55);
}

.whatsapp-fab-tooltip {
  position: absolute;
  right: 110%;
  white-space: nowrap;
  background: #1E293B;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 0.4rem;
  pointer-events: none;
  opacity: 0;
  transform: translateX(6px);
  transition: all 0.2s ease;
}

.whatsapp-fab-tooltip::after {
  content: '';
  position: absolute;
  top: 50%; right: -4px;
  transform: translateY(-50%);
  border: 4px solid transparent;
  border-left-color: #1E293B;
}

.whatsapp-fab:hover .whatsapp-fab-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   22. UTILITY CLASSES
   ============================================================ */
.section-pad {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}

.container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Divider gradient */
.divider-red {
  display: block;
  width: 3rem;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-red), transparent);
  border-radius: 2px;
  margin: 0.6rem 0;
}

.divider-red.center {
  margin: 0.6rem auto;
  background: linear-gradient(90deg, transparent, var(--brand-red), transparent);
}

/* Pill tags */
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag-pill-red {
  background: #FEE2E2;
  color: #991B1B;
}
.tag-pill-slate {
  background: #F1F5F9;
  color: #334155;
}
.tag-pill-navy {
  background: rgba(15,23,42,.08);
  color: var(--brand-navy);
}

/* Scroll-to-top */
#scrollTopBtn {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--brand-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all 0.3s ease;
  z-index: 89;
  cursor: pointer;
  border: none;
}

#scrollTopBtn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#scrollTopBtn:hover { background: var(--brand-red); }

/* ============================================================
   23. RESPONSIVE UTILITIES
   ============================================================ */
@media (max-width: 639px) {
  .hero-slider-container { height: 520px; }
  .page-banner { clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fade-up, .fade-in, .fade-left, .fade-right {
    opacity: 1;
    transform: none;
  }
  .hero-slide-bg { transform: scale(1) !important; }
}
