/* ============================================================
   SM FREIGHT — GLOBAL STYLESHEET
   Brand: navy #03355F / orange #EE5427 (sampled from logo)
   ============================================================ */

/* -------------------- RESET / GLOBAL -------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy: #03355f;
    --navy-dark: #022742;
    --navy-mid: #0a4a80;
    --navy-soft: #e8eef5;
    --orange: #ee5427;
    --orange-dark: #d5431a;
    --orange-light: #ff7a52;
    --orange-soft: #fdeee9;
    --white: #ffffff;
    --light-bg: #f4f7fa;
    --text-dark: #0d1b2a;
    --text-mid: #4a5a6a;
    --text-light: #7b8794;
    --border: #e3e9f0;
    --radius: 8px;
    --radius-lg: 14px;
    --shadow-sm: 0 2px 10px rgba(3, 53, 95, .06);
    --shadow-md: 0 10px 30px rgba(3, 53, 95, .09);
    --shadow-lg: 0 20px 50px rgba(3, 53, 95, .13);
    --font-head: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-mid);
    background: var(--white);
    /* `clip`, not `hidden`: `overflow-x: hidden` turns <body> into a scroll
       container, which silently breaks in-page #anchor links (services nav). */
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--navy);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(30px, 4.5vw, 50px); }
h2 { font-size: clamp(24px, 3.4vw, 38px); }
h3 { font-size: clamp(18px, 2vw, 22px); }
h4 { font-size: 17px; }
h5 { font-size: 15px; }
h6 { font-size: 13px; }

p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-mid);
}

a {
    color: var(--orange);
    text-decoration: none;
    transition: color .2s ease;
}

a:hover { color: var(--orange-dark); }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol { list-style: none; }

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    max-width: 1280px;
    position: relative;
}

section {
    padding: 90px 0;
    position: relative;
}

.section-light { background: var(--light-bg); }
.section-navy { background: var(--navy); }

.row { display: flex; flex-wrap: wrap; }

.row.center {
    align-items: center;
    justify-content: space-between;
}

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

/* -------------------- BUTTONS -------------------- */
.btn-primary,
.btn-accent,
.btn-outline,
.btn-ghost,
.btn-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 15px 30px;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .4px;
    line-height: 1;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    white-space: nowrap;
    transition: all .25s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.btn-primary:hover {
    background: var(--navy-mid);
    border-color: var(--navy-mid);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}

.btn-accent:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(238, 84, 39, .3);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, .45);
}

.btn-ghost:hover {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

.btn-white:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
}

.link-arrow {
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 700;
    color: var(--orange);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.link-arrow:hover { gap: 11px; }

/* -------------------- SHARED SECTION HEADINGS -------------------- */
.section-eyebrow {
    font-family: var(--font-head);
    font-size: 12px;
    color: var(--orange);
    font-weight: 800;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    margin-bottom: 14px;
    position: relative;
    padding-left: 52px;
    display: inline-block;
}

.section-eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 40px;
    height: 2px;
    background: var(--orange);
}

.section-eyebrow.center {
    padding-left: 0;
    padding-right: 0;
    display: block;
    text-align: center;
}

.section-eyebrow.center::before { display: none; }

.eyebrow-light {
    font-family: var(--font-head);
    font-size: 12px;
    color: var(--orange-light);
    font-weight: 800;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(26px, 3.6vw, 42px);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.15;
    letter-spacing: -.5px;
}

.section-title .accent { color: var(--orange); }

.section-desc {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-mid);
    margin-top: 18px;
    max-width: 640px;
}

.section-head-center {
    max-width: 720px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-head-center .section-desc { margin: 18px auto 0; }

/* Oversized outline word used as a background flourish.
   z-index 0 keeps it behind .container content, which sits at z-index 2. */
.section-word {
    position: absolute;
    bottom: -24px;
    right: 0;
    width: 100%;
    text-align: center;
    pointer-events: none;
    overflow: hidden;
    line-height: 1;
    z-index: 0;
}

.section-word span {
    font-family: var(--font-head);
    font-size: clamp(70px, 15vw, 190px);
    font-weight: 800;
    letter-spacing: -4px;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, .08);
    text-transform: uppercase;
    white-space: nowrap;
}

