/* ==========================================================
 *  KIBMAWASCO 2026 - Modern Redesign
 *  Mobile-first, citizen-centric water utility website
 *  Design System & Component Library
 * ========================================================== */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  /* Brand Colors */
  --brand-blue: #0d6efd;
  --brand-blue-dark: #0a4b8c;
  --brand-blue-darker: #072f5a;
  --brand-blue-light: #3d8bfd;
  --brand-teal: #0ea5e9;
  --brand-green: #10b981;
  --brand-green-dark: #059669;
  --brand-amber: #f59e0b;
  --brand-red: #ef4444;
  --brand-water: #0284c7;

  /* Neutrals */
  --neutral-50: #f8fafc;
  --neutral-100: #f1f5f9;
  --neutral-200: #e2e8f0;
  --neutral-300: #cbd5e1;
  --neutral-400: #94a3b8;
  --neutral-500: #64748b;
  --neutral-600: #475569;
  --neutral-700: #334155;
  --neutral-800: #1e293b;
  --neutral-900: #0f172a;

  /* Functional */
  --body-text: var(--neutral-700);
  --body-bg: #ffffff;
  --heading-color: var(--neutral-900);
  --link-color: var(--brand-blue);
  --link-hover: var(--brand-blue-dark);

  /* Typography */
  --font-sans: 'Inter', 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Work Sans', var(--font-sans);

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.10);
  --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.12);
  --shadow-glow-blue: 0 4px 20px rgba(13, 110, 253, 0.25);
  --shadow-glow-green: 0 4px 20px rgba(16, 185, 129, 0.25);

  /* Transitions */
  --ease-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Container */
  --container-max: 1200px;
  --container-padding: 20px;

  /* Header */
  --header-top-height: 40px;
  --header-nav-height: 72px;
}

@media (max-width: 768px) {
  :root {
    --container-padding: 16px;
    --header-top-height: auto;
    --header-nav-height: 60px;
  }
}

