/* =============================================================
   Earthwise Transportation
   Layout: left-aligned, ruled rows like a rate sheet; one full-width
   photo; the highway double yellow line is the only ornament.
   Type: Overpass (descended from FHWA Highway Gothic) for display,
   Public Sans (U.S. government face) for text, Overpass Mono for
   regulatory numbers and mileage.
   ============================================================= */

:root {
    --paper: #f5f6f3;
    --white: #ffffff;
    --ink: #17211c;
    --ink-2: #47524c;
    --ink-3: #6e7872;
    --rule: #d3d8d2;
    --rule-dark: #2c3832;
    --yellow: #f2b705;
    --blue: #1d4f91;
    --green: #2e6b3c;

    --f-display: "Overpass", "Helvetica Neue", Arial, sans-serif;
    --f-text: "Public Sans", "Helvetica Neue", Arial, sans-serif;
    --f-mono: "Overpass Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

    --step--1: 0.8125rem;
    --step-0: 1rem;
    --step-1: 1.1875rem;
    --step-2: 1.5rem;
    --step-3: 2rem;
    --step-4: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
    --step-5: clamp(2.6rem, 1.6rem + 4.2vw, 4.75rem);

    --wrap: 1200px;
    --gutter: max(20px, env(safe-area-inset-left, 0px));
    --gutter-r: max(20px, env(safe-area-inset-right, 0px));
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--f-text);
    font-size: var(--step-0);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 {
    font-family: var(--f-display);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.015em;
    margin: 0;
    text-wrap: balance;
}

p { margin: 0; }

.wrap {
    max-width: var(--wrap);
    margin-inline: auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter-r);
}

.mono { font-family: var(--f-mono); font-weight: 600; letter-spacing: 0; }
.nowrap { white-space: nowrap; }

.skip {
    position: absolute; left: -9999px; top: 0;
    background: var(--yellow); color: var(--ink); padding: 0.5rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; }

/* ---------- Double yellow line ---------- */
.centerline {
    height: 14px;
    background:
        linear-gradient(var(--yellow), var(--yellow)) top / 100% 4px no-repeat,
        linear-gradient(var(--yellow), var(--yellow)) bottom / 100% 4px no-repeat;
}

/* ---------- Header ---------- */
.site-header {
    background: var(--ink);
    color: var(--white);
}
.site-header .wrap {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-block: 1rem;
}
.logo img { width: 200px; height: auto; }
.site-nav {
    display: flex;
    gap: 1.75rem;
    margin-left: auto;
}
.site-nav a {
    color: #d9dfda;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--white); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 6px; }

.header-phone {
    display: grid;
    text-align: right;
    line-height: 1.2;
    text-decoration: none;
    color: var(--white);
    padding-left: 1.75rem;
    border-left: 1px solid var(--rule-dark);
}
.header-phone small {
    font-size: 0.75rem;
    color: #a9b3ad;
    letter-spacing: 0.04em;
}
.header-phone strong {
    font-family: var(--f-mono);
    font-weight: 600;
    font-size: 1.0625rem;
    color: var(--yellow);
}

.menu-btn {
    display: none;
    margin-left: auto;
    background: none;
    border: 1px solid var(--rule-dark);
    color: var(--white);
    font: 600 0.875rem var(--f-text);
    padding: 0.5rem 0.85rem;
    cursor: pointer;
}

@media (max-width: 900px) {
    .site-nav, .header-phone { display: none; }
    .menu-btn { display: block; }
    .logo img { width: 160px; }
    .site-header.is-open .site-nav {
        display: flex;
        flex-direction: column;
        gap: 0;
        position: absolute;
        left: 0; right: 0;
        top: 100%;
        background: var(--ink);
        padding: 0.5rem var(--gutter-r) 1.25rem var(--gutter);
        border-top: 1px solid var(--rule-dark);
        z-index: 20;
    }
    .site-header.is-open .site-nav a { padding-block: 0.75rem; font-size: 1.0625rem; border-bottom: 1px solid var(--rule-dark); }
    .site-header { position: relative; }
}

/* ---------- Hero ---------- */
.hero { background: var(--white); }
.hero-top {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: end;
    padding-block: 4rem 3rem;
}
.hero h1 {
    font-size: var(--step-5);
    max-width: 18ch;
}
.hero-lede {
    margin-top: 1.5rem;
    font-size: var(--step-1);
    color: var(--ink-2);
    max-width: 52ch;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    align-items: center;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--ink);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    padding: 0.95rem 1.4rem;
    border: 2px solid var(--ink);
}
.btn .mono { color: var(--yellow); font-weight: 600; }
.btn:hover { background: #26332c; }
.text-link { font-weight: 600; }

/* Carrier snapshot, modeled on the FMCSA SAFER record */
.snapshot {
    border: 1px solid var(--rule);
    background: var(--paper);
    font-size: 0.9375rem;
}
.snapshot-head {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--rule);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.snapshot dl { margin: 0; }
.snapshot dl > div {
    display: grid;
    grid-template-columns: 9rem minmax(0, 1fr);
    gap: 1rem;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--rule);
}
.snapshot dt { color: var(--ink-3); }
.snapshot dd { margin: 0; font-weight: 600; }
.snapshot-foot { padding: 0.7rem 1rem; font-size: 0.875rem; }