/* Any section carrying a .section-word must stack its content above it. */
.why-us .container,
.cta-banner .container { z-index: 2; }

/* -------------------- TOP BAR -------------------- */
.topbar {
    background: var(--navy);
    padding: 9px 0;
    font-size: 13px;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.topbar-tagline {
    color: rgba(255, 255, 255, .75);
    font-size: 12.5px;
    letter-spacing: .4px;
}

.topbar-contact {
    display: flex;
    gap: 22px;
}

.topbar-contact a {
    color: rgba(255, 255, 255, .9);
    font-size: 12.5px;
    font-weight: 500;
}

.topbar-contact a:hover { color: var(--orange-light); }

/* -------------------- NAVBAR -------------------- */
nav#mainNav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 1px 0 var(--border);
    padding: 14px 0;
    transition: box-shadow .25s ease, padding .25s ease;
}

nav#mainNav.scrolled {
    box-shadow: var(--shadow-md);
    padding: 10px 0;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo { flex-shrink: 0; }

/* The lockup is a wide 4:1 horizontal mark, so height sets the size and
   max-width only guards against an oversized Customizer upload. */
.nav-logo img,
.nav-logo .custom-logo {
    width: auto;
    height: 40px;
    max-width: 240px;
    object-fit: contain;
    transition: height .25s ease;
}

nav#mainNav.scrolled .nav-logo img,
nav#mainNav.scrolled .nav-logo .custom-logo { height: 34px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.4vw, 32px);
    margin-left: auto;
}

.nav-links li { position: relative; }

.nav-links a {
    font-family: var(--font-head);
    color: var(--navy);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .2px;
    padding: 8px 0;
    display: inline-block;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width .25s ease;
}

.nav-links a:hover,
.nav-links .current-menu-item > a {
    color: var(--orange);
}

.nav-links a:hover::after,
.nav-links .current-menu-item > a::after { width: 100%; }

/* Dropdown submenus */
.nav-links .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .22s ease;
    z-index: 20;
}

/* focus-within keeps the dropdown reachable by keyboard, not hover alone. */
.nav-links li:hover > .sub-menu,
.nav-links li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-links .sub-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 13.5px;
    font-weight: 500;
    white-space: nowrap;
}

.nav-links .sub-menu a::after { display: none; }

.nav-links .sub-menu a:hover { background: var(--light-bg); }

/* Caret on any item that opens a dropdown. */
.nav-links .menu-item-has-children > a { padding-right: 15px; }

.nav-links .menu-item-has-children > a::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 5px;
    height: 5px;
    margin-top: -4px;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: rotate(45deg);
    transition: transform .22s ease, margin-top .22s ease;
}

.nav-links .menu-item-has-children:hover > a::before,
.nav-links .menu-item-has-children:focus-within > a::before {
    transform: rotate(-135deg);
    margin-top: -1px;
}

.nav-cta {
    background: var(--orange);
    color: var(--white);
    font-family: var(--font-head);
    padding: 13px 26px;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius);
    white-space: nowrap;
    flex-shrink: 0;
    transition: all .25s ease;
}

.nav-cta:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
    z-index: 1002;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--navy);
    border-radius: 4px;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

.hamburger.open span { background: var(--white); }
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--navy);
    z-index: 1001;
    flex-direction: column;
    padding: 26px 28px 40px;
    overflow-y: auto;
}

/* Brand mark at the top of the drawer, standing in for the navbar it covers.
   Sits left of the close button, so the top row reads logo | X. */
.mobile-nav-logo {
    margin-bottom: 22px;
    padding-right: 56px;
}

.mobile-nav-logo a {
    display: inline-block;
    padding: 0 !important;
    border-bottom: none !important;
}

.mobile-nav-logo img {
    height: 36px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

/* Pinned rather than absolute so it stays reachable while a long menu scrolls.
   Sits level with the drawer logo, in the gap its padding-right reserves. */
.mobile-nav-close {
    position: fixed;
    top: 30px;
    right: 24px;
    z-index: 2;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, .88);
}

.mobile-nav-close:hover { color: var(--orange-light); }

