/* ==========================================================================
   SmartTrack — shared stylesheet (RO + EN pages)
   Brand colors sampled from the SmartTrack logo (images/logo.png):
   blue #265FA2, orange #F55600
   ========================================================================== */

:root {
  --blue: #265FA2;      /* logo blue */
  --blue-light: #4A9BD8; /* lighter blue, for use on dark backgrounds */
  --blue-dark: #1A4674;
  --ink: #22364A;      /* steel-blue-based ink, used for headings/nav text */
  --ink-2: #4B6072;
  --orange: #F55600;   /* logo orange */
  --orange-dark: #D14800;

  --white: #ffffff;
  --gray-50: #F5F8FB;
  --gray-100: #EAEFF4;
  --gray-200: #DCE4EC;
  --gray-500: #7488A0;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container-w: 1180px;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(34, 54, 74, 0.08);
  --shadow-md: 0 10px 28px rgba(34, 54, 74, 0.12);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

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

/* Lock page scroll while the mobile nav panel is open so the fixed panel
   can't fight a still-scrollable page (prevents flicker/"shake" and lost taps). */
body.nav-open { overflow: hidden; }

/* Never let long words in large headings force the page wider than the
   viewport on very narrow / zoomed-in windows. */
h1, h2, h3 { overflow-wrap: break-word; }

/* Grid/flex items default to min-width:auto, which blocks them from
   shrinking below their content and causes horizontal overflow on very
   narrow / zoomed-in windows. Let the main two-column layouts shrink. */
.hero .container > *,
.page-hero .container > *,
.coverage-wrap > * { min-width: 0; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { line-height: 1.18; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { color: var(--ink-2); }

/* Body copy that follows a heading inside a content column.
   Headings carry no margin (the reset above clears it), so this gap has to be
   declared explicitly — otherwise the paragraph sits flush against the heading.
   Kept in one place so every content block uses the same rhythm. */
.section-head p,
.coverage-wrap > div > p,
.highlight > div > p { margin-top: 14px; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--brand {
  background: linear-gradient(120deg, var(--blue-dark), var(--ink));
  color: var(--white);
}
.section--brand p { color: rgba(255, 255, 255, 0.78); }
.section--gray { background: var(--gray-50); }

.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn--primary {
  background: var(--orange);
  color: var(--white);
}
.btn--primary:hover { background: var(--orange-dark); }
.btn--ghost {
  background: transparent;
  border-color: var(--gray-200);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }
.btn--dark {
  background: var(--ink);
  color: var(--white);
}
.btn--dark:hover { background: var(--blue-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow 0.3s var(--ease), padding 0.3s var(--ease);
}
.site-header.is-scrolled {
  padding: 10px 0;
  box-shadow: var(--shadow-md);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 30px; width: auto; flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.93rem;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width 0.25s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--ink); }

.header-right { display: flex; align-items: center; gap: 18px; }

.lang-switch { display: flex; gap: 6px; font-size: 0.8rem; font-weight: 700; }
.lang-switch a {
  color: var(--gray-500);
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.lang-switch a.active { color: var(--ink); background: var(--gray-100); }
.lang-switch a:hover { color: var(--ink); }
.mobile-lang { display: none; }

/* The bar pitch (bar height + gap) is kept at 8px on purpose. With an odd
   pitch the three bars land on different subpixel phases at fractional display
   scaling (125%, 150%, 175%), so the browser antialiases each one differently
   and they look like they have unequal thickness. 8px stays a whole number of
   device pixels at those scalings, so all three render identically. */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
/* translate distance must equal the bar pitch so the two bars meet in the middle */
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Icons ---------- */
.icon {
  width: 24px; height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-badge {
  width: 52px; height: 52px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  color: var(--blue);
  margin-bottom: 18px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.card:hover .icon-badge { background: var(--blue); color: var(--white); }

/* ---------- Hero (home) ---------- */
.hero { padding: 130px 0 80px; background: var(--white); }
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy { max-width: 560px; }
.hero-copy h1 {
  opacity: 0;
  transform: translateY(20px);
  animation: rise-in 0.8s var(--ease) 0.1s forwards;
}
.hero-copy p {
  font-size: 1.08rem;
  margin: 20px 0 30px;
  max-width: 500px;
  opacity: 0;
  transform: translateY(20px);
  animation: rise-in 0.8s var(--ease) 0.24s forwards;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: rise-in 0.8s var(--ease) 0.38s forwards;
}
.hero-photo {
  opacity: 0;
  transform: translateY(20px);
  animation: rise-in 0.9s var(--ease) 0.3s forwards;
}
.hero-photo .frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
}
.hero-photo img { width: 100%; height: 360px; object-fit: cover; }
/* Three equal columns, so each stat sits centred under the matching column of
   the collage above (that image is a 3-column grid). The horizontal padding
   lives on the items rather than the container — padding on the container
   would narrow the columns and pull the outer stats off the image thirds. */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
  padding: 18px 0;
  background: var(--gray-50);
  border-radius: var(--radius);
}
.hero-stats > div { padding: 0 10px; }
.hero-stats div { text-align: center; }
.hero-stats .num { font-size: 1.2rem; font-weight: 800; color: var(--ink); }
.hero-stats .lbl { font-size: 0.72rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 2px; }

@keyframes rise-in { to { opacity: 1; transform: translateY(0); } }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > * { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: 0.13s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: 0.21s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: 0.29s; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: 0.37s; }

/* ---------- Feature grid ---------- */
.grid { display: grid; gap: 24px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gray-100);
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.94rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.step {
  padding: 26px 18px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--gray-100);
}
.step .step-num {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--gray-50);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  margin-bottom: 14px;
}
.step h3 { font-size: 0.98rem; margin-bottom: 8px; }
.step p { font-size: 0.86rem; }

/* ---------- Stats (brand band) ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat .num { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; color: var(--white); }
.stat .lbl { color: rgba(255, 255, 255, 0.75); font-size: 0.88rem; margin-top: 6px; }

/* ---------- Vehicle types ---------- */
.vehicle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.vehicle {
  text-align: center;
  padding: 26px 14px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--gray-100);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.vehicle:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.vehicle .icon { width: 34px; height: 34px; margin: 0 auto 12px; color: var(--blue); display: block; }
.vehicle h3 { font-size: 0.95rem; }

/* ---------- Satellite / constellation chips ---------- */
.sat-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.sat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
}
.sat-chip::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
}
.section--brand .sat-chip {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
}
.section--brand .sat-chip::before { background: var(--orange); }

/* ---------- Highlight panel (support, integrations) ---------- */
.highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 44px;
  border-radius: var(--radius);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
}
.highlight-points { display: grid; gap: 16px; }
.point { display: flex; gap: 14px; align-items: flex-start; }
.point .icon-badge { width: 40px; height: 40px; margin-bottom: 0; flex-shrink: 0; }
.point .icon { width: 20px; height: 20px; }
.point h3 { font-size: 1rem; margin-bottom: 4px; }
.point p { font-size: 0.93rem; }