.hero-photo img {
    width: 100%;
    aspect-ratio: 21 / 8;
    object-fit: cover;
    object-position: center 62%;
    height: auto;
}

/* ---------- Sections ---------- */
.section { padding-block: 5.5rem; }
.section + .section { border-top: 1px solid var(--rule); }
.section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem 4rem;
    align-items: end;
    margin-bottom: 3rem;
}
.section-head h2 { font-size: var(--step-4); max-width: 16ch; }
.section-head p { color: var(--ink-2); max-width: 50ch; font-size: 1.0625rem; }

/* What we haul: ruled rows */
.haul { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.haul li {
    display: grid;
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) minmax(0, 15rem);
    gap: 1rem 3rem;
    padding-block: 1.75rem;
    border-bottom: 1px solid var(--rule);
}
.haul h3 { font-size: var(--step-2); font-weight: 700; }
.haul h3 a { color: inherit; text-decoration: none; }
.haul h3 a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.haul p { color: var(--ink-2); max-width: 60ch; }
.haul-equip { font-size: 0.875rem; color: var(--ink-3); }
.haul-equip strong {
    display: block;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

/* Hazard classes */
.classes {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 3rem 5rem;
    align-items: center;
}
.classes h2 { font-size: var(--step-4); max-width: 14ch; }
.classes-copy p { margin-top: 1.25rem; color: var(--ink-2); max-width: 46ch; }
.placards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.placards li { display: grid; justify-items: center; gap: 1.1rem; text-align: center; }
.placard {
    width: 72%;
    aspect-ratio: 1;
    max-width: 120px;
    transform: rotate(45deg);
    border: 3px solid var(--ink);
    outline: 4px solid var(--white);
    outline-offset: -9px;
    display: grid;
    place-items: center;
    margin-top: 14%;
}
.placard { position: relative; }
.pl-layer {
    position: absolute;
    inset: 0;
    transform: rotate(-45deg);
    display: grid;
    place-items: center;
}
.pl-name {
    font-family: var(--f-display);
    font-weight: 800;
    font-size: clamp(0.5625rem, 0.9vw, 0.75rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.pl-num {
    position: absolute;
    top: 74%;
    left: 0; right: 0;
    text-align: center;
    font-family: var(--f-display);
    font-weight: 900;
    font-size: clamp(1rem, 2vw, 1.5rem);
    line-height: 1;
}
.placard--3 { background: #d22630; color: var(--white); outline-color: var(--white); }
.placard--51 { background: #f6d100; color: var(--ink); outline-color: var(--ink); }
.placard--61 { background: var(--white); color: var(--ink); outline-color: var(--ink); }
.placard--8 { background: linear-gradient(135deg, var(--white) 50%, var(--ink) 50%); color: var(--white); outline-color: var(--white); outline-offset: -8px; }
.placard--8 .pl-name { transform: translateY(0.9em); }
.placard { width: 64%; max-width: 132px; }
.placards p { font-size: 0.875rem; line-height: 1.35; margin-top: 12%; }
.placards p b { display: block; font-family: var(--f-display); font-size: 1rem; }

/* Food grade */
.food {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem 5rem;
}
.food h2 { font-size: var(--step-4); max-width: 14ch; }
.food-copy p { margin-top: 1.25rem; color: var(--ink-2); max-width: 50ch; }
.paperwork { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.paperwork li {
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: 1rem;
    padding-block: 1.1rem;
    border-bottom: 1px solid var(--rule);
}
.paperwork li::before {
    content: "";
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.25rem;
    border: 2px solid var(--green);
    background: linear-gradient(var(--green), var(--green)) center / 0.45rem 0.45rem no-repeat;
}
.paperwork b { display: block; font-family: var(--f-display); font-size: 1.0625rem; }
.paperwork span { color: var(--ink-2); font-size: 0.9375rem; }

/* Lanes */
.lanes-wrap { overflow-x: auto; }
.lanes {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
    min-width: 560px;
}
.lanes caption { text-align: left; color: var(--ink-3); font-size: 0.8125rem; padding-bottom: 0.75rem; caption-side: bottom; padding-top: 1rem; }
.lanes th {
    text-align: left;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-3);
    font-weight: 600;
    padding: 0 1rem 0.75rem 0;
    border-bottom: 2px solid var(--ink);
}
.lanes td {
    padding: 0.8rem 1rem 0.8rem 0;
    border-bottom: 1px solid var(--rule);
    vertical-align: middle;
}
.lanes td:first-child { font-weight: 600; white-space: nowrap; }
.lanes td.region { color: var(--ink-2); white-space: nowrap; }
.lanes td.mi { font-family: var(--f-mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; width: 5rem; }
.lanes td.bar { width: 45%; padding-right: 0; }
.lanes .bar span {
    display: block;
    height: 6px;
    background: var(--yellow);
    width: calc(var(--mi) / 450 * 100%);
    min-width: 4px;
}
.lanes tr.home td { color: var(--green); }
.lanes-note { margin-top: 1.5rem; color: var(--ink-2); }

/* Credentials */
.creds { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 3rem 5rem; }
.creds h2 { font-size: var(--step-4); max-width: 12ch; }
.creds-copy p { margin-top: 1.25rem; color: var(--ink-2); max-width: 44ch; }
.creds dl { margin: 0; border-top: 2px solid var(--ink); }
.creds dl > div {
    display: grid;
    grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
    gap: 0.25rem 2rem;
    padding-block: 1rem;
    border-bottom: 1px solid var(--rule);
}
.creds dt { font-weight: 600; }
.creds dd { margin: 0; color: var(--ink-2); }

/* FAQ */
.faq {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 5rem;
}
.faq h3 { font-size: var(--step-1); font-weight: 700; line-height: 1.25; }
.faq p { margin-top: 0.6rem; color: var(--ink-2); max-width: 56ch; }

/* ---------- Dispatch band ---------- */
.dispatch { background: var(--ink); color: var(--white); }
.dispatch .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 3rem 5rem;
    padding-block: 5rem;
    align-items: start;
}
.dispatch h2 { font-size: var(--step-4); max-width: 13ch; }
.dispatch p { margin-top: 1.25rem; color: #c3ccc6; max-width: 46ch; font-size: 1.0625rem; }
.dispatch-lines { display: grid; gap: 0; border-top: 1px solid var(--rule-dark); }
.dispatch-lines > * {
    display: grid;
    gap: 0.15rem;
    padding-block: 1.1rem;
    border-bottom: 1px solid var(--rule-dark);
    color: var(--white);
    text-decoration: none;
}
.dispatch-lines small { color: #a9b3ad; font-size: 0.8125rem; }
.dispatch-lines .big { font-family: var(--f-mono); font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); color: var(--yellow); font-weight: 600; line-height: 1.15; }
.dispatch-lines a:hover .big, .dispatch-lines a:hover span { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Footer ---------- */
.site-footer { background: #101813; color: #a9b3ad; font-size: 0.875rem; }
.site-footer .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
    padding-block: 3.5rem 2rem;
}
.site-footer img { width: 170px; margin-bottom: 1rem; }
.site-footer h4 { margin: 0 0 0.75rem; color: var(--white); font: 600 0.8125rem var(--f-text); letter-spacing: 0.06em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.site-footer a { color: #d9dfda; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-legal {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule-dark);
    font-size: 0.8125rem;
}

/* Mobile call bar */
.call-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero-top, .section-head, .classes, .food, .creds, .dispatch .wrap { grid-template-columns: minmax(0, 1fr); }
    .hero-top { gap: 2.5rem; padding-block: 2.75rem 2.25rem; }
    .haul li { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
    .faq { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .site-footer .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .section { padding-block: 4rem; }
}
@media (max-width: 600px) {
    .hero-photo img { aspect-ratio: 4 / 3; }
    .placards { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
    .snapshot dl > div { grid-template-columns: 7.5rem minmax(0, 1fr); }
    .creds dl > div { grid-template-columns: minmax(0, 1fr); }
    .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
    .call-bar {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 30;
        background: var(--yellow);
        color: var(--ink);
        font-weight: 700;
        text-decoration: none;
        padding: 0.85rem var(--gutter-r) calc(0.85rem + env(safe-area-inset-bottom, 0px)) var(--gutter);
    }
    body { padding-bottom: 3.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; }
}

.sr-hide {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Inner pages ---------- */
.page-intro { background: var(--white); }
.page-intro .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 2.5rem 4rem;
    align-items: end;
    padding-block: 3.25rem 3rem;
}
.page-intro--solo .wrap { grid-template-columns: minmax(0, 1fr); }
.crumbs { font-size: 0.8125rem; color: var(--ink-3); margin-bottom: 1.25rem; }
.crumbs a { color: var(--ink-3); }
.page-intro h1 { font-size: clamp(2.4rem, 1.7rem + 3vw, 4rem); max-width: 18ch; }
.page-intro .hero-lede { max-width: 56ch; }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--rule);
    display: grid;
    grid-template-columns: 1.1rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
}
.checklist li::before {
    content: "";
    width: 0.8rem;
    height: 0.8rem;
    margin-top: 0.35rem;
    border: 2px solid var(--ink-3);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 2rem 5rem;
}
.split h2 { font-size: var(--step-4); max-width: 14ch; }
.prose { display: grid; gap: 1.25rem; color: var(--ink-2); max-width: 62ch; font-size: 1.0625rem; }
.prose strong { color: var(--ink); }
.pullquote {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: var(--step-2);
    line-height: 1.25;
    color: var(--ink);
    border-left: 4px solid var(--yellow);
    padding-left: 1.25rem;
    margin: 0.5rem 0;
}

.rows { margin: 0; border-top: 2px solid var(--ink); }
.rows > div {
    display: grid;
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
    gap: 0.25rem 2rem;
    padding-block: 1rem;
    border-bottom: 1px solid var(--rule);
}
.rows dt { font-weight: 600; }
.rows dd { margin: 0; color: var(--ink-2); }

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    counter-reset: step;
}
.steps li { border-top: 2px solid var(--ink); padding-top: 1rem; counter-increment: step; }
.steps li::before {
    content: "Step " counter(step);
    display: block;
    font-family: var(--f-mono);
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--ink-3);
    margin-bottom: 0.6rem;
}
.steps h3 { font-size: var(--step-1); font-weight: 700; line-height: 1.25; }
.steps p { margin-top: 0.5rem; color: var(--ink-2); font-size: 0.9375rem; }

.specs { margin: 0; display: grid; gap: 0.15rem; font-size: 0.875rem; }
.specs > div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0.5rem; }
.specs dt { color: var(--ink-3); }
.specs dd { margin: 0; font-weight: 600; }

.contact-rows .big-line {
    font-family: var(--f-mono);
    font-weight: 600;
    font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem);
    color: var(--ink);
    text-decoration: none;
    overflow-wrap: anywhere;
}
.contact-rows a.big-line:hover { text-decoration: underline; }
.map {
    margin-top: 3rem;
    border: 1px solid var(--rule);
    background: var(--white);
}
.map iframe { display: block; width: 100%; height: 380px; border: 0; }

.placard--9 {
    background:
        linear-gradient(135deg, transparent 50%, var(--white) 50%),
        repeating-linear-gradient(45deg, var(--ink) 0 7px, var(--white) 7px 14px);
    color: var(--ink);
    outline-color: var(--ink);
}
.placard--9 .pl-name { transform: translateY(1.1em); }

@media (max-width: 960px) {
    .page-intro .wrap, .split { grid-template-columns: minmax(0, 1fr); }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .steps { grid-template-columns: minmax(0, 1fr); }
    .rows > div { grid-template-columns: minmax(0, 1fr); }
}
.contact-rows .big-line--text { font-family: var(--f-display); font-weight: 700; }
