@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url(fonts/archivo-latin.woff2) format("woff2");
}

:root {
  --blue: #1d3a94;
  --blue-dark: #152c74;
  --navy: #0e1a3a;
  --ink: #18213a;
  --text: #333d52;
  --asphalt: #56606e;
  --concrete: #eef1f4;
  --line: #d5dbe3;
  --white: #fff;
  --radius: 4px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }
h1, h2, h3 { font-stretch: 110%; font-weight: 750; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .6em; color: var(--navy); }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 112px); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 14px; }
.skip:focus { left: 8px; }

/* Logo: the blue plate from the truck doors */
.logo {
  display: inline-flex; align-items: center;
  background: var(--blue); color: var(--white); text-decoration: none;
  border-radius: var(--radius);
  padding: .34em .72em .32em;
  font-weight: 800; font-stretch: 100%; letter-spacing: .02em;
  font-size: 1.4rem; line-height: 1;
}
.logo:hover { color: var(--white); background: var(--blue-dark); }
.logo-sm { font-size: 1.05rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .7em 1.5em;
  font: inherit; font-weight: 650; line-height: 1.2;
  border: 2px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-sm { min-height: 44px; padding: .55em 1.2em; font-size: .95rem; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-white { background: var(--white); color: var(--blue); }
.btn-white:hover { background: var(--concrete); color: var(--blue-dark); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: var(--white); color: var(--white); }

/* Top bar */
.topbar { background: var(--navy); color: rgba(255,255,255,.8); font-size: .875rem; }
.topbar-inner { display: flex; align-items: center; gap: 32px; min-height: 40px; }
.topbar-contact { margin-left: auto; display: flex; gap: 24px; }
.topbar a { color: var(--white); text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; color: var(--white); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 40px; height: var(--header-h); }
.nav { display: flex; gap: 32px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding-block: 6px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.active { color: var(--blue); border-color: var(--blue); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.menu-toggle { display: none; }

/* Hero: full-width photo, solid blue panel overlapping the next section */
.hero { position: relative; }
.hero-photo { width: 100%; height: clamp(440px, 68vh, 660px); object-fit: cover; object-position: 50% 55%; }
.hero-wrap { position: absolute; left: 0; right: 0; bottom: -72px; }
.hero-panel {
  max-width: 600px; background: var(--blue); color: var(--white);
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(14,26,58,.25);
}
.hero-panel h1 { color: var(--white); font-size: clamp(2rem, 1.3rem + 2vw, 2.9rem); margin-bottom: .4em; }
.hero-panel p { color: rgba(255,255,255,.88); font-size: 1.075rem; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* About: photo + text, facts in a blue block */
.about { padding-top: calc(72px + clamp(56px, 7vw, 96px)); }
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.about-text { max-width: 38em; }
.about-text p { color: var(--text); }
.facts {
  margin: 28px 0 0; padding: 8px 28px;
  background: var(--blue); color: var(--white); border-radius: var(--radius);
  display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; column-gap: 32px;
}
.facts div { padding: 16px 0; }
.facts dt { font-size: .85rem; color: rgba(255,255,255,.72); }
.facts dd { margin: 0; font-weight: 650; font-size: 1.05rem; }

/* Section heading row */
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 16px clamp(24px, 5vw, 64px); align-items: end; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; max-width: 32em; color: var(--text); }

/* Services on navy */
.services { background: var(--navy); color: var(--white); }
.services h2, .services h3 { color: var(--white); }
.services .section-head p { color: rgba(255,255,255,.75); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
.service img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); margin-bottom: 22px; }
.service h3 { margin-bottom: .4em; }
.service p { margin: 0; color: rgba(255,255,255,.78); font-size: 1rem; }
.svc-link { display: inline-block; margin-top: 16px; color: var(--white); font-weight: 650; text-underline-offset: .25em; }
.svc-link:hover { color: rgba(255,255,255,.75); }

/* Fleet: one column per truck model */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
.model img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); margin-bottom: 20px; }
.model h3 { margin-bottom: .5em; }
.model dl { margin: 0; border-top: 2px solid var(--navy); }
.model dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.model dt { color: var(--text); }
.model dd { margin: 0; font-weight: 650; }

/* Contact */
.contact { background: var(--concrete); }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: stretch; }
/* The photo fills whatever height is left, so its bottom lines up with the bottom of the form */
.contact-info { display: flex; flex-direction: column; }
address { font-style: normal; margin-bottom: 24px; }
.contact-lines { margin: 0; }
.contact-lines div { padding: 10px 0; border-top: 1px solid var(--line); }
.contact-lines dt { font-size: .9rem; color: var(--asphalt); }
.contact-lines dd { margin: 0; }
.contact-lines a { font-weight: 600; }
.contact-photo { margin-top: 28px; width: 100%; flex: 1 1 0; min-height: 240px; object-fit: cover; object-position: 50% 45%; border-radius: var(--radius); }