/* ---------- 2. BASE STYLES ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body-text);
  background: var(--body-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--heading-color);
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
h5 { font-size: 1.1rem; }
h6 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--neutral-500); }

p { margin-top: 0; margin-bottom: 1em; color: var(--neutral-600); }
a { color: var(--link-color); text-decoration: none; transition: color var(--ease-fast); }
a:hover { color: var(--link-hover); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding: 0; margin: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section { padding: var(--space-16) 0; }
.section-sm { padding: var(--space-8) 0; }
.section-lg { padding: var(--space-20) 0; }

@media (max-width: 768px) {
  .section { padding: var(--space-10) 0; }
  .section-lg { padding: var(--space-12) 0; }
}

/* ---------- 3. ACCESSIBILITY ---------- */
:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: var(--space-3) var(--space-6);
  background: var(--brand-blue);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: top var(--ease-base);
}
.skip-link:focus { top: 16px; color: #fff; text-decoration: none; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 4. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 28px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--ease-base);
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary { background: var(--brand-blue); color: #fff; border-color: var(--brand-blue); }
.btn-primary:hover { background: var(--brand-blue-dark); border-color: var(--brand-blue-dark); color: #fff; box-shadow: var(--shadow-glow-blue); }

.btn-success { background: var(--brand-green); color: #fff; border-color: var(--brand-green); }
.btn-success:hover { background: var(--brand-green-dark); color: #fff; box-shadow: var(--shadow-glow-green); }

.btn-danger { background: var(--brand-red); color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; }

.btn-outline { background: transparent; color: var(--brand-blue); border-color: var(--brand-blue); }
.btn-outline:hover { background: var(--brand-blue); color: #fff; }

.btn-ghost { background: transparent; color: var(--neutral-600); border-color: transparent; }
.btn-ghost:hover { background: var(--neutral-100); color: var(--neutral-800); }

.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 17px; }

.btn-icon {
  width: 44px; height: 44px; padding: 0;
  border-radius: var(--radius-full);
  font-size: 20px;
}
.btn-icon.btn-sm { width: 36px; height: 36px; font-size: 16px; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ---------- 5. TOP BAR ---------- */
.top-bar {
  background: var(--neutral-800);
  color: var(--neutral-300);
  font-size: 13px;
  padding: 8px 0;
}
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.top-bar a { color: var(--neutral-300); }
.top-bar a:hover { color: #fff; }
.top-bar .mdi { font-size: 14px; margin-right: 4px; }
.top-bar-emergency {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--brand-amber);
  font-weight: 600;
}
.top-bar-emergency .mdi { color: var(--brand-red); font-size: 16px; animation: pulse-red 2s ease-in-out infinite; }
@keyframes pulse-red { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ---------- 6. NAVIGATION ---------- */
.main-nav {
  background: #fff;
  border-bottom: 1px solid var(--neutral-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--ease-base);
}
.main-nav.scrolled { box-shadow: var(--shadow-md); }

.main-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-nav-height);
  gap: var(--space-6);
}

.nav-brand { display: flex; align-items: center; gap: var(--space-2); flex-shrink: 0; }
.nav-brand img { height: 40px; width: auto; }
.nav-brand-text { font-weight: 700; font-size: 14px; color: var(--neutral-800); line-height: 1.2; max-width: 160px; }

/* Navbar logo overlap with hero (thikawater.co.ke style) */
.nav-brand-overlap {
  position: relative;
  z-index: 10;
}
.nav-brand-overlap img {
  height: 56px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--neutral-600);
  border-radius: var(--radius-md);
  transition: all var(--ease-fast);
  position: relative;
  white-space: nowrap;
}
.nav-links a:hover { background: var(--neutral-100); color: var(--brand-blue); text-decoration: none; }
.nav-links a.active { color: var(--brand-blue); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--brand-blue);
  border-radius: 1px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

/* Navigation Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--neutral-600);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--ease-fast);
  white-space: nowrap;
}
.nav-dropdown-toggle:hover {
  background: var(--neutral-100);
  color: var(--brand-blue);
  text-decoration: none;
}
.nav-dropdown-toggle.active {
  color: var(--brand-blue);
}
.nav-dropdown-toggle.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--brand-blue);
  border-radius: 1px;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--neutral-600);
  border-radius: var(--radius-md);
  transition: all var(--ease-fast);
  text-decoration: none;
}
.nav-dropdown-menu a:hover {
  background: rgba(13,110,253,0.06);
  color: var(--brand-blue);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--neutral-700);
  font-size: 24px;
  border-radius: var(--radius-md);
}
.nav-toggle:hover { background: var(--neutral-100); }

@media (max-width: 1024px) {
  .nav-links {
    position: fixed;
    top: var(--header-nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-4);
    gap: var(--space-1);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--ease-base);
    z-index: 999;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 14px 18px; font-size: 16px; }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { background: var(--neutral-100); }
  .nav-toggle { display: flex; }
  .nav-actions .btn span { display: none; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle { width: 100%; padding: 14px 18px; font-size: 16px; }
  .nav-dropdown-toggle.active::after { display: none; }
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0 16px;
    display: block;
    min-width: auto;
  }
  .nav-dropdown-menu a { padding: 10px 18px; font-size: 15px; }
}

/* ---------- 7. HERO SECTION ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0a4b8c 100%);
  color: #fff;
  padding: var(--space-20) 0;
  min-height: 500px;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 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.03'%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");
  opacity: 0.5;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, #fff, transparent);
}

.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 16px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--neutral-300);
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: var(--space-6);
}
.hero h1 { color: #fff; margin-bottom: var(--space-4); }
.hero p { color: rgba(255,255,255,0.75); font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 640px; margin-bottom: var(--space-8); }
.hero .btn-group { margin-top: var(--space-4); }

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-metric { text-align: center; }
.hero-metric strong { display: block; font-size: 1.5rem; font-weight: 700; color: #fff; }
.hero-metric span { font-size: 13px; color: rgba(255,255,255,0.55); }

@media (max-width: 768px) {
  .hero { padding: var(--space-12) 0; min-height: auto; }
  .hero .btn-group .btn { flex: 1; text-align: center; }
  .hero-metrics { grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
  .hero-metric strong { font-size: 1.2rem; }
}

/* ---------- 8. QUICK ACTIONS ---------- */
.quick-actions {
  margin-top: -60px;
  position: relative;
  z-index: 2;
  padding-bottom: var(--space-8);
}
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-4);
}
.quick-action-card {
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-4);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--ease-base);
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.quick-action-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); text-decoration: none; }
.quick-action-card:active { transform: translateY(-2px); }
.quick-action-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-3);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
}
.quick-action-card h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; color: var(--neutral-800); }
.quick-action-card p { font-size: 12px; color: var(--neutral-500); margin: 0; }
.qa-bill .quick-action-icon { background: linear-gradient(135deg, var(--brand-blue), var(--brand-teal)); }
.qa-connection .quick-action-icon { background: linear-gradient(135deg, var(--brand-green), #06b6d4); }
.qa-leak .quick-action-icon { background: linear-gradient(135deg, var(--brand-red), #f97316); }
.qa-complaint .quick-action-icon { background: linear-gradient(135deg, var(--brand-amber), var(--brand-red)); }
.qa-forms .quick-action-icon { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
.qa-tenders .quick-action-icon { background: linear-gradient(135deg, #0ea5e9, #06b6d4); }

@media (max-width: 1024px) { .quick-actions-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .quick-actions-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 9. CARDS ---------- */
.card {
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--ease-base);
}
.card:hover { box-shadow: var(--shadow-lg); }
.card-body { padding: var(--space-6); }
.card-image img { width: 100%; height: 200px; object-fit: cover; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .card-grid-2, .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
  .card-body { padding: var(--space-4); }
}

/* ---------- 10. METRICS DASHBOARD ---------- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-4);
}
.metric-card {
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--ease-base);
}
.metric-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.metric-icon {
  width: 44px; height: 44px;
  margin: 0 auto var(--space-3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-teal));
}
.metric-card strong { display: block; font-size: 1.6rem; font-weight: 700; color: var(--neutral-900); line-height: 1.2; }
.metric-card span { font-size: 13px; color: var(--neutral-500); }

@media (max-width: 1024px) { .metrics-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .metrics-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 11. SECTION HEADERS ---------- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-10);
}
.section-header h2 { margin-bottom: var(--space-3); }
.section-header p { font-size: 1.1rem; color: var(--neutral-500); }
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 4px 14px;
  background: rgba(13, 110, 253, 0.08);
  border-radius: var(--radius-full);
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}

/* ---------- 12. FORMS ---------- */
.form-group { margin-bottom: var(--space-5); }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--neutral-700);
  margin-bottom: var(--space-2);
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--neutral-800);
  background: #fff;
  border: 1.5px solid var(--neutral-300);
  border-radius: var(--radius-md);
  transition: all var(--ease-fast);
  appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
  outline: none;
}
.form-input.error { border-color: var(--brand-red); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.form-hint { font-size: 13px; color: var(--neutral-400); margin-top: var(--space-1); }
.form-error { font-size: 13px; color: var(--brand-red); margin-top: var(--space-1); display: none; }
.form-input.error + .form-error { display: block; }

.form-card {
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  max-width: 600px;
  margin: 0 auto;
}

/* File upload */
.form-upload {
  border: 2px dashed var(--neutral-300);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  cursor: pointer;
  transition: all var(--ease-fast);
}
.form-upload:hover { border-color: var(--brand-blue); background: rgba(13,110,253,0.03); }
.form-upload .mdi { font-size: 36px; color: var(--neutral-400); margin-bottom: var(--space-2); }
.form-upload p { margin: 0; font-size: 14px; }

/* ---------- 12b. NAVIGATION DROPDOWN ---------- */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  font-size: 14px;
  font-weight: 600;
  color: var(--neutral-700);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--ease-fast);
}
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active {
  color: var(--brand-blue);
  background: rgba(13,110,253,0.04);
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--neutral-100);
  z-index: 1000;
  padding: var(--space-1) 0;
  margin-top: 4px;
}
.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu a {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-size: 13px;
  font-weight: 500;
  color: var(--neutral-600);
  text-decoration: none;
  transition: all var(--ease-fast);
}
.nav-dropdown-menu a:hover {
  background: rgba(13,110,253,0.04);
  color: var(--brand-blue);
}
@media (max-width: 768px) {
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: var(--neutral-50);
    margin-top: 0;
    padding-left: var(--space-4);
  }
  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }
}

