/* ============================================================
   ASV Freight — Computer Systems Design & Freight Logistics
   Original Design — No Templates — All Hand-Crafted
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-navy: #0a1628;
  --color-navy-mid: #13203d;
  --color-navy-light: #1a2d55;
  --color-gold: #c8932e;
  --color-gold-light: #e8b64a;
  --color-gold-pale: #fdf3dc;
  --color-teal: #0d7c6b;
  --color-teal-light: #15a38f;
  --color-cream: #f8f6f0;
  --color-white: #ffffff;
  --color-charcoal: #1e1e28;
  --color-slate: #3d3d4d;
  --color-slate-light: #6b6b7d;
  --color-border: #dcd8ce;
  --color-border-light: #ece8de;
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.08);
  --shadow-md: 0 6px 24px rgba(10, 22, 40, 0.12);
  --shadow-lg: 0 12px 40px rgba(10, 22, 40, 0.16);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --max-width: 1200px;
}

/* --- 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);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-charcoal);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p {
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--color-gold);
}

/* --- Navigation Bar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--color-navy);
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--color-gold);
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-lg);
}

.navbar-brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand .brand-icon {
  width: 36px;
  height: 36px;
  background-color: var(--color-gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy);
  font-weight: 900;
  font-size: 1.2rem;
}

.navbar-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.navbar-links a {
  color: #c8cdd8;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.2s ease;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-gold);
  transition: width 0.3s ease;
}

.navbar-links a:hover {
  color: var(--color-white);
}

.navbar-links a:hover::after {
  width: 100%;
}

.navbar-cta {
  background-color: var(--color-gold);
  color: var(--color-navy) !important;
  padding: 0.55rem 1.4rem !important;
  border-radius: var(--radius-sm);
  font-weight: 700 !important;
  transition: background-color 0.3s ease !important;
}

.navbar-cta:hover {
  background-color: var(--color-gold-light) !important;
}

.navbar-cta::after {
  display: none !important;
}

/* Mobile Menu Toggle */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.navbar-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.navbar-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  margin-top: 70px;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-mid) 50%, var(--color-navy-light) 100%);
  color: var(--color-white);
  padding: 5rem 2rem 6rem;
  position: relative;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -15%;
  width: 600px;
  height: 600px;
  border: 2px solid rgba(200, 147, 46, 0.15);
  border-radius: 50%;
  animation: heroPulse 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border: 2px solid rgba(13, 124, 107, 0.15);
  border-radius: 50%;
  animation: heroPulse 8s ease-in-out 4s infinite;
}

@keyframes heroPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 1; }
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

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

.hero-content p {
  font-size: 1.15rem;
  color: #b8c0d0;
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: var(--font-body);
}

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

.btn-primary:hover {
  background-color: var(--color-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 147, 46, 0.35);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid #3d5068;
}

.btn-outline:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-2px);
}

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

.btn-teal:hover {
  background-color: var(--color-teal-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 124, 107, 0.3);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-geo {
  width: 100%;
  max-width: 420px;
}

.hero-geo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 12px;
  aspect-ratio: 1;
}

.geo-cell {
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.geo-cell:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 1 / 2;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
}

.geo-cell:nth-child(2) {
  grid-column: 3 / 4;
  grid-row: 1 / 3;
  background: linear-gradient(180deg, var(--color-teal), var(--color-teal-light));
}

.geo-cell:nth-child(3) {
  grid-column: 1 / 2;
  grid-row: 2 / 4;
  background: linear-gradient(225deg, var(--color-navy-light), #254478);
  border: 2px solid #304a70;
}

.geo-cell:nth-child(4) {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  background-color: var(--color-gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-gold);
}

.geo-cell:nth-child(5) {
  grid-column: 2 / 4;
  grid-row: 3 / 4;
  background: linear-gradient(135deg, #d4a843, #15a38f);
}

/* --- Section Styles --- */
.section {
  padding: 5rem 2rem;
}

.section-alt {
  background-color: var(--color-cream);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--color-slate-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-teal);
  margin-bottom: 0.5rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border-top: 4px solid transparent;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-teal));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

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

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.service-card:nth-child(odd) .service-icon {
  background-color: var(--color-gold-pale);
  color: var(--color-gold);
}

