/* ==========================================================================
   MAI Service Trade — site styles
   ========================================================================== */

/* Fonts
   -------------------------------------------------------------------------- */
@font-face {
    font-family: "Golos Text";
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
    src: url("../fonts/GolosText-VariableFont_wght.ttf") format("truetype");
}

/* Design tokens
   -------------------------------------------------------------------------- */
:root {
    --orange: #F1451D;
    --orange-600: #D63A16;
    --ink: #100F0D;
    --ink-2: #1C1A18;
    --gray: #C9C9C9;
    --teal: #17B3B3;
    --red: #E11B1B;
    --border: #2e2b28;
    --r: 4px;
    --f: "Golos Text", system-ui, Segoe UI, Roboto, Arial, sans-serif;
    /* === SECTION HEIGHTS (1920px design space). Tweak any value to match your PDF exactly. === */
    --h-nav: 60px;
    --h-hero: 825px;
    --h-map: 1150px;
    --h-people: 774px;
    --h-cargo: 820px;
    --h-safety: 760px;
    --h-customs: 760px;
    --h-tech: 760px;
    --h-gps: 620px;
    --h-precision: 560px;
    --h-algo: 788px;
    --h-cta: 964px;
    --h-footer: 200px;
}

/* Base / reset
   -------------------------------------------------------------------------- */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px; /* keep section tops clear of the fixed nav */
}

body {
    font-family: var(--f);
    color: var(--ink);
    background: #3a3a3a;
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    line-height: 1.06;
    margin: 0;
    font-weight: 800;
    letter-spacing: -.01em;
}

p {
    margin: 0;
}

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

img,
svg {
    display: block;
    max-width: 100%;
}

/* Responsive scaling of the fixed 1920 canvas
   -------------------------------------------------------------------------- */
#frame {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
}

#stage {
    width: 1920px;
    transform-origin: top left;
    background: #0b0a09;
    color: #fff;
}

.pad {
    padding-inline: 300px;
}

.center {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 19px;
    padding: 20px 34px;
    border-radius: var(--r);
    cursor: pointer;
    border: 2px solid transparent;
    transition: .18s;
    letter-spacing: .01em;
    text-transform: uppercase;
}

.btn-solid {
    background: var(--orange);
    color: #fff;
}

    .btn-solid:hover {
        background: var(--orange-600);
    }

/* Section headings
   -------------------------------------------------------------------------- */
.h-sec {
    font-size: 52px;
    text-transform: uppercase;
    color: #fff;
}

/* NAV — fixed top bar, scaled by the same factor as the canvas (see main.js)
   -------------------------------------------------------------------------- */
#topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    overflow: hidden;
    background: #0d0d0d;
}

#nav {
    width: 1920px;
    height: var(--h-nav);
    transform-origin: top left;
    display: flex;
    align-items: center;
    gap: 40px;
    background: #0d0d0d;
}

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

    .logo img {
        width: 182px;
        height: auto;
    }

#nav ul {
    display: flex;
    width: 720px;
    gap: 40px;
    list-style: none;
    margin: auto;
    padding: 0;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

    #nav ul a {
        position: relative;
        color: #fff; /* text stays white in every state */
        padding: 6px 0;
    }

        #nav ul a::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: -4px;
            height: 3px;
            background: var(--orange);
            transform: scaleX(0);
            transform-origin: left;
            transition: transform .18s;
        }

        #nav ul a:hover::after,
        #nav ul a.active::after {
            transform: scaleX(1);
        }

.nav-phone {
    padding: 4px 26px;
    font-size: 15px;
}

/* HERO
   -------------------------------------------------------------------------- */
#hero {
    height: var(--h-hero);
    position: relative;
    overflow: hidden;
    background: url("../images/truck_highquality.webp") center / cover no-repeat;
}

    #hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .2) 38%, rgba(255, 255, 255, 0) 60%);
        z-index: 1;
    }

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#hero h1 {
    color: var(--orange);
    font-size: 64px;
    line-height: 1.04;
    text-transform: uppercase;
}

