/* 
  Design System Specification: Alltrans Logistics 2026
  Theme: "The Precision Architect"
*/

html {
  scroll-behavior: smooth;
  height: 100%;
}

:root {
  /* Color Palette */
  --bg-primary: #FFFFFF;
  --primary-navy: #1E293B;
  --on-surface: #2D3435;
  --surface-low: #F2F4F4;
  --surface-highest: #DDE4E5;
  --outline-variant: rgba(172, 179, 180, 0.15); /* Ghost Border Fallback */
  
  /* Typography */
  --font-family: 'Inter', sans-serif;
  --tracking-tight: -0.02em;
  --line-height-body: 1.6;
  
  /* Spacing & Layout */
  --radius-default: 8px;
  --padding-section: 11rem;
  --padding-section-mobile: 6rem;
  --margin-asymmetric-lg: 10%;
  --margin-asymmetric-sm: 5%;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--primary-navy); /* Matches footer to eliminate white gap */
  color: var(--on-surface);
  line-height: var(--line-height-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  background-color: var(--bg-primary);
  flex: 1;
}

/* 
  "The No-Line Rule" 
  Boundaries are defined by background shifts, not borders. 
*/

/* --- Global Components --- */

.section {
  padding: var(--padding-section) 0;
  width: 100%;
}

@media (max-width: 768px) {
  .section {
    padding: var(--padding-section-mobile) 0;
  }
}

.container {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 4rem;
}

/* Glassmorphism Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 4rem;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--primary-navy);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 3rem;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary-navy);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* --- Button Variants --- */

.btn-light {
  background-color: #FFFFFF;
  color: var(--primary-navy);
  padding: 1rem 2.5rem;
  border-radius: 4px; /* Matches the sharper edge in reference */
  font-size: 0.8125rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.btn-light:hover {
  background-color: #f1f5f9;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: #FFFFFF;
  padding: 1rem 2.5rem;
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
}

.btn-primary {
  background-color: var(--primary-navy);
  color: #FFFFFF;
  padding: 1.25rem 3rem;
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* --- Hero Section & Banner --- */

.hero-section {
  position: relative;
  width: 100%;
}

.hero-banner {
  position: relative;
  height: 800px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.3) 100%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 10;
}

.hero-content {
  max-width: 1600px;
  color: #FFFFFF;
}

.hero-eyebrow {
  color: #FFFFFF;
  opacity: 0.8;
  margin-left: 0;
  margin-bottom: 2rem;
}

.hero-heading {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 2.5rem;
  color: #FFFFFF;
}

.hero-logo {
  max-width: 100%;
  width: 1200px; /* Target size */
  height: auto;
  margin-bottom: 2.5rem;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5));
}

.hero-body {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  font-size: 1.125rem;
  margin-bottom: 3.5rem;
  margin-left: 0;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
}

/* --- Overlapping Grid --- */

.grid-container {
  position: relative;
  margin-top: -160px; /* Overlap effect */
  z-index: 20;
}

.hero-tiles-overlap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.tile-premium {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  display: block;
  text-decoration: none;
}

.tile-premium img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
  transition: transform 0.8s ease;
}

.tile-premium:hover img {
  transform: scale(1.05);
  filter: brightness(0.8);
}

.tile-label {
  position: absolute;
  bottom: 2rem;
  left: 0;
  width: 100%;
  text-align: center;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

/* Original Tile Styles (Kept for compatibility or mobile) */
.hero-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
  max-width: 1440px; 
  margin-inline: auto;
}

.tile {
  position: relative;
  aspect-ratio: 3 / 4; 
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--radius-default);
}

/* --- Content Sections --- */

.content-row {
  display: flex;
  align-items: center;
  gap: 14rem;
}

.content-row.reversed {
  flex-direction: row-reverse;
}

.content-text {
  flex: 1;
}

.content-image {
  flex: 1;
}

.content-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-default);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary-navy);
  margin-bottom: 2rem;
  display: block;
}

.heading {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
}

.body-text {
  font-size: 1.125rem;
  color: #475569; /* Softer hierarchy */
  line-height: 1.8;
  max-width: 720px;
  margin-bottom: 0;
}

.link-action {
  text-decoration: none;
  font-weight: 700;
  color: var(--primary-navy);
  border-bottom: 2px solid var(--primary-navy);
  padding-bottom: 0.25rem;
  transition: opacity 0.2s ease;
}

.link-action:hover {
  opacity: 0.7;
}

/* Background Tiers */
.bg-surface-low {
  background-color: var(--surface-low);
}

/* --- Footer --- */

.footer {
  background-color: var(--primary-navy);
  color: #FFFFFF;
  padding: 8rem 0 4rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4rem;
  margin-bottom: 6rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-right {
  display: flex;
  gap: 6rem;
  align-items: flex-start;
}

.footer-address {
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  line-height: 2;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.footer-col-value {
  font-size: 0.875rem;
  font-weight: 500;
  color: #FFFFFF;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: opacity 0.2s ease;
}

a.footer-col-value:hover {
  opacity: 0.7;
}

.footer-brand {
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 4rem;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #64748b;
  margin: 0;
}

.footer-legal-links a {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: #FFFFFF;
}

/* --- Responsiveness --- */

@media (max-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
  .content-row {
    flex-direction: column;
    gap: 4rem;
  }
  .content-row.reversed {
    flex-direction: column;
  }
  .heading {
    font-size: 2.75rem;
    margin-left: 0;
  }
  .eyebrow, .body-text, .link-action {
    margin-left: 0;
  }
  .hero-tiles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .hero-logo {
    width: 90% !important;
    margin-bottom: 2rem;
  }

  .hero-banner {
    min-height: 70vh;
  }

  .heading {
    font-size: 2.25rem;
  }

  .content-image img {
    height: 300px;
  }

  .footer {
    padding: 6rem 0 3rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 3rem;
  }

  .footer-right {
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .contact-form-block {
    padding: 2.5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .heading {
    font-size: 1.875rem;
  }
  
  .hero-banner {
    min-height: 60vh;
  }

  .content-image img {
    height: 250px;
  }

  .grid-container {
    margin-top: -80px;
  }

  .hero-tiles-overlap {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* --- Contact Form Styles --- */
.contact-form-block {
  flex: 1;
  background-color: var(--bg-primary);
  padding: 4rem;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-label {
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #94a3b8;
}

.form-input {
  width: 100%;
  padding: 1.25rem;
  background-color: var(--surface-low);
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--primary-navy);
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  background-color: #FFFFFF;
  border-color: var(--primary-navy);
}

textarea.form-input {
  resize: vertical;
}

@media (max-width: 1024px) {
  .contact-form-block {
    padding: 2rem;
    margin-top: 2rem;
  }
}