.mobile-nav-close svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}

.mobile-nav.open {
    display: flex;
    animation: slideIn .3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.mobile-nav a {
    font-family: var(--font-head);
    color: rgba(255, 255, 255, .88);
    font-size: 19px;
    font-weight: 600;
    padding: 17px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.mobile-nav a:hover { color: var(--orange-light); }

/* Service links nested under Services in the drawer (no hover state on touch). */
.mobile-subnav {
    display: flex;
    flex-direction: column;
    padding-left: 16px;
    border-left: 2px solid rgba(255, 255, 255, .16);
}

.mobile-subnav a {
    font-size: 15px !important;
    font-weight: 500;
    color: rgba(255, 255, 255, .62);
    padding: 12px 0 !important;
    border-bottom: none !important;
}

.mobile-subnav a:last-child { padding-bottom: 16px !important; }

.mobile-cta-btn {
    margin-top: 28px;
    background: var(--orange);
    color: var(--white) !important;
    padding: 15px 30px !important;
    font-size: 15px !important;
    border-radius: var(--radius);
    border-bottom: none !important;
    text-align: center;
}

.mobile-nav-contact {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav-contact a {
    font-size: 14px !important;
    font-weight: 500;
    border-bottom: none !important;
    padding: 6px 0 !important;
    color: rgba(255, 255, 255, .65);
}

/* -------------------- HOME HERO -------------------- */
/* Photography sits under the brand gradient rather than replacing it, so the
   navy stays dominant and white copy keeps its contrast. */
.hero {
    background:
        /* Heavier on the left, where the headline and body copy sit. */
        linear-gradient(100deg, rgba(2, 39, 66, .97) 0%, rgba(3, 53, 95, .93) 42%, rgba(6, 66, 115, .78) 100%),
        url('../images/hero-fleet.jpg') 30% 45% / cover no-repeat;
    padding: 90px 0 100px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -180px;
    right: -160px;
    width: 620px;
    height: 620px;
    background: radial-gradient(circle, rgba(238, 84, 39, .22) 0%, transparent 68%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--orange) 0%, transparent 55%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 60px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: var(--orange-light);
    background: rgba(238, 84, 39, .12);
    border: 1px solid rgba(238, 84, 39, .3);
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(32px, 4.6vw, 54px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--white);
}

.hero-title .accent { color: var(--orange); }

.hero-subtitle {
    font-family: var(--font-head);
    font-size: clamp(15px, 1.8vw, 18px);
    font-weight: 700;
    color: var(--orange-light);
    letter-spacing: .6px;
    margin-top: 16px;
}

.hero-desc {
    font-size: 15.5px;
    line-height: 1.85;
    color: rgba(255, 255, 255, .78);
    margin-top: 20px;
    max-width: 580px;
}

.hero-desc + .hero-desc { margin-top: 14px; }

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

.hero-stats {
    display: flex;
    gap: clamp(24px, 4vw, 48px);
    flex-wrap: wrap;
    margin-top: 46px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.hero-stat-number {
    font-family: var(--font-head);
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.hero-stat-number .suffix { color: var(--orange); }

.hero-stat-label {
    font-size: 12.5px;
    color: rgba(255, 255, 255, .6);
    letter-spacing: .8px;
    text-transform: uppercase;
    margin-top: 9px;
}

/* Hero card — the F.R.E.I.G.H.T. panel */
.hero-panel {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: var(--radius-lg);
    padding: 34px;
    backdrop-filter: blur(6px);
}

.hero-panel-title {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--orange-light);
    margin-bottom: 22px;
}

.hero-panel-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-panel-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.hero-panel-item:last-child { border-bottom: none; }

.hero-panel-letter {
    font-family: var(--font-head);
    font-size: 19px;
    font-weight: 800;
    color: var(--orange);
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: rgba(238, 84, 39, .14);
    border-radius: var(--radius);
    flex-shrink: 0;
}

.hero-panel-text {
    font-family: var(--font-head);
    font-size: 14.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, .9);
}

.hero-panel-text span {
    display: block;
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 400;
    color: rgba(255, 255, 255, .55);
    margin-top: 2px;
}

/* -------------------- TRUST SECTION -------------------- */
.trust { background: var(--light-bg); }

.trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.check-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 8px;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: var(--font-head);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--navy);
    background: var(--white);
    padding: 16px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all .25s ease;
}

.check-list li:hover {
    border-color: var(--orange);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.check-list .tick {
    width: 20px;
    height: 20px;
    background: var(--orange);
    color: var(--white);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.check-list.single-col { grid-template-columns: 1fr; }

/* -------------------- ABOUT SECTION -------------------- */
.about-grid {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 64px;
    align-items: center;
}

.about-visual {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background:
        linear-gradient(150deg, rgba(3, 53, 95, .9) 0%, rgba(10, 74, 128, .82) 100%),
        url('../images/about-truck.jpg') center / cover no-repeat;
    padding: 48px 40px;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-visual::before {
    content: '';
    position: absolute;
    bottom: -90px;
    left: -70px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(238, 84, 39, .3) 0%, transparent 70%);
}

.about-visual-metric {
    position: relative;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.about-visual-metric:last-child { border-bottom: none; }

.about-visual-metric strong {
    font-family: var(--font-head);
    display: block;
    font-size: 34px;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.about-visual-metric span {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, .65);
    margin-top: 8px;
}

/* -------------------- FRAMEWORK SECTION -------------------- */
.framework { background: var(--light-bg); }

.framework-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.framework-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 34px 30px;
    position: relative;
    overflow: hidden;
    transition: all .3s ease;
    display: flex;
    flex-direction: column;
}

.framework-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
}

.framework-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.framework-card:hover::before { transform: scaleX(1); }

.framework-letter {
    font-family: var(--font-head);
    font-size: 46px;
    font-weight: 800;
    color: var(--orange);
    line-height: 1;
    margin-bottom: 6px;
}

.framework-name {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 14px;
}

.framework-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.framework-card p {
    font-size: 14.5px;
    margin-bottom: 18px;
}

.framework-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 6px;
}

.framework-tags li {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--navy);
    background: var(--navy-soft);
    padding: 6px 12px;
    border-radius: 100px;
}