.quote { background: var(--white); padding: clamp(24px, 4vw, 44px); border-radius: var(--radius); border-top: 4px solid var(--blue); }
.quote h3 { font-size: 1.6rem; margin-bottom: .3em; }
.quote-intro { color: var(--asphalt); }
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form .opt { font-weight: 400; color: var(--asphalt); }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink);
  width: 100%; min-height: 48px; padding: 10px 12px;
  border: 1px solid #b8c1cd; border-radius: var(--radius); background: var(--white);
}
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.form [aria-invalid="true"] { border-color: #b3261e; background: #fff6f5; }
.form .btn { justify-self: start; min-width: 200px; }
.form .btn[disabled] { opacity: .65; cursor: wait; }
.form-legal { font-size: .88rem; color: var(--asphalt); margin: 0; }
.form-status { margin: 0; font-weight: 600; min-height: 1.6em; }
.form-status.ok { color: #1b6b3a; }
.form-status.err { color: #b3261e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.72); font-size: .95rem; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-block: clamp(48px, 6vw, 72px) 40px; }
.footer-cols p { margin: 16px 0 0; max-width: 22em; }
.footer-cols h2 { font-size: 1rem; color: var(--white); margin: 0 0 14px; letter-spacing: 0; }
.footer-cols h2 + p { margin-top: 0; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: .875rem; }
.footer-bottom p { margin: 0; }

/* Mobile call bar */
.callbar { display: none; }

/* Legal pages */
.legal { max-width: 46em; padding-block: clamp(48px, 7vw, 88px); }
.legal h1 { font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal p, .legal li { color: var(--text); }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; }
.legal dt { font-weight: 600; }
.legal dd { margin: 0; }

@media (max-width: 1020px) {
  .topbar-inner > span:nth-child(2) { display: none; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .topbar { display: none; }
  .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer;
  }
  .menu-toggle span { display: block; height: 2px; background: var(--ink); transition: transform .2s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--white);
    border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--concrete); }
  .header-actions .btn { display: none; }

  .hero-photo { height: auto; aspect-ratio: 4 / 3; }
  .hero-wrap { position: relative; bottom: auto; margin-top: -48px; }
  .hero-panel { box-shadow: none; }
  .about { padding-top: clamp(48px, 9vw, 72px); }

  .about-grid, .contact-grid, .section-head { grid-template-columns: 1fr; }
  .contact-photo { flex: none; aspect-ratio: 4 / 5; min-height: 0; }
  .services-grid { grid-template-columns: 1fr; gap: 40px; }

  .models { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { aspect-ratio: 4 / 3; }

  .callbar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--navy); border-top: 1px solid rgba(255,255,255,.15);
  }
  .callbar a {
    display: flex; align-items: center; justify-content: center;
    min-height: 56px; color: var(--white); text-decoration: none; font-weight: 650;
  }
  .callbar-quote { background: var(--blue); }
  body { padding-bottom: 56px; }
}

@media (max-width: 560px) {
  .logo { font-size: 1.15rem; }
  .facts { grid-template-columns: 1fr; padding: 4px 20px; }
  .facts div + div { border-top: 1px solid rgba(255,255,255,.2); }
  .form .row { grid-template-columns: 1fr; }
  .form .btn { width: 100%; }
  .hero-cta .btn { flex: 1 1 100%; }
  .footer-cols { grid-template-columns: 1fr; }
}
/* ---- Motion: kept small and quiet, all of it off for reduced motion ---- */

/* Photo frames: the photo zooms slightly inside its own frame on hover */
.frame { overflow: hidden; border-radius: var(--radius); margin-bottom: 22px; }
.model .frame { margin-bottom: 20px; }
.frame img { margin-bottom: 0 !important; border-radius: 0 !important; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.service:hover .frame img, .model:hover .frame img { transform: scale(1.04); }

@media (prefers-reduced-motion: no-preference) {
  /* Hero: the photo settles and the blue panel slides in once on load */
  .hero-photo { animation: hero-settle 1.6s cubic-bezier(.2,.7,.2,1) both; }
  .hero-panel { animation: rise-in .8s cubic-bezier(.2,.7,.2,1) .2s both; }

  /* Sections fade up gently the first time they scroll into view (set by main.js) */
  .reveal { opacity: 0; transform: translateY(24px); }
  .reveal.is-in {
    opacity: 1; transform: none;
    transition: opacity .7s ease-out, transform .7s cubic-bezier(.2,.7,.2,1);
    transition-delay: var(--delay, 0s);
  }
}
@keyframes hero-settle { from { transform: scale(1.05); } to { transform: none; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .frame img { transition: none; }
  .service:hover .frame img, .model:hover .frame img { transform: none; }
}

/* Phone numbers with a country flag */
.tel { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.flag { width: 20px; height: 13px; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(14,26,58,.2); }
.topbar .flag, .site-footer .flag { box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.contact-lines dd .tel + br + .tel { margin-top: 4px; }

/* Language switch */
.lang { display: flex; gap: 2px; font-size: .9rem; font-weight: 650; }
.lang a { color: var(--asphalt); text-decoration: none; padding: 6px 8px; border-radius: var(--radius); }
.lang a:hover { color: var(--blue); background: var(--concrete); }
.lang a[aria-current="true"] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
