/* Identidade compartilhada entre a home e as páginas de atuação. */
:root {
    --bg: #fbf9f5;
    --surface: #ffffff;
    --surface-2: #f7f3eb;
    --text: #132338;
    --text-muted: #5f6977;
    --accent: #c9913d;
    --accent-2: #d9ac64;
    --line: rgba(10, 38, 68, 0.14);
    --radius: 18px;
    --shadow: 0 24px 70px rgba(6, 21, 40, 0.12);
}

html { scroll-padding-top: 92px; }
body {
    color: var(--text);
    background: var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
}
h1, h2, h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.header {
    position: fixed;
    inset: 0 0 auto;
    height: 88px;
    color: #071b33;
    background: rgba(251, 249, 245, 0.93);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 35px rgba(7, 27, 51, .05);
}
.header__content { height: 100%; padding: 0; }
.brand { width: clamp(205px, 22vw, 270px); }
.logo { width: 100%; height: auto; max-height: none; }
.nav { gap: clamp(18px, 2.2vw, 32px); }
.nav a { color: #071b33; font-size: .91rem; font-weight: 650; }
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); }
.menu-toggle { display: none; }

.btn {
    min-height: 52px;
    padding: 13px 22px;
    color: #061528;
    background: var(--accent-2);
    border: 1px solid transparent;
    border-radius: 999px;
    box-shadow: none;
}
.btn:hover { background: #edc986; }
.btn--ghost { min-height: auto; padding: 11px 18px; color: #fff !important; background: #071b33; border-color: #071b33; }
.btn--ghost:hover { color: #071b33 !important; background: transparent; }
.btn--contrast { background: #fff; color: #071b33; }

main { padding-top: 88px; }
.hero {
    position: relative;
    padding: clamp(76px, 9vw, 120px) 0;
    color: #fff;
    background-color: #071b33;
    background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px), radial-gradient(circle at 85% 20%, rgba(201,145,61,.18), transparent 32%);
    background-size: 64px 64px, 64px 64px, auto;
}
.hero__text h1 { color: #fff; font-size: clamp(2.75rem, 4.7vw, 4.75rem); }
.hero .lead, .hero .cta-note { color: rgba(255,255,255,.7); }
.hero .eyebrow { color: var(--accent-2); background: transparent; padding: 0; letter-spacing: .16em; font-weight: 750; }
.hero .pill-list li { color: rgba(255,255,255,.86); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.hero__card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.hero__card .card-header p, .hero__card .card-list, .hero__card .card-foot { color: rgba(255,255,255,.68); }
.hero__card .card-header strong { color: #fff; font-family: Georgia, serif; font-size: 1.5rem; font-weight: 500; }

.section { padding: clamp(76px, 9vw, 116px) 0; }
.section__heading h2 { color: #071b33; font-size: clamp(2.15rem, 4vw, 3.65rem); }
.section__heading .eyebrow { color: #9d6d25; background: transparent; font-weight: 750; letter-spacing: .15em; }
.feature-card, .step, details, .gallery__item, .stats-card {
    color: var(--text);
    background: #fff;
    border-color: var(--line);
    box-shadow: 0 14px 42px rgba(6,21,40,.045);
}
.feature-card { min-height: 235px; padding: 34px; }
.feature-card h3, .step h3, details summary { color: #071b33; }
.feature-card:hover { border-color: rgba(201,145,61,.42); background: #fff; box-shadow: var(--shadow); }
.section--muted { background: #f7f3eb; border-color: var(--line); }
.section--accent { color: #fff; background: #071b33; border: 0; }
.section--accent h2, .section--accent h3, .section--accent strong { color: #fff; }
.section--accent p, .section--accent li, .section--accent span { color: rgba(255,255,255,.68); }
.section--accent .stats-card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); box-shadow: none; }
.section--accent .eyebrow { color: var(--accent-2); }
.profile__photo { border-radius: 220px 220px 24px 24px; border-color: rgba(201,145,61,.45); }
.cta-box { background: #071b33; border-color: #071b33; }
.cta-box h3 { color: #fff; }
.cta-box p { color: rgba(255,255,255,.68); }
.step__number { color: #071b33; background: var(--accent-2); border-color: var(--accent-2); border-radius: 50%; }
.section--cta { color: #fff; background: linear-gradient(130deg, #071b33, #0d3158); }
.section--cta h2, .section--cta h3 { color: #fff; }
.section--cta p { color: rgba(255,255,255,.68); }

.site-footer { margin-top: 100px; color: #071b33; background: #ece7dd; }
.footer-main { display: grid; grid-template-columns: 1.5fr .75fr 1fr; gap: 70px; padding-block: 64px; }
.footer-brand img { width: 245px; height: auto; margin-bottom: 22px; }
.footer-brand p { max-width: 330px; margin-bottom: 0; }
.footer-main nav, .footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-main strong { margin-bottom: 8px; font-family: Georgia, serif; font-size: 1.1rem; font-weight: 500; }
.footer-main a { color: var(--muted); text-decoration: none; }
.footer-main a:hover { color: var(--accent); }
.footer-contact span { color: var(--muted); }
.footer-bottom { display: flex; min-height: 92px; align-items: center; justify-content: space-between; gap: 30px; border-top: 1px solid rgba(7,27,51,.14); }
.footer-bottom p { margin: 0; font-size: .8rem; }
.developer-credit { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.developer-credit span { color: var(--muted); font-size: .72rem; }
.developer-credit img { width: 158px; height: auto; }
.whatsapp-float { position: fixed; z-index: 900; right: 24px; bottom: 24px; display: grid; width: 58px; height: 58px; place-items: center; color: #fff; background: #1f9f57; border: 4px solid #fbf9f5; border-radius: 50%; box-shadow: 0 14px 34px rgba(6,21,40,.25); transition: transform .2s ease, background .2s ease; }
.whatsapp-float:hover { transform: translateY(-3px) scale(1.03); background: #168848; }
.whatsapp-float svg { width: 29px; fill: currentColor; stroke: none; }

.modal-open { overflow: hidden; }
.lead-modal[hidden] { display: none; }
.lead-modal { position: fixed; z-index: 1200; inset: 0; display: grid; place-items: center; padding: 24px; }
.lead-modal__backdrop { position: absolute; inset: 0; background: rgba(4,17,32,.72); backdrop-filter: blur(5px); }
.lead-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 590px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: clamp(28px, 5vw, 46px);
    color: var(--text);
    background: #fbf9f5;
    border: 1px solid rgba(201,145,61,.34);
    border-radius: 24px;
    box-shadow: 0 28px 90px rgba(4,17,32,.35);
}
.lead-modal__dialog h2 { margin: 8px 42px 12px 0; color: #071b33; font-size: clamp(2rem, 5vw, 2.8rem); }
.lead-modal__dialog > p:not(.eyebrow) { color: var(--muted); }
.lead-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    padding: 0;
    color: #071b33;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}
.lead-form { display: grid; gap: 18px; margin-top: 26px; }
.lead-form label { display: grid; gap: 8px; color: #071b33; font-weight: 700; }
.lead-form select {
    width: 100%;
    min-height: 52px;
    padding: 0 42px 0 14px;
    color: #071b33;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    font: inherit;
}
.lead-form select:focus { outline: 3px solid rgba(201,145,61,.24); border-color: var(--accent); }
.lead-form .btn { margin-top: 4px; }

body[data-specialty="criminal"] { --accent: #aa7049; --accent-2: #d6a47e; }

@media (max-width: 800px) {
    .header, .header__content { height: 74px; }
    main { padding-top: 74px; }
    .brand { width: 190px; }
    .menu-toggle {
        position: relative;
        z-index: 42;
        display: flex;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        padding: 0;
        color: #071b33;
        background: transparent;
        border: 1px solid var(--line);
        border-radius: 50%;
    }
    .menu-toggle span { width: 18px; height: 1.5px; background: currentColor; transition: .2s ease; }
    .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
    .nav {
        position: absolute;
        top: calc(100% + 8px);
        right: 14px;
        left: 14px;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        padding: 18px;
        background: #fbf9f5;
        border: 1px solid var(--line);
        border-radius: 18px;
        box-shadow: var(--shadow);
    }
    .nav.open { display: flex; }
    .nav a { padding: 12px 10px; border-bottom: 1px solid var(--line); font-family: Georgia, serif; font-size: 1.15rem; }
    .nav .btn--ghost { margin-top: 12px; border-bottom: 0; text-align: center; }
    .hero { padding-top: 76px; }
    .hero__text h1 { font-size: clamp(2.4rem, 11vw, 3.35rem); }
    .site-footer { margin-top: 74px; }
    .footer-main { grid-template-columns: 1fr; gap: 38px; padding-block: 50px; }
    .footer-contact { grid-column: auto; }
    .footer-bottom { align-items: flex-start; flex-direction: column; padding: 26px 0 92px; }
    .developer-credit { width: 100%; justify-content: space-between; }
    .developer-credit img { width: 145px; }
    .whatsapp-float { right: 14px; bottom: 14px; width: 54px; height: 54px; }
    .lead-modal { padding: 12px; align-items: end; }
    .lead-modal__dialog { max-height: calc(100vh - 24px); padding: 28px 20px 22px; border-radius: 22px 22px 12px 12px; }
    .lead-modal__dialog h2 { font-size: 2rem; }
}