.framework-card:hover .framework-tags li {
    background: var(--orange-soft);
    color: var(--orange-dark);
}

/* -------------------- SERVICES SECTION -------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

/* Odd card count (7) leaves one card alone on the last row—centre it
   instead of stranding it against the left edge. */
.services-grid > .service-card:last-child:nth-child(3n + 1) { grid-column: 2; }

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-icon {
    width: 58px;
    height: 58px;
    border-radius: var(--radius);
    background: var(--navy);
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    transition: background .3s ease;
}

.service-card:hover .service-icon { background: var(--orange); }

.service-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--white);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card h3 { margin-bottom: 12px; }

.service-card p {
    font-size: 14.5px;
    margin-bottom: 20px;
}

.service-number {
    position: absolute;
    top: 22px;
    right: 26px;
    font-family: var(--font-head);
    font-size: 46px;
    font-weight: 800;
    color: var(--light-bg);
    line-height: 1;
}

/* -------------------- WHY US SECTION -------------------- */
.why-us {
    background: var(--navy);
    overflow: hidden;
}

.why-us .section-title,
.why-us h3 { color: var(--white); }

.why-us .section-desc { color: rgba(255, 255, 255, .72); }

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 52px;
}

.why-item {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius);
    padding: 26px 22px;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    transition: all .28s ease;
}

.why-item:hover {
    background: rgba(255, 255, 255, .09);
    border-color: rgba(238, 84, 39, .5);
    transform: translateY(-4px);
}

.why-item .tick {
    width: 21px;
    height: 21px;
    background: var(--orange);
    color: var(--white);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.why-item span {
    font-family: var(--font-head);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--white);
    line-height: 1.45;
}

/* -------------------- PROCESS SECTION -------------------- */
.process { background: var(--light-bg); }

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.process-step {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    position: relative;
    transition: all .3s ease;
}

.process-step:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.process-number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    font-family: var(--font-head);
    font-size: 19px;
    font-weight: 800;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    transition: background .3s ease;
}

.process-step:hover .process-number { background: var(--orange); }

