/* =============================================
   Cainelli Advogados — CSS fiel ao original
   ============================================= */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --header-bg: #263545;
    --header-h: 80px;
    --green: #3ab54a;
    --green-dark: #2e9a3c;
    --green-link: #277c31; /* verde acessivel p/ links em fundo claro (5.2:1) */
    --green-btn: #21772e; /* verde escuro p/ botões c/ texto branco — WCAG AA 5.6:1 */
    --green-btn-dark: #1a6325; /* hover dos botões */
    --olive: #8a9a80;
    --dark-section: #2d4858;
    --dark-alt: #3a5548;
    --white: #ffffff;
    --off-white: #f7f7f7;
    --text-dark: #333333;
    --text-gray: #555555;
    --footer-bg: #263545;
    --font-title: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background: #ffffff;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

main {
    background: #ffffff;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

address {
    font-style: normal;
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 32px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Skip link — acessibilidade teclado */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--green);
    color: var(--white);
    font-family: var(--font-title);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 0 0 6px 6px;
    z-index: 9999;
    text-decoration: none;
    transition: top 0.15s;
}

    .skip-link:focus {
        top: 0;
    }

/* =============================================
   HEADER
   ============================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(38, 53, 69, 0.92);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.3s;
}

    .header.scrolled {
        background: rgba(38, 53, 69, 0.98);
    }

.header-inner {
    display: flex;
    align-items: center;
    height: var(--header-h);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    gap: 32px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    height: 56px;
    width: auto;
    object-fit: contain;
}

.logo-img-footer {
    height: 96px;
}

.logo-num {
    font-family: var(--font-title);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--olive);
}

.logo-circle-sm .logo-num {
    font-size: 1.1rem;
}

.logo-anos {
    font-family: var(--font-title);
    font-size: 0.55rem;
    font-weight: 400;
    color: var(--olive);
    letter-spacing: 0.05em;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.12em;
    line-height: 1.1;
}

.logo-sub {
    font-family: var(--font-title);
    font-size: 0.6rem;
    font-weight: 400;
    color: var(--olive);
    letter-spacing: 0.2em;
}

/* Nav */
.nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
}

    .nav ul {
        display: flex;
        gap: 24px;
    }

.nav-link {
    font-family: var(--font-title);
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.04em;
    transition: color 0.2s;
    white-space: nowrap;
}

    .nav-link:hover, .nav-link.active {
        color: var(--green);
    }

    .nav-link:focus-visible {
        color: var(--green);
        outline: 2px solid var(--green);
        outline-offset: 3px;
        border-radius: 2px;
    }

.btn-header {
    font-family: var(--font-title);
    font-size: 0.88rem;
    font-weight: 600;
    background: var(--green-btn);
    color: var(--white);
    padding: 10px 22px;
    border-radius: 6px;
    letter-spacing: 0.03em;
    white-space: nowrap;
    transition: background 0.2s;
    flex-shrink: 0;
}

    .btn-header:hover, .btn-header:focus-visible {
        background: var(--green-btn-dark);
        outline: 3px solid var(--green);
        outline-offset: 2px;
    }

/* Social sidebar */
.social-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    display: flex;
    flex-direction: column;
    background: rgba(38, 53, 69, 0.85);
    border-radius: 8px 0 0 8px;
}

    .social-sidebar a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        color: rgba(255,255,255,0.7);
        transition: color 0.2s, background 0.2s;
    }

        .social-sidebar a:hover {
            color: var(--white);
            background: rgba(255,255,255,0.1);
        }

/* Hamburger — min 44×44px touch target */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 11px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

    .hamburger span {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--white);
        border-radius: 2px;
        transition: 0.3s;
    }

    .hamburger[aria-expanded="true"] span:nth-child(1) {
        transform: rotate(45deg) translate(5px,5px);
    }

    .hamburger[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .hamburger[aria-expanded="true"] span:nth-child(3) {
        transform: rotate(-45deg) translate(5px,-5px);
    }



/* ==========================================
   HERO
========================================== */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: end;
    padding-bottom: 60px;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

/* escurece um pouco o vídeo */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.40);
    z-index: 2;
}

