:root {
    --brand-red: #b71c1c;
    --brand-red-dark: #8e1515;
    --brand-coral: #e57373;
    --brand-gray: #454545;
}

html {
    scroll-padding-top: 6rem;
}

body {
    min-width: 320px;
}

.skip-link {
    position: fixed;
    top: .5rem;
    left: .5rem;
    z-index: 100;
    padding: .75rem 1rem;
    color: #fff;
    background: var(--brand-red);
    border-radius: .5rem;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.hero-bg {
    background-image: linear-gradient(rgba(0, 0, 0, .52), rgba(0, 0, 0, .52)), url('../assets/images/hero-960.webp');
    background-size: cover;
    background-position: center;
}

.hero-height {
    min-height: 100vh;
    min-height: 100svh;
}

.hero-button {
    background: var(--brand-red);
}

.hero-button:hover,
.hero-button:focus-visible,
.bg-logop-red:hover,
.bg-logop-red:focus-visible {
    background: var(--brand-red-dark);
}

.section-anchor {
    scroll-margin-top: 5.5rem;
}

.service-card {
    transition: transform .2s ease, box-shadow .2s ease;
}

.service-card:hover {
    transform: translateY(-.2rem);
    box-shadow: 0 12px 24px rgb(0 0 0 / .09);
}

.icon,
.map-icon {
    width: 1.5rem;
    height: 1.5rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-spaced {
    flex: 0 0 auto;
    margin-right: .5rem;
}

.map-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    color: var(--brand-gray);
}

.mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: .5rem;
}

.field-label {
    display: block;
    margin-bottom: .35rem;
    font-weight: 700;
    color: var(--brand-gray);
}

.field-optional,
.form-hint,
.status-note {
    font-size: .8rem;
    font-weight: 400;
    color: #4b5563;
}

.form-hint,
.status-note {
    margin-top: .4rem;
    line-height: 1.45;
}

.honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

.form-message {
    padding: 1rem;
    border-radius: .75rem;
    font-weight: 700;
}

.form-message-error {
    color: #7f1d1d;
    background: #fef2f2;
    border: 2px solid #b91c1c;
}

.document-link:hover,
.document-link:focus-visible {
    color: #fff;
    background: var(--brand-red);
}

.phone-btn:hover,
.phone-btn:focus-visible {
    color: #fff;
    background: var(--brand-red);
}

.phone-link[aria-disabled="true"] {
    opacity: .55;
    cursor: not-allowed;
    filter: grayscale(1);
    text-decoration: none;
}

.phone-link[aria-disabled="true"]:hover {
    color: inherit;
    background: transparent;
}

.footer-heading {
    color: #ffb1b1;
}

.footer-link:hover,
.footer-link:focus-visible {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: .2em;
}

.footer-copyright {
    color: #d1d5db;
}

.back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    color: #fff;
    background: var(--brand-red);
    border-radius: 9999px;
    box-shadow: 0 10px 25px rgb(0 0 0 / .25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(.5rem);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

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

:where(a, button, input, textarea):focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 3px;
}

input:focus-visible,
textarea:focus-visible {
    border-color: var(--brand-red);
}

@media (min-width: 768px) {
    .hero-bg {
        background-image: linear-gradient(rgba(0, 0, 0, .52), rgba(0, 0, 0, .52)), url('../assets/images/hero-1600.webp');
    }

    .mobile-menu-button {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

.legal-body {
    background: #f9fafb;
}

.legal-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.legal-nav,
.legal-main {
    width: min(100% - 2rem, 56rem);
    margin-inline: auto;
}

.legal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1rem;
}

.legal-main {
    margin-block: 2rem 4rem;
    padding: clamp(1.25rem, 4vw, 3rem);
    color: #374151;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 8px 30px rgb(0 0 0 / .07);
}

.legal-main h1 {
    margin-bottom: 1.5rem;
    color: var(--brand-red);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
}

.legal-main h2 {
    margin-top: 2rem;
    margin-bottom: .6rem;
    color: var(--brand-gray);
    font-size: 1.35rem;
    font-weight: 800;
}

.legal-main p,
.legal-main ul {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-main ul {
    padding-left: 1.25rem;
    list-style: disc;
}

.legal-main a {
    color: var(--brand-red);
    text-decoration: underline;
    text-underline-offset: .15em;
}

.legal-meta {
    color: #6b7280;
    font-size: .875rem;
}
