/* ==========================================================================
   API EXPRESS LLC — styles.css
   1. Tokens   2. Reset   3. Layout   4. Components   5. Sections
   6. Forms    7. Footer  8. Motion   9. Responsive
   ========================================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
  --navy-900: #060B1F;
  --navy-800: #0A1330;
  --navy-700: #101A3D;
  --navy-600: #16224F;

  --purple-600: #7B3FE4;
  --purple-500: #A855F7;
  --purple-300: #A78BFA;

  --paper: #F4F4FA;
  --white: #FFFFFF;

  --ink: #0A1330;
  --ink-soft: #4A5170;
  --ink-faint: #7A809B;

  --on-dark: #EDEBF7;
  --on-dark-soft: #A6A9C4;

  --line-dark: rgba(167, 139, 250, .18);
  --line-light: rgba(10, 19, 48, .13);

  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 68px;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --radius: 4px;
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* O menu off-canvas (translateX) cria overflow horizontal em mobile.
     "clip" corta sem criar contentor de scroll, por isso o header sticky
     continua a funcionar; "hidden" fica como fallback. */
  overflow-x: hidden;
}
@supports (overflow: clip) {
  html { overflow-x: clip; }
}

body {
  margin: 0;
  background: var(--navy-900);
  color: var(--on-dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  /* "clip" em vez de "hidden": com hidden o eixo Y passa a auto, o body
     torna-se contentor de scroll e o header sticky deixa de colar. */
  overflow-x: clip;
}
@supports not (overflow: clip) {
  body { overflow-x: hidden; }
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

.mono {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--purple-600);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  border-radius: 999px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--purple-500);
  outline-offset: 3px;
}

/* ---------- 3. LAYOUT ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.section--light { background: var(--paper); color: var(--ink); }
.section--dark { background: var(--navy-800); color: var(--on-dark); }

.section__head { margin-bottom: clamp(32px, 4vw, 56px); }
.section__head--row {
  display: grid;
  gap: 20px;
}

.eyebrow {
  color: var(--purple-600);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  flex: none;
}
.section--dark .eyebrow,
.hero .eyebrow { color: var(--purple-300); }

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.6vw, 4rem);
  line-height: .95;
  letter-spacing: -.015em;
  text-transform: uppercase;
}

.section__lede {
  margin-top: 18px;
  max-width: 44ch;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.section__sideline {
  color: var(--ink-faint);
  line-height: 1.9;
  align-self: end;
}

/* ---------- 4. COMPONENTS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}

.btn--pill {
  background: var(--purple-600);
  color: #fff;
  box-shadow: 0 0 0 rgba(123, 63, 228, 0);
}
.btn--pill:hover,
.btn--pill:focus-visible {
  background: var(--purple-500);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -14px rgba(168, 85, 247, .9);
}

.btn--outline {
  border-color: rgba(167, 139, 250, .45);
  color: var(--on-dark);
  background: transparent;
}
.btn--outline:hover,
.btn--outline:focus-visible {
  border-color: var(--purple-300);
  background: rgba(167, 139, 250, .1);
}

.btn--block { width: 100%; }

/* Utility bar */
.utilbar {
  background: var(--navy-900);
  border-bottom: 1px solid rgba(167, 139, 250, .12);
  color: var(--on-dark-soft);
  font-size: .68rem;
}
.utilbar__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 7px var(--gutter);
  display: flex;
  align-items: center;
  gap: 12px;
}
.utilbar__sep {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--purple-500);
  flex: none;
}
.utilbar__spacer { flex: 1; }
.utilbar__live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--purple-300);
}
.utilbar__live i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--purple-500);
  animation: pulse 2.4s ease-in-out infinite;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 130;
  /* isolation: o desfoque vive num ::before para que o header NÃO
     se torne contentor de elementos position:fixed (o menu mobile
     passaria a ter a altura do header em vez do ecrã inteiro). */
  isolation: isolate;
  background: rgba(6, 11, 31, .82);
  border-bottom: 1px solid rgba(167, 139, 250, .1);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: none;
}
.site-header.is-scrolled {
  background: rgba(6, 11, 31, .96);
  border-bottom-color: rgba(167, 139, 250, .28);
}

