/* ==========================================================================
   CSS VARIABLES - Design System & Paleta de Cores
   ========================================================================== */
:root {
    /* Paleta de Cores Oficial Afonso de André */
    --bg-dark: #0F2C3A;           /* Azul Marinho (Fundo principal) */
    --bg-darker: #1F4E5F;         /* Azul Petróleo (Fundo secundário/seções) */
    --bg-card: #396B78;           /* Azul Acinzentado (Cards e boxes) */
    --accent-gold: #D4AF37;       /* Dourado Médio (Destaques e botões) */
    --accent-gold-hover: #F2D18A; /* Dourado Claro (Hover e realces) */
    --accent-dark: #B08A2E;       /* Dourado Escuro */
    
    /* Textos */
    --text-main: #F5F6F7;         /* Cinza Claríssimo (Texto principal) */
    --text-muted: #8FB7C0;        /* Azul Claro (Texto secundário) */
    --text-white: #ffffff;
    
    /* Tipografia */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Playfair Display', serif;
    
    /* Layout */
    --container-width: 1800px;    /* Layout Widescreen */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   RESET & BASICS
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-gold) var(--bg-dark);
}

/* Barra de rolagem (Webkit) */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold-hover);
}

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, #0A1E27 0%, #0F2C3A 100%);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-white);
    margin-bottom: 1rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--accent-gold);
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.bg-darker { background: linear-gradient(135deg, #13394b 0%, #1F4E5F 100%); }
.bg-accent-dark { background-color: var(--accent-dark); }
.bg-white-section {
    background-color: #F2F2F2;
}

#atuacao.bg-white-section {
    background-color: #D8DBDE;
}

#filosofia.bg-gray-light {
    background: #FFFFFF;
}
.bg-white-section h2 {
    color: var(--bg-dark);
}
.bg-white-section .section-subtitle {
    color: #4B5563;
}
.bg-white-section .section-title::after {
    background: var(--accent-gold);
}

.bg-white-section .faq-item {
    background: #FFFFFF;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-left-color: var(--accent-gold);
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.bg-white-section .faq-item:hover {
    background: #FFFFFF;
    border-left-color: var(--accent-gold-hover);
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}
.bg-white-section .faq-item h4 {
    color: var(--accent-dark);
}
.bg-white-section .faq-item h4::after {
    color: var(--accent-gold);
}
.bg-white-section .faq-item p {
    color: #4B5563;
}

.bg-marble {
    background-color: #F0EEEC;
    background-image:
        linear-gradient(105deg, rgba(255,255,255,0.55) 0%, transparent 60%),
        repeating-linear-gradient(
            120deg,
            rgba(200,196,192,0.18) 0px,
            rgba(200,196,192,0.18) 1px,
            transparent 1px,
            transparent 60px
        ),
        repeating-linear-gradient(
            60deg,
            rgba(180,176,172,0.10) 0px,
            rgba(180,176,172,0.10) 1px,
            transparent 1px,
            transparent 80px
        );
    color: var(--bg-dark);
}
.bg-marble h1, .bg-marble h2, .bg-marble h3, .bg-marble h4, .bg-marble h5, .bg-marble h6 {
    color: var(--bg-dark);
}
.bg-marble p {
    color: #3D4A52;
}
.bg-marble .lead {
    color: var(--accent-dark);
}
.bg-marble .section-title::after {
    background: var(--accent-gold);
}
.bg-light { 
    background-color: #E5E7EB; /* Cinza claríssimo */
    color: var(--bg-dark); 
}
.bg-light h1, .bg-light h2, .bg-light h3, .bg-light h4, .bg-light h5, .bg-light h6 {
    color: var(--bg-dark);
}
.bg-light p, .bg-light .contact-info, .bg-light .contact-info li {
    color: #4B5563; /* Texto escuro médio para manter contraste */
}
.bg-light a, .bg-light .contact-info a {
    color: var(--bg-darker);
    transition: var(--transition);
}
.bg-light a:hover, .bg-light .contact-info a:hover {
    color: var(--accent-dark);
}
.bg-light .contact-info i {
    color: var(--accent-dark); /* Ícones dourado escuro para contraste */
}
.bg-light .lead {
    color: var(--accent-dark);
}
.bg-light .card {
    background: #FFFFFF;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}
.bg-light .card:hover {
    border-color: rgba(197, 160, 89, 0.5);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* ==========================================================================
   TYPOGRAPHY & UTILS
   ========================================================================== */
.section-title {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-gold);
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--accent-gold);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-primary, .btn-secondary, .btn-outline, .btn-nav {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--bg-darker);
}

.btn-primary:hover {
    background-color: var(--accent-gold-hover);
    color: var(--bg-darker);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
}

.btn-outline:hover {
    background-color: var(--accent-gold);
    color: var(--bg-darker);
    transform: translateY(-2px);
}

.btn-nav {
    background-color: var(--accent-gold);
    color: var(--bg-darker);
    padding: 8px 20px;
    text-shadow: none !important;
}

.btn-nav:hover {
    color: var(--bg-darker);
    background-color: var(--accent-gold-hover);
}

.btn-block {
    display: block;
    width: 100%;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(15, 44, 58, 0); /* Transparent initial */
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
    padding: 20px 0;
}

#main-header.scrolled {
    background-color: rgba(15, 44, 58, 0.8); /* Azul Marinho transparent on scroll */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Fix for Logo 300x99 constraint */
.logo-wrapper {
    display: block;
    width: 200px; /* Mobile first width */
    height: 66px; /* Mobile first height */
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}

@media (min-width: 768px) {
    .logo-wrapper {
        width: 300px;
        height: 99px;
    }
}

#main-header.scrolled .logo-wrapper {
    width: 180px;
    height: 59px;
}

