/* ============================================================
   SwiftRoute Delivery Services — Main Stylesheet
   Design System: SwiftRoute Executive
   Colors: Navy (#000d22), Teal (#1e6869), Blue (#2f8eff)
   Font: Inter
   ============================================================ */

/* ─── CSS VARIABLES ─────────────────────────────────────────── */
:root {
  --primary:          #000d22;
  --primary-hover:    #0a2342;
  --secondary:        #1e6869;
  --secondary-light:  #aaefef;
  --accent:           #2f8eff;
  --accent-dark:      #1a63c4;
  --surface:          #f7f9fc;
  --surface-low:      #f2f4f7;
  --surface-card:     #ffffff;
  --surface-high:     #e6e8eb;
  --on-surface:       #191c1e;
  --on-surface-muted: #44474e;
  --outline:          #74777e;
  --outline-light:    #c4c6cf;
  --error:            #ba1a1a;
  --success:          #1a6b3e;

  --shadow-sm:  0 4px 12px rgba(10,35,66,.05);
  --shadow-md:  0 8px 24px rgba(10,35,66,.08);
  --shadow-lg:  0 12px 32px rgba(10,35,66,.12);

  --radius-sm:  4px;
  --radius:     8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  --container: 1280px;
  --nav-h:     80px;
}

/* ─── RESET & BASE ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--on-surface);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  line-height: 1;
}

/* ─── LAYOUT ────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 768px) { .container { padding: 0 16px; } }

/* ─── TOPBAR ────────────────────────────────────────────────── */
.topbar {
  background: var(--primary);
  color: rgba(255,255,255,.8);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 0;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar-left .material-symbols-outlined,
.topbar-right .material-symbols-outlined { font-size: 16px; }
.topbar-divider { opacity: .3; padding: 0 4px; }
.live-indicator {
  display: flex; align-items: center; gap: 6px;
  color: var(--secondary-light);
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--secondary-light);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:.6; transform:scale(1.3); }
}
@media (max-width: 768px) { .topbar { display:none; } }

/* ─── SITE HEADER ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--outline-light);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 32px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon {
  width: 40px; height: 40px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.logo-icon .material-symbols-outlined { font-size: 22px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.5px;
}
.logo-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--secondary);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Nav Links */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--on-surface-muted);
  border-radius: var(--radius);
  transition: all .2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--primary); background: var(--surface-low); }
.nav-link.active {
  color: var(--secondary);
  font-weight: 600;
  background: rgba(30,104,105,.08);
}

.nav-actions { display: flex; align-items: center; gap: 12px; }
.mobile-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--on-surface);
}

/* ─── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-hover); box-shadow: var(--shadow-md); }

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-secondary:hover { background: var(--surface-low); }

.btn-accent {
  background: var(--accent);
  color: var(--primary);
}
.btn-accent:hover { background: #1f78e6; box-shadow: var(--shadow-md); }

.btn-teal {
  background: var(--secondary);
  color: #fff;
}
.btn-teal:hover { background: #155758; }

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

.btn .material-symbols-outlined { font-size: 18px; }

/* ─── HERO SECTION ──────────────────────────────────────────── */
.hero {
  background: var(--primary);
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: 
    radial-gradient(ellipse at 20% 50%, rgba(30,104,105,.3) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(74,95,129,.4) 0%, transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 100px 0;
  width: 100%;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--secondary-light);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-eyebrow .material-symbols-outlined { font-size: 16px; }
.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 24px;
}
.hero h1 .accent { color: var(--accent); }
.hero-desc {
  font-size: 18px;
  color: rgba(255,255,255,.7);
  line-height: 1.7;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.hero-stat {
  padding: 20px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  text-align: center;
}
.hero-stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  display: block;
}
.hero-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  margin-top: 4px;
}

