/* ==========================================================================
   FNSOUZA ADVOGADOS — FOLHA DE ESTILOS INSTITUCIONAL (PRODUÇÃO)
   Tipografia Original: Codec (sem serifa para títulos) & Roboto (textos)
   Identidade: Bege Acobreado Nobre & Cinza Neutro Escuro (Zero Azul em Áreas Claras)
   Responsividade: Viewport Fluida de 375px a 1366px sem overflow horizontal
   ========================================================================== */

@font-face {
    font-family: 'codec';
    src: url('codec.ttf') format('truetype');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Fontes Oficiais Referência Site Original */
    --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --font-heading: 'codec', 'Roboto', -apple-system, sans-serif;

    /* Tamanhos Tipográficos Canônicos Desktop */
    --text-size-body: 18px;
    --text-size-section-desc: 18px;
    --text-size-card-title: 26px;
    --text-size-section-title: 38px;
    --text-size-hero-title: 50px;
    --text-size-menu: 16px;
    --text-size-btn: 16px;
    --line-height-body: 1.5;

    /* Paleta Cromática Homologada — Bege Acobreado & Cinza Neutro (Sem Azul em Fundos Claros) */
    --title-copper: #78350f;        /* Bege acobreado escurecido nobre para títulos (Contraste 7.8:1 - WCAG AAA) */
    --title-copper-hover: #92400e;  /* Bege acobreado para foco/hover */
    --accent: #9a4c1e;              /* Bege acobreado institucional de destaque (Contraste 5.2:1) */
    --accent-hover: #78350f;        /* Bege acobreado escurecido para botões */
    --accent-light: #fdf8f4;        /* Fundo suave quente acobreado */
    --accent-border: #d4a281;       /* Borda acobreada elegante */
    
    --text-main: #262626;           /* Cinza neutro escuro sobre claros (Zero azul - Contraste 13:1 - WCAG AAA) */
    --text-muted: #525252;          /* Cinza neutro intermediário de apoio (Contraste 6.8:1 - WCAG AAA) */
    
    --hero-bg: #0f141c;             /* Fundo do banner escuro fotográfico */
    --surface: #ffffff;             /* Superfície dos cards e seções */
    --bg-light: #faf8f5;            /* Fundo geral neutro acolhedor sem matiz azul */
    --bg-card: #ffffff;             /* Cartões brancos de alto contraste */
    --border: #e7e2dc;              /* Bordas neutras sem azul */
    --border-strong: #d1c7bc;
    
    /* Alertas e Badges */
    --warning-bg: #fffbeb;
    --warning-text: #92400e;
    --warning-border: #fcd34d;

    /* Transições */
    --transition: all 0.2s ease-in-out;
}

/* Reset & Box Model */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 18px;
    width: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.5;
    color: var(--text-main);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    margin: 0;
    padding: 0;
    /* overflow-x NÃO utilizado como paliativo para esconder cortes; a largura é rigorosamente 100% fluida */
}

/* Tipografia Encorpada com Bege Acobreado em Áreas Claras */
h1, h2, h3, h4, .font-heading {
    font-family: var(--font-heading);
    color: var(--title-copper);
    font-weight: 700;
}

p, ul, ol {
    font-size: 18px;
    line-height: 1.5;
    color: var(--text-main);
}

/* Links */
a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

/* Foco Acessível (WCAG) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--accent) !important;
    outline-offset: 2px !important;
}

/* ==========================================================================
   CONTAINER & LAYOUT
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ==========================================================================
   BARRA DE VERSÃO / APROVAÇÃO (REMOVIDA NA ETAPA 04B CONFORME REQUISITO)
   ========================================================================== */
.demo-banner-global {
    display: none !important;
}

/* ==========================================================================
   BARRA UTILITÁRIA SUPERIOR COM CONTATOS REAIS & WEBMAIL
   ========================================================================== */
.top-bar {
    background: #11161d;
    color: #e2e8f0;
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    width: 100%;
    box-sizing: border-box;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 18px;
}

.top-link {
    color: #f1f5f9;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.top-link:hover {
    color: var(--accent-border);
}