/* conteúdo */
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 20px;
    text-align: center;
    color: #fff;
}

.hero-h1 {
    font-size: clamp(2.8rem,5vw,5rem);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-tagline {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 35px;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 42px;
    background: var(--green-btn);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: .25s;
}

    .btn-hero:hover {
        background: var(--green-btn-dark);
        transform: translateY(-2px);
    }


/* =============================================
   O ESCRITÓRIO
   ============================================= */
.section-escritorio {
    padding: 20px 0 12px;
    background: var(--white);
}

.heading-section {
    font-family: var(--font-title);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    color: var(--olive);
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.escritorio-texto {
    max-width: 900px;
    margin: 0 auto 12px;
    text-align: justify;
}

    .escritorio-texto p {
        font-size: 0.97rem;
        color: var(--text-gray);
        line-height: 1.8;
        margin-bottom: 16px;
    }

/* Stats */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 860px;
    margin: 0 auto 12px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    color: var(--green);
}

.stat-num {
    font-family: var(--font-title);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--green);
    line-height: 1;
}

.stat-label {
    font-size: 0.88rem;
    color: var(--text-gray);
    letter-spacing: 0.02em;
}

/* YouTube embed */
.video-wrapper {
    max-width: 960px;
    margin: 0 auto;
    position: relative;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 responsivo sem aspect-ratio — sem barra preta no mobile */
    overflow: hidden;
}

    .video-wrapper iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: none;
        border-radius: 4px;
    }

/* YouTube facade — carrega scripts só ao clicar */
.yt-facade {
    position: absolute;
    inset: 0;
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
    background: #000;
}

    .yt-facade img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: opacity 0.2s;
    }

    .yt-facade:hover img {
        opacity: 0.8;
    }

.yt-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5));
    transition: transform 0.15s;
}

.yt-facade:hover .yt-play-btn {
    transform: translate(-50%, -50%) scale(1.12);
}

/* =============================================
   ÁREAS DE ATUAÇÃO — bleed-card layout
   ============================================= */
#areas {
    background: var(--white);
    padding: 20px 0 12px;
}

.areas-title-row {
    text-align: center;
    margin-bottom: 20px;
}

.areas-heading {
    font-family: var(--font-title);
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 700;
    color: var(--dark-section);
    letter-spacing: 0.01em;
}

/* Each area block — padding-top = espaço de bleed da foto acima do card */
.area-block {
    /* padding-top = folga de bleed da foto; em vw p/ acompanhar a foto (31.11vw) */
    padding: 3vw 0 0;
    margin-bottom: 8px;
}

.area-block-inner {
    max-width: none;
    margin: 0;
    position: relative; /* anchor for absolute photo */
}

/* Card — full width, cor sólida; degradê só na base, ao lado da foto */
.area-card {
    border-radius: 10px;
    padding: 42px 11vw 42px 56vw; /* foto no 2º quarto; texto começa em 56vw */
    /* acompanha a foto em vw: acima de ~1455px a foto cresceria alem do card */
    min-height: max(400px, 27.5vw);
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* cor chapada + poça de luz na base, sob/ao lado da pessoa */
    background: radial-gradient(ellipse 42% 52% at var(--area-glow-x, 35%) 100%, rgba(255,255,255,0.52) 0%, rgba(255,255,255,0.22) 44%, rgba(255,255,255,0.06) 68%, rgba(255,255,255,0) 82%), var(--area-color);
    position: relative;
    z-index: 1;
}

/* Photo — âncora na base do card, posicionada no 2º quarto (25-54.25vw) */
.area-photo {
    position: absolute;
    bottom: 0;
    left: 20vw;
    width: 31.11vw;
    z-index: 2;
}

    .area-photo img {
        width: 100%;
        height: auto;
        display: block;
    }

