:root {
    --navy: #12100b;
    --navy-strong: #070706;
    --cyan: #d5a524;
    --cyan-dark: #a87912;
    --ink: #18150f;
    --muted: #665f50;
    --line: #e3d4af;
    --panel: #fffaf0;
    --mist: #fbf4e4;
    --amber: #f4d06f;
    --success: #147a52;
    --danger: #b42318;
    --shadow: 0 18px 45px rgba(18, 16, 11, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--ink);
    background: #fffaf0;
}

body {
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(242, 184, 75, 0.75);
    outline-offset: 3px;
}

img {
    display: block;
    max-width: 100%;
}

h1:focus {
    outline: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(7, 7, 6, 0.96);
    border-bottom: 1px solid rgba(213, 165, 36, 0.32);
    backdrop-filter: blur(16px);
}

.header-strip {
    width: min(1200px, calc(100% - 32px));
    min-height: 78px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    color: var(--navy);
    min-width: max-content;
}

.brand-logo {
    width: 208px;
    height: 64px;
    padding: 5px 8px;
    object-fit: contain;
    object-position: left center;
    background: #ffffff;
    border: 1px solid rgba(213, 165, 36, 0.55);
    border-radius: 6px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

.header-contact {
    display: flex;
    justify-content: center;
    gap: 18px;
    color: var(--amber);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #fff4ce;
    font-size: 0.88rem;
    font-weight: 700;
}

.primary-nav a,
.header-contact a {
    white-space: nowrap;
}

.primary-nav a:hover,
.header-contact a:hover,
.footer-links a:hover {
    color: var(--amber);
}

.hero {
    position: relative;
    min-height: 610px;
    display: grid;
    align-items: center;
    isolation: isolate;
    background:
        linear-gradient(90deg, rgba(7, 7, 6, 0.95) 0%, rgba(18, 16, 11, 0.88) 38%, rgba(168, 121, 18, 0.2) 100%),
        url("/assets/hero-via-sul.png") right center / cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(255, 250, 240, 0) 72%, rgba(255, 250, 240, 0.96) 100%);
}

.hero-content {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 86px 0 118px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--cyan);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 700px;
    margin: 0;
    color: #ffffff;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.32);
    font-size: clamp(2.45rem, 6vw, 5rem);
    line-height: 0.98;
    font-style: italic;
    font-weight: 950;
    text-transform: uppercase;
    text-wrap: balance;
}