@media (min-width: 768px) {
    #main-header.scrolled .logo-wrapper {
        width: 240px;
        height: 79px;
    }
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.desktop-nav {
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: transparent;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-height: 0;
    padding: 0;
    overflow: hidden;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s ease-in-out, opacity 0.4s ease, padding 0.4s ease, visibility 0.4s;
}

.desktop-nav.active {
    max-height: min(82vh, 780px);
    padding: 1.5rem 0;
    opacity: 1;
    visibility: visible;
}

.desktop-nav > ul {
    display: flex;
    flex-direction: column; /* Stacked on mobile */
    align-items: center;
    gap: 1.5rem;
}

.desktop-nav li {
    position: relative;
}

.desktop-nav a,
.submenu-trigger {
    color: var(--text-white);
    font-weight: 500;
    font-size: 1.1rem; /* Larger for mobile tap */
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8); /* Sombreamento suave para contraste */
}

.submenu-trigger {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    cursor: pointer;
}

.desktop-nav a:not(.btn-nav):hover,
.submenu-trigger:hover,
.submenu-trigger:focus-visible {
    color: var(--accent-gold);
    outline: none;
}

.has-submenu {
    width: min(100%, 340px);
}

.submenu-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Seta indicadora no trigger */
.submenu-trigger::after {
    content: '▾';
    display: inline-block;
    margin-left: 0.35em;
    font-size: 0.75em;
    transition: transform 0.3s ease;
}

.submenu {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: min(100%, 340px);
    margin-top: 0.85rem;
    padding: 0;
    border-radius: 16px;
    background: rgba(8, 24, 31, 0.94);
    border: 1px solid rgba(212, 175, 55, 0.22);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
    z-index: 1200;
    /* Transição suave em vez de display:none */
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease, max-height 0.35s ease, padding 0.25s ease;
}

/* Mobile: abre via checkbox */
.submenu-checkbox:checked ~ .submenu {
    opacity: 1;
    visibility: visible;
    max-height: 600px;
    padding: 1rem 1.1rem;
}

.submenu-checkbox:checked ~ .submenu-trigger::after {
    transform: rotate(180deg);
}

.submenu a {
    display: block;
    font-size: 0.98rem;
    line-height: 1.4;
    text-align: center;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: none;
}

.submenu a:hover,
.submenu a:focus-visible {
    color: var(--accent-gold);
    outline: none;
}

