/* Cranstons Transport — rebuilt from the Squarespace site (2026). */

@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/source-sans-3-latin-900-normal.woff2") format("woff2"); }

:root {
    --blue: #005daa;
    --blue-dark: #004a88;
    --grey: #747476;
    --grey-line: #747476;
    --ink: #1f1f1f;
    --white: #fff;
    --container: 956px;
    --header-h: 108px;
    --font: "Source Sans 3", "Myriad Pro", Myriad, "Segoe UI", system-ui, sans-serif;
}

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

html {
    background: var(--blue); /* footer colour runs to the bottom of short pages */
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font);
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: .5px;
    color: var(--grey);
    background: var(--white);
}

img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; padding: 8px 16px; background: var(--white); }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--white);
}
.header-inner {
    display: flex; align-items: center; gap: 24px;
    height: var(--header-h);
    padding: 0 20px;
}
.logo { flex: 0 0 auto; display: block; line-height: 0; }
.logo img { width: 300px; height: auto; }

.site-nav { margin-left: auto; }
.site-nav > ul { display: flex; list-style: none; margin: 0; padding: 0; }
.site-nav li { position: relative; }
.site-nav a {
    display: block; padding: 13.5px 18px;
    font-size: 18px; letter-spacing: 2px; text-transform: uppercase; text-decoration: none;
    color: var(--grey);
}
.site-nav a:hover, .site-nav a.active { color: var(--blue); }

.subnav {
    position: absolute; left: 0; top: 100%;
    min-width: 290px; margin: 0; padding: 9px 0; list-style: none;
    background: var(--white); box-shadow: 0 6px 18px rgb(0 0 0 / .08);
    opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: opacity .15s, transform .15s, visibility .15s;
}
.subnav a { padding: 9px 27px; font-size: 16px; }
.has-sub:hover > .subnav, .has-sub:focus-within > .subnav { opacity: 1; visibility: visible; transform: none; }

.header-phone {
    flex: 0 0 auto; margin-left: 40px;
    font-size: 44px; font-weight: 900; letter-spacing: 2px; white-space: nowrap;
    color: var(--grey); text-decoration: none;
}
.header-phone:hover { color: var(--blue); }

.nav-toggle { display: none; }

/* ---------- Main + interior pages ---------- */

.site-main { flex: 1 0 auto; }

.content-page {
    display: grid;
    grid-template-columns: 191px minmax(0, 1fr) 334px;
    column-gap: 49px;
    max-width: calc(var(--container) + 40px);
    margin: 0 auto;
    padding: 16px 20px 40px;
    align-items: start;
}
.content-page.is-wide { grid-template-columns: 191px minmax(0, 1fr); }
.content-page.no-section { grid-template-columns: minmax(0, 1fr); }

.section-nav ul { list-style: none; margin: 0; padding: 0; }
.section-nav li { padding-bottom: 8px; margin-bottom: 15px; border-bottom: 1px solid var(--grey-line); }
.section-nav a { font-size: 16px; text-decoration: none; color: var(--grey); }
.section-nav a:hover, .section-nav a.active { color: var(--blue); }

.content-body > :first-child, .content-body > .visually-hidden + * { margin-top: 0; }
.content-body p, .content-body ul { margin: 0 0 18px; }
.content-body ul { padding-left: 1.2em; }
.content-body h2 { font-size: 30px; font-weight: 400; color: var(--blue); margin: 36px 0 14px; }
.content-image { margin: 0; }
.content-image img { display: block; width: 334px; aspect-ratio: 1; object-fit: cover; }

.back-link { font-size: 16px; }
.back-link a { color: var(--grey); text-decoration: none; }
.back-link a:hover { color: var(--blue); }
.person-name { font-size: 32px; font-weight: 400; color: var(--blue); margin: 0 0 10px; }

/* Our Team */
.team-list { list-style: none; margin: 0; padding: 0 !important; }
.team-member { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; margin-bottom: 30px; }
.team-photo img { display: block; width: 260px; aspect-ratio: 1; object-fit: cover; }
.team-text h2 { margin: 0 0 12px; font-size: 20px; font-weight: 700; letter-spacing: 1px; }
.team-text h2 a { text-decoration: none; }
.team-text p { font-size: 14px; line-height: 1.45; margin: 0 0 12px; }
.team-role { font-weight: 700; font-size: 14px; }

