/**
 * MAPLE FREIGHT SYSTEM — CORE DESIGN SYSTEM & STYLESHEET
 * Version: 2.6.0 (High-Contrast Mobile Hamburger Icon Engine)
 * Author: Raiseque (https://www.raiseque.com)
 */

/* ==========================================
   1. DESIGN TOKENS & CSS VARIABLES
   ========================================== */
:root {
  /* Brand Palette (Exact Match from Official Logo) */
  --color-navy: #0A1C3E;        /* Official Logo Deep Navy */
  --color-navy-dark: #06122B;   /* Ultra Dark Navy for Header/Footer */
  --color-navy-light: #122752;  /* Medium Navy Surface */
  --color-amber: #D00A0E;       /* Official Canadian Maple Red Accent */
  --color-amber-hover: #A8070A; /* Dark Red Hover */
  --color-blue: #0A1C3E;        /* Primary Navy for Main Actions */
  --color-blue-hover: #122752;   /* Navy Hover */
  --color-red: #D00A0E;         /* Crimson Red */
  --color-teal: #0D9488;
  --color-green: #16A34A;

  /* Neutrals */
  --color-bg-light: #F8FAFC;
  --color-surface-white: #FFFFFF;
  --color-surface-muted: #F1F5F9;
  --color-border: #E2E8F0;
  --color-border-dark: #1E293B;

  /* Typography */
  --color-text-heading: #0A1C3E;
  --color-text-body: #334155;
  --color-text-muted: #64748B;
  --color-text-light: #F8FAFC;

  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout & Spacing */
  --container-max: 1280px;
  --container-narrow: 960px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(10, 28, 62, 0.08);
  --shadow-md: 0 4px 12px rgba(10, 28, 62, 0.12);
  --shadow-lg: 0 12px 32px rgba(10, 28, 62, 0.16);
  --shadow-glow: 0 0 24px rgba(208, 10, 14, 0.3);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-body);
  background-color: var(--color-bg-light);
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-heading);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: var(--color-red);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--color-amber-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.container-narrow {
  width: 90%;
  max-width: var(--container-narrow);
  margin: 0 auto;
}

/* ==========================================
   2. BUTTONS & UTILITIES
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-amber-hover) 100%);
  color: var(--color-text-light) !important;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: var(--color-text-light) !important;
}

.btn-accent {
  background: var(--color-red);
  color: var(--color-surface-white) !important;
}
.btn-accent:hover {
  background: var(--color-amber-hover);
  color: var(--color-text-light) !important;
  transform: translateY(-2px);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--color-text-light) !important;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  border-color: var(--color-surface-white);
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-surface-white) !important;
}

/* Section Shells */
.section {
  padding: 5.5rem 0;
}
.section-dark {
  background-color: var(--color-navy);
  color: var(--color-text-light);
}
.section-dark h2, .section-dark h3 {
  color: var(--color-surface-white);
}

.section-title-wrap {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--color-red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
}
.section-dark .section-subtitle {
  color: #94A3B8;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.feature-card {
  background: var(--color-surface-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-red);
}
.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
}

/* ==========================================
   3. HEADER & TOP UTILITY BAR ALIGNMENT
   ========================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-navy-dark);
  border-bottom: 1px solid var(--color-border-dark);
}

.top-bar {
  background: rgba(0, 0, 0, 0.4);
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: #94A3B8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-contact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.top-contact a {
  color: var(--color-red);
  font-weight: 600;
  white-space: nowrap;
}

.top-utility {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.top-bar-link-track {
  color: #94A3B8;
  white-space: nowrap;
}
.top-bar-link-portal {
  color: var(--color-amber);
  font-weight: 600;
  white-space: nowrap;
}

.main-nav-wrap {
  padding: 0.85rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo-img img, .custom-logo, .brand-logo img {
  max-height: 80px;
  max-width: 220px;
  width: auto;
  height: auto;
  display: block;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.desktop-nav .nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}
.desktop-nav .nav-menu a {
  color: var(--color-text-light);
  font-weight: 600;
  font-size: 0.95rem;
}
.desktop-nav .nav-menu a:hover {
  color: var(--color-red);
}

/* Mega Menu Dropdown */
.has-mega-menu {
  position: relative;
}
.mega-menu {
  position: absolute;
  top: 100%;
  left: -200px;
  width: 780px;
  background: var(--color-navy-light);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
}
.has-mega-menu:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega-col h4 {
  font-size: 0.875rem;
  color: var(--color-red);
  text-transform: uppercase;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}