.process-step h3 {
    font-size: 18px;
    margin-bottom: 11px;
}

.process-step p { font-size: 14.5px; }

/* -------------------- CTA BANNER -------------------- */
/* -------------------- MID-PAGE IMAGE BAND -------------------- */
/* The photo is a real <img>, shown at full strength beside the copy rather
   than washed out behind it. Rendered by smf_image_band(). */
.image-band { padding: 76px 0; }

.image-band-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    align-items: center;
}

.image-band-grid.is-reversed .image-band-text { order: 2; }
.image-band-grid.is-reversed .image-band-media { order: 1; }

.image-band-text .section-title { margin-bottom: 14px; }

.image-band-media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    /* Sources are a mix of portrait and landscape; a fixed box plus object-fit
       keeps every page's band the same shape and reserves space before load. */
    aspect-ratio: 3 / 2;
}

.image-band-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cta-banner {
    background:
        linear-gradient(135deg, rgba(2, 39, 66, .94) 0%, rgba(3, 53, 95, .89) 60%, rgba(10, 74, 128, .85) 100%),
        url('../images/cta-highway.jpg') center 65% / cover no-repeat;
    overflow: hidden;
    padding: 76px 0;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -140px;
    left: -110px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(238, 84, 39, .25) 0%, transparent 70%);
    pointer-events: none;
}

.cta-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 44px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.cta-banner-left { flex: 1 1 520px; }

.cta-banner-title {
    font-size: clamp(24px, 3.2vw, 36px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    letter-spacing: -.4px;
}

.cta-banner-desc {
    font-size: 15.5px;
    color: rgba(255, 255, 255, .74);
    margin-top: 16px;
    max-width: 620px;
}

.cta-banner-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* -------------------- INNER PAGE HERO -------------------- */
/* Shared by every inner page (services, about, framework, careers, quote, contact).
   The photo is held in --page-hero-img so a page can swap it with a single
   modifier class, and the mobile rule below inherits whatever that page set.
   Setting it to none leaves the gradient alone over the navy fallback. */
.page-hero {
    --page-hero-img: url('../images/page-hero-road.jpg');
    background:
        linear-gradient(135deg, rgba(2, 39, 66, .93) 0%, rgba(3, 53, 95, .88) 100%),
        var(--page-hero-img) center 60% / cover no-repeat;
    background-color: var(--navy-dark);
    padding: 96px 0;
    overflow: hidden;
    text-align: center;
}

.page-hero--services { --page-hero-img: url('../images/hero-services.jpg'); }
.page-hero--about    { --page-hero-img: url('../images/hero-about.jpg'); }
.page-hero--careers  { --page-hero-img: url('../images/hero-careers.jpg'); }
.page-hero--contact  { --page-hero-img: url('../images/hero-contact.jpg'); }
.page-hero--quote    { --page-hero-img: none; }

.page-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 30%, rgba(238, 84, 39, .22) 0%, transparent 45%),
        radial-gradient(circle at 85% 70%, rgba(10, 74, 128, .45) 0%, transparent 50%);
    pointer-events: none;
}

.hero-eyebrow-light {
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2.6px;
    text-transform: uppercase;
    color: var(--orange-light);
    margin-bottom: 16px;
}

.page-hero-title {
    font-size: clamp(30px, 4.6vw, 50px);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -.8px;
    line-height: 1.12;
}

.page-hero-title .accent { color: var(--orange); }

.page-hero-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, .76);
    line-height: 1.8;
    max-width: 720px;
    margin: 20px auto 0;
}

.page-hero-crumbs {
    margin-top: 26px;
    font-size: 13px;
    color: rgba(255, 255, 255, .55);
}

.page-hero-crumbs a { color: rgba(255, 255, 255, .85); }
.page-hero-crumbs a:hover { color: var(--orange-light); }

/* -------------------- FORMS -------------------- */
.smf-form { margin-top: 6px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group { margin-bottom: 16px; }

.form-label {
    display: block;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 7px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 14.5px;
    color: var(--text-dark);
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    transition: all .2s ease;
    outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-light); }

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(238, 84, 39, .12);
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234a5a6a' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