/* Our Fleet gallery */
.gallery { list-style: none; margin: 30px 0 0; padding: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 60px 60px; }
.gallery a { display: block; line-height: 0; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: opacity .2s; }
.gallery a:hover img { opacity: .85; }

.lightbox {
    position: fixed; inset: 0; z-index: 200;
    display: grid; place-items: center;
    background: rgb(255 255 255 / .96);
    padding: 60px 70px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); width: auto; height: auto; box-shadow: 0 10px 40px rgb(0 0 0 / .15); }
.lightbox button {
    position: absolute; border: 0; background: none; cursor: pointer;
    color: var(--ink); font: 300 44px/1 var(--font); padding: 10px 16px;
}
.lightbox .lb-close { top: 10px; right: 14px; font-size: 40px; }
.lightbox .lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lightbox button:hover { color: var(--blue); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 461px minmax(0, 1fr); gap: 17px 30px; }
.contact-lines { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0 0 24px; }
.contact-lines dt { font-weight: 700; }
.contact-lines dd { margin: 0; }
.contact-heading { font-size: 18px !important; font-weight: 400 !important; color: var(--grey) !important; margin: 0 0 18px !important; }
.contact-side { display: flex; flex-direction: column; align-items: center; gap: 17px; }
.contact-map { width: 100%; height: 408px; border: 0; }