/* Reversed — foto à direita: espelha o texto e o ponto de degradê */
.area-card-rev {
    padding: 42px 56vw 42px 11vw; /* espelho: texto de 11vw até 44vw (≈ 1/3) */
    --area-glow-x: 65%;
}

.area-block-rev .area-photo {
    left: auto;
    right: 20vw;
}

/* ---- Retângulo de profundidade: mesma largura, sobressai só no topo ---- */
.area-block-inner::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -14px; /* sobressai 14px acima do card — cor diferente visível no topo */
    bottom: 0;
    border-radius: 10px;
    background: var(--area-color-top);
    z-index: 0;
    pointer-events: none;
}

/* ---- Cores por área ---- */
/* 1 — Previdenciário */
#areas > .area-block:nth-child(2) {
    --area-color: #546770;
    --area-color-top: #425057;
}
/* 2 — Trabalho */
#areas > .area-block:nth-child(3) {
    --area-color: #294768;
    --area-color-top: #203751;
}
/* 3 — Civil */
#areas > .area-block:nth-child(4) {
    --area-color: #50646c;
    --area-color-top: #3e4e54;
}
/* 4 — Servidor */
#areas > .area-block:nth-child(5) {
    --area-color: #5a6750;
    --area-color-top: #46503e;
}

/* Card typography — white text on dark gradient */
.area-card-title {
    font-family: var(--font-title);
    font-size: clamp(1.7rem, 2.4vw, 2.4rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 16px;
}

.area-card-text {
    font-size: 0.93rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.88);
    margin-bottom: 28px;
}

/* LGPD widget — recolhido por padrão, expande ao clicar no dourado */
.lgpd-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 150;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

/* Botões de ação — ocultos até .open */
.lgpd-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
}

.lgpd-widget.open .lgpd-actions {
    max-height: 180px;
    opacity: 1;
}

.lgpd-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--green);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    transition: transform 0.15s, box-shadow 0.15s;
    flex-shrink: 0;
}

    .lgpd-btn:hover {
        transform: scale(1.08);
        box-shadow: 0 5px 16px rgba(0,0,0,0.35);
    }

    .lgpd-btn svg {
        width: 22px;
        height: 22px;
        flex-shrink: 0;
    }

.lgpd-btn-gold {
    background: #f5a623;
}

/* Cookie modal */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

    .cookie-modal-overlay.hidden {
        display: none;
    }

.cookie-modal {
    background: #fff;
    border-radius: 8px;
    max-width: 540px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 40px rgba(0,0,0,0.35);
}

.cookie-modal-head {
    background: #e8e8e8;
    padding: 18px 24px;
    border-radius: 8px 8px 0 0;
}

    .cookie-modal-head h2 {
        font-size: 1.1rem;
        font-weight: 700;
        color: #222;
        margin: 0;
    }

.cookie-modal-body {
    padding: 20px 24px;
}

    .cookie-modal-body h3 {
        font-size: 0.9rem;
        font-weight: 700;
        color: #222;
        margin: 0 0 8px;
    }

    .cookie-modal-body p {
        font-size: 0.8rem;
        color: #444;
        line-height: 1.55;
        margin: 0 0 16px;
    }

        .cookie-modal-body p a {
            color: #1155cc;
        }

.cookie-divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 12px 0;
}

.cookie-item {
    margin-bottom: 12px;
}

.cookie-item-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.83rem;
    font-weight: 600;
    color: #1155cc;
    margin-bottom: 6px;
}

    .cookie-item-label input[type="checkbox"] {
        width: 16px;
        height: 16px;
        cursor: pointer;
        accent-color: #1155cc;
    }

        .cookie-item-label input[type="checkbox"]:disabled {
            cursor: default;
            opacity: 0.6;
        }