/* Hero Track Box */
.hero-track-box {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.hero-track-box h3 {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.hero-track-box p {
  color: rgba(255,255,255,.6);
  font-size: 14px;
  margin-bottom: 24px;
}
.track-input-group {
  display: flex;
  gap: 8px;
}
.track-input {
  flex: 1;
  height: 52px;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: 0 16px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  outline: none;
  transition: border-color .2s;
  font-family: 'Inter', sans-serif;
}
.track-input::placeholder { color: rgba(255,255,255,.4); }
.track-input:focus { border-color: var(--secondary-light); }
.recent-searches {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}
.recent-searches a {
  color: var(--secondary-light);
  text-decoration: underline;
  cursor: pointer;
}

/* ─── SECTION STYLES ────────────────────────────────────────── */
.section { padding: 100px 0; }
.section-sm { padding: 64px 0; }

.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 17px;
  color: var(--on-surface-muted);
  line-height: 1.7;
  max-width: 560px;
}
.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header.center .section-desc { margin: 0 auto; }

/* ─── CARDS ─────────────────────────────────────────────────── */
.card {
  background: var(--surface-card);
  border: 1px solid var(--outline-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .3s, transform .3s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-body { padding: 28px; }

/* Service Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--surface-card);
  border: 1px solid var(--outline-light);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--secondary);
  transform: scaleY(0);
  transition: transform .3s;
}
.service-card:hover::before { transform: scaleY(1); }
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.service-icon {
  width: 56px; height: 56px;
  background: rgba(30,104,105,.1);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-icon .material-symbols-outlined {
  font-size: 28px;
  color: var(--secondary);
}
.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
.service-card p {
  font-size: 14px;
  color: var(--on-surface-muted);
  line-height: 1.7;
}

/* ─── TRACKING PAGE ─────────────────────────────────────────── */
.track-hero {
  background: var(--primary);
  padding: 80px 0 40px;
  text-align: center;
}
.track-hero h1 { color: #fff; font-size: 40px; font-weight: 800; margin-bottom: 12px; }
.track-hero p { color: rgba(255,255,255,.6); font-size: 17px; }

.track-search-bar {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  margin: -32px auto 0;
  max-width: 680px;
  position: relative;
  z-index: 10;
}
.track-search-bar h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}
.track-result {
  max-width: 900px;
  margin: 48px auto;
}

/* Tracking Info Card */
.tracking-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 24px;
}
.tracking-card-header {
  background: var(--primary);
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.tracking-number {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .05em;
}
.tracking-number span {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.6);
  letter-spacing: normal;
  display: block;
  margin-bottom: 4px;
}
.tracking-status-badge {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-delivered { background: #d1fae5; color: #065f46; }
.status-transit    { background: var(--secondary-light); color: #004f50; }
.status-pending    { background: #fef3c7; color: #92400e; }
.status-hold       { background: #fee2e2; color: #991b1b; }

.tracking-card-body { padding: 36px; }

/* Tracking Grid */
.tracking-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 36px;
}
.tracking-info-item label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--outline);
  display: block;
  margin-bottom: 4px;
}
.tracking-info-item p {
  font-size: 15px;
  font-weight: 600;
  color: var(--on-surface);
}

/* ─── TRACKING TIMELINE ─────────────────────────────────────── */
.timeline-section {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 36px;
  margin-bottom: 24px;
}
.timeline-section h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Progress Steps */
.progress-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
  position: relative;
}
.progress-steps::before {
  content: '';
  position: absolute;
  top: 20px; left: 20px; right: 20px;
  height: 3px;
  background: var(--outline-light);
  z-index: 0;
}
.progress-fill {
  position: absolute;
  top: 20px; left: 20px;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  z-index: 1;
  transition: width 1s ease;
}

.step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.step-dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: all .4s;
  border: 3px solid var(--outline-light);
  background: #fff;
  color: var(--outline);
}
.step.done .step-dot {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
}
.step.current .step-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
  box-shadow: 0 0 0 6px rgba(47,142,255,.2);
  animation: glow 2s infinite;
}
@keyframes glow {
  0%,100% { box-shadow: 0 0 0 6px rgba(47,142,255,.2); }
  50% { box-shadow: 0 0 0 10px rgba(47,142,255,.1); }
}
.step-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--outline);
  text-align: center;
  max-width: 80px;
  line-height: 1.3;
}
.step.done .step-label { color: var(--secondary); }
.step.current .step-label { color: var(--accent-dark); font-weight: 700; }

/* Timeline Events */
.timeline-events { position: relative; }
.timeline-event {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--surface-high);
  animation: fadeInUp .5s ease both;
}
.timeline-event:last-child { border-bottom: none; }
.event-icon-wrap {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(30,104,105,.1);
  display: flex; align-items: center; justify-content: center;
}
.event-icon-wrap .material-symbols-outlined {
  font-size: 20px;
  color: var(--secondary);
}
.timeline-event.latest .event-icon-wrap {
  background: var(--accent);
}
.timeline-event.latest .event-icon-wrap .material-symbols-outlined {
  color: var(--primary);
}
.event-content { flex: 1; }
.event-status {
  font-size: 15px;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 4px;
}
.event-desc {
  font-size: 13px;
  color: var(--on-surface-muted);
  margin-bottom: 6px;
}
.event-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--outline);
}
.event-meta span { display: flex; align-items: center; gap: 4px; }
.event-meta .material-symbols-outlined { font-size: 14px; }