#hero .lead {
    color: var(--ink);
    margin-top: 40px;
    font-size: 30px;
    font-weight: 700;
    text-transform: uppercase;
}

#hero ul {
    list-style: none;
    padding: 0;
    margin: 34px 0 46px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

    #hero ul li {
        color: var(--ink);
        font-size: 26px;
        font-weight: 700;
        text-transform: uppercase;
        display: flex;
        align-items: center;
        gap: 14px;
    }

        #hero ul li img {
            width: 20px;
            height: 20px;
        }

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    font-weight: 700;
}

    .hero-cta .btn {
        justify-content: center;
    }

/* Social/chat rail — fixed to the viewport, always visible while scrolling.
   Scaled by the same factor as the canvas (see main.js). */
#social-rail {
    position: fixed;
    left: 24px;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    z-index: 90;
    pointer-events: none; /* wrapper is just for centering; icons re-enable below */
}

.rail {
    display: flex;
    flex-direction: column;
    gap: 12px;
    transform-origin: left center;
    pointer-events: auto;
}

    .rail a {
        display: block;
        width: 34px;
        height: 34px;
    }

        .rail a img {
            width: 100%;
            height: 100%;
        }

/* HERO feature strip
   -------------------------------------------------------------------------- */
#hero-strip {
    height: 35px;
    background: var(--ink);
    color: #fff;
    display: flex;
    align-items: center;
}

    #hero-strip .row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: .04em;
    }

    #hero-strip .item {
        display: flex;
        align-items: center;
        gap: 8px;
        white-space: nowrap;
    }

        #hero-strip .item:not(:first-child)::before {
            content: "";
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--orange);
        }

/* Generic sections
   -------------------------------------------------------------------------- */
.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    height: 100%;
}

    .two.rev .media {
        order: 2;
    }

.media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

    .media img {
        max-width: 100%;
        max-height: 78%;
        width: auto;
        height: auto;
        object-fit: contain;
        border-radius: var(--r);
    }

/* MAP
   -------------------------------------------------------------------------- */
#map {
    height: var(--h-map);
    position: relative;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(55% 45% at 0% 58%, rgba(241, 69, 29, .38), transparent 70%), var(--ink-2);
}

.map-title {
    position: relative;
    z-index: 2;
    margin: 0;
    padding-top: 90px;
    font-size: 46px;
    line-height: 1.14;
    text-transform: uppercase;
    color: #fff;
}

.map-img {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    margin: 24px auto 0;
}

.map-bar {
    position: absolute;
    left: 50%;
    width: 12px;
    transform: translateX(-50%);
    z-index: 1;
}

.map-bar-top {
    top: 0;
    height: 80px;
    width: 34px;
    background: var(--teal);
}

.map-bar-bottom {
    bottom: 0;
    height: 120px;
    background: var(--red);
}

/* PEOPLE
   -------------------------------------------------------------------------- */
#people {
    height: var(--h-people);
    position: relative;
    overflow: hidden;
    color: #fff;
}

    #people .center {
        position: relative;
        z-index: 2;
    }

.people-title {
    margin: 0;
    font-size: 46px;
    line-height: 1.14;
    text-transform: uppercase;
    color: #fff;
}

.cards-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 44px;
}

.card {
    background: var(--ink-2);
    border: 1px solid var(--border);
    border-bottom: 3px solid var(--orange);
    border-radius: var(--r);
    padding: 32px;
}

    .card .ic {
        width: 44px;
        height: 44px;
        margin-bottom: 22px;
    }

    .card h3 {
        color: var(--orange);
        font-size: 18px;
        line-height: 1.25;
        text-transform: uppercase;
        margin-bottom: 14px;
    }

    .card p {
        color: var(--gray);
        font-size: 16px;
        line-height: 1.55;
    }