/* ---------- Coverage / two-col text+photo ---------- */
.coverage-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.coverage-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100); }
.coverage-img img { width: 100%; height: 340px; object-fit: cover; }

/* Truck photo with a floating GPS pin — visualizes live tracking on a moving vehicle */
.truck-viz {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}
.truck-viz img { width: 100%; height: 340px; object-fit: cover; display: block; }
.truck-pin {
  position: absolute;
  transform: translate(-50%, -8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: pin-float 2.6s ease-in-out infinite;
}
.truck-pin svg {
  width: 90px; height: 90px;
  fill: var(--orange);
  stroke: #fff;
  stroke-width: 0.6;
  filter: drop-shadow(0 8px 12px rgba(20, 30, 40, 0.45));
}
.truck-pin-ping {
  width: 22px; height: 22px;
  margin-top: -17px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(245, 86, 0, 0.6);
  animation: map-ping-home 1.8s ease-out infinite;
}
@keyframes pin-float {
  0%, 100% { transform: translate(-50%, -8px); }
  50%      { transform: translate(-50%, -17px); }
}

/* Europe coverage map: a self-hosted SVG (rendered from public-domain Natural
   Earth data) with the vehicle points positioned over it. No third-party
   request, so nothing here needs consent. The aspect ratio must match the
   SVG's viewBox exactly, otherwise the markers drift off their cities. */
.map-viz {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  aspect-ratio: 1000 / 788;
  background: var(--gray-100);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.coverage-map { position: absolute; inset: 0; z-index: 1; }
.coverage-map img { width: 100%; height: 100%; display: block; }

/* Vehicle-location dots, positioned as a percentage of the map image */
.map-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  border: 1.5px solid #fff;
  box-shadow: 0 0 0 0 rgba(38, 95, 162, 0.5);
  animation: map-ping 2.4s ease-out infinite;
}
.map-dot--home {
  width: 11px; height: 11px;
  background: var(--orange);
  animation-name: map-ping-home;
}
@keyframes map-ping {
  0%   { box-shadow: 0 0 0 0 rgba(38, 95, 162, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(38, 95, 162, 0); }
  100% { box-shadow: 0 0 0 0 rgba(38, 95, 162, 0); }
}
@keyframes map-ping-home {
  0%   { box-shadow: 0 0 0 0 rgba(245, 86, 0, 0.55); }
  70%  { box-shadow: 0 0 0 12px rgba(245, 86, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 86, 0, 0); }
}

.country-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.country-chip {
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--ink);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.country-chip:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 46px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 { margin-bottom: 6px; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }

/* ---------- Page hero (inner pages: light, text + photo) ---------- */
.page-hero { padding: 128px 0 64px; background: var(--white); }
.page-hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.page-hero h1 { opacity: 0; transform: translateY(18px); animation: rise-in 0.7s var(--ease) 0.08s forwards; }
.page-hero p { margin-top: 14px; font-size: 1.02rem; max-width: 480px; opacity: 0; transform: translateY(18px); animation: rise-in 0.7s var(--ease) 0.2s forwards; }
.page-hero-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--gray-100); opacity: 0; transform: translateY(18px); animation: rise-in 0.8s var(--ease) 0.16s forwards; }
.page-hero-img img { width: 100%; height: 320px; object-fit: cover; }
.breadcrumb { font-size: 0.82rem; color: var(--blue); font-weight: 700; margin-bottom: 12px; display: block; }

