/* MVA Trucking: dark bento theme. Plain CSS, no build step. */
:root {
    --bg: #0a0b10;
    --surface: #13151d;
    --surface-2: #1a1d28;
    --border: #232634;
    --border-strong: #2e3242;
    --text: #f2f3f7;
    --muted: #a3a8b8;
    --red: #e8112d;
    --red-hover: #c50e26;
    --red-soft: #ff6b7d;

    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --r-sm: 12px;
    --r: 18px;
    --r-lg: 24px;
    --r-xl: 28px;
    --container: 1280px;
    --gutter: clamp(1rem, 4vw, 2rem);
    --header-h: 80px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1rem/1.6 var(--font-body); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red-soft); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--red); color: #fff; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.icon-lg { width: 32px; height: 32px; }
.muted { color: var(--muted); }
.accent { color: var(--red); }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; padding: .75rem 1rem; background: var(--red); color: #fff; font-weight: 600; border-radius: var(--r-sm); }
.skip-link:focus { top: 1rem; }

/* ---------- Type ---------- */
.display, .h1, .h2, .h3, .h4, .tile-num, .tile-title, .lane-title, .footer-title, .phone-big, .step-num {
    font-family: var(--font-display); font-weight: 600; letter-spacing: -.035em; text-wrap: balance;
}
.display { font-size: clamp(2.75rem, 7.4vw, 5.75rem); line-height: .98; letter-spacing: -.045em; max-width: 16ch; margin-inline: auto; }
.h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -.045em; max-width: 18ch; }
.h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.04; margin-bottom: 1.25rem; }
.h3 { font-size: clamp(1.6rem, 2.6vw, 2rem); line-height: 1.1; }
.h4 { font-size: 1.5rem; line-height: 1.15; letter-spacing: -.02em; margin-bottom: .4rem; }
.lead { font-size: clamp(1.1rem, 2vw, 1.2rem); color: var(--muted); max-width: 36rem; margin-top: 1.5rem; }
.body-lg { font-size: 1.15rem; margin-bottom: 1rem; }
p + p { margin-top: 1rem; }
.section-title { max-width: 22ch; margin-bottom: 2.5rem; }
.pill {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .4rem .9rem; margin-bottom: 1.5rem;
    border: 1px solid var(--border); border-radius: 999px;
    font-size: .875rem; font-weight: 500; color: var(--muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgb(34 197 94 / .15); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 48px; padding: .75rem 1.25rem;
    font: 600 1rem/1 var(--font-body); text-decoration: none;
    border: 1px solid transparent; border-radius: var(--r-sm); cursor: pointer;
    transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn > .icon:last-child { transition: transform .2s var(--ease); }
.btn:hover > .icon:last-child { transform: translateX(3px); }
.btn-block { width: 100%; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hover); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(10 11 16 / .92); }
@supports (backdrop-filter: blur(1px)) {
    /* blur lives on a pseudo element so the fixed mobile menu isn't trapped inside the header */
    .site-header { background: transparent; }
    .site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(10 11 16 / .78); backdrop-filter: blur(14px); }
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-h); }
.brand img { width: 64px; height: auto; }
.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav-links { display: flex; gap: 4px; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.nav-links a {
    padding: .55rem 1rem; border-radius: 9px;
    color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500;
    transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { background: var(--border); color: var(--text); }
.menu-btn { display: none; width: 48px; height: 48px; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--text); cursor: pointer; }
.menu-btn .icon { width: 22px; height: 22px; }
.menu-btn .icon-close, .menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 900px) {
    .menu-btn { display: block; }
    .nav {
        position: fixed; inset: var(--header-h) 0 0; z-index: 49;
        flex-direction: column; align-items: stretch; gap: 1.5rem;
        padding: 1.5rem var(--gutter) 2rem; background: var(--bg);
        visibility: hidden; opacity: 0; transform: translateY(-8px);
        transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
    }
    .nav.open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
    .nav-links { flex-direction: column; padding: 0; background: none; border: 0; gap: 0; }
    .nav-links a { padding: 1rem .25rem; border-radius: 0; border-bottom: 1px solid var(--border); font: 600 1.75rem/1.1 var(--font-display); letter-spacing: -.03em; color: var(--text); }
    .nav-links a[aria-current="page"] { background: none; color: var(--red-soft); }
    .nav-cta { min-height: 56px; font-size: 1.05rem; }
    body.menu-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(2.5rem, 6vw, 4rem); }
.hero-copy { text-align: center; }
.hero-copy .lead { margin-inline: auto; }
.hero-media {
    position: relative; margin-top: clamp(2.5rem, 5vw, 3.5rem);
    min-height: clamp(520px, 52vw, 600px);
    border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(.75rem, 2vw, 1.5rem);
}
.hero-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(10 11 16 / 0) 35%, rgb(10 11 16 / .92) 100%); }
.hero-media-short { min-height: clamp(260px, 32vw, 420px); }

