:root {
    --brand: #A34533;
    --brand-dark: #743024;
    --brand-soft: #f7ebe8;
    --ink: #2d2624;
    --muted: #6e6460;
    --line: #eadbd7;
    --paper: #ffffff;
    --surface: #fbf7f5;
    --shadow: 0 18px 45px rgba(75, 38, 30, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

body {
    overflow-x: hidden;
}

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

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

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1:focus {
    outline: none;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 78px;
    padding: 0.85rem clamp(1rem, 4vw, 4rem);
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(163, 69, 51, 0.18);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(163, 69, 51, 0.18);
    box-shadow: 0 6px 16px rgba(75, 38, 30, 0.1);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.brand strong {
    display: block;
    color: var(--brand-dark);
    font-size: 1rem;
    line-height: 1.1;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    margin-top: 0.15rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.94rem;
    font-weight: 650;
}

.site-nav a {
    padding: 0.72rem 0.82rem;
    border-radius: 8px;
    color: #443733;
}

.site-nav a:hover {
    color: var(--brand-dark);
    background: var(--brand-soft);
}

.site-nav .nav-cta {
    margin-left: 0.25rem;
    color: #fff;
    background: var(--brand);
}

.site-nav .nav-cta:hover {
    color: #fff;
    background: var(--brand-dark);
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--brand);
}

.hero-section {
    position: relative;
    min-height: 760px;
    display: grid;
    align-items: center;
    padding: 9rem clamp(1rem, 4vw, 4rem) 4rem;
    overflow: hidden;
    color: #fff;
    background: var(--brand-dark);
}

.hero-image,
.hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(82, 28, 19, 0.9) 0%, rgba(111, 43, 31, 0.78) 36%, rgba(111, 43, 31, 0.24) 75%),
        linear-gradient(0deg, rgba(45, 38, 36, 0.26), rgba(45, 38, 36, 0.05));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.eyebrow,
.section-kicker {
    margin-bottom: 0.9rem;
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content .eyebrow {
    color: #fff1ed;
}

.hero-content h1 {
    max-width: 720px;
    margin-bottom: 1.35rem;
    font-size: clamp(2.45rem, 6vw, 5.4rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.hero-text {
    max-width: 650px;
    color: #fff4f1;
    font-size: clamp(1rem, 1.7vw, 1.25rem);
    line-height: 1.65;
}

.hero-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.85rem 1.25rem;
    border-radius: 8px;
    font-weight: 750;
    line-height: 1.1;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button-primary {
    color: #fff;
    background: var(--brand);
    box-shadow: 0 12px 26px rgba(92, 34, 24, 0.22);
}

.button-primary:hover {
    color: #fff;
    background: var(--brand-dark);
}

.button-secondary,
.button-outline {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.button-secondary:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.button-outline {
    color: var(--brand-dark);
    border-color: rgba(163, 69, 51, 0.35);
    background: #fff;
}

.button-outline:hover {
    color: var(--brand-dark);
    border-color: var(--brand);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    max-width: 760px;
    margin: 3rem 0 0;
}

.hero-metrics div {
    min-height: 108px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
}

.hero-metrics dt {
    color: #fff;
    font-size: clamp(1.3rem, 2vw, 1.75rem);
    font-weight: 850;
}

.hero-metrics dd {
    margin: 0.4rem 0 0;
    color: #fff4f1;
    line-height: 1.35;
}

.section {
    padding: clamp(4.5rem, 7vw, 7rem) clamp(1rem, 4vw, 4rem);
}

.section-split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: start;
}

.section-copy h2,
.section-heading h2,
.expertise-section h2,
.contact-content h2 {
    color: var(--ink);
    font-size: clamp(2rem, 4vw, 3.45rem);
    line-height: 1.04;
    letter-spacing: 0;
}

.section-heading {
    max-width: 850px;
    margin-bottom: 2.5rem;
}

.section-heading.compact {
    max-width: 620px;
}

.rich-text {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.credential-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.8rem;
}

.credential-list span {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--brand-dark);
    background: var(--brand-soft);
    font-weight: 750;
}

.purpose-section,
.services-section {
    background: var(--surface);
}

.purpose-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.purpose-card,
.service-card,
.value-item,
.contact-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.purpose-card {
    padding: clamp(1.3rem, 2vw, 2rem);
    box-shadow: var(--shadow);
}

.purpose-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 1.4rem;
    border-radius: 8px;
    color: #fff;
    background: var(--brand);
    font-weight: 800;
}

.purpose-card h3,
.value-item h3,
.service-card h3,
.expertise-columns h3 {
    margin-bottom: 0.65rem;
    color: var(--brand-dark);
    font-size: 1.18rem;
    line-height: 1.25;
}

.purpose-card p,
.value-item p,
.service-card p,
.expertise-columns p,
.contact-content p {
    color: var(--muted);
    line-height: 1.7;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.value-item {
    padding: 1.35rem;
    min-height: 180px;
}

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

.service-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.35rem;
}

.service-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin-bottom: 1.2rem;
    border-radius: 8px;
    color: var(--brand);
    background: var(--brand-soft);
    font-weight: 850;
}

.service-card ul {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.service-card li {
    position: relative;
    padding: 0.48rem 0 0.48rem 1.1rem;
    color: #504541;
    line-height: 1.45;
    border-top: 1px solid #f0e4e0;
}

.service-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
}

.expertise-section {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.expertise-columns {
    display: grid;
    gap: 1rem;
}

.expertise-columns div {
    padding: 1.3rem 0 1.3rem 1.4rem;
    border-left: 4px solid var(--brand);
    background: linear-gradient(90deg, var(--brand-soft), rgba(255, 255, 255, 0));
}

.contact-section {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.6fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    padding: clamp(4.5rem, 7vw, 7rem) clamp(1rem, 4vw, 4rem);
    color: #fff;
    background: var(--brand-dark);
}

.contact-content h2,
.contact-content p,
.contact-section .section-kicker {
    color: #fff;
}

.contact-content p {
    max-width: 690px;
}

.contact-panel {
    display: grid;
    gap: 0.65rem;
    padding: clamp(1.4rem, 3vw, 2rem);
    color: var(--ink);
    box-shadow: 0 24px 50px rgba(45, 20, 14, 0.22);
}

.contact-panel strong {
    color: var(--brand-dark);
    font-size: 1.2rem;
}

.contact-panel span,
.contact-panel a {
    color: var(--muted);
}

.contact-panel a:hover {
    color: var(--brand);
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 1.3rem clamp(1rem, 4vw, 4rem);
    color: #6b5c57;
    background: #fff;
    border-top: 1px solid var(--line);
    font-size: 0.92rem;
}

.floating-whatsapp {
    position: fixed;
    right: clamp(1rem, 3vw, 1.5rem);
    bottom: clamp(1rem, 3vw, 1.5rem);
    z-index: 60;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 128px;
    min-height: 48px;
    padding: 0.75rem 1.05rem;
    border-radius: 8px;
    color: #fff;
    background: #128c4a;
    box-shadow: 0 14px 30px rgba(18, 140, 74, 0.28);
    font-weight: 800;
}

.floating-whatsapp:hover {
    color: #fff;
    background: #0f7c41;
}

#blazor-error-ui {
    color-scheme: light only;
    background: #fff4cf;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.7rem 3rem 0.8rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #eadbd7;
    stroke-width: 0.6rem;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.loading-progress circle:last-child {
    stroke: var(--brand);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: 800;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
    color: var(--brand-dark);
}

.loading-progress-text::after {
    content: var(--blazor-load-percentage-text, "Carregando");
}

@media (max-width: 1120px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 860px) {
    .site-header {
        min-height: 70px;
    }

    .menu-button {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.75rem 1rem 1rem;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 18px 30px rgba(70, 36, 29, 0.1);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        width: 100%;
    }

    .site-nav .nav-cta {
        margin: 0.5rem 0 0;
        text-align: center;
    }

    .hero-section {
        min-height: 720px;
        padding-top: 8rem;
    }

    .hero-overlay {
        background:
            linear-gradient(90deg, rgba(82, 28, 19, 0.92), rgba(111, 43, 31, 0.68)),
            linear-gradient(0deg, rgba(45, 38, 36, 0.3), rgba(45, 38, 36, 0.08));
    }

    .hero-metrics,
    .purpose-grid,
    .section-split,
    .expertise-section,
    .contact-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .brand strong {
        font-size: 0.94rem;
    }

    .brand small {
        font-size: 0.72rem;
    }

    .brand-mark {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .hero-section {
        min-height: auto;
        padding-bottom: 3rem;
    }

    .hero-actions,
    .contact-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .hero-metrics,
    .services-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }

    .hero-metrics div {
        min-height: 92px;
    }

    .floating-whatsapp {
        left: 1rem;
        right: 1rem;
        bottom: 0.75rem;
    }

    .site-footer {
        padding-bottom: 5.2rem;
    }
}
