/* Ace Transports LLC — marketing site */
:root {
  --navy: #0a2a4a;
  --navy-deep: #061c33;
  --navy-mid: #123a5f;
  --white: #ffffff;
  --off-white: #f5f7fa;
  --muted: #5a6a7a;
  --border: #e2e8f0;
  --accent: #1a4d7c;
  --shadow: 0 8px 28px rgba(10, 42, 74, 0.1);
  --radius: 12px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(10, 42, 74, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-ace {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--navy);
}

.logo-sub {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--navy-mid);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  border-bottom-color: var(--navy);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(420px, 72vh, 640px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    url("images/hero-kenworth-tadano.jpg") center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.88) 38%,
    rgba(255, 255, 255, 0.35) 62%,
    rgba(255, 255, 255, 0.08) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
  max-width: 34rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: var(--navy-mid);
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  max-width: 32rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn-phone {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(10, 42, 74, 0.28);
}

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

.btn-large {
  font-size: 1.1rem;
  padding: 1rem 1.75rem;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy-mid);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  line-height: 1.2;
}

.section-intro {
  color: var(--muted);
  max-width: 40rem;
  margin-bottom: 2.25rem;
  font-size: 1.05rem;
}

.services .section-eyebrow,
.services .section-title,
.services .section-intro,
.equipment .section-eyebrow,
.equipment .section-title,
.equipment .section-intro {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Service cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(10, 42, 74, 0.14);
}

.card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--off-white);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 1.35rem 1.35rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-icon {
  color: var(--navy);
  margin-bottom: 0.65rem;
}

.card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.card-body p {
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}

.services-more {
  margin-top: 2.25rem;
  text-align: center;
  max-width: 42rem;
  margin-inline: auto;
  padding: 1.5rem 1.75rem;
  background: var(--off-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.services-more p {
  color: var(--muted);
  margin-bottom: 0.75rem;
  font-size: 0.98rem;
}

.services-more strong { color: var(--navy); }

.text-link {
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
}

.text-link:hover { opacity: 0.8; }

/* Equipment gallery */
.equipment {
  background: var(--off-white);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-deep);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

.gallery-wide {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(transparent, rgba(6, 28, 51, 0.85));
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Coverage */
.coverage {
  background: var(--white);
}

.coverage-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.coverage-list {
  list-style: none;
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1.5rem;
}

.coverage-list li {
  position: relative;
  padding-left: 1.15rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.coverage-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--navy);
}

.coverage-panel {
  display: flex;
  justify-content: center;
}

.ks-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  color: var(--navy);
  background: var(--off-white);
  min-width: 200px;
}

.ks-badge span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

/* Contact */
.contact {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
}

.contact .section-eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.contact .section-title { color: var(--white); }

.contact-copy p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 36rem;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.contact .btn-phone {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.contact .btn-phone:hover {
  background: var(--off-white);
}

.contact-meta {
  margin-top: 1.25rem !important;
  font-size: 0.9rem !important;
  opacity: 0.75;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.9);
  padding-top: 2.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 1.5rem;
  align-items: start;
  padding-bottom: 2rem;
}

.footer-brand .logo-ace {
  display: block;
  color: var(--white);
  font-size: 1.25rem;
}

.footer-brand .logo-sub {
  color: rgba(255, 255, 255, 0.65);
}

.footer-center {
  text-align: center;
  font-size: 0.9rem;
}

.footer-tagline {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.footer-right {
  text-align: right;
  font-weight: 600;
}

.footer-right a:hover {
  text-decoration: underline;
}

.footer-ks {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }

  .coverage-inner {
    grid-template-columns: 1fr;
  }

  .coverage-panel { order: -1; }

  .gallery-wide { aspect-ratio: 16 / 9; }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-right { text-align: center; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem 1.25rem;
    gap: 0;
  }

  .site-nav.open { display: flex; }

  .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

  .nav-link.active { border-bottom-color: var(--navy); }

  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.94) 0%,
      rgba(255, 255, 255, 0.88) 55%,
      rgba(255, 255, 255, 0.55) 100%
    );
  }

  .hero-content { max-width: 100%; padding: 3rem 0; }

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

  .coverage-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .service-card, .gallery-item img, .btn { transition: none; }
}