.mobile-menu-btn {
    display: block; /* Visible on mobile */
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: block;
        position: static;
        width: auto;
        background-color: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0;
        box-shadow: none;
        max-height: none;
        opacity: 1;
        visibility: visible;
        overflow: visible;
    }
    
    .desktop-nav > ul {
        flex-direction: row;
        gap: 2rem;
    }

    .has-submenu {
        width: auto;
        padding-bottom: 1.2rem;
        margin-bottom: -1.2rem;
    }
    
    .desktop-nav a,
    .submenu-trigger {
        font-size: 0.95rem;
    }

    /* Desktop: abre via hover (ignora checkbox) */
    .has-submenu:hover > .submenu,
    .has-submenu:focus-within > .submenu {
        opacity: 1;
        visibility: visible;
        max-height: 600px;
        padding: 1rem 1.15rem;
    }

    .has-submenu:hover > .submenu-trigger::after,
    .has-submenu:focus-within > .submenu-trigger::after {
        transform: rotate(180deg);
    }

    .submenu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        min-width: 320px;
        margin-top: 0;
        gap: 0.85rem;
    }

    .submenu a {
        text-align: left;
        font-size: 0.92rem;
        white-space: nowrap;
    }
    
    .mobile-menu-btn {
        display: none;
    }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    height: auto;
    min-height: 100vh; /* Espaço suficiente no mobile */
    padding-top: 120px; /* Compensa o header fixo */
    padding-bottom: 60px;
    display: flex;
    align-items: center; /* Centraliza o conteúdo se sobrar espaço */
    background-image: url('imagens/escritorio-advocacia-empresarial-sao-paulo-fundo.png'); /* Widescreen Premium Background */
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

@media (min-width: 768px) {
    .hero {
        height: 85vh;
        min-height: 550px;
        padding-top: 80px;
        padding-bottom: 0;
    }
}

.hero-home {
    min-height: 100vh;
}

@media (min-width: 768px) {
    .hero-home {
        height: 68vh; /* 20% less padding/height as requested for home */
        min-height: 450px;
    }
}

.hero-internal {
    height: auto;
    min-height: auto;
    padding-top: 130px;
    padding-bottom: 30px;
    background-attachment: scroll;
}

@media (min-width: 768px) {
    .hero-internal {
        height: auto;
        min-height: auto;
        padding-top: 160px;
        padding-bottom: 40px;
    }
}

/* Posições específicas por área — ajusta onde o assunto principal aparece */
.hero-bg-antifraude       { background-position: center 60%; }
.hero-bg-civel            { background-position: center 65%; }
.hero-bg-compliance       { background-position: center 55%; }
.hero-bg-contratos        { background-position: center 60%; }
.hero-bg-contenciosa      { background-position: center 60%; }
.hero-bg-defesa-adm       { background-position: center 65%; }
.hero-bg-penal            { background-position: center 55%; }
.hero-bg-coletivo         { background-position: center 60%; }
.hero-bg-crises           { background-position: center 60%; }

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 44, 58, 0.95) 0%, rgba(15, 44, 58, 0.75) 50%, rgba(15, 44, 58, 0.4) 100%);
    z-index: 1;
}

.hero-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.90) 0%, rgba(0, 0, 0, 0.65) 50%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 40px; /* Reduced from 80px */
}

.hero-badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(197, 160, 89, 0.1);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 2.2rem; /* Mobile first font size */
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (min-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 2.5rem;
    max-width: 1200px;
}

.hero-actions {
    display: flex;
    flex-direction: column; /* Mobile first stack */
    gap: 1rem;
}

@media (min-width: 768px) {
    .hero-actions {
        flex-direction: row;
    }
}

/* ==========================================================================
   SECTIONS & GRIDS
   ========================================================================== */
.section {
    padding: 60px 0; /* Mobile first padding */
}

@media (min-width: 768px) {
    .section {
        padding: 100px 0;
    }
}

.split-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

@media (min-width: 992px) {
    .split-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 3rem;
    }
}

.split-content, .split-image, .split-form {
    flex: 1;
    width: 100%;
}

@media (min-width: 992px) {
    .split-content.right {
        flex: 0 0 460px;
        width: 460px;
    }
}