/* Webmail Oficial Ativo */
.webmail-active-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff !important;
    background: rgba(154, 76, 30, 0.28);
    border: 1px solid var(--accent-border);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.webmail-active-link:hover {
    background: var(--accent);
    color: #ffffff !important;
}

/* ==========================================================================
   CABEÇALHO & MENU RECOLHÍVEL ACESSÍVEL
   ========================================================================== */
header.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
    padding: 8px 20px;
    position: relative;
    box-sizing: border-box;
}

.brand-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-main-logo {
    width: 320px;
    max-width: 100%;
    height: auto;
    max-height: 52px;
    object-fit: contain;
    display: block;
}

/* Botão Hamburger Mobile (Inicialmente oculto no desktop) */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    color: var(--title-copper);
    padding: 0;
    transition: var(--transition);
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus-visible {
    border-color: var(--accent);
    background: var(--accent-light);
}

.hamburger-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 16px;
}

.hamburger-bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--title-copper);
    border-radius: 2px;
    transition: var(--transition);
}

/* Animação do X quando aberto */
.mobile-menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Navegação Desktop */
nav.main-nav ul {
    display: flex;
    list-style: none;
    gap: 18px;
    align-items: center;
}

nav.main-nav a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 16px;
    font-weight: 600;
    padding: 6px 4px;
    position: relative;
    transition: var(--transition);
}

nav.main-nav a:hover,
nav.main-nav a.active {
    color: var(--accent);
}

nav.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
}

/* Botão Portal de Acesso */
.btn-client-access {
    background: var(--title-copper);
    color: #ffffff !important;
    padding: 10px 18px;
    border-radius: 6px;
    border: 1px solid var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
}

.btn-client-access:hover {
    background: var(--accent);
    color: #ffffff !important;
}

/* ==========================================================================
   BANNER PRINCIPAL (HERO) COM BALANÇA À DIREITA & TEXTO À ESQUERDA
   ========================================================================== */
.hero-block {
    position: relative;
    background-color: #0f141c;
    background-image: 
        linear-gradient(90deg, rgba(15, 20, 28, 0.95) 0%, rgba(15, 20, 28, 0.82) 48%, rgba(15, 20, 28, 0.12) 75%, rgba(15, 20, 28, 0.28) 100%),
        url('../img/fundo-banner-aprovado.png');
    background-position: right center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #ffffff;
    padding: 56px 0;
    width: 100%;
    box-sizing: border-box;
}

.hero-inner-content {
    max-width: 660px;
    position: relative;
    z-index: 2;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.hero-block h2 {
    color: #ffffff !important;
    font-size: 50px;
    line-height: 1.15;
    margin-bottom: 14px;
    font-weight: 700;
    word-break: normal;
    overflow-wrap: break-word;
}

.hero-block p {
    color: #f1f5f9;
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 24px;
    word-break: normal;
    overflow-wrap: break-word;
}

.hero-actions-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    width: 100%;
}

/* Botões do Hero */
.btn-primary {
    background: var(--accent);
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 6px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: #ffffff !important;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.btn-outline:hover {
    background: #ffffff;
    color: var(--title-copper) !important;
}

/* ==========================================================================
   SEÇÕES & ESPAÇAMENTOS OTIMIZADOS
   ========================================================================== */
.section-pad {
    padding: 36px 0;
    width: 100%;
    box-sizing: border-box;
}

.section-head {
    margin-bottom: 22px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.section-head h2 {
    font-size: 38px;
    line-height: 1.2;
    margin-bottom: 10px;
    color: var(--title-copper);
    word-break: normal;
    overflow-wrap: break-word;
}

.section-head p {
    font-size: 18px;
    line-height: 1.5;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
    word-break: normal;
    overflow-wrap: break-word;
}

/* ==========================================================================
   GRIDS & CARDS
   ========================================================================== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    width: 100%;
    box-sizing: border-box;
}

.card-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    width: 100%;
    box-sizing: border-box;
    word-break: normal;
    overflow-wrap: break-word;
}

.card-box:hover {
    border-color: var(--accent-border);
    box-shadow: 0 4px 12px rgba(154, 76, 30, 0.08);
}

.card-box h3 {
    font-size: 26px;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--title-copper);
}

.card-box p {
    font-size: 18px;
    line-height: 1.5;
    color: var(--text-main);
}

/* Cards das Áreas de Atuação */
.area-card-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    box-sizing: border-box;
    width: 100%;
}

