:root {
    --ink: #4f5655;
    --heading: #14261c;
    --accent: #30c7b5;
    --paper: #ffffff;
    --mist: #f3f6f3;
    --content: 1140px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

.skip {
    position: absolute;
    left: 12px;
    top: -40px;
    background: var(--heading);
    color: #fff;
    padding: 8px 12px;
    z-index: 50;
}

.skip:focus {
    top: 12px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.site-header {
    position: relative;
    z-index: 20;
    background: var(--paper);
}

.has-hero .site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 28px;
}

.logo img {
    display: block;
    width: 220px;
    height: auto;
    background: #fff;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav ul {
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    color: var(--ink);
    text-decoration: none;
    font-size: 16px;
}

.site-nav a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 6px;
}

.has-hero .site-nav a {
    color: #fff;
}

.phone {
    display: inline-block;
    padding: 12px 22px;
    border: 1px solid var(--accent);
    border-radius: 4px;
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
}

.has-hero .phone {
    border-color: var(--mist);
    color: var(--mist);
    padding: 15px 25px;
}

.phone:hover,
.site-nav a:hover {
    color: var(--accent);
}

.has-hero .phone:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.nav-toggle {
    display: none;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle-bars::before {
    top: -6px;
}

.nav-toggle-bars::after {
    top: 6px;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    background-position: center;
    background-size: cover;
    color: #fff;
    text-align: center;
}

.hero-home {
    min-height: 760px;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.28)), url("../images/fleet.jpg");
}

.hero-pallet {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.45)), url("../images/pallet-hero.png");
}

.hero-contact {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.4)), url("../images/fleet-wide.jpg");
}

.hero-inner {
    width: min(920px, calc(100% - 48px));
    padding: 140px 0 72px;
}

.hero-home .welcome {
    margin: 0;
    font-size: 52px;
    font-weight: 400;
    line-height: 1.1;
}

.hero-home h1,
.hero h1 {
    margin: 0;
    color: #fff;
    font-weight: 400;
    line-height: 1.05;
}

.hero-home h1 {
    font-size: 68px;
}

.hero h1 {
    font-size: 76px;
}

.hero p {
    margin: 22px auto 0;
    max-width: 860px;
    color: #fff;
    font-size: 16px;
    line-height: 1.7;
}

.band {
    padding: 72px 24px 88px;
}

.wrap {
    max-width: var(--content);
    margin: 0 auto;
}

.intro {
    margin: 0;
}

h2 {
    margin: 48px 0 0;
    color: var(--heading);
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
}

.center {
    text-align: center;
}

.rule {
    width: 90px;
    height: 3px;
    margin: 18px auto 36px;
    background: var(--accent);
    border: 0;
}

.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service h3 {
    margin: 0 0 12px;
    color: var(--heading);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.35;
    text-transform: uppercase;
}

.service p {
    margin: 0 0 22px;
}

.service img {
    display: block;
    width: 100%;
}

.page-copy h2 {
    margin-top: 0;
    font-size: 30px;
    text-align: left;
}

.page-copy p {
    margin: 0 0 18px;
}

.figure {
    margin: 28px 0 0;
}

.figure img {
    display: block;
    width: 100%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    padding: 36px 24px 80px;
}

.gallery-grid img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-block h2 {
    margin: 0 0 28px;
    font-size: 18px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-list {
    display: grid;
    gap: 22px;
    margin: 0;
}

.contact-list div {
    margin: 0;
}

.contact-list dt {
    margin: 0;
    color: var(--heading);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
}

.contact-list dd {
    margin: 4px 0 0;
}

.contact-list a {
    color: var(--ink);
    text-decoration: none;
}

.contact-list a:hover {
    color: var(--accent);
}

.social {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 28px;
    padding: 0;
    list-style: none;
}

.social a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    text-decoration: none;
}

.social-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex: 0 0 auto;
}

.social a:hover {
    text-decoration: underline;
}

.site-footer {
    padding: 28px 24px 36px;
    background: var(--paper);
    color: var(--heading);
    text-align: center;
}

.footer-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}

.footer-nav a {
    color: var(--heading);
    text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
    color: var(--accent);
}

.site-footer p {
    margin: 0;
}

@media (max-width: 900px) {
    .nav-toggle {
        display: grid;
        place-items: center;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 16px;
        left: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 18px 20px 20px;
        background: #fff;
        box-shadow: 0 12px 30px rgba(20, 38, 28, 0.15);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav ul {
        flex-direction: column;
        gap: 12px;
    }

    .has-hero .site-nav a,
    .site-nav a {
        color: var(--heading);
    }

    .phone,
    .has-hero .phone {
        align-self: flex-start;
        border-color: var(--accent);
        color: var(--accent);
        padding: 10px 18px;
    }

    .hero-home {
        min-height: 560px;
    }

    .hero-home .welcome {
        font-size: 32px;
    }

    .hero-home h1,
    .hero h1 {
        font-size: 42px;
    }

    .services,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 32px;
    }
}