.glass-card {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    padding: 2rem 1.8rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.06);
}

.glass-card h3 {
    font-size: 1.2rem;
    color: var(--bg-dark);
    margin-bottom: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.glass-card ul li {
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: #3D4A52;
    font-size: 0.95rem;
}

/* Contact Layout 3 Colunas */
.contact-layout-3col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Mobile: formulário primeiro */
.contact-col-form  { order: 1; }
.contact-col-text  { order: 2; }
.contact-col-map   { order: 3; }

@media (min-width: 900px) {
    .contact-layout-3col {
        display: grid;
        grid-template-columns: 1fr 1fr 1.2fr;
        gap: 2rem 3rem;
        align-items: start;
    }
    .contact-col-text  { order: unset; }
    .contact-col-map   { order: unset; text-align: center; }
    .contact-col-form  { order: unset; }
}

.image-placeholder {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-darker) 100%);
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--accent-gold);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.grid-cards {
    display: grid;
    /* Grid passa a aceitar até 4 colunas dependendo do tamanho definido no HTML inline ou aqui */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: #F9FAFB;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: var(--transition);
    color: var(--bg-dark);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    background: #FFFFFF;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.card-icon-inline {
    font-size: 1.2rem;
    color: var(--accent-gold);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--bg-dark);
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.card p {
    color: #4B5563;
}

