/* ============================================================
   WINOME GLOBAL DESIGN SYSTEM
   www.winome.co.tz | Freight Forwarding & Clearing Platform
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ─── CSS Custom Properties ─────────────────────────────── */
:root {
  /* Colors */
  --navy-900: #060D1A;
  --navy-850: #0A1628;
  --navy-800: #0F2040;
  --navy-700: #163255;
  --navy-600: #1E4070;
  --navy-500: #2563EB1A;
  --slate-700: #334155;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --white: #FFFFFF;
  --action-blue: #324bb3;
  --action-blue-dark: #223A8C;
  --action-blue-light: #526ce0;
  --action-blue-glow: rgba(50, 75, 179, 0.3);
  --brand-red: #E31C23;
  --brand-red-dark: #C2131A;
  --brand-red-glow: rgba(227, 28, 35, 0.25);
  --success-green: #22C55E;
  --warning-yellow: #EAB308;
  --error-red: #EF4444;

  /* Gradients */
  --grad-hero: linear-gradient(135deg, #060D1A 0%, #0F2040 50%, #0A1E3D 100%);
  --grad-blue: linear-gradient(135deg, #526ce0, #223A8C);
  --grad-red: linear-gradient(135deg, #FF4B4B, #E31C23);
  --grad-card: linear-gradient(145deg, rgba(15,32,64,0.9) 0%, rgba(6,13,26,0.95) 100%);
  --grad-glass: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.04) 100%);

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 1.875rem;  /* 30px */
  --font-size-4xl: 2.25rem;   /* 36px */
  --font-size-5xl: 3rem;      /* 48px */
  --font-size-6xl: 3.75rem;   /* 60px */
  --font-size-7xl: 4.5rem;    /* 72px */

  /* Spacing (8px base grid) */
  --space-1: 0.5rem;    /* 8px */
  --space-2: 1rem;      /* 16px */
  --space-3: 1.5rem;    /* 24px */
  --space-4: 2rem;      /* 32px */
  --space-5: 2.5rem;    /* 40px */
  --space-6: 3rem;      /* 48px */
  --space-8: 4rem;      /* 64px */
  --space-10: 5rem;     /* 80px */
  --space-12: 6rem;     /* 96px */
  --space-16: 8rem;     /* 128px */
  --space-20: 10rem;    /* 160px */

  /* Border Radius */
  --radius-sm: 0.375rem;   /* 6px */
  --radius-md: 0.5rem;     /* 8px */
  --radius-lg: 0.75rem;    /* 12px */
  --radius-xl: 1rem;       /* 16px */
  --radius-2xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.5), 0 4px 10px rgba(0,0,0,0.3);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.6);
  --shadow-blue: 0 0 40px rgba(50, 75, 179, 0.25);
  --shadow-red: 0 0 40px rgba(227, 28, 35, 0.2);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 350ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --container-max: 1280px;
  --container-wide: 1440px;
  --nav-height: 80px;
  --section-padding: var(--space-16) var(--space-4);
}

/* ─── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.75;
  color: var(--slate-400);
  background-color: var(--navy-900);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; }
select option {
  background-color: var(--navy-850) !important;
  color: var(--white) !important;
}

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}
h1 { font-size: clamp(var(--font-size-4xl), 6vw, var(--font-size-7xl)); }
h2 { font-size: clamp(var(--font-size-3xl), 4vw, var(--font-size-5xl)); }
h3 { font-size: clamp(var(--font-size-xl), 2.5vw, var(--font-size-3xl)); font-weight: 700; }
h4 { font-size: var(--font-size-xl); font-weight: 700; }
h5 { font-size: var(--font-size-lg); font-weight: 600; }
p { color: var(--slate-400); }

.text-white { color: var(--white) !important; }
.text-blue  { color: var(--action-blue) !important; }
.text-red { color: var(--brand-red) !important; }
.text-slate { color: var(--slate-400) !important; }
.text-sm { font-size: var(--font-size-sm); }
.text-xs { font-size: var(--font-size-xs); }
.text-lg { font-size: var(--font-size-lg); }
.text-center { text-align: center; }
.text-lead {
  font-size: var(--font-size-lg);
  line-height: 1.8;
  color: var(--slate-300);
}
.eyebrow {
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--action-blue);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-bottom: var(--space-2);
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--action-blue);
  border-radius: 2px;
  flex-shrink: 0;
}
.eyebrow-red { color: var(--brand-red); }
.eyebrow-red::before { background: var(--brand-red); }

/* ─── Layout ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-4);
}
.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-4);
}
.section { padding: var(--space-16) 0; }
.section-sm { padding: var(--space-8) 0; }
.section-lg { padding: var(--space-20) 0; }

/* ─── Grid System ─────────────────────────────────────────── */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { flex-direction: column; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }

/* ─── Backgrounds ────────────────────────────────────────── */
.bg-dark { background-color: var(--navy-900); }
.bg-dark-alt { background-color: var(--navy-850); }
.bg-card { background: var(--grad-card); border: 1px solid rgba(255,255,255,0.06); }
.bg-glass {
  background: var(--grad-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
}

/* ─── Section Headers ─────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-8);
}
.section-header p {
  font-size: var(--font-size-lg);
  color: var(--slate-400);
  margin-top: var(--space-2);
  line-height: 1.8;
}

/* ─── Divider ─────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  margin: 0;
}

/* ─── Scroll Reveal ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── Utility ─────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 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-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }
.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); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }
.w-full { width: 100%; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* ─── Badge ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-blue   { background: rgba(50,75,179,0.15); color: var(--action-blue-light); border: 1px solid rgba(50,75,179,0.3); }
.badge-red { background: rgba(227,28,35,0.15); color: var(--brand-red); border: 1px solid rgba(227,28,35,0.3); }
.badge-green  { background: rgba(34,197,94,0.15); color: var(--success-green); border: 1px solid rgba(34,197,94,0.3); }
.badge-dot::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ─── Alerts / Notifications ─────────────────────────────── */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  font-size: var(--font-size-sm);
  line-height: 1.5;
  display: block;
  width: 100%;
  height: auto !important;
  flex: none !important;
  box-sizing: border-box;
}
.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid var(--success-green);
  color: var(--success-green);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.05);
}
.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--error-red);
  color: var(--error-red);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.05);
}

/* ─── Page Hero (shared) ─────────────────────────────────── */
.page-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
}
.page-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.02'%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");
}
.page-hero-content { position: relative; z-index: 1; }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --nav-height: 70px; }
  .section { padding: var(--space-10) 0; }
  .section-lg { padding: var(--space-12) 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2rem, 8vw, 3rem); }
  h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
  .section-header { margin-bottom: var(--space-6); }
}
@media (max-width: 480px) {
  .container { padding: 0 var(--space-2); }
}
