:root {
  /* Logistics Navy Foundation */
  --navy: #21343A;
  --deep-route-blue: #2D464D;
  --industrial-slate: #526469;
  --road-grey: #718083;
  
  /* Pastels & Neutrals */
  --soft-sage: #A9B9B2;
  --logistics-mint: #D5E2DC;
  --cool-mist: #E2E9E6;
  --route-fog: #E9ECE8;
  --warm-concrete: #DDD9D1;
  --soft-ivory: #F5F3ED;
  --parts-white: #FBFAF7;
  
  /* Accents */
  --signal-teal: #5E8987;
  --route-blue: #6F919C;
  --warehouse-green: #789486;
  --priority-amber: #C7955D;
  --copper-detail: #B8785D;
  
  /* Text */
  --technical-ink: #18272B;
  --body-text: #3F5053;
  --muted-text: #6D797A;
  --light-text: #F2F4F0;

  /* Spacing Scale */
  --space-4: 4px;
  --space-8: 8px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-64: 64px;
  --space-80: 80px;

  /* Borders & Shadows */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-micro: 0 4px 20px rgba(33, 52, 58, 0.04), 0 2px 8px rgba(33, 52, 58, 0.02);
  --shadow-hover: 0 12px 32px rgba(33, 52, 58, 0.08), 0 4px 12px rgba(33, 52, 58, 0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100vh;
  background-color: var(--soft-ivory);
  color: var(--body-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .brand-name, .nav-link {
  color: var(--technical-ink);
  overflow-wrap: anywhere;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; margin-bottom: var(--space-24); font-weight: 700; }
h2 { font-size: 2rem; margin-bottom: var(--space-24); margin-top: var(--space-40); font-weight: 600; }
h3 { font-size: 1.5rem; margin-bottom: var(--space-16); margin-top: var(--space-32); font-weight: 600; }
p { margin-bottom: var(--space-16); overflow-wrap: anywhere; }
ul, ol { margin-bottom: var(--space-24); padding-left: var(--space-24); overflow-wrap: anywhere; }
li { margin-bottom: var(--space-8); }

a {
  color: var(--signal-teal);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--navy); }

/* Focus & Accessibility */
:focus-visible {
  outline: 3px solid var(--priority-amber);
  outline-offset: 2px;
  border-radius: 4px;
}
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--priority-amber);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-24);
  min-width: 0;
}

.section {
  padding: var(--space-80) 0;
}

/* Header */
.site-header {
  height: 64px;
  background-color: var(--parts-white);
  border-bottom: 1px solid var(--route-fog);
  display: flex;
  align-items: center;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.125rem;
}

.brand-icon {
  width: 24px;
  height: 24px;
  fill: var(--signal-teal);
}

.nav-desktop {
  display: flex;
  gap: var(--space-24);
  align-items: center;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--industrial-slate);
}

.nav-link:hover { color: var(--signal-teal); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: var(--signal-teal);
  color: var(--parts-white);
  text-align: center;
}
.btn:hover {
  background-color: var(--deep-route-blue);
  color: var(--parts-white);
}
.btn-outline {
  background-color: transparent;
  border: 2px solid var(--signal-teal);
  color: var(--signal-teal);
}
.btn-outline:hover {
  background-color: var(--logistics-mint);
  color: var(--navy);
  border-color: var(--navy);
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-4);
  color: var(--navy);
}
.mobile-toggle svg {
  width: 28px;
  height: 28px;
}