@keyframes fadeInUp {
  from { opacity:0; transform:translateY(12px); }
  to { opacity:1; transform:translateY(0); }
}

/* ─── PARCEL IMAGES ─────────────────────────────────────────── */
.parcel-images-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.parcel-img-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--outline-light);
}
.parcel-img-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.parcel-img-card p {
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--on-surface-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ─── STATUS BADGES (admin/public) ─────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}
.badge-delivered    { background:#d1fae5; color:#065f46; }
.badge-transit      { background:var(--secondary-light); color:#004f50; }
.badge-pending      { background:#fef3c7; color:#92400e; }
.badge-picked       { background:#e0f2fe; color:#0369a1; }
.badge-processing   { background:#f3e8ff; color:#6b21a8; }
.badge-customs      { background:#fff7ed; color:#c2410c; }
.badge-outdelivery  { background:#ecfdf5; color:#047857; }
.badge-hold         { background:#fee2e2; color:#991b1b; }
.badge-returned     { background:#f1f5f9; color:#475569; }
.badge-default      { background:#f1f5f9; color:#475569; }

/* ─── FORMS ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--on-surface-muted);
  margin-bottom: 6px;
  letter-spacing: .01em;
}
.form-control {
  width: 100%;
  height: 48px;
  background: var(--surface-card);
  border: 1.5px solid var(--outline-light);
  border-radius: var(--radius);
  padding: 0 16px;
  font-size: 15px;
  color: var(--on-surface);
  font-family: 'Inter', sans-serif;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-control:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(30,104,105,.12);
}
.form-control::placeholder { color: var(--outline); }
textarea.form-control { height: auto; padding: 14px 16px; resize: vertical; }
select.form-control { cursor: pointer; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.form-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--outline-light);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ─── CONTACT PAGE ──────────────────────────────────────────── */
.contact-hero {
  background: var(--primary);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(30,104,105,.4), transparent 70%);
}
.contact-hero h1 { color: #fff; font-size: 44px; font-weight: 800; position: relative; z-index: 1; }
.contact-hero p { color: rgba(255,255,255,.65); font-size: 17px; position: relative; z-index: 1; margin-top: 12px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  margin-top: 64px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--outline-light);
}
.contact-sidebar { display: flex; flex-direction: column; gap: 24px; }
.info-card {
  background: var(--surface-card);
  border: 1px solid var(--outline-light);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.info-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.info-card h4 .material-symbols-outlined { color: var(--secondary); }
.info-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}
.info-item:last-child { margin-bottom: 0; }
.info-item-icon {
  width: 36px; height: 36px;
  background: rgba(30,104,105,.08);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.info-item-icon .material-symbols-outlined { font-size: 18px; color: var(--secondary); }
.info-item-text p { font-size: 13px; color: var(--outline); margin-bottom: 2px; }
.info-item-text strong { font-size: 14px; color: var(--on-surface); }

/* ─── QUOTE PAGE ─────────────────────────────────────────────── */
.quote-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0a2342 100%);
  padding: 80px 0;
  text-align: center;
}
.quote-hero h1 { color: #fff; font-size: 44px; font-weight: 800; }
.quote-hero p { color: rgba(255,255,255,.65); margin-top: 12px; }

.quote-card {
  max-width: 760px;
  margin: -32px auto 80px;
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 10;
}

/* ─── FAQ PAGE ───────────────────────────────────────────────── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--outline-light);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-card);
  transition: background .2s;
}
.faq-question:hover { background: var(--surface-low); }
.faq-question .material-symbols-outlined { transition: transform .3s; color: var(--secondary); }
.faq-item.open .faq-question .material-symbols-outlined { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
  background: var(--surface-low);
}
.faq-answer-inner {
  padding: 20px 24px;
  font-size: 15px;
  color: var(--on-surface-muted);
  line-height: 1.75;
}
.faq-item.open .faq-answer { max-height: 500px; }

/* ─── PAGE HERO (general) ────────────────────────────────────── */
.page-hero {
  background: var(--primary);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -40px; left: 0; right: 0;
  height: 80px;
  background: var(--surface);
  border-radius: 50% 50% 0 0 / 40px 40px 0 0;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: 44px; font-weight: 800; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.65); font-size: 17px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--secondary-light); }
.breadcrumb .material-symbols-outlined { font-size: 14px; }

/* ─── FEATURES / TRUST SECTION ──────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.feature-item {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-md);
  background: var(--surface-card);
  border: 1px solid var(--outline-light);
  transition: all .3s;
}
.feature-item:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.feature-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--secondary), #145e5f);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 16px rgba(30,104,105,.25);
}
.feature-icon .material-symbols-outlined { font-size: 30px; color: #fff; }
.feature-item h3 { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.feature-item p { font-size: 14px; color: var(--on-surface-muted); line-height: 1.6; }

/* ─── CTA BAND ───────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--secondary) 0%, #145e5f 100%);
  padding: 80px 0;
  text-align: center;
  color: #fff;
}
.cta-band h2 { font-size: 36px; font-weight: 800; margin-bottom: 16px; }
.cta-band p { font-size: 17px; opacity: .8; margin-bottom: 36px; }

/* ─── ABOUT PAGE ─────────────────────────────────────────────── */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img img { width: 100%; height: 400px; object-fit: cover; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}
.team-card {
  text-align: center;
  padding: 28px 20px;
  background: var(--surface-card);
  border: 1px solid var(--outline-light);
  border-radius: var(--radius-md);
  transition: all .3s;
}
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800; color: #fff;
}
.team-card h4 { font-size: 16px; font-weight: 700; color: var(--primary); }
.team-card p { font-size: 13px; color: var(--secondary); font-weight: 600; margin-top: 4px; }

/* ─── NEWS/UPDATES PAGE ─────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.news-card {
  background: var(--surface-card);
  border: 1px solid var(--outline-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all .3s;
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.news-tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(30,104,105,.1);
  color: var(--secondary);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.news-card-body { padding: 24px; }
.news-card h3 { font-size: 17px; font-weight: 700; color: var(--primary); margin-bottom: 8px; line-height: 1.4; }
.news-card p { font-size: 14px; color: var(--on-surface-muted); line-height: 1.6; }
.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--outline);
  margin-top: 16px;
}

/* ─── ALERT ──────────────────────────────────────────────────── */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-success { background: #d1fae5; color: #065f46; border-left: 4px solid #10b981; }
.alert-error   { background: #fee2e2; color: #991b1b; border-left: 4px solid #ef4444; }
.alert-info    { background: #e0f2fe; color: #075985; border-left: 4px solid #0284c7; }
.alert .material-symbols-outlined { font-size: 20px; flex-shrink: 0; }

/* ─── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,.7);
  padding-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 60px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}
.footer-logo .material-symbols-outlined { color: var(--accent); }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 260px; }
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.social-link {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  transition: all .2s;
}
.social-link:hover { background: rgba(255,255,255,.1); color: #fff; }
.social-link .material-symbols-outlined { font-size: 18px; }

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,.6);
  margin-bottom: 10px;
  transition: color .2s;
}
.footer-col a:hover { color: #fff; }
.footer-contact-item {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
}
.footer-contact-item .material-symbols-outlined { font-size: 16px; color: var(--secondary-light); flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 13px; }
.footer-badges { display: flex; gap: 16px; }
.footer-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,.5);
}
.footer-badge .material-symbols-outlined { font-size: 14px; color: var(--accent); }

/* ─── LOADING & SPINNER ─────────────────────────────────────── */
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--outline-light);
  border-top-color: var(--secondary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 60px 20px;
  color: var(--on-surface-muted);
  font-size: 15px;
}

/* ─── NO RESULT / EMPTY STATE ────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}
.empty-state-icon {
  width: 80px; height: 80px;
  background: var(--surface-high);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.empty-state-icon .material-symbols-outlined { font-size: 36px; color: var(--outline); }
.empty-state h3 { font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.empty-state p { color: var(--on-surface-muted); font-size: 15px; }

/* ─── PAGE-SPECIFIC SECTIONS ─────────────────────────────────── */
.bg-primary-section { background: var(--primary); }
.bg-teal-section { background: var(--secondary); }
.bg-surface-section { background: var(--surface-low); }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-track-box { max-width: 600px; }
  .hero-stats { grid-template-columns: repeat(3,1fr); }
  .about-story { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .main-nav { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: #fff; padding: 16px; border-bottom: 1px solid var(--outline-light); box-shadow: var(--shadow-lg); z-index: 99; }
  .main-nav.open { display: flex; }
  .mobile-toggle { display: flex; }
  .hero-stats { grid-template-columns: 1fr; }
  .progress-steps { overflow-x: auto; gap: 4px; }
  .step-label { display: none; }
  .parcel-images-grid { grid-template-columns: 1fr; }
  .tracking-info-grid { grid-template-columns: 1fr 1fr; }
  .nav-inner { position: relative; }
}
@media (max-width: 480px) {
  .section { padding: 64px 0; }
  .hero-actions { flex-direction: column; }
  .track-input-group { flex-direction: column; }
}

/* ─── SCROLL ANIMATION SYSTEM (SAFE-BY-DEFAULT) ─────────────────
   Elements are ALWAYS VISIBLE without JS.
   JS adds .anim-ready to opt-in, then .anim-visible to play.
   If JS fails / IntersectionObserver never fires → content stays visible. */

[data-animate].anim-ready {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease;
}
[data-animate].anim-ready.anim-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delay for grid children */
[data-animate].anim-ready:nth-child(2) { transition-delay: .07s; }
[data-animate].anim-ready:nth-child(3) { transition-delay: .14s; }
[data-animate].anim-ready:nth-child(4) { transition-delay: .21s; }
[data-animate].anim-ready:nth-child(5) { transition-delay: .28s; }
[data-animate].anim-ready:nth-child(6) { transition-delay: .35s; }

/* ─── HERO GUARANTEE ─────────────────────────────────────────────
   Ensure hero section always renders even if Google Fonts stalls. */
.hero {
  background-color: #000d22 !important;  /* fallback if var() fails */
  min-height: 580px;
  display: flex !important;
  align-items: center;
}
.hero h1 { color: #ffffff !important; }
.hero-desc { color: rgba(255,255,255,.72) !important; }
.hero-eyebrow { color: #aaefef !important; }

/* Service cards — guarantee visibility */
.service-card {
  display: block !important;
  visibility: visible !important;
  opacity: 1;
  background: #ffffff !important;
  border: 1px solid #e2e6eb !important;
}
.service-card h3 { color: #000d22 !important; }
.service-card p  { color: #44474e !important; }

/* Feature items — guarantee visibility */
.feature-item {
  display: block !important;
  visibility: visible !important;
  opacity: 1;
}

/* ─── MATERIAL SYMBOLS FALLBACK ──────────────────────────────────
   If Google Fonts fails to load, icons still take up space and
   don't break layout. They'll show as small squares rather than
   collapsing the surrounding elements. */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined', 'Segoe UI Symbol', sans-serif;
  display: inline-block;
  min-width: 1em;
  min-height: 1em;
  line-height: 1;
  vertical-align: middle;
  /* Prevent icon text from flashing as raw text before font loads */
  font-size: inherit;
}

/* While font loads, keep icon containers stable so layout doesn't jump */
.service-icon,
.feature-icon,
.logo-icon {
  min-width: 40px;
  min-height: 40px;
}

/* ─── ABOVE-THE-FOLD GUARANTEE ───────────────────────────────────
   Everything in the hero must render immediately on paint.
   These rules override anything that could cause invisible content. */

.hero-content,
.hero-inner,
.hero-inner > div,
.hero-track-box {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.hero-eyebrow,
.hero h1,
.hero-desc,
.hero-actions,
.hero-stats,
.hero-stat {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Ensure service grid always shows even before fonts load */
.services-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.features-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* ─── PRELOADER ──────────────────────────────────────────────────
   Shown on first paint, hidden once the page has fully loaded.
   Safe-by-default: if JS never runs, a 3s CSS-only fallback still
   hides it, so the site is never stuck behind the overlay. */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--primary);
  transition: opacity .45s ease, visibility .45s ease;
  animation: preloader-fallback-hide 0s ease 3s forwards;
}
#preloader.preloader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@keyframes preloader-fallback-hide {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}
.preloader-mark {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  animation: preloader-pulse 1.4s ease-in-out infinite;
}
@keyframes preloader-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.08); opacity: .8; }
}
.preloader-bar {
  width: 120px; height: 3px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.12);
  overflow: hidden;
}
.preloader-bar span {
  display: block;
  width: 40%; height: 100%;
  background: var(--accent);
  border-radius: var(--radius-full);
  animation: preloader-slide 1.1s ease-in-out infinite;
}
@keyframes preloader-slide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}
@media (prefers-reduced-motion: reduce) {
  .preloader-mark, .preloader-bar span { animation: none; }
}
