/* ========================================
   Cargo Bridge Africa — Premium B2B Design System
   ======================================== */

/* CSS Variables */
:root {
  --navy: #082B49;
  --navy-dark: #061E35;
  --navy-light: #0A3A5E;
  --ocean: #1479B8;
  --ocean-light: #1A8FD4;
  --orange: #F28B30;
  --orange-dark: #E07A20;
  --orange-light: #FF9E4A;
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* 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: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

p {
  color: var(--gray-600);
  line-height: 1.7;
}

a {
  color: var(--ocean);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--ocean-light);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(242, 139, 48, 0.4);
}

.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(242, 139, 48, 0.5);
}

.btn-secondary {
  background: var(--navy);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--navy-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--gray-200);
}

.btn-outline:hover {
  border-color: var(--navy);
  background: var(--gray-50);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
}

.btn-white:hover {
  background: var(--gray-100);
}

.btn-sm {
  padding: 10px 16px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.125rem;
}

.btn-block {
  width: 100%;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-flat {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--gray-100);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  z-index: 1000;
  padding: 12px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--orange);
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
}

.nav-desktop {
  display: none;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 32px;
  }
  
  .nav-desktop a {
    color: var(--gray-300);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s ease;
  }
  
  .nav-desktop a:hover {
    color: var(--white);
  }
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--white);
  cursor: pointer;
}

@media (min-width: 768px) {
  .menu-btn {
    display: none;
  }
}

/* Hero Section */
.hero {
  padding: 100px 0 60px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('/images/hero-pattern.svg') repeat;
  opacity: 0.05;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--orange-light);
  margin-bottom: 20px;
}

.hero h1 {
  color: var(--white);
  font-size: 2.25rem;
  margin-bottom: 16px;
  line-height: 1.15;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--gray-300);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 48px;
}

@media (min-width: 480px) {
  .hero-cta {
    flex-direction: row;
  }
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .hero-trust {
    max-width: 600px;
  }
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.trust-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  color: var(--orange);
  font-size: 1.25rem;
}

.trust-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-300);
}

/* Route Map Section */
.route-map {
  padding: 60px 0;
  background: var(--gray-50);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ocean);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1rem;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
}

.route-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .route-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .route-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.route-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
}

.route-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.route-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.route-flag {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.route-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
}

.route-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.route-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--gray-500);
}

.route-stat svg {
  width: 16px;
  height: 16px;
  color: var(--ocean);
}

.route-card .btn {
  width: 100%;
}

/* Quote Form Section */
.quote-section {
  padding: 60px 0;
  background: var(--white);
}

.quote-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  max-width: 600px;
  margin: 0 auto;
}

.quote-form-header {
  background: var(--navy);
  padding: 24px;
  color: var(--white);
}

.quote-form-header h3 {
  color: var(--white);
  margin-bottom: 4px;
}

.quote-form-header p {
  color: var(--gray-300);
  font-size: 0.875rem;
}

/* Progress Steps */
.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 24px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-500);
  font-size: 0.8125rem;
  font-weight: 600;
}

.progress-step.active .step-number {
  background: var(--orange);
  color: var(--white);
}

.progress-step.completed .step-number {
  background: var(--success);
  color: var(--white);
}

.step-label {
  display: none;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-500);
}

@media (min-width: 480px) {
  .step-label {
    display: block;
  }
}

.progress-step.active .step-label {
  color: var(--navy);
}

.step-divider {
  width: 24px;
  height: 2px;
  background: var(--gray-200);
}

.progress-step.completed + .step-divider {
  background: var(--success);
}

/* Form Steps */
.form-step {
  padding: 24px;
  display: none;
}

.form-step.active {
  display: block;
}

.form-step h4 {
  margin-bottom: 20px;
  color: var(--navy);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--gray-800);
  transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px rgba(20, 121, 184, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-400);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236B7280' 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;
  background-size: 20px;
  padding-right: 44px;
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 480px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.form-actions .btn {
  flex: 1;
}

/* Cargo Type Options */
.cargo-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.cargo-option {
  position: relative;
}

.cargo-option input {
  position: absolute;
  opacity: 0;
}

.cargo-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.cargo-option input:checked + label {
  border-color: var(--ocean);
  background: rgba(20, 121, 184, 0.05);
}

.cargo-option-icon {
  font-size: 1.5rem;
}

.cargo-option-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
}

/* Container Size Options */
.size-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* Tracking Section */
.tracking-section {
  padding: 60px 0;
  background: var(--navy);
  color: var(--white);
}

.tracking-section h2 {
  color: var(--white);
}

.tracking-section .section-desc {
  color: var(--gray-300);
}

.tracking-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 24px;
  max-width: 600px;
  margin: 0 auto;
}

.tracking-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tracking-ref {
  font-size: 0.8125rem;
  color: var(--gray-400);
}

.tracking-number {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  font-family: monospace;
}

.tracking-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--success);
}

.tracking-status-dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Timeline */
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
  position: relative;
  padding-left: 44px;
  padding-bottom: 24px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 8px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.timeline-item.completed .timeline-dot {
  background: var(--success);
  border-color: var(--success);
}

.timeline-item.active .timeline-dot {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(242, 139, 48, 0.3);
}

.timeline-content h4 {
  color: var(--white);
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.timeline-content p {
  font-size: 0.8125rem;
  color: var(--gray-400);
}

.timeline-item.active .timeline-content h4 {
  color: var(--orange);
}

/* Tracking Info Cards */
.tracking-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 24px;
}

@media (min-width: 480px) {
  .tracking-info {
    grid-template-columns: repeat(2, 1fr);
  }
}

.info-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 16px;
}

.info-card-label {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.info-card-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}

.tracking-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.tracking-actions .btn {
  flex: 1;
}

/* Why Choose Us Section */
.why-section {
  padding: 60px 0;
  background: var(--white);
}

.why-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .why-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .why-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

.why-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.why-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.why-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--ocean) 0%, var(--ocean-light) 100%);
  border-radius: var(--radius);
  margin-bottom: 16px;
  color: var(--white);
  font-size: 1.5rem;
}

.why-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
}

.why-card p {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* FAQ Section */
.faq-section {
  padding: 60px 0;
  background: var(--gray-50);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  color: var(--gray-400);
  transition: transform 0.2s ease;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px 20px;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-answer p {
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* Footer */
.footer {
  background: var(--navy-dark);
  color: var(--gray-300);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand p {
  font-size: 0.875rem;
  margin-top: 12px;
  color: var(--gray-400);
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--gray-400);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--gray-500);
}

/* Sticky Mobile CTA */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 12px 16px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 999;
  display: block;
}

@media (min-width: 1024px) {
  .sticky-cta {
    display: none;
  }
}

.sticky-cta .btn {
  width: 100%;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 80px;
  right: 16px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 998;
  transition: all 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

@media (min-width: 1024px) {
  .whatsapp-float {
    bottom: 24px;
  }
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-navy { color: var(--navy); }
.text-ocean { color: var(--ocean); }
.text-orange { color: var(--orange); }
.text-gray { color: var(--gray-500); }
.text-white { color: var(--white); }
.bg-navy { background: var(--navy); }
.bg-gray { background: var(--gray-50); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.hidden { display: none; }
.visible { display: block; }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Dark Section Override */
.dark-section h2,
.dark-section h3 {
  color: var(--white);
}

.dark-section p {
  color: var(--gray-300);
}
