* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: clamp(0.9rem, 0.85rem + 0.6vw, 1.25rem);
}

body {
    margin: 0;
    font-family: system-ui, sans-serif;
    line-height: 1.5;
    color: #222;
}

header {
    background: #0877D3;
    color: #fff;
    padding: 1rem;
    line-height: 1.6;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.header-brand {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

header h1 {
    margin: 0;
    font-size: clamp(1rem, 1.2rem + 1.5vw, 2.5rem);
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

nav a {
    color: #fff;
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

a.phone {
    font-weight: bold;
    color: #fff;
    white-space: nowrap;
    text-decoration: none;
}

a.phone:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .header-brand {
        flex-direction: column;
        align-items: flex-start;
    }

    a.phone {
        font-size: 1.1rem;
    }

    .above-fold {
        height: calc(100dvh - 9rem);
    }

    main section {
        scroll-margin-top: 9rem;
    }
}

.above-fold {
    height: calc(100dvh - 5.5rem);
    display: flex;
    flex-direction: column;
}

.slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #043F70;
}

    .slideshow img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0;
        animation: heroFade 12s infinite;
    }

        .slideshow img:nth-child(1) {
            animation-delay: 0s;
        }

        .slideshow img:nth-child(2) {
            animation-delay: 4s;
        }

        .slideshow img:nth-child(3) {
            animation-delay: 8s;
        }

@keyframes heroFade {
    0% {
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    30% {
        opacity: 1;
    }

    35% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .slideshow img {
        animation: none;
        opacity: 0;
    }

        .slideshow img:nth-child(1) {
            opacity: 1;
        }
}

a {
    text-decoration: none;
    color: #222;
}

    a:hover {
        text-decoration: underline;
    }

main {
    background: #fff;
    max-width: 56.25rem;
    margin: 0 auto;
    padding: 1.5rem;
    text-align: center;
}

    main section {
        padding: 1rem;
        scroll-margin-top: 6rem;
    }

section h2 {
    margin-top: 0;
    font-size: clamp(1.25rem, 1rem + 0.5vw, 2rem);
}

footer {
    background: #f3f3f3;
    width: 100%;
    padding: 1.5rem 1rem;
}

    footer .footer-inner {
        max-width: 56.25rem;
        margin: 0 auto;
        text-align: left;
        line-height: 1.6;
    }

    footer h2 {
        font-size: clamp(1.25rem, 1rem + 0.5vw, 2rem);
        margin-top: 0;
    }

    footer p {
        margin: 0.25rem 0;
    }

    footer a {
        color: #0877D3;
    }