.page-hero { padding-top: clamp(3rem, 7vw, 5rem); }
.page-hero .lead { margin-top: 1.25rem; }

/* ---------- Quick apply bar ---------- */
.quick-apply { position: relative; z-index: 1; }
.quick-apply .alert { margin-bottom: .75rem; }
.qa-row {
    display: flex; flex-wrap: wrap; gap: 8px; padding: 8px;
    background: rgb(19 21 29 / .96); border: 1px solid var(--border-strong); border-radius: var(--r);
}
.qa-field { flex: 1 1 180px; display: flex; flex-direction: column; padding: .5rem .9rem; border-radius: var(--r-sm); transition: background-color .2s var(--ease); }
.qa-field:focus-within { background: var(--surface-2); }
.qa-field label { font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.qa-field input, .qa-field select {
    width: 100%; height: 30px; padding: 0; margin-top: 2px;
    background-color: transparent; border: 0; color: var(--text); font: 400 1rem var(--font-body);
}
.qa-field input:focus, .qa-field select:focus { outline: none; }
.qa-field select option { background: var(--surface); }
.qa-field:has([aria-invalid="true"]) { background: rgb(232 17 45 / .12); }
.qa-field .errorlist { margin-top: 2px; }
.qa-submit { flex: 1 1 200px; min-height: 60px; font-size: 1.02rem; }

/* ---------- Forms ---------- */
.form-card { padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.form-sub { margin: .5rem 0 1.5rem; }
.form-card > .h3 + .alert, .form-card > .h3 + .form-grid { margin-top: 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.span-2 { grid-column: 1 / -1; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; margin-bottom: .4rem; font-size: .875rem; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
    width: 100%; min-height: 50px; padding: .75rem .9rem;
    font: inherit; color: var(--text);
    background-color: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--r-sm);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 150px; }
.field select, .qa-field select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-size: 5px 5px; background-repeat: no-repeat;
}
.field select { background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; padding-right: 2.5rem; }
.qa-field select { background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; padding-right: 1.5rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #3d4258; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red-soft); box-shadow: 0 0 0 3px rgb(255 107 125 / .18); }
.field [aria-invalid="true"] { border-color: var(--red); }
.errorlist { list-style: none; padding: 0; margin: .35rem 0 0; color: var(--red-soft); font-size: .85rem; font-weight: 500; }
.alert { display: flex; gap: .6rem; align-items: flex-start; padding: .85rem 1rem; margin-bottom: 1.25rem; border-radius: var(--r-sm); background: rgb(34 197 94 / .12); border: 1px solid rgb(34 197 94 / .3); color: #86efac; font-weight: 500; }
.alert .icon { margin-top: .2em; }
.alert-error { background: rgb(232 17 45 / .12); border-color: rgb(232 17 45 / .35); color: var(--red-soft); }

/* ---------- Sections ---------- */
.section { padding-top: clamp(4.5rem, 10vw, 7.5rem); }
.section-tight { padding-top: clamp(2.5rem, 6vw, 4rem); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: center; }
.split-form { align-items: start; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.photo-frame { border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 3; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-tall { aspect-ratio: 4 / 5; max-height: 620px; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 240px; gap: 16px; }
.tile {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between; gap: 1rem;
    padding: 1.75rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
    transition: border-color .25s var(--ease);
}
.tile:hover { border-color: var(--border-strong); }
.tile-num { font-size: 2.75rem; line-height: 1; }
.tile-num-xl { font-size: clamp(4.5rem, 9vw, 7.5rem); line-height: .9; letter-spacing: -.05em; }
.tile-title { font-size: 1.75rem; line-height: 1.08; letter-spacing: -.025em; }
.tile p { margin-top: .4rem; }
.tile-red { background: var(--red); border-color: var(--red); color: #fff; }
.tile-red p { color: #ffe3e7; }
.tile-big { grid-column: span 2; grid-row: span 2; }
.tile-wide { grid-column: 1 / -1; }
.tile-photo { padding: 0; justify-content: flex-end; }
.tile-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tile-photo:hover > img { transform: scale(1.03); }
.tile-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(10 11 16 / .05), rgb(10 11 16 / .9)); }
.tile-content { position: relative; z-index: 1; padding: 2rem; }
.tile-content p { font-size: 1.15rem; color: #d3d6e0; }
.tile-wide::after { background: linear-gradient(90deg, rgb(10 11 16 / .92) 0%, rgb(10 11 16 / .15) 75%); }
.tile-content-side { max-width: 26rem; margin-block: auto; }
.ring {
    width: 72px; height: 72px; border-radius: 50%;
    background: conic-gradient(var(--red) calc(var(--p) * 1%), var(--border) 0);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
            mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
}
@media (max-width: 1000px) {
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tile-wide { grid-column: span 2; }
}
@media (max-width: 600px) {
    .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .tile { min-height: 200px; }
    .tile-big, .tile-wide { grid-column: auto; grid-row: auto; min-height: 340px; }
}

/* ---------- Lanes ---------- */
.lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.split .lanes { grid-template-columns: 1fr; }
@media (max-width: 1000px) { .lanes { grid-template-columns: 1fr; } }
.lane {
    display: flex; align-items: center; gap: 1.25rem; padding: 12px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
    text-decoration: none; transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.lane:hover { border-color: var(--border-strong); background: var(--surface-2); }
.lane img { width: 112px; height: 112px; flex: none; object-fit: cover; border-radius: 14px; }
.lane-text { flex: 1; display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.lane-title { font-size: 1.5rem; line-height: 1.1; }
.lane > .icon { width: 22px; height: 22px; margin-right: .5rem; transition: transform .2s var(--ease); }
.lane:hover > .icon { transform: translate(2px, -2px); color: var(--red-soft); }
.lanes-title { margin: 3rem 0 1.25rem; }
@media (max-width: 420px) { .lane img { width: 80px; height: 80px; } .lane-title { font-size: 1.25rem; } }

/* ---------- Perks / steps / contact ---------- */
.perks { list-style: none; padding: 0; display: grid; gap: .75rem; }
.perks li { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); font-weight: 500; font-size: 1.05rem; }
.perks .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--red); color: #fff; }
.steps { list-style: none; padding: 0; margin-top: 1rem; }
.steps li { display: flex; gap: 1.5rem; padding: 1.5rem 0; border-top: 1px solid var(--border); }
.steps li:last-child { border-bottom: 1px solid var(--border); }
.step-num { font-size: 1.1rem; color: var(--red-soft); padding-top: .2rem; }
.contact-list { list-style: none; padding: 0; display: grid; gap: 16px; }
.contact-list .tile { flex-direction: row; align-items: center; justify-content: flex-start; gap: 1.25rem; }
.contact-list .tile-title { font-size: 1.35rem; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a.tile-title:hover { color: var(--red-soft); }
.contact-list .tile p:first-child { margin: 0 0 .15rem; font-size: .875rem; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); transition: border-color .2s var(--ease); }
.card:hover { border-color: var(--border-strong); }
.card > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; }
.card-body { padding: 1.25rem .9rem .9rem; }
.trailer-img { display: grid; place-items: center; height: 220px; padding: 1.5rem; border-radius: 16px; background: radial-gradient(80% 80% at 50% 40%, #e9ebf1 0%, #c9cdd8 100%); }
.trailer-img img { max-height: 100%; width: auto; }

/* ---------- Services ---------- */
.services { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .services { grid-template-columns: 1fr; } }
.services .tile { justify-content: flex-start; gap: 1.25rem; padding: 1.5rem; font-weight: 500; line-height: 1.35; }
.service-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: #e9ebf1; }

/* ---------- CTA panel ---------- */
.cta-panel {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem;
    padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
    border: 1px solid var(--border); border-radius: var(--r-xl);
    background: radial-gradient(120% 140% at 100% 0%, #2a0a12 0%, var(--surface) 55%);
}
.cta-panel > div { flex: 1 1 26rem; }
.cta-panel .h2 { margin-bottom: .75rem; }
.cta-panel .muted { max-width: 34rem; font-size: 1.05rem; }
.phone-big { font-size: clamp(2rem, 4.5vw, 3rem); text-decoration: none; padding-bottom: .2rem; border-bottom: 2px solid var(--red); transition: color .2s var(--ease); }
.phone-big:hover { color: var(--red-soft); }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(4.5rem, 10vw, 7.5rem); border-top: 1px solid var(--border); color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { width: 110px; margin-bottom: 1.25rem; }
.footer-brand p { max-width: 24rem; }
.footer-title { color: var(--text); font-size: 1.1rem; letter-spacing: -.01em; margin-bottom: 1rem; }
.footer-list { list-style: none; padding: 0; display: grid; gap: .7rem; }
.footer-list a, .footer-bottom a { text-decoration: none; transition: color .2s var(--ease); }
.footer-list a:hover { color: var(--text); }
.socials { display: flex; gap: .6rem; margin-top: 1.5rem; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--text); transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.socials a:hover { background: var(--red); border-color: var(--red); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.5rem; border-top: 1px solid var(--border); font-size: .9rem; }
.credit { color: var(--red-soft); font-weight: 600; }
.credit:hover { color: var(--text); }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Quick apply: readable over the photo, photo visible on phones ---------- */
.quick-apply .alert { background: #0e2416; }
.quick-apply .alert-error { background: #2a0a12; }
@media (max-width: 700px) {
    .hero-media { min-height: 0; padding: 240px 10px 10px; }
    .hero-media > img { height: 320px; }
    .hero-media::after { background: linear-gradient(180deg, rgb(10 11 16 / 0) 120px, var(--bg) 300px); }
    .qa-field { background: var(--surface-2); }
}