.grid-services {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid-services {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-services {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1600px) {
    .grid-services {
        grid-template-columns: repeat(5, 1fr);
    }
}

.service-box {
    padding: 1.5rem 0 0;
    background: rgba(57, 107, 120, 0.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(57, 107, 120, 0.55);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: var(--bg-dark);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    position: relative;
    isolation: isolate;
}

.service-box::after {
    display: none;
}

.service-box-icon {
    width: 78px;
    height: 78px;
    margin: 0 auto;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(57, 107, 120, 0.32);
    box-shadow: none;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-box-icon i {
    font-size: 1.9rem;
    color: var(--bg-card);
    transition: color 0.3s ease;
}

.service-box-icon,
.service-box h3,
.service-box p,
.service-box .service-link {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.service-box-icon,
.service-box h3,
.service-box p,
.service-box .service-link {
    position: relative;
    z-index: 1;
}

.service-box h3 {
    padding-top: 1.35rem;
    font-size: 1.2rem;
    color: var(--bg-dark);
    font-weight: 600;
    margin-bottom: 0.35rem;
    text-align: center;
    transition: color 0.3s ease;
}

.service-box .service-link {
    padding-bottom: 1.25rem;
}

/* Hover sutil e premium — só no box */
.service-box:hover {
    transform: translateY(-6px);
    border-color: var(--bg-card);
    box-shadow: 0 12px 28px rgba(0,0,0,0.10), 0 0 0 1px rgba(57, 107, 120, 0.20);
}

.service-box:hover .service-link {
    color: var(--accent-dark);
}

.service-box:hover .service-link i {
    transform: translateX(4px);
}

/* Reseta o delay herdado das classes .delay-1/2/3 após o reveal */
.service-box.reveal.active {
    transition-delay: 0s !important;
}

.service-box p {
    color: #4B5563; /* Cinza médio/escuro para leitura confortável */
    font-size: 0.95rem;
    flex-grow: 1;
    margin-top: 0.5rem;
    text-align: center;
}

.service-box:hover p {
    color: #4B5563;
}

.service-link {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--bg-darker);
    justify-content: center;
    text-align: center;
    transition: color 0.3s ease;
}

.service-link i {
    color: var(--accent-gold);
    transition: transform 0.3s ease;
}

/* ==========================================================================
   FORMS & CONTACT
   ========================================================================== */
.contact-info {
    font-size: 1.1rem;
}

.contact-info li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-info i {
    color: var(--accent-gold);
    width: 20px;
}

.lead-form {
    background: rgba(15, 44, 58, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 2rem; /* Mobile first padding */
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border-top: 4px solid var(--accent-gold);
    border-left: 1px solid rgba(197, 160, 89, 0.2);
    border-right: 1px solid rgba(197, 160, 89, 0.2);
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    color: var(--text-white);
}

@media (min-width: 768px) {
    .lead-form {
        padding: 3rem;
    }
}

.lead-form h3 {
    margin-bottom: 2rem;
    color: var(--text-white);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background-color: #F4F5F7;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    color: #1A2E3A;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: #7A8D96;
    opacity: 1;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    background-color: #FFFFFF;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 2px rgba(197, 160, 89, 0.2);
    color: #1A2E3A;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background-color: #0b1f28; /* Mais escuro que o Azul Marinho */
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile first */
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 2fr;
        gap: 3rem;
    }
}

.logo-img-footer {
    width: 200px;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-contact-brief p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-contact-brief a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-contact-brief a:hover {
    color: var(--accent-gold);
}

.footer-contact-brief i {
    color: var(--accent-gold);
    margin-right: 8px;
    width: 15px;
    text-align: center;
}

.footer-links h3 {
    color: var(--text-white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-gold);
}

.footer-links ul {
    display: grid;
    grid-template-columns: 1fr; /* Mobile first */
    gap: 1rem;
}

@media (min-width: 576px) {
    .footer-links ul {
        grid-template-columns: 1fr 1fr;
    }
}

.footer-links li a {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.footer-links li a i {
    font-size: 0.7rem;
    margin-right: 8px;
    color: var(--accent-gold);
    transition: var(--transition);
}

.footer-links li a:hover {
    color: var(--accent-gold-hover);
    transform: translateX(5px);
}

.footer-links li a:hover i {
    color: var(--accent-gold-hover);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   FILOSOFIA & OBJETIVOS (HOME)
   ========================================================================== */
.section-badge-home {
    display: block;
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-gold);
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 0.35rem 1.1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.pillars-home {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 767px) {
    .pillars-home {
        grid-template-columns: 1fr;
    }
}

.pillar-home {
    background: var(--bg-dark);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
}

.pillar-home:hover {
    border-color: var(--accent-gold);
    background: var(--bg-dark);
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(212, 175, 55, 0.2);
}

.pillar-home-icon {
    font-size: 2.4rem;
    color: var(--accent-gold);
    margin-bottom: 1.2rem;
}

.pillar-home h3,
.pillar-home:hover h3,
.bg-gray-light .pillar-home h3 {
    font-size: 1.3rem;
    color: #FFFFFF !important;
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.pillar-home p,
.pillar-home:hover p,
.bg-gray-light .pillar-home p {
    color: var(--accent-gold) !important;
    font-size: 1rem;
    line-height: 1.6;
}

.filosofia-highlight {
    background: rgba(15, 44, 58, 0.07);
    border-left: 4px solid var(--accent-gold);
    padding: 1.5rem 2rem;
    border-radius: 0 8px 8px 0;
    max-width: 860px;
    margin: 2.5rem auto 0;
}

.filosofia-highlight p {
    color: var(--bg-dark);
    font-size: 1.05rem;
    line-height: 1.7;
    font-style: italic;
}

.bg-gray-light {
    background-color: #D8DBDE;
    color: var(--bg-dark);
}
.bg-gray-light h1, .bg-gray-light h2, .bg-gray-light h3, .bg-gray-light h4 {
    color: var(--bg-dark);
}
.bg-gray-light p {
    color: #3D4A52;
}
.bg-gray-light .section-title::after {
    background: var(--accent-gold);
}
.bg-gray-light .section-subtitle {
    color: #5A6A72;
}
.bg-gray-light .section-badge-home {
    background: rgba(176, 138, 46, 0.12);
    color: var(--accent-dark);
    border-color: rgba(176, 138, 46, 0.5);
}
.bg-gray-light .filosofia-highlight {
    background: rgba(15, 44, 58, 0.06);
}
.bg-gray-light .filosofia-highlight p {
    color: var(--bg-dark);
}

.bg-marble .section-badge-home {
    background: rgba(176, 138, 46, 0.12);
    color: var(--accent-dark);
    border-color: rgba(176, 138, 46, 0.5);
}

.sobre-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.8rem;
}

.sobre-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(176, 138, 46, 0.1);
    color: var(--accent-dark);
    border: 1px solid rgba(176, 138, 46, 0.45);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    font-style: italic;
    letter-spacing: 0.04em;
}

.sobre-badge i {
    font-style: normal;
    font-size: 0.8rem;
}

.objetivos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 767px) {
    .objetivos-grid {
        grid-template-columns: 1fr;
    }
}

.objetivo-card {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 1.8rem 1.5rem;
    transition: var(--transition);
}

.objetivo-card:hover {
    border-color: var(--accent-gold);
    background: rgba(255,255,255,0.08);
    transform: translateY(-4px);
}

.objetivo-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-gold);
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
}

.objetivo-card p {
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   DIFF-LIST (seções de atuação nas páginas de área)
   ========================================================================== */
.diff-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.diff-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.2rem;
}

.diff-icon-wrap {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent-gold);
    margin-top: 0.15rem;
}

.diff-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--bg-dark);
    margin-bottom: 0.5rem;
}