/* Forms */
.field { margin-bottom: 16px; flex: 1; }
.field label, .field-row legend { display: block; font-size: 12px; margin-bottom: 4px; color: var(--grey); padding: 0; }
.field-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.field-group legend { font-size: 14px; margin-bottom: 6px; padding: 0; color: var(--grey); }
.field-row { display: flex; gap: 14px; }
.req { color: #999; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input:not([type]), textarea {
    width: 100%; padding: 10px; font: inherit; font-size: 18px; letter-spacing: normal; color: #000;
    background: #fafafa; border: 1px solid #a9a9a9; border-radius: 0;
}
input:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.input-validation-error { border-color: #c0392b !important; }
.field-error { display: block; font-size: 14px; color: #c0392b; margin-top: 4px; }
.field-error:empty { display: none; }
.field-check { display: flex; align-items: center; gap: 8px; }
.field-check label { margin: 0; font-size: 16px; }
.field-check input { width: 18px; height: 18px; }
.form-error { padding: 12px 14px; background: #fdecea; color: #8a1f11; }
.form-success { padding: 12px 14px; background: #e8f3ec; color: #1d5e33; }

.button {
    display: inline-block; border: 0; cursor: pointer;
    padding: 18px 45px; font: inherit; font-size: 18px; letter-spacing: 3px; text-transform: uppercase;
    color: var(--white); background: var(--blue);
}
.button:hover { background: var(--blue-dark); }
.button-dark { background: #1f1f1f; }
.button-dark:hover { background: #000; }

/* Error page */
.error-page { padding: 40px 0; }
.error-page h1 { font-size: 32px; font-weight: 400; color: var(--blue); margin: 0 0 16px; }

/* ---------- Tagline + footer ---------- */

.tagline {
    background: var(--white);
    padding: 24px 20px 20px;
    text-align: center;
    font-size: clamp(22px, 3vw, 42px); font-weight: 400; letter-spacing: .5px;
    text-transform: uppercase; color: var(--blue);
}
.tagline span { display: inline-block; margin: 0 .5em; }

.site-footer { background: var(--blue); color: var(--white); }
.footer-inner {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap;
    max-width: calc(var(--container) + 40px); margin: 0 auto; padding: 30px 20px 36px;
}
.footer-info p { margin: 0 0 7px; }
.footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-social { line-height: 0; }
.signout { margin-top: 14px; font-size: 14px; display: flex; gap: 10px; align-items: baseline; opacity: .85; }
.signout button { background: none; border: 1px solid rgb(255 255 255 / .6); color: var(--white); font: inherit; padding: 2px 10px; cursor: pointer; }
.signout button:hover { background: rgb(255 255 255 / .12); }

/* ---------- Home ---------- */

.hero { position: relative; height: clamp(360px, 42vw, 600px); overflow: hidden; background: #0b1a3a; }
.hero-slides img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transition: opacity 1.2s ease;
}
.hero-slides img.is-active { opacity: 1; }
.hero-text {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; justify-content: center;
    padding: 60px max(32px, calc((100% - 1020px) / 2)) 0;
}
.hero-word {
    margin: 0; font-size: clamp(38px, 5vw, 70px); line-height: 1.1; font-weight: 700;
    text-transform: uppercase; color: var(--blue); transition: color .6s;
}
.hero-word.is-active { color: var(--white); }
.hero-sub { margin: 4px 0 0; font-size: clamp(20px, 2.3vw, 32px); font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: var(--blue); }

.home-services {
    margin-top: 10px; min-height: 471px;
    display: grid; place-items: center; padding: 40px 20px;
    background: url("../images/home/trees-background.jpg") center / cover no-repeat;
}
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 317px)); gap: 20px; justify-content: center; width: 100%; }
.tiles a { display: block; line-height: 0; transition: transform .2s; }
.tiles a:hover { transform: translateY(-4px); }
.tiles img { width: 100%; }

.home-metrics {
    min-height: 454px; display: grid; place-items: center; padding: 40px 20px;
    background: #0b1a3a url("../images/home/metrics-background.jpg") center / cover no-repeat;
}
.home-metrics ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.home-metrics li { margin: 20px 0; font-size: clamp(20px, 2.3vw, 32px); font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: var(--white); }

.home-trucks { margin-top: 10px; line-height: 0; }
.home-trucks img { width: 100%; height: clamp(160px, 18vw, 260px); object-fit: cover; }

.home-values { margin-top: 10px; }
.values-banner {
    margin: 0; min-height: 215px; display: grid; place-items: center; padding: 30px 20px; text-align: center;
    background: var(--blue) url("../images/home/sky-banner.jpg") center / cover no-repeat;
    font-size: clamp(22px, 3vw, 42.67px); font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: var(--white);
}
.values-icons { display: grid; grid-template-columns: repeat(3, minmax(0, 317px)); gap: 20px; justify-content: center; margin: 0 auto; padding: 40px 20px 20px; }
.values-icons img { width: 100%; }

/* ---------- Sign-in page ---------- */

.auth-main { flex: 1 0 auto; display: grid; place-items: center; padding: 60px 20px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-logo { display: block; width: 300px; margin: 0 auto 32px; }
.auth-card h1 { font-size: 26px; font-weight: 400; color: var(--blue); margin: 0 0 20px; text-align: center; letter-spacing: 1px; text-transform: uppercase; }
.auth-card .field label { font-size: 14px; }
.auth-card .button { width: 100%; margin-top: 8px; }

/* ---------- Responsive ---------- */

@media (max-width: 1240px) {
    .header-phone { font-size: 30px; margin-left: 12px; }
    .site-nav a { padding: 13.5px 12px; }
}

@media (max-width: 1000px) {
    :root { --header-h: 76px; }
    .logo img { width: 210px; }
    .header-phone { margin-left: auto; font-size: 24px; letter-spacing: 1px; }

    .nav-toggle {
        display: block; order: 3; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px;
    }
    .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
        display: block; width: 24px; height: 2px; background: var(--grey); content: ""; position: relative; transition: transform .2s;
    }
    .nav-toggle-bars::before { position: absolute; top: -7px; }
    .nav-toggle-bars::after { position: absolute; top: 7px; }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

    .site-nav {
        position: absolute; left: 0; right: 0; top: var(--header-h);
        background: var(--white); border-top: 1px solid #eee; box-shadow: 0 10px 20px rgb(0 0 0 / .08);
        max-height: calc(100vh - var(--header-h)); overflow: auto;
        display: none;
    }
    .site-nav.is-open { display: block; }
    .site-nav > ul { flex-direction: column; padding: 8px 0 16px; }
    .subnav { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 8px 16px; }
    .subnav a { padding: 8px 20px; text-transform: none; letter-spacing: .5px; }

    .content-page, .content-page.is-wide { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
    .section-nav { display: none; }
    .content-image img { width: 100%; max-width: 420px; }
    .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
    body { font-size: 17px; }
    .logo img { width: 170px; }
    .header-phone { font-size: 0; }
    .header-phone::before { content: "Call"; font-size: 15px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--blue); }
    .team-member { grid-template-columns: minmax(0, 1fr); }
    .tiles, .values-icons { grid-template-columns: minmax(0, 317px); }
    .gallery { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .field-row { flex-direction: column; gap: 0; }
    .footer-links { align-items: flex-start; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