.header__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: #fff;
  flex: none;
}
.brand__mark {
  width: 22px; height: 22px;
  color: var(--purple-500);
  align-self: center;
}
.brand__word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.32rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1;
}
.brand__word span { color: var(--purple-300); margin-left: .28em; font-weight: 600; }
.brand__sub { color: var(--on-dark-soft); font-size: .6rem; letter-spacing: .2em; }

.nav { margin-left: auto; }
.nav__list {
  display: none;
  gap: 26px;
}
.nav__list a {
  position: relative;
  white-space: nowrap;   /* "Owner Operator" tem de ficar numa linha */
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  padding-block: 6px;
  transition: color .2s var(--ease);
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--purple-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__list a:hover,
.nav__list a:focus-visible { color: #fff; }
.nav__list a:hover::after,
.nav__list a:focus-visible::after { transform: scaleX(1); }

.nav__panel-foot { display: none; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.header__phone {
  display: none;
  white-space: nowrap;
  color: var(--on-dark-soft);
  transition: color .2s var(--ease);
}
.header__phone:hover { color: var(--purple-300); }
.header__cta { display: none; }

/* Hamburger */
.nav-toggle {
  position: relative;
  z-index: 130;            /* acima do painel (120) para poder fechar */
  width: 42px; height: 42px;
  display: grid;
  place-content: center;
  gap: 5px;
  background: transparent;
  border: 1px solid rgba(167, 139, 250, .3);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 16px; height: 1.5px;
  background: #fff;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- 5. SECTIONS ---------- */

/* HERO */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 12% 0%, #121C46 0%, rgba(10, 19, 48, 0) 55%),
    radial-gradient(90% 80% at 92% 8%, rgba(123, 63, 228, .32) 0%, rgba(6, 11, 31, 0) 60%),
    linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  padding-block: clamp(56px, 8vw, 108px) clamp(56px, 8vw, 96px);
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__grid-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(167, 139, 250, .07) 1px, transparent 1px);
  background-size: 25% 100%;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 90%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 90%);
}
.hero__glow {
  position: absolute;
  right: -140px;
  bottom: -180px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, .35), transparent 70%);
  filter: blur(40px);
  z-index: -1;
}
.hero__slash {
  position: absolute;
  right: 2%;
  top: -40px;
  width: 46vw;
  max-width: 520px;
  opacity: .55;
  z-index: -1;
}

