/* Public site usability cleanup. Loaded after the legacy stylesheet. */
:root {
    --radius: 18px;
}

body {
    background: #f8fafc;
    color: #111827;
}

.nav {
    background: rgba(255, 255, 255, .96);
}

.nav-inner {
    height: auto;
    min-height: 72px;
}

.brand {
    min-width: max-content;
}

nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: #334155;
}

nav a:hover {
    color: #b4232a;
}

.nav-cta {
    white-space: nowrap;
}

.btn {
    border-radius: 10px;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.btn.primary {
    background: #b4232a;
}

.hero {
    padding: 72px 0 58px;
    background: linear-gradient(135deg, #fff 0%, #fff6f6 55%, #f8fafc 100%);
    border-bottom: 1px solid var(--line);
}

.hero-grid {
    gap: 44px;
}

.hero-copy h1 {
    font-size: clamp(40px, 6vw, 68px);
    letter-spacing: -.035em;
}

.hero-card {
    min-height: auto;
    border-radius: 24px;
    background: #111827;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .12);
}

.hero-card .eyebrow,
.contact .eyebrow {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.hero-card h2 {
    font-size: 28px;
    line-height: 1.18;
    margin: 20px 0;
}

.quick-links {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.quick-links a {
    display: block;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
}

.quick-links a:hover {
    background: rgba(255, 255, 255, .1);
}

.quick-links strong {
    display: block;
    font-size: 16px;
}

.quick-links span {
    display: block;
    margin-top: 4px;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.55;
}

.section-compact {
    padding: 64px 0;
}

.service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
    border-radius: 16px;
    box-shadow: none;
}

.service-card h3 {
    font-size: 19px;
}

.clean-split {
    align-items: start;
}

.clean-split h2 {
    font-size: 36px;
    line-height: 1.15;
    letter-spacing: -.03em;
    margin: 14px 0 12px;
}

.clean-split p {
    color: #64748b;
    margin: 0;
    font-size: 16px;
}

.clean-list {
    margin: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px 24px;
}

.clean-list li {
    border-top: 0;
    border-bottom: 1px solid #edf0f4;
}

.clean-list li:last-child {
    border-bottom: 0;
}

.contact {
    border-radius: 24px;
    background: #111827;
    align-items: center;
}

.contact h2 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -.03em;
    margin: 18px 0 10px;
}

.contact-details .btn {
    width: 100%;
}

.footer-inner {
    align-items: center;
}

.footer-inner span {
    display: block;
    margin-top: 3px;
}

@media (max-width: 900px) {
    .nav-inner {
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .nav-cta {
        display: none;
    }

    .desktop-nav {
        order: 3;
        width: 100%;
    }

    .desktop-nav ul {
        display: flex;
        gap: 8px;
        overflow: auto;
        padding-bottom: 2px;
    }

    .desktop-nav a {
        padding: 0 10px;
        background: #f8fafc;
        border: 1px solid #edf0f4;
        border-radius: 999px;
    }

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 50px 0 44px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .section-compact {
        padding: 48px 0;
    }

    .clean-list {
        padding: 14px 18px;
    }

    .contact {
        padding: 24px;
    }

    .footer-inner {
        align-items: flex-start;
    }
}