/* Vertical route accent bars (shared by dark sections)
   -------------------------------------------------------------------------- */
.vbar {
    position: absolute;
    left: 50%;
    width: 12px;
    transform: translateX(-50%);
    z-index: 1;
}

.vbar-teal-top {
    top: 0;
    height: 120px;
    background: var(--teal);
}

.vbar-teal-bottom {
    bottom: 18px;
    height: 104px;
    background: var(--teal);
}

.vbar-red-bottom {
    bottom: 0;
    height: 18px;
    background: var(--red);
}

.vbar-red-bottom-long {
    bottom: 0;
    height: 90px;
    background: var(--red);
}

/* CARGO
   -------------------------------------------------------------------------- */
#cargo {
    height: var(--h-cargo);
    background: radial-gradient(50% 65% at 82% 45%, rgba(241, 69, 29, .22), transparent 62%), var(--ink-2);
}

.feat {
    display: flex;
    flex-direction: column;
    gap: 26px;
    margin-top: 32px;
}

    .feat h3 {
        font-size: 20px;
        text-transform: uppercase;
        color: var(--orange);
        margin-bottom: 8px;
    }

    .feat p {
        color: var(--gray);
        font-size: 18px;
    }

/* Shared helpers for the dark content sections
   -------------------------------------------------------------------------- */
.accent {
    color: var(--orange);
}

.sec-sub {
    margin: 14px 0 0;
    font-size: 20px;
    color: #fff;
}

    .sec-sub.caps {
        text-transform: uppercase;
        line-height: 1.3;
    }

    .sec-sub.orange {
        color: var(--orange);
    }

/* SAFETY
   -------------------------------------------------------------------------- */
#safety {
    height: var(--h-safety);
    background: radial-gradient(45% 70% at 12% 50%, rgba(241, 69, 29, .28), transparent 65%), var(--ink-2);
}

.guar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-top: 44px;
}

.guar-left {
    text-align: center;
}

.big {
    font-size: 180px;
    color: var(--orange);
    line-height: .9;
    letter-spacing: -.03em;
}

.big-cap {
    color: #fff;
    text-transform: uppercase;
    margin-top: 6px;
    font-size: 22px;
}

.big-sub {
    color: var(--gray);
    margin-top: 12px;
    font-size: 16px;
}

.gitem {
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
}

    .gitem h3 {
        color: var(--orange);
        font-size: 20px;
        text-transform: uppercase;
    }

    .gitem p {
        color: var(--gray);
        font-size: 17px;
        margin-top: 6px;
    }

/* CUSTOMS
   -------------------------------------------------------------------------- */
#customs {
    height: var(--h-customs);
    background: var(--ink-2);
}

.tbl {
    width: 100%;
    border-collapse: collapse;
    margin-top: 38px;
    font-size: 18px;
    border-radius: var(--r);
    overflow: hidden;
}

    .tbl thead th {
        color: var(--orange);
        text-align: left;
        padding: 16px 26px;
        text-transform: uppercase;
        font-size: 15px;
        letter-spacing: .06em;
        border-bottom: 2px solid var(--orange);
    }

    .tbl td {
        padding: 22px 26px;
        color: var(--gray);
        border-bottom: 1px solid var(--border);
    }

        .tbl td:first-child {
            color: #fff;
            text-transform: uppercase;
        }

    .tbl tbody tr:last-child td {
        border-bottom: 0;
    }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--orange);
    font-size: 16px;
}

    .pill::before {
        content: "✔";
        font-size: 15px;
        color: var(--orange);
    }

/* TECH / GPS
   -------------------------------------------------------------------------- */
#tech {
    height: var(--h-tech);
    position: relative;
    overflow: hidden;
    background: var(--ink-2);
}