.hero__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  gap: clamp(36px, 5vw, 64px);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.9rem, 11vw, 7rem);
  line-height: .86;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: #fff;
  margin-block: 0 26px;
}
.hero__title-accent {
  background: linear-gradient(92deg, var(--purple-300), var(--purple-500) 55%, #D8B4FE);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  max-width: 46ch;
  color: var(--on-dark-soft);
  font-size: clamp(.98rem, 1.6vw, 1.1rem);
  line-height: 1.75;
  font-weight: 300;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

/* Language switcher */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(167, 139, 250, .28);
  border-radius: 999px;
  background: rgba(167, 139, 250, .06);
}
.lang__icon {
  width: 13px;
  height: 13px;
  margin: 0 4px 0 4px;
  color: var(--on-dark-soft);
  flex: 0 0 auto;
}
.lang__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--on-dark-soft);
  font-size: .58rem;
  letter-spacing: .1em;
  line-height: 1;
  padding: 6px 7px;
  border-radius: 999px;
  cursor: pointer;
  transition: color .25s var(--ease), background .25s var(--ease);
}
.lang__btn:hover { color: #fff; background: rgba(167, 139, 250, .18); }
.lang__btn[aria-pressed="true"] {
  background: var(--purple-600);
  color: #fff;
}
.lang__btn:focus-visible {
  outline: 2px solid var(--purple-300);
  outline-offset: 2px;
}

/* SERVICES — editorial rows */
.svc-list { border-top: 1px solid var(--line-light); }

.svc {
  position: relative;
  display: grid;
  gap: 16px;
  padding-block: clamp(24px, 3.4vw, 40px);
  border-bottom: 1px solid var(--line-light);
  cursor: default;
  transition: background .35s var(--ease), padding-inline .35s var(--ease);
}
.svc:hover,
.svc:focus-within {
  background: linear-gradient(90deg, rgba(123, 63, 228, .06), rgba(123, 63, 228, 0) 70%);
}

.svc__left {
  display: flex;
  align-items: baseline;
  gap: 18px;
}
.svc__num {
  color: var(--purple-600);
  font-size: .78rem;
  font-weight: 700;
  flex: none;
  padding-top: 6px;
}
.svc__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 4.4vw, 2.85rem);
  line-height: 1;
  letter-spacing: -.01em;
  text-transform: uppercase;
  transition: color .25s var(--ease), transform .35s var(--ease);
}
.svc:hover .svc__title,
.svc:focus-within .svc__title { color: var(--purple-600); }
.svc__tag {
  margin-top: 8px;
  color: var(--ink-faint);
  font-size: .62rem;
}

.svc__right { overflow: hidden; }
.svc__desc {
  color: var(--ink-soft);
  font-size: .96rem;
  max-width: 52ch;
}
.bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.bullets li {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--line-light);
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .7);
}

.svc__rule {
  position: absolute;
  left: 0; bottom: -1px;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--purple-600), var(--purple-300));
  transition: width .45s var(--ease);
}
.svc:hover .svc__rule,
.svc:focus-within .svc__rule { width: 100%; }

/* BENTO */
.bento {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
.bento__cell {
  position: relative;
  padding: 26px 24px;
  background: var(--white);
  border: 1px solid var(--line-light);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .35s var(--ease), border-color .35s var(--ease),
              box-shadow .35s var(--ease);
}
.bento__cell:hover {
  transform: translateY(-3px);
  border-color: rgba(123, 63, 228, .4);
  box-shadow: 0 24px 50px -34px rgba(10, 19, 48, .55);
}
.bento__icon {
  color: var(--purple-600);
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(123, 63, 228, .25);
  border-radius: 50%;
}
.bento__icon .ico { width: 17px; height: 17px; }
.bento__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: .01em;
  text-transform: uppercase;
  line-height: 1.05;
}
.bento__text { font-size: .9rem; color: var(--ink-soft); line-height: 1.65; }

.bento__cell--big {
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(123, 63, 228, .5), transparent 65%),
    var(--navy-800);
  color: var(--on-dark);
  border-color: transparent;
  justify-content: flex-end;
  min-height: 260px;
  overflow: hidden;
}
.bento__cell--big .bento__icon {
  color: var(--purple-300);
  border-color: rgba(167, 139, 250, .4);
}
.bento__cell--big .bento__text { color: var(--on-dark-soft); }
.bento__stat {
  font-size: clamp(3.2rem, 9vw, 5.2rem);
  font-weight: 700;
  line-height: .85;
  letter-spacing: -.04em;
  color: #fff;
  margin-top: auto;
}
.bento__stat span { color: var(--purple-300); font-size: .5em; vertical-align: super; }
.bento__meta {
  color: var(--purple-300);
  font-size: .6rem;
  padding-top: 10px;
  border-top: 1px solid rgba(167, 139, 250, .25);
}