.diff-content p {
    color: #4B5563;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==========================================================================
   EXTRA BLOCKS (FAQ, STATS, MAP)
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 500;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(57, 107, 120, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0;
    margin-bottom: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    border-left: 4px solid var(--accent-gold);
    transition: var(--transition);
    overflow: hidden;
}

.faq-item:hover {
    border-left-color: var(--accent-gold-hover);
}

.faq-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0;
    color: var(--accent-gold);
    cursor: pointer;
    padding: 1.5rem 3rem 1.5rem 2rem;
    position: relative;
    user-select: none;
    transition: background 0.2s ease;
}

.faq-item h4:hover {
    background: rgba(255,255,255,0.03);
}

.faq-item h4::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--accent-gold);
    transition: transform 0.3s ease;
    line-height: 1;
}

.faq-item.active h4::after {
    content: '−';
    transform: translateY(-50%);
}

.faq-item > div {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 2rem;
}

.faq-item.active > div {
    max-height: 300px;
    padding: 0 2rem 1.5rem;
}

.map-container {
    width: 100%;
    aspect-ratio: 16 / 7;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 2rem;
    border: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 767px) {
    .map-container { aspect-ratio: 4 / 3; }
}

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

.estados-atuacao {
    border-top: 1px solid rgba(15, 44, 58, 0.15);
    padding-top: 1.25rem;
}

.estados-titulo {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bg-darker);
    margin-bottom: 0.75rem;
}

.estados-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.estados-lista span {
    background-color: var(--bg-dark);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
}

/* ==========================================================================
   WHATSAPP FLOATING BUTTON
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    transition: var(--transition), bottom 0.4s ease;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #20b858;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* ==========================================================================
   COOKIE CONSENT BANNER
   ========================================================================== */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0f2a33;
    border-top: 2px solid var(--accent-gold);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}
#cookie-banner.visible { transform: translateY(0); }
#cookie-banner p { margin: 0; font-size: 0.88rem; color: #ccc; flex: 1; }
#cookie-banner p a { color: var(--accent-gold); text-decoration: underline; }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-btn-accept {
    background: var(--accent-gold);
    color: #0f2a33;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
    transition: opacity 0.2s;
}
.cookie-btn-accept:hover { opacity: 0.85; }
.cookie-btn-decline {
    background: transparent;
    color: #aaa;
    border: 1px solid #aaa;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.88rem;
    cursor: pointer;
    font-family: var(--font-body);
    transition: opacity 0.2s;
}
.cookie-btn-decline:hover { opacity: 0.7; }

body.cookie-visible .whatsapp-float {
    bottom: 90px;
}
@media (max-width: 600px) {
    #cookie-banner { flex-direction: column; align-items: flex-start; padding: 16px; }
    .cookie-actions { width: 100%; }
    .cookie-btn-accept, .cookie-btn-decline { flex: 1; text-align: center; }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal.right {
    transform: translateX(30px);
}

.reveal.right.active {
    transform: translateX(0);
}

.animate-up {
    animation: fadeInUp 1s cubic-bezier(0.5, 0, 0, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.delay-1 { animation-delay: 0.2s; transition-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; transition-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; transition-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