.service-card:nth-child(even) .service-icon {
  background-color: #e6f4f1;
  color: var(--color-teal);
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--color-slate-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* --- Stats Strip --- */
.stats-strip {
  background-color: var(--color-navy);
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  color: var(--color-white);
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #a0aab8;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* --- Methodology Section --- */
.methodology-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.methodology-timeline::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-teal), var(--color-gold));
  z-index: 0;
}

.method-step {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 1rem;
}

.method-step-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 auto 1.25rem;
  background-color: var(--color-navy);
  color: var(--color-gold);
  border: 3px solid var(--color-gold);
}

.method-step h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.method-step p {
  font-size: 0.9rem;
  color: var(--color-slate-light);
}

/* --- Tech Showcase --- */
.tech-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.tech-visual-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tech-block-item {
  border-radius: var(--radius-md);
  padding: 1.5rem;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tech-block-item:nth-child(1) {
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-mid));
  color: var(--color-white);
  grid-column: 1 / 3;
}

.tech-block-item:nth-child(2) {
  background-color: var(--color-gold-pale);
  border: 2px solid var(--color-gold);
}

.tech-block-item:nth-child(3) {
  background-color: #e6f4f1;
  border: 2px solid var(--color-teal);
}

.tech-block-item:nth-child(4) {
  background: linear-gradient(135deg, var(--color-teal), #0a6b5c);
  color: var(--color-white);
  grid-column: 1 / 3;
}

.tech-block-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.25rem;
  opacity: 0.8;
}

.tech-block-value {
  font-size: 1.2rem;
  font-weight: 700;
}

.tech-content h2 {
  margin-bottom: 1rem;
}

.tech-list {
  list-style: none;
  margin-top: 1.5rem;
}

.tech-list li {
  padding: 0.6rem 0;
  padding-left: 28px;
  position: relative;
  color: var(--color-slate);
}

.tech-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 2px;
  background-color: var(--color-gold);
}

/* --- Contact Section --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-card {
  background-color: var(--color-navy);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.contact-info-card h3 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy);
  font-weight: 700;
  flex-shrink: 0;
}

.contact-detail-text h4 {
  color: var(--color-gold-light);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.2rem;
}

.contact-detail-text p {
  color: #b8c0d0;
  font-size: 0.95rem;
  margin-bottom: 0;
}

.contact-address {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.contact-address p {
  color: #8890a0;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.map-placeholder {
  background-color: var(--color-cream);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-slate-light);
}

.map-placeholder-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

/* --- Footer --- */
.footer {
  background-color: var(--color-navy);
  color: #8890a0;
  padding: 4rem 2rem 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto 3rem;
}

.footer-brand h3 {
  color: var(--color-white);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
}

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

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

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  color: #8890a0;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-bottom-links a {
  color: #6b7a90;
}

.footer-bottom-links a:hover {
  color: var(--color-gold);
}

/* --- Legal Page Styles (Privacy & Terms) --- */
.legal-hero {
  margin-top: 70px;
  background: linear-gradient(135deg, var(--color-navy) 0%, #0d1f3c 50%, var(--color-navy-mid) 100%);
  color: var(--color-white);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.legal-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border: 2px solid rgba(200, 147, 46, 0.12);
  border-radius: 50%;
}

.legal-hero h1 {
  color: var(--color-white);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.legal-hero .last-updated {
  color: var(--color-gold);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.legal-content h2 {
  font-size: 1.4rem;
  color: var(--color-navy);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-gold-pale);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--color-slate);
  margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--color-slate);
}

.legal-content ul li,
.legal-content ol li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.legal-content strong {
  color: var(--color-navy);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-content p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-geo {
    max-width: 300px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .methodology-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .methodology-timeline::before {
    display: none;
  }

  .tech-showcase {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .navbar-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-navy);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .navbar-links.active {
    transform: translateX(0);
  }

  .navbar-toggle {
    display: flex;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .methodology-timeline {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .section {
    padding: 3rem 1.2rem;
  }

  .hero {
    padding: 3rem 1.2rem 4rem;
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .stats-strip {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }

  .legal-content {
    padding: 2rem 1.2rem;
  }
}