/* ---------- Contact tiles ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.contact-tile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--gray-100);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.contact-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gray-100); }
.contact-tile .icon-badge { margin-bottom: 0; flex-shrink: 0; }
.contact-tile .label { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gray-500); font-weight: 700; }
.contact-tile .value { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-top: 2px; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.7); padding: 60px 0 26px; }
.site-footer .logo img { height: 26px; background: var(--white); border-radius: 6px; padding: 4px 8px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-grid h4 { color: var(--white); font-size: 0.86rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid a { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; transition: color 0.2s; }
.footer-grid a:hover { color: var(--blue-light); }
/* Company identification. Legea 365/2002 art. 5 requires the trader's legal
   name, registered office, registration number and fiscal code to be directly
   and permanently accessible, so this sits in the footer of every page. */
.footer-legal {
  padding-top: 20px;
  font-size: 0.8rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
}
.footer-legal a { color: rgba(255, 255, 255, 0.72); transition: color 0.2s; }
.footer-legal a:hover { color: var(--blue-light); }
.footer-bottom { padding-top: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.45); }

/* ---------- Legal pages (privacy policy) ---------- */
.legal-page { padding-top: 128px; }
.legal { max-width: 760px; }
.legal h1 { margin-bottom: 6px; }
.legal h2 { font-size: 1.25rem; margin-top: 38px; }
.legal h3 { font-size: 1.02rem; margin-top: 24px; }
.legal p { margin-top: 12px; }
.legal-updated { font-size: 0.88rem; color: var(--gray-500); }
.legal-list { margin-top: 12px; display: grid; gap: 8px; }
.legal-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.legal-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gray-200);
}
.legal a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--blue-dark); }
.legal strong { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .vehicle-grid { grid-template-columns: repeat(3, 1fr); }
  .hero .container, .page-hero .container, .coverage-wrap, .highlight { grid-template-columns: 1fr; }
  .highlight { padding: 32px; }
  .hero-photo { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* Nav switches to the hamburger menu well above the 720px content
   breakpoint below — the desktop nav (logo + 6 links + lang switch) needs
   ~767px minimum width to lay out without wrapping/overflowing, so this
   has to trigger earlier than the rest of the mobile styles. */
@media (max-width: 880px) {
  .nav-links, .lang-switch.desktop { display: none; }
  .nav-toggle { display: flex; }
  .header-right { gap: 10px; }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    max-width: 100vw;
    background: var(--white);
    padding: 90px 32px 40px;
    gap: 22px;
    box-shadow: var(--shadow-md);
    transform: translateX(0);
    transition: transform 0.35s var(--ease);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav-links.mobile-closed { transform: translateX(100%); }
  .mobile-lang.mobile-lang { display: flex; gap: 10px; margin-top: 8px; font-weight: 700; }
}

@media (max-width: 720px) {
  .grid--4, .grid--3, .grid--2, .steps { grid-template-columns: 1fr; }
  /* Stats and vehicle types stay 2-up on phones — single column wastes
     vertical space and makes the band feel endless. */
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .vehicle-grid { grid-template-columns: repeat(2, 1fr); }
  /* Shorter hero image on phones so its 3:2 aspect roughly matches the
     container — otherwise object-fit:cover crops the outer collage tiles. */
  .hero-photo img { height: 230px; }
  .cta-banner { padding: 32px 22px; text-align: center; justify-content: center; }
  .section { padding: 56px 0; }
  .hero { padding-top: 108px; }
  .page-hero { padding-top: 108px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

.overlay-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(34, 54, 74, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
  z-index: 90;
}
.overlay-backdrop.is-visible { opacity: 1; pointer-events: auto; }