.cookie-item p {
    font-size: 0.78rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

.cookie-modal-footer {
    background: #e8e8e8;
    padding: 16px 24px;
    border-radius: 0 0 8px 8px;
    text-align: center;
}

.cookie-modal-confirm {
    background: #fff;
    border: 1px solid #aaa;
    border-radius: 4px;
    padding: 10px 28px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #222;
    cursor: pointer;
    transition: background 0.15s;
}

    .cookie-modal-confirm:hover {
        background: #f0f0f0;
    }

.btn-green {
    display: inline-block;
    font-family: var(--font-title);
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--green-btn);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 6px;
    letter-spacing: 0.04em;
    align-self: flex-start;
    transition: background 0.2s;
}

    .btn-green:hover, .btn-green:focus-visible {
        background: var(--green-btn-dark);
        outline: 3px solid var(--green);
        outline-offset: 2px;
    }

/* =============================================
   EQUIPE — strip fotográfico full-bleed
   ============================================= */
.section-equipe {
    padding: 24px 0 0;
    background: var(--off-white);
    overflow: hidden;
}

    .section-equipe .container {
        margin-bottom: 16px;
    }

.slider-wrapper {
    position: relative;
    overflow: hidden;
}

.slider-track {
    display: flex;
    overflow-x: auto;
    gap: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
    scroll-behavior: auto; /* teleporte do loop infinito permanece instantâneo */
}

    .slider-track:active {
        cursor: grabbing;
    }

    .slider-track::-webkit-scrollbar {
        display: none;
    }

    .slider-track img {
        user-select: none;
        -webkit-user-drag: none;
        pointer-events: none;
    }

/* Setas laterais — centradas verticalmente na altura das fotos */
.slider-btn {
    display: flex;
    position: absolute;
    top: calc(72vh / 2);
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    background: var(--green);
    border: none;
    cursor: pointer;
    color: var(--white);
    font-size: 1.1rem;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    border-radius: 0;
}

    .slider-btn:hover {
        background: var(--green-dark);
    }

.slider-prev {
    left: 0;
}

.slider-next {
    right: 0;
}

.membro {
    flex: 0 0 calc(100vw / 3.6);
    min-width: 200px;
    position: relative;
    scroll-snap-align: center;
}

.membro-photo {
    width: 100%;
    height: 72vh;
    min-height: 420px;
    overflow: hidden;
    background: var(--dark-section);
    position: relative;
}

    .membro-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top center;
        filter: grayscale(100%);
        transition: filter 0.5s ease, transform 0.5s ease;
        transform: scale(1);
        position: relative;
        z-index: 1;
        display: block;
    }

.membro:hover .membro-photo img {
    transform: scale(1.05);
}

.membro.active .membro-photo img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.membro-placeholder {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark-section), #3a5a70);
    font-family: var(--font-title);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255,255,255,0.2);
}

/* Nome e cargo: ocultos por padrão, revelados no card ativo */
.membro-nome {
    font-family: var(--font-title);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--dark-section);
    text-align: center;
    padding: 14px 10px 2px;
    line-height: 1.3;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.membro-cargo {
    font-family: var(--font-title);
    font-size: 0.68rem;
    font-weight: 600;
    color: #536148; /* olive escuro — WCAG AA 6:1 sobre fundo claro */
    text-transform: uppercase;
    letter-spacing: 0.09em;
    text-align: center;
    padding: 0 10px 20px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

/* Card ativo: nome e cargo revelados */
.membro.active .membro-nome {
    opacity: 1;
    transform: translateY(0);
}

.membro.active .membro-cargo {
    opacity: 1;
    transform: translateY(0);
}


/* =============================================
   CONTATO
   ============================================= */

/* Cabeçalho contato */
.contato-header {
    padding: 20px 0 100px;
    text-align: center;
    background: var(--white);
    position: relative;
    z-index: 1;
}

.contato-sub {
    font-size: 1.2rem;
    color: var(--text-muted, #888);
    margin-top: 8px;
}

/* Offices */
.offices-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--dark-section);
    padding: 0 max(40px, calc((100% - 960px) / 2)) 40px;
    overflow: visible;
}