.area-card-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(154, 76, 30, 0.1);
}

.area-card-item h4 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--title-copper);
}

.area-card-item p {
    font-size: 18px;
    line-height: 1.5;
    color: var(--text-main);
    margin-bottom: 16px;
}

.area-card-link {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Lista de Informações de Contato */
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
    width: 100%;
    box-sizing: border-box;
}

.contact-info-item {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.contact-label {
    font-weight: 700;
    color: var(--accent);
    min-width: 140px;
    font-size: 16px;
}

.contact-val {
    color: var(--text-main);
    font-weight: 600;
    font-size: 16px;
    word-break: break-word;
}

@media (max-width: 600px) {
    .contact-info-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 3px !important;
    }
    .contact-label {
        min-width: 0 !important;
        font-size: 13px !important;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    .contact-val {
        font-size: 17px !important;
    }
}

/* ==========================================================================
   RODAPÉ INSTITUCIONAL (4 BLOCOS SEMÂNTICOS ORGANIZADOS — ETAPA 04C)
   ========================================================================== */
.site-footer {
    background: #11161d;
    color: #e2e8f0;
    padding: 44px 0 24px;
    margin-top: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.footer-grid-4 {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.2fr 1.1fr;
    gap: 32px;
    margin-bottom: 32px;
    width: 100%;
    box-sizing: border-box;
    align-items: start;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-col h4, .footer-heading {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* Bloco 1: Identidade e Endereço com Logo em Fundo Claro */
.footer-logo-badge {
    background: #ffffff;
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.footer-brand-logo {
    width: 220px;
    max-width: 100%;
    height: auto;
    max-height: 44px;
    display: block;
    object-fit: contain;
}

.footer-desc {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 12px;
}

.footer-address-box {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.45;
    background: rgba(255, 255, 255, 0.04);
    padding: 10px 12px;
    border-radius: 6px;
    border-left: 3px solid var(--accent-border);
    width: 100%;
    box-sizing: border-box;
}

.footer-address-box strong {
    color: #ffffff;
}

/* Listas Semânticas com Cada Link em Linha Própria */
.footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.footer-link-list li {
    font-size: 15px;
    line-height: 1.45;
    color: #cbd5e1;
}

.footer-link-list a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
}

.footer-link-list a:hover {
    color: var(--accent-border);
    text-decoration: underline;
}

.footer-sublabel {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 2px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    color: #94a3b8;
}

.footer-bottom-bar p {
    font-size: 14px;
    color: #94a3b8;
}

.footer-bottom-bar a {
    color: #cbd5e1;
    text-decoration: none;
}

.footer-bottom-bar a:hover {
    color: var(--accent-border);
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .footer-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

@media (max-width: 600px) {
    .footer-grid-4 {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ==========================================================================
   RESPONSIVIDADE E CORREÇÃO DE LARGURA (375px, 390px, 768px, 1280px, 1366px)
   ========================================================================== */

/* Telas Médias / Tablets (<= 900px) */
@media (max-width: 900px) {
    .nav-container {
        min-height: 68px;
        padding: 8px 16px;
    }

    .brand-main-logo {
        width: 220px;
        max-height: 44px;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    /* Menu Recolhível Acessível */
    nav.main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: #ffffff;
        box-shadow: 0 12px 28px rgba(0,0,0,0.12);
        border-bottom: 3px solid var(--accent);
        border-top: 1px solid var(--border);
        padding: 16px 20px 24px;
        z-index: 1000;
        box-sizing: border-box;
    }

    nav.main-nav.is-open {
        display: block !important;
        animation: menuFadeIn 0.2s ease-out;
    }

    @keyframes menuFadeIn {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: translateY(0); }
    }

    nav.main-nav ul {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
        padding: 0 !important;
        list-style: none !important;
    }

    nav.main-nav li {
        width: 100% !important;
    }

    nav.main-nav a {
        display: block !important;
        padding: 12px 14px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        color: var(--text-main) !important;
        border-radius: 6px !important;
        background: var(--bg-light) !important;
        text-align: left !important;
        border: 1px solid var(--border) !important;
        white-space: normal !important;
        text-decoration: none !important;
    }

    nav.main-nav a:hover,
    nav.main-nav a.active {
        background: var(--accent-light) !important;
        color: var(--accent-hover) !important;
        border-color: var(--accent-border) !important;
    }

    nav.main-nav .btn-client-access {
        margin-top: 8px !important;
        background: var(--title-copper) !important;
        color: #ffffff !important;
        text-align: center !important;
        justify-content: center !important;
        border: none !important;
    }

    .hero-block {
        padding: 44px 0;
        background-position: center right;
    }

    .hero-block h2 {
        font-size: 38px;
        line-height: 1.2;
    }

    .grid-3, .grid-2, .footer-columns {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

/* Telas Pequenas / Smartphones (<= 600px e 375px - 390px) */
@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }

    .demo-banner-global {
        font-size: 12px;
        padding: 6px 12px;
    }

    .top-bar-inner {
        flex-direction: column;
        text-align: center;
        gap: 6px;
        padding: 0;
    }

    .top-bar-left, .top-bar-right {
        flex-direction: column;
        gap: 4px;
        align-items: center;
        width: 100%;
    }

    .top-link {
        font-size: 13px;
        text-align: center;
        justify-content: center;
    }

    .brand-main-logo {
        width: 200px;
        max-height: 42px;
    }

    .hero-block {
        background-image: 
            linear-gradient(180deg, rgba(15, 20, 28, 0.94) 0%, rgba(15, 20, 28, 0.88) 55%, rgba(15, 20, 28, 0.65) 100%),
            url('../img/fundo-banner-aprovado.png');
        background-position: center right;
        padding: 36px 0;
    }

    .hero-block h2 {
        font-size: 28px;
        line-height: 1.25;
        word-break: normal;
        overflow-wrap: break-word;
    }

    .hero-block p {
        font-size: 17px; /* Mantido em 17px conforme requisito */
        line-height: 1.5;
    }

    .hero-actions-group {
        flex-direction: column;
        gap: 10px;
    }

    .hero-actions-group .btn-primary,
    .hero-actions-group .btn-outline {
        width: 100%;
        text-align: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .section-pad {
        padding: 28px 0;
    }

    .section-head h2 {
        font-size: 26px;
        line-height: 1.25;
    }

    .section-head p {
        font-size: 17px; /* Mantido em 17px conforme requisito */
    }

    .card-box {
        padding: 20px 16px;
    }

    .card-box h3 {
        font-size: 22px;
    }

    .card-box p, .area-card-item p {
        font-size: 17px; /* Mantido em 17px conforme requisito */
    }

    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

/* ==========================================================================
   ETAPA 04B — COMPONENTES CONSOLIDADOS
   ========================================================================== */

/* 1. Seção de Chamada Pré-Rodapé (Marque uma Consulta — WhatsApp & E-mail) */
.cta-section {
    background-color: var(--accent-light);
    border-top: 1px solid var(--accent-border);
    border-bottom: 1px solid var(--border);
    padding: 44px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--title-copper);
}

.cta-section p.cta-intro {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 20px;
    line-height: 1.5;
}

.cta-btn-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.cta-btn-group .btn-primary,
.cta-btn-group .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
}

.cta-btn-group .btn-outline {
    background: transparent;
    color: var(--title-copper) !important;
    border: 2px solid var(--accent);
}

.cta-btn-group .btn-outline:hover {
    background: var(--accent);
    color: #ffffff !important;
    border-color: var(--accent);
}

.cta-btn-group .btn-primary:focus-visible,
.cta-btn-group .btn-outline:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.cta-helper-text {
    font-size: 13px !important;
    color: var(--text-muted) !important;
    margin: 8px auto 0 !important;
    max-width: 720px;
    line-height: 1.45;
}

.cta-notice-tag {
    display: inline-block;
    background: rgba(120, 53, 15, 0.08);
    color: var(--title-copper);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    margin-right: 6px;
}

.selectable-email {
    color: var(--title-copper);
    font-weight: 700;
    user-select: all;
    -webkit-user-select: all;
}

@media (max-width: 600px) {
    .cta-btn-group {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    .cta-btn-group .btn-primary,
    .cta-btn-group .btn-outline {
        width: 100%;
        box-sizing: border-box;
    }
}

/* 2. Botão Flutuante do WhatsApp (Acessível, Leve & Não Intrusivo) */
.whatsapp-floating-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #25D366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    z-index: 990;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.whatsapp-floating-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    color: #ffffff;
}

.whatsapp-floating-btn:focus-visible {
    outline: 3px solid #128C7E;
    outline-offset: 3px;
}

.whatsapp-floating-btn svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* 3. Dois Cliques para Conteúdo Externo — Google Maps com Privacidade */
.map-consent-wrapper {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.map-consent-card {
    padding: 32px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    background: var(--surface);
}

.map-address-box {
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-main);
}

.map-notice-text {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: 20px;
    line-height: 1.45;
}

.map-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.map-iframe-container {
    width: 100%;
    height: 380px;
    position: relative;
}

.map-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.map-revoke-bar {
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 8px;
}

/* 4. Banner e Modal de Preferências de Cookies (Acessível & Conforme) */
.cookie-banner-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #11161d;
    color: #f1f5f9;
    padding: 16px 20px;
    z-index: 9999;
    border-top: 2px solid var(--accent-border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.cookie-banner-text {
    font-size: 14px;
    line-height: 1.45;
    flex: 1;
    min-width: 280px;
    color: #e2e8f0;
}

.cookie-banner-text a {
    color: var(--accent-border);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Visibilidade Equivalente entre Aceitar e Rejeitar */
.btn-cookie-accept {
    background: var(--accent);
    color: #ffffff;
    border: 1px solid var(--accent);
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cookie-accept:hover {
    background: var(--accent-hover);
}

.btn-cookie-reject {
    background: #334155;
    color: #ffffff;
    border: 1px solid #475569;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cookie-reject:hover {
    background: #1e293b;
}

.btn-cookie-prefs {
    background: transparent;
    color: #cbd5e1;
    border: 1px solid #475569;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cookie-prefs:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

/* Modal de Configuração de Cookies */
.cookie-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.cookie-modal-box {
    background: var(--surface);
    color: var(--text-main);
    border-radius: 12px;
    max-width: 560px;
    width: 100%;
    padding: 28px;
    border: 1px solid var(--border);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.cookie-modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: var(--title-copper);
}

.cookie-pref-row {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.cookie-pref-info h4 {
    font-size: 15px;
    margin-bottom: 4px;
    color: var(--text-main);
}

.cookie-pref-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.cookie-switch {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.cookie-switch input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
    cursor: pointer;
}

.cookie-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.cookie-prefs-link {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.cookie-prefs-link:hover {
    color: var(--accent);
}

/* 5. Identidade Visual Padronizada dos Ambientes Internos */
aside.app-sidebar, aside.admin-sidebar {
    background: #11161d !important;
    color: #f1f5f9 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-menu a {
    color: #cbd5e1 !important;
}

.sidebar-menu a:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

.sidebar-menu a.active {
    background: rgba(154, 76, 30, 0.28) !important;
    color: var(--accent-border) !important;
    border-left: 3px solid var(--accent);
}

main.app-main, main.admin-main {
    background: var(--bg-light) !important;
    color: var(--text-main) !important;
}

/* ==========================================================================
   ETAPA 04D — AJUSTE DO FORMULÁRIO DE CONTATO & CRÉDITO DO DESENVOLVEDOR
   ========================================================================== */

/* 1. Ajuste da altura natural do formulário de contato e alinhamento com o mapa */
.grid-contact {
    align-items: start !important;
}

#formulario-contato,
.contact-form-card {
    align-self: start !important;
    height: auto !important;
    scroll-margin-top: 100px;
}

/* 2. Crédito do Desenvolvedor (MXN Tecnologia) no Rodapé */
.developer-credit {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

.developer-credit a {
    color: var(--accent-border);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.developer-credit a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.internal-footer {
    padding: 24px 0 12px;
    margin-top: 32px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

.internal-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.internal-footer a:hover {
    text-decoration: underline;
}