/* FLEET */
.fleet {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.fleet__panel {
  padding: clamp(24px, 3.6vw, 40px);
  border: 1px solid var(--line-light);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.fleet__panel--dark {
  background:
    radial-gradient(110% 90% at 100% 0%, rgba(123, 63, 228, .38), transparent 60%),
    var(--navy-800);
  border-color: transparent;
  color: var(--on-dark);
}
.fleet__head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.fleet__icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(123, 63, 228, .3);
  color: var(--purple-600);
  flex: none;
}
.fleet__panel--dark .fleet__icon {
  color: var(--purple-300);
  border-color: rgba(167, 139, 250, .4);
}
.fleet__icon .ico { width: 20px; height: 20px; }
.fleet__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1;
  text-transform: uppercase;
}
.fleet__sub { color: var(--ink-faint); font-size: .62rem; margin-top: 6px; }
.fleet__panel--dark .fleet__sub { color: var(--purple-300); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 13px;
  border: 1px solid var(--line-light);
  background: var(--paper);
  color: var(--ink);
  font-size: .63rem;
  letter-spacing: .05em;
  text-transform: none;
  border-radius: 2px;
}
.fleet__panel--dark .chip {
  background: rgba(167, 139, 250, .1);
  border-color: rgba(167, 139, 250, .28);
  color: var(--on-dark);
}
.fleet__best {
  margin-top: auto;
  font-size: .88rem;
  color: var(--ink-soft);
  padding-top: 20px;
  border-top: 1px solid var(--line-light);
  line-height: 1.7;
}
.fleet__panel--dark .fleet__best {
  color: var(--on-dark-soft);
  border-top-color: rgba(167, 139, 250, .2);
}
.fleet__best .mono {
  display: block;
  color: var(--purple-600);
  margin-bottom: 6px;
  font-size: .6rem;
}
.fleet__panel--dark .fleet__best .mono { color: var(--purple-300); }

/* COVERAGE */
.regions {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
.region {
  padding: 24px;
  border: 1px solid var(--line-light);
  background: var(--white);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.region:hover { border-color: rgba(123, 63, 228, .45); transform: translateY(-2px); }
.region__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.24rem;
  text-transform: uppercase;
  letter-spacing: .01em;
  margin-bottom: 14px;
}
.region__bar {
  height: 3px;
  background: rgba(10, 19, 48, .09);
  overflow: hidden;
  margin-bottom: 18px;
}
.region__bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--purple-600), var(--purple-300));
  transform-origin: left;
  animation: barGrow 1.1s var(--ease) both;
}
.region__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.region__tags li {
  font-size: .62rem;
  letter-spacing: .06em;
  color: var(--ink-soft);
  padding: 4px 9px;
  border: 1px solid var(--line-light);
}
.region__note {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--purple-600);
}

/* DRIVERS */
.drivers {
  background:
    radial-gradient(80% 70% at 8% 0%, rgba(123, 63, 228, .22), transparent 60%),
    var(--navy-900);
  border-block: 1px solid rgba(167, 139, 250, .16);
}
.drivers__grid {
  display: grid;
  gap: clamp(32px, 4vw, 64px);
  grid-template-columns: 1fr;
}
.drivers__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.35rem);
  line-height: 1.06;
  letter-spacing: -.005em;
  text-transform: uppercase;
  color: #fff;
  max-width: 30ch;
  text-wrap: balance;
}
.drivers__lede {
  margin-top: 20px;
  max-width: 48ch;
  color: var(--on-dark-soft);
  font-weight: 300;
}

.reqs {
  display: grid;
  gap: 20px;
  margin-block: 34px;
  grid-template-columns: 1fr;
}
.reqs__col {
  padding-top: 18px;
  border-top: 1px solid rgba(167, 139, 250, .28);
}
.reqs__title {
  color: var(--purple-300);
  font-size: .64rem;
  letter-spacing: .14em;
  margin-bottom: 12px;
}
.reqs__list li {
  position: relative;
  padding-left: 18px;
  font-size: .92rem;
  color: var(--on-dark-soft);
  line-height: 1.9;
}
.reqs__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .82em;
  width: 7px; height: 1px;
  background: var(--purple-500);
}