.mega-col ul {
  list-style: none;
}
.mega-col li {
  margin-bottom: 0.75rem;
}
.mega-col a {
  font-weight: 500;
  font-size: 0.9rem;
  color: #FFFFFF;
}
.mega-col a:hover {
  color: var(--color-red);
}

/* Mobile Navigation Hamburger & Drawer */
.mobile-nav-toggle {
  display: none;
  background: rgba(10, 28, 62, 0.08);
  border: 1.5px solid var(--color-navy);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0.5rem 0.6rem;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
  transition: all var(--transition-fast);
}
.mobile-nav-toggle .bar {
  width: 24px;
  height: 3px;
  background-color: var(--color-navy);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: var(--color-navy-dark);
  border-left: 1px solid var(--color-border-dark);
  z-index: 10000;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}
.mobile-nav-drawer.active {
  transform: translateX(0);
}

.mobile-nav-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-nav-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
}

.mobile-nav-content {
  padding: 1.5rem 1rem;
  overflow-y: auto;
}
.mobile-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mobile-menu li a {
  display: block;
  padding: 0.75rem 1rem;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: var(--radius-sm);
}
.mobile-menu li a:hover {
  background: rgba(208, 10, 14, 0.15);
  color: var(--color-red);
}

.mobile-submenu-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.submenu-arrow {
  color: var(--color-red);
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
}
.mobile-submenu {
  display: none;
  list-style: none;
  padding-left: 1rem;
  margin-top: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
}
.mobile-submenu.active {
  display: block;
}
.mobile-submenu-cat {
  font-size: 0.8rem;
  color: var(--color-red);
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.75rem 1rem 0.25rem 1rem;
  letter-spacing: 0.05em;
}
.mobile-submenu li a {
  font-size: 0.95rem;
  color: #CBD5E1;
  font-weight: 500;
}

/* ==========================================
   4. ENTERPRISE HERO SLIDER (5 SLIDES)
   ========================================== */
.hero-slider-wrapper {
  position: relative;
  height: 780px;
  overflow: hidden;
  background: var(--color-navy-dark);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transform: scale(1.03);
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 18, 43, 0.92) 0%, rgba(6, 18, 43, 0.75) 50%, rgba(6, 18, 43, 0.4) 100%);
}

.hero-slider-container {
  position: relative;
  z-index: 10;
}
.hero-slide-content h1 {
  font-size: 3.5rem;
  color: var(--color-surface-white);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}
.hero-slide-content p {
  font-size: 1.25rem;
  color: #CBD5E1;
  margin-bottom: 2.25rem;
  max-width: 680px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 52px;
  height: 52px;
  background: rgba(10, 28, 62, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all var(--transition-fast);
}
.slider-arrow:hover {
  background: var(--color-red);
  border-color: var(--color-red);
}
.slider-arrow-prev { left: 2rem; }
.slider-arrow-next { right: 2rem; }

.slider-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 0.75rem;
}
.slider-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.slider-dot.active {
  background: var(--color-red);
  width: 32px;
  border-radius: 8px;
}