.office-card {
    display: flex;
    flex-direction: column;
    margin-top: -80px;
    position: relative;
    z-index: 2;
    box-shadow: 0 -6px 24px rgba(0,0,0,0.14), 0 8px 40px rgba(0,0,0,0.28);
}

.office-img {
    overflow: hidden;
    height: 280px;
}

    .office-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s;
    }

    .office-img:hover img {
        transform: scale(1.05);
    }

/* Info: cidade à esquerda, endereço à direita */
.office-info {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 22px 28px 32px;
}

    .office-info h3 {
        font-family: var(--font-title);
        font-size: 1.4rem;
        font-weight: 700;
        color: var(--white);
        line-height: 1.2;
        flex: 0 0 auto;
        min-width: 110px;
    }

    .office-info address {
        flex: 1;
        padding-top: 2px;
    }

        .office-info address p {
            font-size: 0.85rem;
            color: rgba(255,255,255,0.82);
            margin-bottom: 5px;
            line-height: 1.5;
        }

        .office-info address a {
            color: rgba(255,255,255,0.82);
            transition: color 0.2s;
        }

            .office-info address a:hover {
                color: var(--green);
            }

/* Form */
.form-section {
    background: var(--white);
    padding: 24px 0 40px;
}

.form-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 24px;
}

/* Layout principal: campos (esq) | textarea (dir) */
.form-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.form-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .form-right textarea {
        width: 100%;
        padding: 12px 14px;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-family: var(--font-body);
        font-size: 1rem;
        color: var(--text-dark);
        resize: vertical;
        min-height: 155px;
        transition: border-color 0.2s;
        outline: none;
        box-sizing: border-box;
    }

        .form-right textarea:focus {
            border-color: var(--green);
        }

        .form-right textarea::placeholder {
            color: #aaa;
        }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.form-field {
    position: relative;
}

.field-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: var(--white);
    transition: border-color 0.2s;
    overflow: hidden;
}

    .field-wrap:focus-within {
        border-color: var(--green);
    }

.field-icon {
    display: flex;
    align-items: center;
    padding: 0 10px;
    background: var(--dark-section);
    color: var(--white);
    flex-shrink: 0;
}

.field-wrap input {
    flex: 1;
    padding: 10px 12px;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    background: transparent;
}

    .field-wrap input::placeholder {
        color: #aaa;
    }

.captcha-placeholder {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9f9f9;
}

    .captcha-placeholder input[type="checkbox"] {
        width: 18px;
        height: 18px;
        cursor: pointer;
        flex-shrink: 0;
    }

    .captcha-placeholder label {
        font-size: 0.83rem;
        color: var(--text-gray);
        cursor: pointer;
        flex: 1;
    }

.recaptcha-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

    .recaptcha-logo span {
        font-size: 0.6rem;
        color: #999;
        letter-spacing: 0.02em;
    }

.btn-enviar {
    font-family: var(--font-title);
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--green-btn);
    color: var(--white);
    border: none;
    cursor: pointer;
    padding: 13px 32px;
    border-radius: 6px;
    letter-spacing: 0.04em;
    transition: background 0.2s;
    align-self: flex-end;
}

    .btn-enviar:hover, .btn-enviar:focus-visible {
        background: var(--green-btn-dark);
        outline: 3px solid var(--green);
        outline-offset: 2px;
    }

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: var(--footer-bg);
    padding: 40px 0;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-info {
    text-align: center;
}

    .footer-info p, .footer-info a {
        font-size: 0.88rem;
        color: rgba(255,255,255,0.6);
        line-height: 1.8;
        transition: color 0.2s;
    }

        .footer-info a:hover {
            color: var(--green);
        }