.perks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}
.perk {
  font-size: .6rem;
  letter-spacing: .06em;
  padding: 8px 12px;
  border: 1px solid rgba(167, 139, 250, .3);
  color: var(--on-dark);
  background: rgba(167, 139, 250, .07);
}

/* ---------- 6. FORMS ---------- */
.form {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 3.4vw, 36px);
  border-radius: var(--radius);
}
.form--light {
  background: var(--white);
  border: 1px solid var(--line-light);
  box-shadow: 0 40px 80px -60px rgba(10, 19, 48, .6);
}
.form--dark {
  background: rgba(167, 139, 250, .05);
  border: 1px solid rgba(167, 139, 250, .25);
}
.form__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1;
}
.form--dark .form__title { color: #fff; }
.form__sub {
  color: var(--ink-faint);
  font-size: .6rem;
  margin-top: -6px;
  margin-bottom: 6px;
}
.form--dark .form__sub { color: var(--on-dark-soft); }

.form__row {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.field { position: relative; }

.field input:not([type="radio"]),
.field textarea {
  width: 100%;
  padding: 24px 14px 10px;
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: 2px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
  resize: vertical;
}
.field textarea { min-height: 96px; line-height: 1.55; }

/* Só a etiqueta que segue o input/textarea é "flutuante".
   .radio também é um <label>, mas não deve ser absoluta. */
.field input + label,
.field textarea + label {
  position: absolute;
  left: 14px;
  top: 17px;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-faint);
  pointer-events: none;
  transition: top .18s var(--ease), font-size .18s var(--ease), color .18s var(--ease);
}

.field input:focus + label,
.field textarea:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label {
  top: 7px;
  font-size: .58rem;
  color: var(--purple-600);
}

.field input:not([type="radio"]):focus,
.field textarea:focus {
  outline: none;
  border-color: var(--purple-600);
  background: #fff;
}

/* Dark form overrides */
.form--dark .field input:not([type="radio"]),
.form--dark .field textarea {
  background: rgba(6, 11, 31, .55);
  border-color: rgba(167, 139, 250, .25);
  color: var(--on-dark);
}
.form--dark .field input + label,
.form--dark .field textarea + label { color: var(--on-dark-soft); }
.form--dark .field input:not([type="radio"]):focus,
.form--dark .field textarea:focus {
  border-color: var(--purple-500);
  background: rgba(6, 11, 31, .8);
}
.form--dark .field input:focus + label,
.form--dark .field textarea:focus + label,
.form--dark .field input:not(:placeholder-shown) + label,
.form--dark .field textarea:not(:placeholder-shown) + label {
  color: var(--purple-300);
}

/* Radios */
.field--radio { border: 0; padding: 0; margin: 0; min-width: 0; }
.field__legend {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  margin-bottom: 10px;
  padding: 0;
}
.form--light .field__legend { color: var(--ink-faint); }

.radios { display: grid; gap: 8px; grid-template-columns: 1fr; }
.radio {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(167, 139, 250, .25);
  font-size: .82rem;
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.radio input {
  appearance: none;
  width: 14px; height: 14px;
  border: 1px solid var(--purple-300);
  border-radius: 50%;
  margin: 0;
  flex: none;
  display: grid;
  place-content: center;
  transition: border-color .2s var(--ease);
}
.radio input::after {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--purple-500);
  transform: scale(0);
  transition: transform .2s var(--ease);
}
.radio input:checked::after { transform: scale(1); }
.radio:hover { border-color: var(--purple-500); background: rgba(167, 139, 250, .1); }
.radio:has(input:checked) {
  border-color: var(--purple-500);
  background: rgba(167, 139, 250, .14);
}

/* Errors */
.field__error {
  display: none;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .05em;
  color: #FF8A9B;
  margin-top: 6px;
}
.form--light .field__error { color: #C22A47; }
.field__error.is-visible { display: block; }

.field input:not([type="radio"])[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #FF8A9B;
  background: rgba(255, 138, 155, .06);
}
.form--light .field input:not([type="radio"])[aria-invalid="true"],
.form--light .field textarea[aria-invalid="true"] {
  border-color: #C22A47;
  background: rgba(194, 42, 71, .05);
}
.radios.is-invalid { outline: 1px solid #FF8A9B; outline-offset: 4px; }

/* Success */
.form__success {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 6px;
  padding: 14px 16px;
  font-size: .84rem;
  line-height: 1.55;
  border-left: 2px solid var(--purple-500);
  background: rgba(123, 63, 228, .1);
  color: var(--ink);
}
.form--dark .form__success { color: var(--on-dark); background: rgba(167, 139, 250, .12); }
.form__success[hidden] { display: none; }
.form__success .ico { color: var(--purple-600); margin-top: 2px; }
.form--dark .form__success .ico { color: var(--purple-300); }

/* QUOTE */
.quote {
  display: grid;
  gap: clamp(32px, 4vw, 64px);
  grid-template-columns: 1fr;
  align-items: start;
}
.quote__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  line-height: .98;
  text-transform: uppercase;
  letter-spacing: -.012em;
}
.quote__lede {
  margin-top: 20px;
  max-width: 44ch;
  color: var(--ink-soft);
}

.contact-list { margin-top: 32px; border-top: 1px solid var(--line-light); }
.contact-list__row {
  display: grid;
  gap: 4px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line-light);
}
.contact-list dt { color: var(--ink-faint); font-size: .6rem; }
.contact-list dd { font-size: .98rem; color: var(--ink); }
.contact-list dd a { border-bottom: 1px solid transparent; transition: color .2s var(--ease), border-color .2s var(--ease); }
.contact-list dd a:hover { color: var(--purple-600); border-bottom-color: var(--purple-600); }

/* ---------- 7. FOOTER ---------- */
.footer {
  background: var(--navy-900);
  color: var(--on-dark);
  padding-block: clamp(48px, 6vw, 80px) 24px;
  border-top: 1px solid rgba(167, 139, 250, .18);
}
.footer__grid {
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr;
}
.brand--footer { margin-bottom: 18px; }
.footer__tagline {
  max-width: 30ch;
  color: var(--on-dark-soft);
  font-size: .95rem;
  font-weight: 300;
  line-height: 1.7;
}
.footer__head {
  color: var(--purple-300);
  font-size: .6rem;
  letter-spacing: .16em;
  margin-bottom: 14px;
}
.footer__col ul { display: grid; gap: 10px; }
.footer__col a,
.footer__col li {
  font-size: .88rem;
  color: var(--on-dark-soft);
  transition: color .2s var(--ease);
}
.footer__col a:hover,
.footer__col a:focus-visible { color: #fff; }
.footer__addr { line-height: 1.7; }

.footer__bottom {
  margin-top: clamp(36px, 5vw, 60px);
  padding-top: 20px;
  border-top: 1px solid rgba(167, 139, 250, .14);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  color: var(--ink-faint);
}
.footer__bottom .mono { font-size: .6rem; }

/* ---------- 8. MOTION ---------- */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.8); }
}
@keyframes barGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 9. RESPONSIVE ---------- */

