:root {
    --hw-red: #ad1a24;
    --hw-red-dark: #630f15;
    --hw-dark: #23262d;
    --hw-light: #ffffff;
    --hw-muted: #f7f7f7;
    --hw-text: #2c2c2c;
}

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

body {
    font-family: 'Oswald', sans-serif;
    color: var(--hw-text);
    background-color: var(--hw-dark);
}

a {
    color: var(--hw-red);
}

a:hover,
a:focus {
    color: var(--hw-red-dark);
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    padding: 0.5rem 1rem;
    background: var(--hw-red);
    color: var(--hw-light);
    z-index: 10000;
}

.skip-link:focus {
    left: 8px;
}

.site-header {
    transition: box-shadow 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.site-header.is-scrolled {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.topbar {
    background: var(--hw-dark);
    color: var(--hw-light);
    padding: 0.35rem 0;
}

.topbar__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.topbar__link {
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
}

.topbar__link:hover,
.topbar__link:focus {
    color: var(--hw-red);
}

.main-nav {
    background: var(--hw-red);
}

.navbar-nav .nav-link {
    color: var(--hw-light);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--hw-muted);
}

.brand-logo {
    max-height: 56px;
    width: auto;
}

main {
    background: var(--hw-light);
}

.section {
    padding: 4rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.section:last-of-type {
    border-bottom: none;
}

.section-light {
    background: var(--hw-muted);
}

.hero-section {
    padding-top: 8rem;
}

.hero-section h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    color: var(--hw-red);
}

.hero-section .lead {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
}

.hero-image img {
    width: 100%;
    max-width: 720px;
}

.service-card {
    background: var(--hw-light);
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 2rem 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.service-card__icon {
    width: 120px;
    height: auto;
}

.service-card__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--hw-red);
}

.service-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.service-card__list li {
    margin-bottom: 0.75rem;
}

.mail-in-box {
    background: var(--hw-red);
    color: var(--hw-light);
    border-radius: 0.75rem;
    padding: 2rem;
    height: 100%;
}

.mail-in-box h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.mail-in-steps {
    counter-reset: steps;
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.mail-in-steps li {
    position: relative;
    padding-left: 3.5rem;
    margin-bottom: 1.5rem;
}

.mail-in-steps li::before {
    counter-increment: steps;
    content: counter(steps);
    position: absolute;
    left: 0;
    top: 0.15rem;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--hw-red);
    color: var(--hw-light);
    display: grid;
    place-items: center;
    font-weight: 600;
}

.contact-details address {
    font-style: normal;
    margin-bottom: 1rem;
}

.contact-block + .contact-block {
    margin-top: 1rem;
}

.gallery-item {
    background: var(--hw-light);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
}

.gallery-item figcaption {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.site-footer {
    background: var(--hw-red);
    color: var(--hw-light);
    padding: 1.5rem 0;
}

.site-footer a {
    color: var(--hw-light);
}

.site-footer a:hover,
.site-footer a:focus {
    color: var(--hw-muted);
}

.modal-body p:last-child {
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .topbar__actions {
        justify-content: flex-end;
        gap: 0.5rem;
    }

    .main-nav {
        padding: 0.5rem 0;
    }

    .hero-section {
        padding-top: 7rem;
    }

    .mail-in-box {
        text-align: center;
    }

    .mail-in-steps li {
        padding-left: 3rem;
    }
}