/* Honeypot — hidden from humans, visible to bots */
.form-hp {
    position: absolute !important;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

.form-feedback {
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    padding: 0;
    min-height: 20px;
}

.form-feedback.success { color: #1a8a4a; }
.form-feedback.error { color: #c8321e; }

.smf-form button[disabled] {
    opacity: .6;
    cursor: not-allowed;
}

/* -------------------- POST LISTING / PAGE CONTENT -------------------- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.post-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all .3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.post-card-media img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.post-card-body { padding: 26px; }

.post-card-date {
    font-size: 12.5px;
    color: var(--text-light);
    letter-spacing: .5px;
    text-transform: uppercase;
}

.post-card-title {
    font-size: 19px;
    margin: 10px 0 12px;
}

.post-card-title a { color: var(--navy); }
.post-card-title a:hover { color: var(--orange); }

.post-card-excerpt {
    font-size: 14.5px;
    margin-bottom: 16px;
}

.post-pagination { margin-top: 48px; }

.post-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 0;
}

.post-pagination .page-numbers {
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
}

.post-pagination .page-numbers.current,
.post-pagination .page-numbers:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
}

.empty-state {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.empty-state p { margin: 16px 0 28px; }

.page-content .entry-content {
    max-width: 860px;
    margin: 0 auto;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 { margin: 32px 0 14px; }

.entry-content p,
.entry-content ul,
.entry-content ol { margin-bottom: 18px; }

.entry-content ul,
.entry-content ol {
    padding-left: 22px;
    list-style: disc;
}

.entry-content ol { list-style: decimal; }

.entry-content li {
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 8px;
}

.entry-content img { border-radius: var(--radius); }

.entry-content blockquote {
    border-left: 4px solid var(--orange);
    padding: 6px 0 6px 22px;
    margin: 24px 0;
    font-style: italic;
    color: var(--navy);
}

/* -------------------- 404 -------------------- */
.error-page {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
    padding: 130px 0;
    text-align: center;
    overflow: hidden;
}

.error-page-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 40%, rgba(238, 84, 39, .2) 0%, transparent 55%);
    pointer-events: none;
}

.error-code {
    font-size: clamp(90px, 16vw, 170px);
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, .3);
    line-height: 1;
    letter-spacing: -4px;
}

.error-title {
    color: var(--white);
    font-size: clamp(22px, 3vw, 32px);
    margin-top: 10px;
}

.error-desc {
    color: rgba(255, 255, 255, .72);
    max-width: 520px;
    margin: 18px auto 34px;
}

.error-links {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* -------------------- FOOTER -------------------- */
.site-footer {
    background: var(--navy-dark);
    padding: 76px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr;
    gap: 48px;
    padding-bottom: 56px;
}

.footer-brand img {
    width: auto;
    height: 48px;
    max-width: 260px;
    object-fit: contain;
    margin-bottom: 20px;
}

.footer-tagline {
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.5;
}

.footer-about {
    font-size: 13px;
    color: rgba(255, 255, 255, .55);
    margin-top: 10px;
    letter-spacing: .3px;
    line-height: 1.9;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .08);
    display: grid;
    place-items: center;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, .8);
    transition: all .25s ease;
}

.footer-social a:hover {
    background: var(--orange);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-heading {
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    background: var(--orange);
}

.footer-links li { margin-bottom: 12px; }

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, .62);
    transition: all .22s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--orange-light);
    transform: translateX(4px);
}

.footer-contact-item {
    font-size: 14px;
    color: rgba(255, 255, 255, .62);
    line-height: 1.7;
    margin-bottom: 18px;
}

.footer-contact-item a { color: rgba(255, 255, 255, .62); }
.footer-contact-item a:hover { color: var(--orange-light); }

.fc-label {
    display: block;
    font-family: var(--font-head);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 24px 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-copy {
    font-size: 13.5px;
    color: rgba(255, 255, 255, .5);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 13.5px;
    color: rgba(255, 255, 255, .5);
}

.footer-legal a:hover { color: var(--orange-light); }

/* -------------------- SCROLL TO TOP -------------------- */
.scroll-to-top {
    position: fixed;
    right: 24px;
    /* Clears the floating WhatsApp button, which owns the bottom-right corner. */
    bottom: 90px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--orange);
    color: var(--white);
    display: grid;
    place-items: center;
    font-size: 18px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all .3s ease;
    z-index: 900;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--navy);
    color: var(--white);
}