/* ---------- 13. STATUS BADGES ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.badge-success { background: rgba(16,185,129,0.1); color: var(--brand-green); }
.badge-warning { background: rgba(245,158,11,0.1); color: var(--brand-amber); }
.badge-danger { background: rgba(239,68,68,0.1); color: var(--brand-red); }
.badge-info { background: rgba(13,110,253,0.1); color: var(--brand-blue); }
.badge-neutral { background: var(--neutral-100); color: var(--neutral-600); }

/* ---------- 14. STATUS DASHBOARD ---------- */
.service-status-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--neutral-100);
  margin-bottom: var(--space-4);
}
.service-status-indicator .status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot.operational { background: var(--brand-green); box-shadow: 0 0 8px rgba(16,185,129,0.4); }
.status-dot.maintenance { background: var(--brand-amber); animation: pulse-amber 1.5s ease-in-out infinite; }
.status-dot.interruption { background: var(--brand-red); animation: pulse-red 1.5s ease-in-out infinite; }
@keyframes pulse-amber { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ---------- 15. FAQ ---------- */
.faq-item {
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3);
  overflow: hidden;
  transition: all var(--ease-fast);
}
.faq-item:hover { border-color: var(--neutral-300); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  font-weight: 500;
  color: var(--neutral-800);
  font-size: 16px;
  gap: var(--space-4);
  user-select: none;
}
.faq-question:hover { background: var(--neutral-50); }
.faq-question .mdi { font-size: 20px; color: var(--neutral-400); transition: transform var(--ease-fast); }
.faq-question.open .mdi { transform: rotate(180deg); }
.faq-answer {
  padding: 0 var(--space-6) var(--space-5);
  color: var(--neutral-600);
  line-height: 1.7;
  display: none;
}
.faq-answer.open { display: block; }