.hero-slider-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}
.quote-card-glass {
  background: rgba(10, 28, 62, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  color: var(--color-surface-white);
}
.quote-card-glass h3 {
  font-size: 1.5rem;
  color: var(--color-surface-white);
  margin-bottom: 0.35rem;
}
.quote-card-glass p {
  font-size: 0.875rem;
  color: #94A3B8;
  margin-bottom: 1.25rem;
}
.quote-form-group {
  margin-bottom: 1rem;
}
.quote-form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: #CBD5E1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.quote-input, .quote-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(6, 18, 43, 0.85);
  color: var(--color-surface-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.quote-input:focus, .quote-select:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(208, 10, 14, 0.3);
}

/* ==========================================
   5. PERFECTLY ALIGNED 8-TRUST BADGE ROW
   ========================================== */
.trust-bar-enterprise {
  background: #040C1D;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.trust-grid-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1rem;
}
.trust-badge-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #CBD5E1;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}
.trust-badge-circle {
  width: 32px;
  height: 32px;
  background: rgba(208, 10, 14, 0.15);
  border: 1px solid rgba(208, 10, 14, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-red);
  font-size: 0.85rem;
}

/* ==========================================
   6. PERFECTLY BALANCED CLIENT LOGOS GRID
   ========================================== */
.client-logos-section {
  background: #06122B;
  padding: 3rem 0;
  border-bottom: 1px solid var(--color-border-dark);
}
.client-logos-eyebrow {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 2rem;
}
.client-logos-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  align-items: center;
  justify-items: center;
}
.client-logo-item {
  width: 100%;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 1.25rem 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
  color: #CBD5E1;
  letter-spacing: 0.04em;
  transition: all var(--transition-base);
}
.client-logo-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--color-red);
  color: #FFFFFF;
  box-shadow: var(--shadow-md);
}

/* ==========================================
   7. FLOATING WHATSAPP BUTTON STYLING
   ========================================== */
.whatsapp-float-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #25D366;
  color: #FFFFFF !important;
  padding: 0.65rem 1.15rem 0.65rem 0.75rem;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: whatsappPulse 2.5s infinite;
}
@keyframes whatsappPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.whatsapp-float-btn:hover {
  transform: translateY(-4px) scale(1.05);
  background: #1EBE57;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.6);
}
.whatsapp-icon-wrap {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.whatsapp-svg {
  width: 32px;
  height: 32px;
}
.whatsapp-label {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ==========================================
   8. COMPREHENSIVE RESPONSIVE BREAKPOINTS
   ========================================== */
@media (max-width: 1100px) {
  .hero-slider-wrapper { height: 650px; }
  .hero-slide-content h1 { font-size: 2.75rem; }
  .trust-grid-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
  .client-logos-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
  .container { width: 92%; }
  .desktop-nav { display: none; }
  .get-quote-btn { display: none; }
  .mobile-nav-toggle { display: flex; }
  .top-bar-address { display: none !important; }

  .zigzag-grid, .cta-map-grid { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
  footer .container { grid-template-columns: 1fr 1fr !important; gap: 2rem !important; }
}

@media (max-width: 768px) {
  .top-bar {
    padding: 0.4rem 0;
  }
  .top-bar-inner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
  }
  .top-contact {
    display: flex;
    align-items: center;
    gap: 0;
  }
  .top-bar-phone {
    font-size: 0.78rem !important;
    white-space: nowrap !important;
  }
  .top-utility {
    display: flex;
    align-items: center;
    gap: 0.75rem !important;
  }
  .top-bar-link-track, .top-bar-link-portal {
    font-size: 0.78rem !important;
    white-space: nowrap !important;
  }

  .whatsapp-label { display: none; }
  .whatsapp-float-btn { padding: 0.6rem; border-radius: 50%; bottom: 20px; right: 20px; }
  .whatsapp-icon-wrap { width: 44px; height: 44px; }
  .whatsapp-svg { width: 36px; height: 36px; }

  .section { padding: 3.5rem 0; }
  .section-title { font-size: 1.85rem !important; }
  .section-eyebrow { font-size: 0.78rem; }
  .hero-slider-wrapper { height: 550px; }
  .hero-slider-grid { grid-template-columns: 1fr; gap: 2rem; }
  .quote-card-glass { display: none; }
  .hero-slide-content h1 { font-size: 2.1rem !important; }
  .hero-slide-content p { font-size: 1rem !important; }
  .cards-grid { grid-template-columns: 1fr !important; }
  .trust-grid-row { display: grid; grid-template-columns: repeat(2, 1fr); }
  .client-logos-grid { grid-template-columns: repeat(2, 1fr); }
  .slider-arrow { display: none; }
  footer .container { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  .top-bar-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 0.2rem;
  }
  .top-contact, .top-utility {
    justify-content: center;
  }
}