.footer-social {
    display: flex;
    gap: 16px;
}

    .footer-social a {
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        border: 1px solid rgba(255,255,255,0.2);
        color: rgba(255,255,255,0.6);
        transition: border-color 0.2s, color 0.2s, background 0.2s;
    }

        .footer-social a:hover {
            color: var(--white);
            border-color: var(--green);
            background: rgba(58,181,74,0.15);
        }

/* =============================================
   WHATSAPP FLOAT
   ============================================= */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 80;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 4px 16px rgba(37,211,102,0.45);
    transition: transform 0.2s, box-shadow 0.2s;
}

    .whatsapp-float:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 24px rgba(37,211,102,0.55);
    }

/* =============================================
   POPUP ATENÇÃO
   ============================================= */
.popup-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 24px;
    pointer-events: none;
}

    .popup-overlay.hidden {
        display: none !important;
    }

.popup-box {
    background: #1a2a3a;
    border-radius: 12px;
    padding: 28px 28px 24px;
    max-width: 340px;
    width: 100%;
    position: relative;
    pointer-events: all;
    box-shadow: 0 8px 40px rgba(0,0,0,0.45);
    animation: popup-in 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes popup-in {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popup-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: background 0.2s, color 0.2s;
    line-height: 1;
}

    .popup-close:hover {
        background: var(--green);
        color: var(--white);
    }

.popup-heading {
    font-family: var(--font-title);
    font-size: 1.3rem;
    font-weight: 900;
    color: #f5c518;
    margin-bottom: 14px;
    letter-spacing: 0.02em;
}

.popup-text {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.88);
    line-height: 1.65;
    margin-bottom: 8px;
}

    .popup-text strong {
        color: var(--white);
    }

/* =============================================
   BLOG
   ============================================= */
.section-blog {
    padding: 28px 0 28px;
    background: var(--off-white);
}

/* Artigo em destaque */
.blog-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 32px rgba(0,0,0,0.09);
    margin-bottom: 24px;
    background: var(--white);
}

.blog-featured-img {
    position: relative;
    overflow: hidden;
    min-height: 360px;
}

    .blog-featured-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s;
    }

.blog-featured:hover .blog-featured-img img {
    transform: scale(1.04);
}

/* Capa e título do card levam ao artigo */
a.blog-featured-img,
a.blog-card-img {
    display: block;
}

.blog-featured-title a,
.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

    .blog-featured-title a:hover,
    .blog-card-title a:hover {
        color: var(--green);
    }

    .blog-featured-title a:focus-visible,
    .blog-card-title a:focus-visible,
    a.blog-featured-img:focus-visible,
    a.blog-card-img:focus-visible {
        outline: 2px solid var(--green);
        outline-offset: 3px;
    }

.blog-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--green);
    color: var(--white);
    font-family: var(--font-title);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
}

.blog-featured-content {
    padding: 44px 44px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.blog-meta {
    font-size: 0.88rem;
    color: var(--olive);
    font-family: var(--font-title);
}

.blog-featured-title {
    font-family: var(--font-title);
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    font-weight: 700;
    color: var(--dark-section);
    line-height: 1.25;
}

.blog-excerpt {
    font-size: 0.93rem;
    color: var(--text-gray);
    line-height: 1.75;
}

/* Author block */
.blog-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.blog-author-photo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--dark-section);
    position: relative;
    border: 2px solid var(--green);
}

    .blog-author-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top center;
        filter: grayscale(80%);
        position: relative;
        z-index: 1;
    }

.blog-author-initials {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    z-index: 0;
}

.blog-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.blog-author-label {
    font-family: var(--font-title);
    font-size: 0.68rem;
    color: var(--olive);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.blog-author-name {
    font-family: var(--font-title);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--dark-section);
}

