* { box-sizing: border-box; }

html, body {
    margin: 0;
    font-family: Inter, "Segoe UI", Roboto, sans-serif;
    color: var(--p286-copy);
    background: var(--p286-bg);
}

a { color: var(--p286-orange-deep); }

h1, h2, h3 { color: var(--p286-title); line-height: 1.25; }

#conteudo:focus,
#conteudo:focus-visible {
    outline: none;
}

.skip-link {
    position: absolute;
    left: -999px;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    z-index: 80;
    background: var(--p286-card);
    color: var(--p286-title);
    padding: 0.4rem 0.7rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--p286-header-bg);
    border-bottom: 3px solid var(--p286-orange);
    backdrop-filter: blur(10px);
}

.site-header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0.65rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand img {
    height: 52px;
    width: auto;
    display: block;
}

.brand img.logo-dark { display: none; }

html[data-theme="dark"] .brand img.logo-light { display: none; }
html[data-theme="dark"] .brand img.logo-dark { display: block; }

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem 0.35rem;
    flex: 1;
}

.site-nav a,
.menu-summary {
    color: var(--p286-copy);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.4rem 0.55rem;
    border-radius: 8px;
}

.site-nav a:hover,
.site-nav a.active,
.menu-summary:hover {
    color: var(--p286-control-active);
    background: var(--p286-control-hover);
}

.menu {
    position: relative;
}

.menu-summary {
    list-style: none;
    cursor: pointer;
}

.menu-summary::-webkit-details-marker { display: none; }

.menu-panel {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    min-width: 280px;
    padding: 0.45rem;
    border: 1px solid var(--p286-border);
    border-radius: 12px;
    background: var(--p286-card);
    box-shadow: var(--p286-shadow);
    display: grid;
    z-index: 30;
}

.menu-panel a {
    display: grid;
    gap: 0.1rem;
}

.menu-panel small {
    color: var(--p286-muted);
    font-weight: 500;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-left: auto;
}

.btn-system {
    background: var(--p286-orange);
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.88rem;
}

.btn-system:hover { filter: brightness(1.06); color: #fff; }

.hero {
    position: relative;
    min-height: calc(100svh - 5.4rem);
    display: grid;
    align-items: center;
    padding: 4rem 1.25rem;
    background:
        radial-gradient(circle at 85% 20%, rgba(246, 99, 8, 0.45), transparent 28%),
        linear-gradient(125deg, #1a1a1a 0%, #282828 52%, #3a2418 100%);
    color: #fff;
    overflow: hidden;
}

.hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    gap: 1.1rem;
}

.eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--p286-orange);
}

.hero h1 {
    margin: 0;
    max-width: 22ch;
    color: #fff;
    font-size: clamp(1.85rem, 4.2vw, 3.15rem);
}

.hero p {
    margin: 0;
    max-width: 42ch;
    font-size: 1.15rem;
    color: #f3f3f3;
}

.hero-cta {
    justify-self: start;
    margin-top: 0.4rem;
    background: transparent;
    color: var(--p286-orange);
    border: 2px solid var(--p286-orange);
    text-decoration: none;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.7rem 1.2rem;
}

.hero-cta:hover {
    background: transparent;
    color: var(--p286-orange);
}

.band {
    background: var(--p286-footer-bg);
    color: #fff;
    padding: 3rem 1.25rem;
}

.band-inner, .page, .block {
    max-width: 1180px;
    margin: 0 auto;
}

.band h2 { color: var(--p286-orange); margin-top: 0; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.band p { line-height: 1.65; max-width: 68ch; }
.band a { color: #fff; }

.block { padding: 3rem 1.25rem 0; }
.page { padding: 2.4rem 1.25rem 1rem; }

.lead { color: var(--p286-muted); max-width: 70ch; line-height: 1.6; }

.card-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    display: grid;
    gap: 0.45rem;
    align-content: start;
    background: var(--p286-card);
    border: 1px solid var(--p286-border);
    border-radius: 16px;
    padding: 1.15rem 1.15rem 1.2rem;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--p286-shadow);
}

.card:hover { border-color: var(--p286-orange); }

.card .grupo {
    color: var(--p286-orange);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card h3 { margin: 0; font-size: 1.15rem; }
.card p { margin: 0; color: var(--p286-muted); line-height: 1.5; }

.quote {
    margin: 2.5rem 0 0;
    padding: 1.4rem 0 2.5rem;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 650;
    color: var(--p286-title);
}

.section-card {
    background: var(--p286-card);
    border: 1px solid var(--p286-border);
    border-radius: 16px;
    padding: 1.1rem 1.2rem 1.2rem;
    margin: 0 0 0.9rem;
}

.section-card h2 { margin: 0 0 0.55rem; font-size: 1.2rem; }
.section-card p, .prose p { line-height: 1.65; }
.section-card ul { margin: 0.4rem 0 0; padding-left: 1.15rem; }
.section-card li { margin: 0.25rem 0; }

.decisao {
    margin: 0.8rem 0 0;
    padding: 0.7rem 0.8rem;
    border-left: 3px solid var(--p286-orange);
    background: var(--p286-control-hover);
    color: var(--p286-title);
}

.contato-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-top: 1rem;
}

.contato-form label { display: grid; gap: 0.28rem; font-weight: 650; color: var(--p286-title); }
.contato-form .full { grid-column: 1 / -1; }

.form-input, .contato-form textarea, .contato-form input, .contato-form select {
    width: 100%;
    border: 1px solid var(--p286-border);
    border-radius: 8px;
    padding: 0.6rem 0.7rem;
    background: var(--p286-field);
    color: var(--p286-copy);
    font: inherit;
}

.primary-button {
    grid-column: 1 / -1;
    justify-self: start;
    background: var(--p286-orange);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 0.65rem 1.2rem;
    font-weight: 700;
    cursor: pointer;
}

.form-alert {
    padding: 0.75rem 0.9rem;
    border-radius: 8px;
    background: #e8f6ee;
    color: #0d7a45;
}

html[data-theme="dark"] .form-alert { background: #163024; color: #8ee0b4; }

.hp { position: absolute; left: -9999px; }

.site-footer {
    background: var(--p286-footer-bg);
    color: var(--p286-footer-text);
    margin-top: 3rem;
    padding: 2.4rem 1.25rem 1.2rem;
}

.footer-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.4rem;
}

.site-footer a { color: var(--p286-orange); }
.copyright { max-width: 1180px; margin: 1.4rem auto 0; font-size: 0.85rem; opacity: 0.8; }

.whatsapp-float {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 20;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    padding: 0.7rem 1rem;
    border-radius: 999px;
}

.lgpd-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    background: var(--p286-card);
    color: var(--p286-copy);
    border: 1px solid var(--p286-border);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    box-shadow: var(--p286-shadow);
}

.lgpd-banner[hidden] { display: none !important; }
.lgpd-banner button {
    background: var(--p286-ink);
    color: var(--p286-bg);
    border: 0;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.nav-toggle { display: none; }

@media (max-width: 900px) {
    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
        border: 1px solid var(--p286-border);
        background: var(--p286-card);
        color: var(--p286-title);
        border-radius: 8px;
        padding: 0.4rem 0.6rem;
        font-weight: 700;
    }

    .site-nav, .header-tools { display: none; }
    .site-header.is-open .site-nav,
    .site-header.is-open .header-tools {
        display: flex;
        flex-basis: 100%;
    }

    .site-header-inner { flex-wrap: wrap; }
    .menu-panel { position: static; min-width: 0; box-shadow: none; }
    .contato-form { grid-template-columns: 1fr; }
    .hero { min-height: 70svh; }
}