.hero-copy {
    max-width: 560px;
    margin: 24px 0 0;
    color: #fff5d2;
    font-size: 1.12rem;
    line-height: 1.65;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 2px solid transparent;
    border-radius: 6px;
    font-size: 0.86rem;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    color: #12100b;
    background: linear-gradient(180deg, #f4d06f 0%, #d5a524 100%);
    box-shadow: 0 14px 28px rgba(168, 121, 18, 0.28);
}

.button-primary:hover {
    background: linear-gradient(180deg, #ffe29b 0%, #c9961c 100%);
}

.button-ghost {
    color: #fff4ce;
    background: rgba(18, 16, 11, 0.74);
    border-color: rgba(244, 208, 111, 0.72);
}

.button-light {
    color: #12100b;
    background: #fff4ce;
    border-color: rgba(244, 208, 111, 0.9);
}

.button:disabled {
    cursor: wait;
    opacity: 0.7;
    transform: none;
}

.pillars,
.about-section,
.coverage-section,
.quote-section,
.site-footer {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    padding: 72px 0 58px;
}

.pillars article {
    text-align: center;
    padding: 16px 24px;
}

.pillar-icon {
    width: 66px;
    height: 66px;
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
    border: 2px solid var(--cyan);
    border-radius: 50%;
    color: var(--navy);
    background: radial-gradient(circle at top, #fff7da 0%, #f4d06f 100%);
    font-weight: 950;
}

.pillars h2,
.coverage-grid h3 {
    margin: 0 0 12px;
    color: var(--cyan-dark);
    font-size: 1.06rem;
    font-weight: 900;
    text-transform: uppercase;
}

.pillars p,
.coverage-grid p,
.about-copy p,
.quote-copy p,
.quote-copy li {
    color: var(--muted);
    line-height: 1.65;
}

.about-section {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 44px;
    align-items: center;
    padding: 46px 0 88px;
}

.about-image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.about-copy h2,
.section-heading h2,
.quote-copy h2 {
    margin: 0 0 18px;
    color: var(--navy);
    font-size: clamp(1.9rem, 3vw, 3rem);
    line-height: 1.08;
    font-weight: 900;
    text-wrap: balance;
}

.about-stats {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--cyan-dark);
}

.about-stats strong {
    font-size: 2.4rem;
    line-height: 1;
}

.about-stats span {
    max-width: 310px;
    color: var(--muted);
    font-weight: 700;
}

.coverage-section {
    padding: 82px 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 30px;
}

.coverage-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.coverage-grid article {
    min-height: 214px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 10px 28px rgba(18, 16, 11, 0.08);
}

.cta-band {
    padding: 92px 18px;
    text-align: center;
    background: linear-gradient(100deg, #070706 0%, #3c2c09 48%, #d5a524 100%);
}

.cta-band h2 {
    margin: 0 0 28px;
    color: #ffffff;
    font-size: clamp(2rem, 4.6vw, 4rem);
    line-height: 1;
    font-style: italic;
    font-weight: 950;
    text-transform: uppercase;
}

.quote-section {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: 42px;
    align-items: start;
    padding: 88px 0;
}

.quote-copy {
    position: sticky;
    top: 110px;
}

.quote-copy ul {
    padding-left: 20px;
    margin: 22px 0 0;
}

.quote-form {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--mist);
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.quote-form label {
    display: grid;
    gap: 7px;
    margin-bottom: 18px;
    color: var(--navy);
    font-size: 0.83rem;
    font-weight: 900;
    text-transform: uppercase;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #d8c18a;
    border-radius: 6px;
    color: var(--ink);
    background: #fffdf7;
    font: inherit;
    font-weight: 600;
}

.quote-form textarea {
    min-height: 116px;
    resize: vertical;
}

.consent {
    grid-template-columns: auto 1fr;
    align-items: start;
    text-transform: none;
}

.consent input {
    width: 18px;
    min-height: 18px;
    margin-top: 2px;
}

.consent span {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.45;
}

.validation-message {
    color: var(--danger);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: none;
}

.form-alert {
    margin-bottom: 18px;
    padding: 13px 15px;
    border-radius: 6px;
    font-weight: 800;
}

.form-alert.success {
    color: var(--success);
    background: rgba(20, 122, 82, 0.11);
}

.form-alert.error {
    color: var(--danger);
    background: rgba(180, 35, 24, 0.11);
}

.form-button {
    width: 100%;
    margin-top: 4px;
}

.site-footer {
    padding: 54px 0 42px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 28px;
    border-top: 1px solid var(--line);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 18px;
    color: var(--navy);
    font-size: 0.88rem;
    font-weight: 800;
}

.site-footer p {
    grid-column: 1 / -1;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.84rem;
}

#blazor-error-ui {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: none;
    padding: 0.85rem 1.25rem;
    color: #ffffff;
    background: var(--danger);
    box-shadow: 0 -8px 24px rgba(16, 32, 51, 0.22);
}

#blazor-error-ui .reload {
    margin-left: 12px;
    color: #ffffff;
    font-weight: 900;
    text-decoration: underline;
}

#blazor-error-ui .dismiss {
    position: absolute;
    right: 18px;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .header-strip {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px 0;
    }

    .header-contact,
    .primary-nav {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .hero {
        min-height: 580px;
        background:
            linear-gradient(90deg, rgba(7, 7, 6, 0.98) 0%, rgba(18, 16, 11, 0.9) 58%, rgba(168, 121, 18, 0.38) 100%),
            url("/assets/hero-via-sul.png") 58% center / cover no-repeat;
    }

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

    .about-section,
    .quote-section {
        grid-template-columns: 1fr;
    }

    .quote-copy {
        position: static;
    }
}

@media (max-width: 680px) {
    .header-strip,
    .pillars,
    .about-section,
    .coverage-section,
    .quote-section,
    .site-footer {
        width: min(100% - 22px, 1200px);
    }

    .header-contact,
    .primary-nav {
        gap: 10px 14px;
        font-size: 0.78rem;
    }

    .hero {
        min-height: auto;
        background:
            linear-gradient(180deg, rgba(7, 7, 6, 0.96) 0%, rgba(18, 16, 11, 0.94) 54%, rgba(168, 121, 18, 0.78) 100%),
            url("/assets/hero-via-sul.png") 67% center / cover no-repeat;
    }

    .hero-content {
        padding: 70px 0 96px;
    }

    .hero h1 {
        font-size: clamp(2.2rem, 12vw, 3.4rem);
    }

    .pillars,
    .coverage-grid,
    .form-grid,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .pillars {
        padding-top: 48px;
    }

    .quote-form {
        padding: 22px;
    }

    .footer-links {
        justify-content: flex-start;
    }
}