.tech-wrap {
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.tech-left {
    position: relative;
    z-index: 2;
}

.tech-title {
    margin: 0;
    color: var(--orange);
    font-size: 60px;
    line-height: 1.02;
    text-transform: uppercase;
}

.tech-note {
    display: inline-block;
    margin: 44px 0 0 -120px;
    padding: 24px 44px 24px 120px;
    background: #000;
    color: #fff;
    font-size: 20px;
    text-transform: uppercase;
    border-right: 4px solid var(--orange);
}

    .tech-note b {
        color: var(--orange);
    }

.tech-img {
    height: 78%;
}

    .tech-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: var(--r);
    }

#gps {
    height: var(--h-gps);
    background: var(--ink-2);
}

/* PRECISION
   -------------------------------------------------------------------------- */
#precision {
    height: var(--h-precision);
    background: radial-gradient(58% 80% at 50% 55%, rgba(241, 69, 29, .24), transparent 70%), var(--ink-2);
}

.prec {
    margin-top: 40px;
    padding: 42px 46px;
    background: var(--ink-2);
    border-radius: var(--r);
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.prow {
    display: grid;
    grid-template-columns: 320px 1fr;
    align-items: center;
    gap: 34px;
}

.plabel {
    color: #fff;
    font-size: 17px;
    text-transform: uppercase;
}

.pbar {
    height: 46px;
    background: #2a2724;
    border-radius: 4px;
    overflow: hidden;
}

.pfill {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    padding-left: 22px;
    background: var(--orange);
    border-radius: 4px;
    color: #fff;
    font-size: 15px;
    text-transform: uppercase;
    white-space: nowrap;
}

.pfill-95 {
    width: 95%;
}

/* ALGO
   -------------------------------------------------------------------------- */
#algo {
    height: var(--h-algo);
    background: radial-gradient(70% 90% at 50% 62%, rgba(241, 69, 29, .30), transparent 70%), var(--ink-2);
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
    margin-top: 60px;
    position: relative;
}

    .steps::before {
        content: "";
        position: absolute;
        top: 28px;
        left: 8%;
        right: 8%;
        height: 2px;
        background: var(--border);
    }

.step {
    text-align: center;
    position: relative;
}

    .step .dot {
        width: 58px;
        height: 58px;
        border-radius: 50%;
        background: var(--orange);
        color: #fff;
        display: grid;
        place-items: center;
        font-size: 22px;
        margin: 0 auto 22px;
        position: relative;
        z-index: 1;
    }

    .step h3 {
        color: var(--orange);
        font-size: 19px;
        text-transform: uppercase;
        margin-bottom: 10px;
    }

    .step p {
        color: var(--gray);
        font-size: 16px;
    }

/* CTA
   -------------------------------------------------------------------------- */
#cta {
    position: relative;
    overflow: hidden;
    height: var(--h-cta);
    background: radial-gradient(42% 68% at 6% 55%, rgba(241, 69, 29, .55), transparent 60%), var(--ink-2);
}

.vbar-red-top {
    top: 0;
    height: 90px;
    background: var(--red);
}

.cta-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.cta-card {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 80px;
    background: var(--orange);
    color: var(--ink);
    border-radius: var(--r);
}

#cta .tag {
    color: var(--ink);
    font-size: 15px;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

#cta h2 {
    max-width: 700px;
    color: var(--ink);
    font-size: 76px;
    line-height: 1;
    text-transform: uppercase;
}

.cta-contact {
    display: flex;
    gap: 64px;
    margin-top: 56px;
}

.cta-field {
    min-width: 260px;
    padding-top: 14px;
    border-top: 2px solid rgba(16, 15, 13, .45);
}

.cta-label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    letter-spacing: .15em;
    text-transform: uppercase;
    opacity: .6;
}

.cta-field a {
    color: var(--ink);
    font-size: 22px;
}

/* FOOTER
   -------------------------------------------------------------------------- */
#footer {
    height: var(--h-footer);
    background: var(--ink);
    color: var(--gray);
    display: flex;
    align-items: center;
}

    #footer .row {
        display: flex;
        justify-content: space-between;
        width: 100%;
        font-size: 16px;
    }