/* ---------- 16. NOTIFICATIONS ---------- */
.alert {
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.alert-success { background: rgba(16,185,129,0.1); color: var(--brand-green-dark); border: 1px solid rgba(16,185,129,0.2); }
.alert-error { background: rgba(239,68,68,0.1); color: #dc2626; border: 1px solid rgba(239,68,68,0.2); }
.alert-info { background: rgba(13,110,253,0.1); color: var(--brand-blue-dark); border: 1px solid rgba(13,110,253,0.2); }
.alert .mdi { font-size: 20px; flex-shrink: 0; }

/* ---------- 17. BREADCRUMBS ---------- */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-4) 0;
  font-size: 13px;
  color: var(--neutral-500);
}
.breadcrumbs a { color: var(--neutral-500); }
.breadcrumbs a:hover { color: var(--brand-blue); }
.breadcrumbs .mdi { font-size: 14px; color: var(--neutral-400); }

/* ---------- 18. PAGE HEADER ---------- */
.page-header {
  background: linear-gradient(135deg, var(--brand-blue-darker) 0%, var(--brand-blue-dark) 50%, var(--brand-blue) 100%);
  color: #fff;
  padding: var(--space-16) 0 var(--space-12);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 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.03'%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");
  opacity: 0.5;
}
.page-header h1 { color: #fff; margin-bottom: var(--space-2); position: relative; z-index: 1; }
.page-header p { color: rgba(255,255,255,0.75); max-width: 600px; margin: 0 auto; position: relative; z-index: 1; font-size: 1.1rem; }

/* ---------- 19. TABLE ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
thead { background: var(--neutral-50); }
th, td { padding: var(--space-4) var(--space-5); text-align: left; border-bottom: 1px solid var(--neutral-200); }
th { font-weight: 600; color: var(--neutral-600); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; }
tr:hover { background: var(--neutral-50); }
tr:last-child td { border-bottom: none; }

/* ---------- 20. SEARCH & FILTER ---------- */
.search-bar {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}
.search-bar .form-input { flex: 1; min-width: 200px; }
.search-bar .form-select { width: auto; min-width: 150px; }

/* ---------- 21. PORTAL SIDEBAR ---------- */
.portal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-8);
  min-height: 60vh;
}
.portal-sidebar {
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  align-self: start;
}
.portal-sidebar-header {
  padding: var(--space-5);
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: #fff;
  text-align: center;
}
.portal-sidebar-header strong { display: block; font-size: 16px; color: #fff; }
.portal-sidebar-header span { font-size: 13px; opacity: 0.8; }
.portal-nav a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  color: var(--neutral-600);
  font-size: 14px;
  border-bottom: 1px solid var(--neutral-100);
  transition: all var(--ease-fast);
}
.portal-nav a:hover { background: var(--neutral-50); color: var(--brand-blue); text-decoration: none; }
.portal-nav a.active { background: rgba(13,110,253,0.06); color: var(--brand-blue); font-weight: 500; }
.portal-nav a .mdi { font-size: 18px; width: 22px; text-align: center; }
.portal-nav a .badge { margin-left: auto; }

