/* ===================================
   Edward Transit Express - Modern Static Site
   Distinctive design avoiding AI-generic aesthetics
   =================================== */

:root {
  /* Deep ocean-inspired palette */
  --primary: #0c4a6e;
  --primary-light: #0ea5e9;
  --primary-dark: #082f49;
  --accent: #f97316;
  --accent-light: #fb923c;
  --accent-dark: #c2410c;
  
  /* Neutrals */
  --bg: #f8fafc;
  --bg-dark: #0f172a;
  --surface: #ffffff;
  --surface-dark: #1e293b;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-light: #f1f5f9;
  
  /* Hazard warning */
  --warning: #dc2626;
  --warning-light: #fef2f2;
  
  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  
  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 600;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ===================================
   Navigation
   =================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
  transition: all var(--transition);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav.scrolled .logo,
.nav.scrolled .nav-links a {
  color: var(--text);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-light);
  font-weight: 600;
  font-size: 1.125rem;
}

.logo-icon {
  width: 36px;
  height: 36px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}

.nav-links a {
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.9375rem;
  position: relative;
}

.nav-links a:not(.btn):hover {
  color: var(--accent);
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-light);
  transition: var(--transition);
}

.nav.scrolled .nav-toggle span {
  background: var(--text);
}

/* ===================================
   Buttons
   =================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-nav {
  background: var(--accent);
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-nav:hover {
  background: var(--accent-dark);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #0c4a6e 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.03) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px, 40px 40px;
}

.hero-content {
  padding: var(--space-4xl) var(--space-2xl) var(--space-4xl) var(--space-3xl);
  max-width: 680px;
  margin-left: auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-bottom: var(--space-xl);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  color: var(--text-light);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  color: var(--accent);
  display: block;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
  text-align: left;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-light);
}

.stat-label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl);
}

.globe-container {
  width: 100%;
  max-width: 400px;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.globe {
  width: 100%;
  height: auto;
}

.route-line {
  stroke-dashoffset: 100;
  animation: dash 3s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: 0;
  }
}

.pulse-dot {
  animation: pulse-grow 2s ease-in-out infinite;
}

.pulse-dot.delay {
  animation-delay: 1s;
}

@keyframes pulse-grow {
  0%, 100% { r: 8; opacity: 1; }
  50% { r: 12; opacity: 0.7; }
}

/* ===================================
   Section Headers
   =================================== */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-3xl);
}

.section-header.light h2,
.section-header.light p {
  color: var(--text-light);
}

.section-header.light .section-tag {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

.section-tag {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: var(--primary-light);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 100px;
  margin-bottom: var(--space-md);
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: var(--space-md);
  color: var(--text);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* ===================================
   Services Section
   =================================== */
.services {
  padding: var(--space-4xl) 0;
  background: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.service-card {
  background: var(--surface);
  border-radius: 16px;
  padding: var(--space-xl);
  border: 1px solid #e2e8f0;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-light);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-light);
  border: none;
}

.service-card.featured::before {
  background: var(--accent);
}

.service-card.featured .service-icon {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-light);
}

.service-card.featured p {
  color: rgba(255, 255, 255, 0.85);
}

.service-card.warning::before {
  background: var(--warning);
  opacity: 1;
}

.service-card.warning .service-icon {
  background: var(--warning-light);
  color: var(--warning);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e0f2fe;
  color: var(--primary);
  border-radius: 12px;
  margin-bottom: var(--space-lg);
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  font-family: var(--font-body);
  font-weight: 600;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.service-features {
  list-style: none;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.service-card.featured .service-features {
  border-color: rgba(255, 255, 255, 0.2);
}

.service-features li {
  padding: var(--space-xs) var(--space-sm);
  background: rgba(14, 165, 233, 0.1);
  color: var(--primary-light);
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 6px;
}

.service-card.featured .service-features li {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-light);
}

.service-card.warning .service-features li {
  background: rgba(220, 38, 38, 0.1);
  color: var(--warning);
}

/* ===================================
   About Section
   =================================== */
.about {
  padding: var(--space-4xl) 0;
  background: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.about-content h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: var(--space-lg);
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.credentials {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid #e2e8f0;
}

.credential {
  display: flex;
  flex-direction: column;
}

.credential-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.credential-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.feature-card {
  padding: var(--space-xl);
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  position: relative;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--primary-light);
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.1);
}

.feature-number {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: #e2e8f0;
  line-height: 1;
}

.feature-card h4 {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
  font-family: var(--font-body);
  font-weight: 600;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: 280px;
}

/* ===================================
   Contact Section
   =================================== */
.contact {
  padding: var(--space-4xl) 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 10% 20%, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  position: relative;
}

.contact-card {
  background: var(--surface);
  border-radius: 16px;
  padding: var(--space-xl);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.contact-card.broker {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  background: #e0f2fe;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
  margin-bottom: var(--space-md);
}

.location-badge svg {
  width: 16px;
  height: 16px;
}

.contact-card.broker .location-badge {
  background: rgba(180, 83, 9, 0.15);
  color: #92400e;
}

.contact-card h3 {
  font-size: 1.375rem;
  margin-bottom: var(--space-lg);
  font-family: var(--font-body);
  font-weight: 600;
}

.contact-card address {
  font-style: normal;
}

.address-line {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.address-line svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--text-muted);
}

.address-line a {
  color: var(--primary);
  font-weight: 500;
}

.address-line a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.address-line.fax {
  color: var(--text-muted);
  opacity: 0.8;
}

/* ===================================
   Footer
   =================================== */
.footer {
  background: var(--bg-dark);
  padding: var(--space-3xl) 0 var(--space-xl);
  color: var(--text-light);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
  margin-bottom: var(--space-md);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  max-width: 300px;
  font-size: 0.9375rem;
}

.footer-links {
  display: contents;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-body);
}

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

.footer-col li {
  margin-bottom: var(--space-sm);
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  padding-top: var(--space-xl);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  
  .hero-content {
    padding: 140px var(--space-lg) var(--space-3xl);
    max-width: 100%;
    margin: 0;
  }
  
  .hero-visual {
    display: none;
  }
  
  .service-card.featured {
    grid-column: span 1;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  
  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px var(--space-xl) var(--space-xl);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    transition: right var(--transition);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links a {
    color: var(--text);
    font-size: 1.125rem;
  }
  
  .nav-toggle {
    display: flex;
    z-index: 1001;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-lg);
  }
  
  .stat-divider {
    width: 40px;
    height: 1px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .hero-content {
    padding-top: 120px;
  }
  
  .credentials {
    flex-direction: column;
    gap: var(--space-md);
  }
}