/* >= 640px */
@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__cell--big { grid-column: span 2; }
  .regions { grid-template-columns: repeat(2, 1fr); }
  .form__row { grid-template-columns: 1fr 1fr; }
  .radios { grid-template-columns: 1fr 1fr; }
  .radio span { white-space: nowrap; }
  .reqs { grid-template-columns: 1fr 1fr; }
  .contact-list__row { grid-template-columns: 120px 1fr; align-items: baseline; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

/* >= 900px */
@media (min-width: 900px) {
  .header__phone { display: inline-block; }
  .header__cta { display: inline-flex; }
  .nav { margin-left: auto; margin-right: auto; }
  .nav__list { display: flex; }
  .nav-toggle { display: none; }
  .header__actions { margin-left: 0; }

  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__copy { max-width: 68ch; }

  .section__head--row { grid-template-columns: 1.4fr .6fr; align-items: end; }
  .section__sideline { text-align: right; justify-self: end; }

  .svc { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: start; }
  .svc__right { max-height: 0; opacity: 0; transform: translateY(10px); }
  .svc:hover .svc__right,
  .svc:focus-within .svc__right { max-height: 320px; opacity: 1; transform: none; }
  .svc__right { transition: max-height .5s var(--ease), opacity .35s var(--ease), transform .4s var(--ease); }

  .bento { grid-template-columns: repeat(3, 1fr); }
  .bento__cell--big { grid-column: span 1; grid-row: span 2; min-height: 100%; }

  .fleet { grid-template-columns: 1fr 1fr; }
  .regions { grid-template-columns: repeat(4, 1fr); }

  .drivers__grid { grid-template-columns: 1.15fr .85fr; align-items: start; }
  .drivers__form { position: sticky; top: calc(var(--header-h) + 24px); }

  .quote { grid-template-columns: .9fr 1.1fr; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* >= 1200px */
@media (min-width: 1200px) {
  :root { --header-h: 74px; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__title { font-size: clamp(4rem, 7.4vw, 7.4rem); }
  .nav__list { gap: 34px; }
  .footer__grid { gap: 56px; }
}

/* Mobile nav panel (< 900px) */
@media (max-width: 899px) {
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(86vw, 380px);
    padding: calc(var(--header-h) + 32px) 28px 40px;
    background:
      radial-gradient(90% 60% at 100% 0%, rgba(123, 63, 228, .35), transparent 60%),
      var(--navy-800);
    border-left: 1px solid rgba(167, 139, 250, .25);
    transform: translateX(102%);
    transition: transform .42s var(--ease);
    z-index: 120;
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list { display: grid; gap: 4px; }
  .nav__list a {
    display: block;
    padding-block: 16px;
    font-family: var(--font-display);
    font-size: 1.7rem;
    letter-spacing: .02em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(167, 139, 250, .16);
    color: var(--on-dark);
  }
  .nav__list a::after { display: none; }
  .nav__panel-foot {
    display: grid;
    gap: 14px;
    margin-top: 32px;
  }
  .nav__panel-phone { color: var(--purple-300); font-size: .82rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .svc__right { max-height: none; opacity: 1; transform: none; }
}

/* O seletor de idioma ocupa espaço no header: esconde o telefone
   enquanto não houver largura suficiente para tudo. */
@media (min-width: 900px) and (max-width: 1149px) {
  .header__phone { display: none; }
}






/* ============================================================
   COVERAGE — mapa animado dos EUA
   ============================================================ */
.mapwrap {
  position: relative;
  margin-top: 34px;
  padding: clamp(14px, 2.4vw, 26px);
  border-radius: 4px;
  background:
    radial-gradient(120% 90% at 78% 10%, rgba(123, 63, 228, .22), transparent 62%),
    radial-gradient(90% 70% at 8% 92%, rgba(88, 28, 135, .28), transparent 60%),
    linear-gradient(160deg, #0C1330 0%, #080D24 55%, #0A0F28 100%);
  border: 1px solid rgba(167, 139, 250, .18);
  overflow: hidden;
}
.mapwrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(167, 139, 250, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(167, 139, 250, .06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 70% at 50% 45%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 45%, #000 35%, transparent 100%);
  pointer-events: none;
}

/* HUD */
.mapwrap__hud {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 4px 0;
  margin-bottom: 4px;
}
.mapwrap__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--purple-300);
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.mapwrap__live i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, .7);
  animation: livePulse 2.2s ease-out infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
.mapwrap__count {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: var(--on-dark-soft);
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.mapwrap__count b {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
  line-height: 1;
}

/* Mapa */
.usmap {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.usmap__bg { pointer-events: none; }

.usmap__states path {
  fill: url(#mapFill);
  stroke: rgba(167, 139, 250, .28);
  stroke-width: .8;
  stroke-linejoin: round;
  fill-rule: evenodd;
  transition: fill .35s var(--ease);
}
.usmap__states path:hover { fill: #2A1A63; }

.usmap__routes path {
  fill: none;
  stroke: rgba(167, 139, 250, .16);
  stroke-width: 1;
  stroke-linecap: round;
}

.usmap__trails use {
  fill: none;
  stroke: #A855F7;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 2 9;
  opacity: .8;
  animation: trailFlow 2.4s linear infinite;
}
@keyframes trailFlow {
  to { stroke-dashoffset: -22; }
}

.usmap__hubs .hub__dot {
  fill: #C4B5FD;
  stroke: #0A1330;
  stroke-width: .8;
}
.usmap__hubs .hub--hq .hub__dot { fill: #fff; }

.hub__ping {
  fill: none;
  stroke: var(--purple-400, #A855F7);
  stroke-width: 1.2;
  transform-box: fill-box;
  transform-origin: center;
  animation: pingOut 2.8s ease-out infinite;
}
.hub__ping--2 { animation-delay: 1.4s; }
@keyframes pingOut {
  0%   { transform: scale(.5); opacity: .9; }
  80%  { transform: scale(3.4); opacity: 0; }
  100% { transform: scale(3.4); opacity: 0; }
}

.usmap__label line { opacity: .8; }
.usmap__label text {
  fill: #DDD6FE;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Legenda */
.mapwrap__legend {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(167, 139, 250, .16);
  color: var(--on-dark-soft);
  font-size: .72rem;
}
.mapwrap__legend li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.mapwrap__ico {
  width: 34px;
  height: 15px;
  flex: 0 0 auto;
}
.mapwrap__ico--semi { width: 46px; height: 15px; }

/* Sem SMIL: esconder os camiões (ficariam parados na origem) */
.usmap--no-smil .usmap__trucks { display: none; }

/* Erro de envio (rede/serviço) */
.form__error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding: 13px 15px;
  font-size: .82rem;
  line-height: 1.55;
  border-left: 2px solid #FF8A9B;
  background: rgba(255, 138, 155, .1);
  color: #FFB3BF;
}
.form--light .form__error {
  color: #A81E38;
  background: rgba(194, 42, 71, .07);
}
.form__error[hidden] { display: none; }

/* botão a enviar */
.form button[aria-busy="true"] { opacity: .65; cursor: progress; }

/* etiqueta do endereço postal no rodapé */
.footer__addrlabel {
  display: block;
  font-size: .58rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--purple-300);
  opacity: .85;
  margin: 10px 0 4px;
}

/* ============================================================
   HEADER — 6 itens de navegação (inclui "Owner Operator")
   Calibrado por medição: nenhum item parte em duas linhas,
   o botão de cotação nunca sai do ecrã.
   Abaixo de 1100px o botão sai do cabeçalho (continua no hero
   e no painel do menu), porque não há largura para tudo.
   ============================================================ */
@media (min-width: 900px) and (max-width: 1099px) {
  .nav__list { gap: 14px; }
  .nav__list a { font-size: .64rem; letter-spacing: .04em; }
  .header__cta { display: none; }
  .header__phone { display: none; }
}
@media (min-width: 1100px) and (max-width: 1249px) {
  .nav__list { gap: 16px; }
  .nav__list a { font-size: .68rem; letter-spacing: .06em; }
  .header__cta { display: inline-flex; }
  .header__phone { display: none; }
}
@media (min-width: 1250px) and (max-width: 1399px) {
  .nav__list { gap: 22px; }
  .nav__list a { font-size: .74rem; letter-spacing: .09em; }
  .header__cta { display: inline-flex; }
  .header__phone { display: none; }
}
@media (min-width: 1400px) {
  .nav__list { gap: 30px; }
  .header__cta { display: inline-flex; }
  .header__phone { display: inline-block; }
}