/* Hero Section */
.hero {
  padding: var(--space-80) 0;
  background: linear-gradient(180deg, var(--parts-white) 0%, var(--soft-ivory) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-64);
  align-items: center;
  min-width: 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

.hero-visual {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-micro);
  background-color: var(--route-fog);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Horizontal Split Card */
.card-horizontal {
  display: flex;
  flex-direction: row;
  background-color: var(--parts-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-micro);
  overflow: hidden;
  margin-bottom: var(--space-40);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
}

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

.card-media {
  flex: 0 0 40%;
  min-width: 240px;
  position: relative;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Rule Enforcement: Separation */
.card-content {
  flex: 1;
  padding: var(--space-32);
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  min-width: 0;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--priority-amber);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-title {
  font-size: 1.5rem;
  margin: 0;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-top: auto;
  padding-top: var(--space-16);
}

.tag {
  background-color: var(--cool-mist);
  color: var(--industrial-slate);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}

/* Page Content (Guides & Legal) */
.content-wrapper {
  background-color: var(--parts-white);
  border-radius: var(--radius-lg);
  padding: var(--space-64);
  box-shadow: var(--shadow-micro);
  margin-bottom: var(--space-64);
}

.content-body {
  max-width: 800px;
  margin: 0 auto;
}

/* Footer */
.site-footer {
  background-color: var(--navy);
  color: var(--light-text);
  padding: var(--space-64) 0 var(--space-40) 0;
}
.site-footer h4 { color: var(--parts-white); margin-bottom: var(--space-16); }
.site-footer a { color: var(--soft-sage); }
.site-footer a:hover { color: var(--parts-white); }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-40);
  margin-bottom: var(--space-40);
  min-width: 0;
}

.footer-bottom {
  border-top: 1px solid var(--industrial-slate);
  padding-top: var(--space-24);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-16);
  font-size: 0.875rem;
  color: var(--road-grey);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: var(--space-24);
  left: var(--space-24);
  right: var(--space-24);
  background-color: var(--parts-white);
  border-radius: var(--radius-lg);
  padding: var(--space-24);
  box-shadow: var(--shadow-hover);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-24);
  z-index: 1000;
  border: 1px solid var(--cool-mist);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}
.cookie-banner.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.cookie-text { flex: 1 1 300px; font-size: 0.9rem; margin: 0; }
.cookie-actions { display: flex; gap: var(--space-12); flex-wrap: wrap; }

/* Contact Form */
.form-group {
  margin-bottom: var(--space-24);
  display: flex;
  flex-direction: column;
}
.form-label {
  font-weight: 600;
  margin-bottom: var(--space-8);
  color: var(--technical-ink);
}
.form-control {
  padding: 12px 16px;
  border: 2px solid var(--cool-mist);
  border-radius: var(--radius-sm);
  background-color: var(--parts-white);
  font-family: inherit;
  font-size: 1rem;
  color: var(--body-text);
  transition: border-color 0.2s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--signal-teal);
}
.form-control.is-invalid {
  border-color: var(--priority-amber);
  background-color: #fff9f5;
}
.error-msg {
  color: var(--priority-amber);
  font-size: 0.875rem;
  margin-top: var(--space-4);
  display: none;
}
.form-control.is-invalid + .error-msg {
  display: block;
}

/* Static Map Block */
.static-map {
  background-color: var(--route-fog);
  border-radius: var(--radius-lg);
  height: 300px;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: 
    linear-gradient(var(--logistics-mint) 1px, transparent 1px),
    linear-gradient(90deg, var(--logistics-mint) 1px, transparent 1px);
  background-size: 20px 20px;
}
.map-pin {
  width: 48px;
  height: 48px;
  fill: var(--signal-teal);
  filter: drop-shadow(0 4px 8px rgba(33,52,58,0.2));
}

/* Responsive */
@media (max-width: 768px) {
  .site-header { height: 52px; }
  .nav-desktop {
    display: none;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    background: var(--parts-white);
    flex-direction: column;
    padding: var(--space-24);
    box-shadow: var(--shadow-hover);
    border-bottom: 1px solid var(--cool-mist);
    align-items: flex-start;
  }
  .nav-desktop.is-visible { display: flex; }
  .mobile-toggle { display: block; }
  
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-32); }
  
  /* Strictly enforce physical separation: image top, gap, content below */
  .card-horizontal { flex-direction: column; }
  .card-media { flex: 0 0 auto; height: 240px; }
  
  .content-wrapper { padding: var(--space-24); }
}

@media (max-width: 400px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .card-content { padding: var(--space-16); }
  .footer-bottom { flex-direction: column; }
}

/* Data Grid / Tables */
.table-wrapper {
  overflow-x: auto;
  margin-bottom: var(--space-24);
  border: 1px solid var(--cool-mist);
  border-radius: var(--radius-sm);
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: var(--parts-white);
}
th, td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--cool-mist);
}
th {
  background: var(--route-fog);
  font-weight: 600;
  color: var(--technical-ink);
}
/* END CSS */