/* ---------- Floating WhatsApp button ---------- */

.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 0;
    height: 54px;
    padding: 0 15px;
    border-radius: 999px;
    background: #25d366;
    color: var(--white);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
    z-index: 901;
}

.whatsapp-float svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Collapsed to a circle by default; the label reveals on hover/focus. */
.whatsapp-float-label {
    max-width: 0;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: max-width .3s ease, opacity .3s ease, margin-left .3s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
    background: #1da851;
    color: var(--white);
    padding-right: 20px;
}

.whatsapp-float:hover .whatsapp-float-label,
.whatsapp-float:focus-visible .whatsapp-float-label {
    max-width: 180px;
    margin-left: 10px;
    opacity: 1;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ≤1100px */
@media screen and (max-width: 1100px) {
    .framework-grid,
    .services-grid,
    .post-grid { grid-template-columns: repeat(2, 1fr); }

    /* Two columns: the lone last card sits in column 1, so drop the centring. */
    .services-grid > .service-card:last-child:nth-child(3n + 1) { grid-column: auto; }

    .why-grid { grid-template-columns: repeat(2, 1fr); }

    .process-grid { grid-template-columns: repeat(2, 1fr); }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* ≤980px — collapse nav to drawer */
@media screen and (max-width: 980px) {
    .image-band-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Stacked, the copy always leads regardless of the desktop side. */
    .image-band-grid.is-reversed .image-band-text { order: 1; }
    .image-band-grid.is-reversed .image-band-media { order: 2; }

    section { padding: 66px 0; }

    .nav-links,
    .nav-cta { display: none; }

    .hamburger { display: flex; }

    .hero { padding: 62px 0 70px; }

    .hero-grid,
    .trust-grid,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .about-visual { min-height: auto; }

    .topbar-tagline { display: none; }

    .topbar-inner { justify-content: center; }

    .cta-banner-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
}

/* ≤700px */
@media screen and (max-width: 700px) {
    section { padding: 54px 0; }

    .container { padding: 0 18px; }

    /* A landscape photo cropped into a tall narrow viewport loses its subject
       unless it is centred, and the tighter crop needs a heavier overlay to
       keep white copy readable. */
    .hero,
    .page-hero,
    .cta-banner { background-position: center, center; }

    .hero {
        background-image:
            linear-gradient(160deg, rgba(2, 39, 66, .96) 0%, rgba(3, 53, 95, .93) 100%),
            url('../images/hero-fleet.jpg');
    }

    .page-hero {
        background-image:
            linear-gradient(160deg, rgba(2, 39, 66, .94) 0%, rgba(3, 53, 95, .91) 100%),
            var(--page-hero-img);
    }

    .cta-banner {
        background-image:
            linear-gradient(160deg, rgba(2, 39, 66, .95) 0%, rgba(10, 74, 128, .9) 100%),
            url('../images/cta-highway.jpg');
    }

    .image-band { padding: 48px 0; }
    .image-band-media { aspect-ratio: 16 / 10; }

    .framework-grid,
    .services-grid,
    .why-grid,
    .process-grid,
    .post-grid,
    .form-row { grid-template-columns: 1fr; }

    .check-list { grid-template-columns: 1fr; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .hero-buttons,
    .cta-banner-actions,
    .error-links { width: 100%; }

    .hero-buttons a,
    .cta-banner-actions a,
    .error-links a {
        flex: 1 1 100%;
        text-align: center;
    }

    .hero-stats { gap: 26px; }

    .section-head-center { margin-bottom: 38px; }
}

/* ≤420px */
@media screen and (max-width: 420px) {
    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        height: 50px;
        padding: 0 13px;
    }

    .scroll-to-top {
        right: 16px;
        bottom: 78px;
    }

    .topbar-contact { gap: 14px; }
    .topbar-contact a { font-size: 11.5px; }
    .nav-logo img { height: 34px; }
    .framework-card,
    .service-card,
    .process-step { padding: 28px 22px; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
