:root {
    --navy: #0b2748;
    --turquoise: #008eaa;
    --red: #df1736;
    --text: #26384a;
    --muted: #526477;
    --light: #eef9fb;
    --white: #ffffff;
    --action: #006c82;
    --border: #dce9ee;
}

/* Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background-color: var(--white);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 5px;
}

h2 {
    margin-bottom: 24px;
    color: var(--navy);
    font-size: 32px;
    line-height: 1.2;
}

main > section:not(.hero) {
    max-width: 1200px;
    margin: 0 auto;
    padding: 72px 24px;
}

.section-intro {
    max-width: 600px;
    margin-bottom: 32px;
    color: var(--muted);
    font-size: 17px;
}

/* Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--white);
    border-bottom: 1px solid #e2ebef;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
}

.brand {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    white-space: nowrap;
}

.brand-perfect {
    color: var(--red);
}

.brand-wash {
    color: var(--turquoise);
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    display: inline-block;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    font-size: 15px;
    font-weight: 600;
}

.nav-links a:hover,
.nav-links a[aria-current="location"] {
    color: var(--action);
}

.nav-links a[aria-current="location"] {
    border-bottom-color: var(--action);
}

/* Buttons */
.button,
.contact-card a,
.location-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    max-width: 100%;
    padding: 12px 18px;
    border: 2px solid var(--action);
    border-radius: 8px;
    background-color: var(--action);
    color: var(--white);
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: background-color 0.2s, border-color 0.2s;
}

.button {
    padding-inline: 24px;
}

.button:hover,
.contact-card a:hover {
    border-color: var(--navy);
    background-color: var(--navy);
    color: var(--white);
}

.button:active,
.contact-card a:active,
.location-link:active {
    transform: translateY(1px);
}

.contact-card a::after {
    content: "↗";
    flex-shrink: 0;
}

/* Main banner */
.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 110px 24px;
    background-color: var(--light);
    text-align: center;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 280px;
    height: 280px;
    border: 2px solid #c1e8ef;
    border-radius: 50%;
}

.hero::before {
    top: -100px;
    left: -100px;
}

.hero::after {
    right: -100px;
    bottom: -120px;
    width: 360px;
    height: 360px;
}

.hero h1 {
    max-width: 780px;
    margin: 0 auto 20px;
    color: var(--navy);
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero p {
    max-width: 560px;
    margin: 0 auto 32px;
    font-size: 18px;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.service-card,
.location-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 16px;
}

.service-card {
    background-color: var(--white);
}

.service-number,
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
}

.service-number {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    background-color: var(--light);
    color: var(--action);
}

.service-card h3,
.step h3,
.contact-card h3 {
    margin-bottom: 12px;
    color: var(--navy);
    font-size: 21px;
    line-height: 1.3;
}

.service-card p {
    color: var(--muted);
    font-size: 15px;
}

/* How it works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    margin-bottom: 36px;
    list-style: none;
}

.step {
    padding-top: 24px;
    border-top: 2px solid #c1e8ef;
}

.step-number {
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    background-color: var(--navy);
    color: var(--white);
}

.step p {
    color: var(--muted);
    font-size: 16px;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.contact-card {
    min-width: 0;
    padding: 28px;
    border-radius: 16px;
    background-color: var(--light);
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-card a {
    margin-top: auto;
}

.contact-card p {
    margin-bottom: 16px;
    color: var(--muted);
    overflow-wrap: anywhere;
}

/* Locations */
.locations {
    margin-top: 48px;
}

.locations > h3 {
    margin-bottom: 24px;
    color: var(--navy);
    font-size: 26px;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.location-card {
    font-style: normal;
}

.location-card h4 {
    margin-bottom: 12px;
    color: var(--navy);
    font-size: 20px;
}

.location-card p {
    color: var(--muted);
}

.location-link {
    margin-top: 20px;
    background-color: transparent;
    color: var(--action);
}

.location-link:hover {
    background-color: var(--action);
    color: var(--white);
}

/* Footer */
.site-footer {
    padding: 48px 24px 24px;
    background-color: var(--navy);
    color: var(--white);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 32px;
    max-width: 1152px;
    margin: 0 auto;
}

.site-footer .brand-perfect {
    color: #ff8295;
}

.site-footer .brand-wash {
    color: #64d9ed;
}

.footer-tagline {
    margin-top: 8px;
    color: #c7d5e3;
    font-size: 14px;
}

.footer-content nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-content nav a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid #8ca6bf;
    border-radius: 8px;
}

.back-to-top:hover {
    background-color: #183b5e;
}

.footer-copyright {
    max-width: 1152px;
    margin: 32px auto 0;
    padding-top: 24px;
    border-top: 1px solid #36516c;
    color: #c7d5e3;
    font-size: 13px;
}

/* Responsive layouts */
@media (max-width: 1000px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    html {
        scroll-padding-top: 160px;
    }

    .navbar {
        flex-wrap: wrap;
        gap: 16px;
        padding: 16px 20px;
    }

    .brand {
        font-size: 24px;
    }

    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        gap: 12px 24px;
    }

    .hero {
        padding: 80px 20px;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    main > section:not(.hero) {
        padding: 48px 20px;
    }

    .steps-grid,
    .locations-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        gap: 28px;
    }
}

@media (max-width: 550px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .button,
    .contact-card a,
    .location-link {
        transition: none;
    }
}

.navbar > .brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.header-logo {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
}

@media (max-width: 700px) {
    .header-logo {
        width: 180px;
    }
}

.contact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}