.blog-author-role {
    font-size: 0.75rem;
    color: var(--olive);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-btn {
    margin-top: 4px;
}

/* Grid de cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.blog-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s, transform 0.25s;
}

    .blog-card:hover {
        box-shadow: 0 6px 28px rgba(0,0,0,0.13);
        transform: translateY(-3px);
    }

.blog-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--dark-section);
}

    .blog-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s;
    }

.blog-card:hover .blog-card-img img {
    transform: scale(1.05);
}

.blog-card-body {
    padding: 24px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.blog-card-title {
    font-family: var(--font-title);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark-section);
    line-height: 1.3;
}

.blog-link {
    font-family: var(--font-title);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--green);
    letter-spacing: 0.03em;
    margin-top: auto;
    transition: color 0.2s;
}

    .blog-link:hover {
        color: var(--green-dark);
    }

/* =============================================
   RESPONSIVO
   ============================================= */
@media (max-width: 1024px) {
    /* Areas — card texto acima, foto abaixo; container externo define o arredondamento */
    .area-block {
        padding: 0 24px;
        margin-bottom: 40px;
    }

    .area-card .btn-green,
    .area-card-rev .btn-green {
        align-self: center;
    }

    .area-block-inner {
        display: flex;
        flex-direction: column;
        border-radius: 14px;
        overflow: hidden;
        box-shadow: 0 6px 28px rgba(0,0,0,0.22);
    }

    .area-photo {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        width: 100%;
        order: 1; /* foto ABAIXO do card */
    }

    .area-block-rev .area-photo {
        right: auto;
    }

    .area-photo img {
        /* recorte com alfa: "contain" mostra a pessoa inteira, ancorada na base */
        max-height: 62vw;
        object-fit: contain;
        object-position: bottom center;
        width: 100%;
        border-radius: 0;
    }

    .area-card,
    .area-card-rev {
        padding: 40px 32px 36px;
        border-radius: 0;
        min-height: 0;
        text-align: center;
    }

    .area-card-title {
        text-align: center;
    }

    .area-card-text {
        text-align: justify;
    }
    /* Card mobile: background transparente — o gradiente fica no .area-block-inner */
    .area-card, .area-card-rev {
        background: transparent !important;
    }
    /* Cor sólida cobrindo card + foto; degradê só na base, junto da pessoa */
    .area-block-inner {
        background: radial-gradient(ellipse 80% 26% at 50% 100%, rgba(255,255,255,0.40) 0%, rgba(255,255,255,0.14) 48%, rgba(255,255,255,0) 78%), var(--area-color);
    }

        .area-block-inner::after {
            display: none;
        }

    .membro {
        flex: 0 0 calc(100vw / 2.8);
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .blog-featured {
        grid-template-columns: 1fr;
    }

    .blog-featured-img {
        min-height: 260px;
    }

    .blog-featured-content {
        padding: 32px 32px 36px;
    }
}

@media (max-width: 768px) {
    /* Header mobile */
    .hamburger {
        display: flex;
        margin-left: auto;
    }

    .logo-anos {
        font-size: 0.7rem;
    }

    .logo-sub {
        font-size: 0.7rem;
    }

    .nav {
        display: none;
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(38,53,69,0.98);
        padding: 16px 24px 24px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    }

        .nav.open {
            display: flex;
        }

        .nav ul {
            flex-direction: column;
            gap: 0;
        }

            .nav ul li {
                border-bottom: 1px solid rgba(255,255,255,0.08);
            }

    .nav-link {
        display: block;
        padding: 14px 0;
        font-size: 0.95rem;
    }

    .btn-header {
        margin-top: 16px;
        text-align: center;
        padding: 13px;
    }

    .social-sidebar {
        display: none;
    }

    /* Sections */
    .stats-row {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Areas mobile — card texto acima, foto abaixo */
    .area-block {
        padding: 0 16px;
        margin-bottom: 32px;
    }

    .area-photo img {
        max-height: 72vw;
    }

    .area-card {
        padding: 36px 24px 32px;
    }

    .area-card-rev {
        padding: 36px 24px 32px;
    }

    .membro {
        flex: 0 0 calc(100vw / 1.8);
    }

    .equipe-info-panel {
        padding: 20px 24px 6px;
    }

    .offices-section {
        grid-template-columns: minmax(0, 1fr);
        padding: 0 20px 40px;
    }

    .office-card {
        min-width: 0;
        margin-top: 0;
    }

        .office-card:first-child {
            margin-top: -80px;
        }

    .office-info {
        flex-direction: column;
        gap: 8px;
        padding: 20px 22px 28px;
    }

        .office-info h3 {
            min-width: 0;
        }

        .office-info address {
            overflow-wrap: anywhere;
        }

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

    .form-main-grid {
        grid-template-columns: 1fr;
    }

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

    .btn-enviar {
        width: 100%;
        align-self: stretch;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .membro {
        flex: 0 0 calc(100% / 2);
    }

    .hero {
        min-height: 60vh;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .hero {
        background: var(--dark-section);
    }
}

/* ── Hero H1 — SEO heading visível sobre o vídeo ── */
.hero-h1 {
    font-family: var(--font-title);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.02em;
    margin-bottom: 12px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.hero-tagline {
    font-family: var(--font-title);
    font-size: clamp(0.9rem, 2vw, 1.15rem);
    font-weight: 300;
    color: rgba(255,255,255,0.88);
    margin-bottom: 32px;
    line-height: 1.6;
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

/* =============================================
   SCROLL REVEAL
   ============================================= */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

    .reveal.revealed {
        opacity: 1;
        transform: none;
    }

    .reveal:nth-child(2) {
        transition-delay: 0.1s;
    }

    .reveal:nth-child(3) {
        transition-delay: 0.2s;
    }

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* FAQ */
.section-faq {
    padding: 110px 0;
    background: #f2f4ef;
    border-top: 1px solid #e6e9e2;
    border-bottom: 1px solid #e6e9e2;
}

.faq-description {
    max-width: 760px;
    margin: 18px auto 60px;
    text-align: center;
    color: #6d6d6d;
    font-size: 1.05rem;
    line-height: 1.8;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.faq-item {
    background: #fff;
    border: 1px solid #e7ebe5;
    border-radius: 14px;
    overflow: hidden;
    transition: .25s;
    box-shadow: 0 8px 24px rgba(0,0,0,.04);
}

    .faq-item:hover {
        border-color: #2f6d38;
        transform: translateY(-2px);
        box-shadow: 0 14px 34px rgba(0,0,0,.08);
    }

    .faq-item summary {
        cursor: pointer;
        list-style: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        padding: 26px 30px;
        font-family: var(--font-title);
        font-size: 1.08rem;
        font-weight: 700;
        color: var(--dark-section);
    }

        .faq-item summary::-webkit-details-marker {
            display: none;
        }

.faq-icon {
    flex-shrink: 0;
    color: var(--green);
    transition: .25s;
}

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 30px 28px;
    animation: faqFade .25s ease;
}

    .faq-answer p {
        margin: 0;
        color: var(--text-gray);
        line-height: 1.9;
        font-size: 1rem;
    }

@keyframes faqFade {

    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media(max-width:768px) {

    .section-faq {
        padding: 80px 0;
    }

    .faq-item summary {
        padding: 20px;
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 20px 20px;
    }
}

.faq-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: rgba(93,122,83,.10);
    border: 1px solid rgba(93,122,83,.18);
    border-radius: 999px;
    color: var(--green);
    font-family: var(--font-title);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 22px;
    margin: auto;
    display: block;
    max-width: fit-content;
}

    .faq-subtitle::before {
        content: "";
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--green);
    }

.form-captcha {
    margin-top: 22px;
}

.g-recaptcha {
    transform-origin: left top;
}

.btn-load-more {
    font-size: 12px;
    margin: auto;
    display: block;
    margin-top: 50px;
}

#blog-loading {
    text-align: center;
    margin-top: 10px;
}