@media (max-width: 768px) {
  .portal-layout { grid-template-columns: 1fr; }
}

/* ---------- 22. COVERAGE MAP ---------- */
.coverage-map {
  background: var(--neutral-100);
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 400px;
  position: relative;
}
.coverage-map iframe { width: 100%; height: 400px; border: 0; }

/* ---------- 23. FOOTER ---------- */
.site-footer {
  background: var(--neutral-900);
  color: var(--neutral-400);
  padding: var(--space-16) 0 0;
}
.site-footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-footer h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--space-5);
}
.site-footer p { color: var(--neutral-400); font-size: 14px; }
.site-footer a { color: var(--neutral-400); font-size: 14px; display: block; padding: 4px 0; }
.site-footer a:hover { color: #fff; text-decoration: none; }

.footer-brand img { height: 64px; margin-bottom: var(--space-4); }
.footer-social { display: flex; gap: var(--space-2); margin-top: var(--space-4); }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.06);
  color: var(--neutral-400);
  font-size: 18px;
  transition: all var(--ease-fast);
}
.footer-social a:hover { background: var(--brand-blue); color: #fff; }

.site-footer-bottom {
  padding: var(--space-6) 0;
  text-align: center;
  font-size: 13px;
  color: var(--neutral-500);
}

@media (max-width: 768px) {
  .site-footer-top { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
}
@media (max-width: 500px) { .site-footer-top { grid-template-columns: 1fr; } }

/* ---------- 24. BACK TO TOP ---------- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-size: 22px;
  box-shadow: var(--shadow-glow-blue);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--ease-base);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: #fff; }

/* ---------- 25. WHATSAPP FLOAT ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 28px;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.35);
  text-decoration: none;
  transition: all var(--ease-bounce);
  animation: wa-pulse 2.5s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }
@keyframes wa-pulse { 0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.35); } 50% { box-shadow: 0 6px 40px rgba(37,211,102,0.55); } }

/* ---------- 26. NEWS GRID ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.news-card { background: #fff; border: 1px solid var(--neutral-200); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--ease-base); }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-image { height: 200px; overflow: hidden; }
.news-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--ease-slow); }
.news-card:hover .news-image img { transform: scale(1.06); }
.news-body { padding: var(--space-5); }
.news-meta { display: flex; align-items: center; gap: var(--space-3); font-size: 13px; color: var(--neutral-400); margin-bottom: var(--space-2); }
.news-tag { padding: 2px 10px; background: rgba(13,110,253,0.08); color: var(--brand-blue); border-radius: var(--radius-full); font-size: 11px; font-weight: 600; text-transform: uppercase; }
.news-body h4 { font-size: 16px; margin-bottom: var(--space-2); }
.news-body h4 a { color: var(--neutral-800); }
.news-body h4 a:hover { color: var(--brand-blue); }
.news-body p { font-size: 14px; color: var(--neutral-500); }
.news-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 14px; }

@media (max-width: 1024px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }

/* ---------- 27. PARTNER STRIP ---------- */
.partner-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
.partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  min-height: 120px;
  transition: all var(--ease-base);
}
.partner-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.partner-card img { max-height: 60px; width: auto; object-fit: contain; filter: grayscale(0.2); transition: all var(--ease-base); }
.partner-card:hover img { filter: grayscale(0); }

@media (max-width: 768px) { .partner-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 28. VIDEO GRID ---------- */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.video-card { background: #fff; border: 1px solid var(--neutral-200); border-radius: var(--radius-lg); overflow: hidden; }
.video-frame { position: relative; padding-top: 56.25%; background: var(--neutral-800); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-body { padding: var(--space-4); }
.video-body h4 { font-size: 15px; margin-bottom: 4px; }
.video-body p { font-size: 13px; color: var(--neutral-400); margin: 0; }

@media (max-width: 1024px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .video-grid { grid-template-columns: 1fr; } }

/* ---------- 29. REFERENCE/TRACKING ---------- */
.tracking-card {
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}
.tracking-card .mdi { font-size: 48px; color: var(--brand-green); margin-bottom: var(--space-3); }
.tracking-card h3 { margin-bottom: var(--space-2); }
.tracking-ref {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brand-blue);
  padding: var(--space-3) var(--space-6);
  background: rgba(13,110,253,0.06);
  border-radius: var(--radius-md);
  display: inline-block;
  letter-spacing: 0.05em;
}

/* ---------- 30. UTILITIES ---------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; } .mt-2 { margin-top: var(--space-2); } .mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); } .mt-8 { margin-top: var(--space-8); } .mt-10 { margin-top: var(--space-10); }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: var(--space-2); } .mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); } .mb-8 { margin-bottom: var(--space-8); }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }

.max-w-600 { max-width: 600px; }
.max-w-700 { max-width: 700px; }
.max-w-800 { max-width: 800px; }
.mx-auto { margin-left: auto; margin-right: auto; }

@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}

/* ---------- 31. CONTENT SECTIONS ---------- */
.content-section {
  background: var(--neutral-50);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin-bottom: var(--space-6);
}
.content-section h3 {
  margin-bottom: var(--space-4);
  color: var(--neutral-800);
}
.content-section p {
  color: var(--neutral-600);
  line-height: 1.7;
}
.content-section ul {
  list-style: disc;
  padding-left: var(--space-6);
}
.content-section ul li {
  margin-bottom: var(--space-2);
  color: var(--neutral-600);
  font-size: 15px;
}
.content-section ul li a {
  color: var(--brand-blue);
  font-weight: 500;
}
.content-section ul li a:hover {
  text-decoration: underline;
}

/* Contact page layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}
.contact-info-card {
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-4);
}
.contact-info-card .icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-teal));
  margin-bottom: var(--space-3);
}
.contact-info-card h4 {
  font-size: 15px;
  margin-bottom: var(--space-1);
  color: var(--neutral-800);
}
.contact-info-card p {
  font-size: 14px;
  color: var(--neutral-500);
  margin: 0;
}
.contact-info-card a {
  color: var(--brand-blue);
  font-weight: 500;
}
.contact-form-card {
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
}
.contact-form-card h3 {
  margin-bottom: var(--space-6);
  color: var(--neutral-800);
}
@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; }
  .content-section { padding: var(--space-5); }
}

/* ---------- 32. PROGRESS ---------- */
.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.progress-step {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  color: var(--neutral-400);
}
.progress-step .step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--neutral-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--neutral-500);
}
.progress-step.active { color: var(--brand-blue); }
.progress-step.active .step-num { background: var(--brand-blue); color: #fff; }
.progress-step.complete { color: var(--brand-green); }
.progress-step.complete .step-num { background: var(--brand-green); color: #fff; }