/* --- Design System & CSS Variables (Exact Briefing Colors) --- */
:root {
    /* Cores Principais do Briefing */
    --azul-treicon: #173A9E;     /* Logo, botões principais, links importantes */
    --azul-profundo: #071A3D;    /* Hero, rodapé, títulos fortes, fundos premium */
    --azul-acao: #2563EB;        /* Botões secundários, destakes interativos */
    --branco: #FFFFFF;           /* Fundo limpo, cards, seções com respiro */
    --off-white: #F6F8FC;        /* Blocos alternados, áreas de serviços e FAQ */
    --cinza-texto: #1F2937;      /* Texto principal editorial */
    --cinza-medio: #6B7280;      /* Subtítulos, descrições secundárias */
    --cinza-borda: #E5E7EB;      /* Divisórias, bordas de cards e inputs */

    /* Cores de Apoio */
    --dourado: #C9A227;          /* Detalhes premium, números, selos e destaques */
    --verde: #16A34A;            /* Indicadores positivos, cases de sucesso */
    --azul-claro: #EAF2FF;       /* Fundos explicativos e chamadas LLM/IA */
    --vermelho: #DC2626;         /* Avisos críticos */
    
    /* Variáveis Auxiliares (Resolvendo problemas de renderização de cor) */
    --azul-profundo-light: #162a4d;
    --cinza-texto-light: #d1d5db; /* Para textos sobre fundo escuro */
    
    /* Layout & Spacing */
    --max-width: 1200px;
    --header-height: 80px;
    
    /* Typography */
    --font-headings: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Decoration & Transitions */
    --shadow-sm: 0 1px 3px rgba(7, 26, 61, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(7, 26, 61, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(7, 26, 61, 0.1);
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    --shadow-gold: 0 10px 25px -5px rgba(201, 162, 39, 0.25);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.35);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base & Reset Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--branco);
    color: var(--cinza-texto);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    color: var(--azul-profundo);
    font-weight: 700;
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

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

/* Selection style */
::selection {
    background-color: var(--azul-treicon);
    color: var(--branco);
}

/* --- Utility Classes --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--azul-acao) 0%, var(--dourado) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.section-tagline {
    font-family: var(--font-headings);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--azul-treicon);
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.25rem;
    color: var(--azul-profundo);
    margin-bottom: 16px;
    font-weight: 800;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--cinza-medio);
    max-width: 600px;
    margin: 0 auto 32px auto;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-headings);
    font-weight: 600;
    padding: 14px 30px;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--dourado);
    color: var(--azul-profundo);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.btn-secondary {
    background: transparent;
    border-color: var(--dourado);
    color: var(--branco);
}

.btn-secondary:hover {
    background: rgba(201, 162, 39, 0.15);
    color: var(--branco);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

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

/* --- Glassmorphic Card (Translucent Dark Overlay) --- */
.glass-card {
    background: rgba(15, 23, 61, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-glass);
}

/* --- Main Header (Clean White Strip) --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--branco);
    border-bottom: 1px solid var(--cinza-borda);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    height: 70px;
    box-shadow: var(--shadow-md);
}

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

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--azul-profundo);
    position: relative;
    padding: 8px 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--azul-treicon);
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-actions .btn-primary {
    background: var(--azul-treicon);
    color: var(--branco);
    box-shadow: 0 4px 12px rgba(23, 58, 158, 0.15);
}

.header-actions .btn-primary:hover {
    background: #0f277a;
}

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
    padding: 4px;
}

.mobile-nav-toggle .bar {
    width: 24px;
    height: 2px;
    background: var(--azul-profundo);
    transition: var(--transition-smooth);
}

/* --- Hero Section (Navy Executivo Premium - Dark Gradient) --- */
.hero-section {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    background: radial-gradient(circle at 80% 20%, var(--azul-profundo-light) 0%, var(--azul-profundo) 100%);
    color: var(--branco);
    position: relative;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(201, 162, 39, 0.05) 1px, transparent 1px);
    background-size: 35px 35px;
    opacity: 0.8;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201, 162, 39, 0.12);
    border: 1px solid rgba(201, 162, 39, 0.3);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-family: var(--font-headings);
    font-weight: 600;
    color: var(--dourado);
    margin-bottom: 24px;
}

.icon-gold {
    color: var(--dourado);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--branco);
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--cinza-texto-light);
    margin-bottom: 40px;
}

.hero-subtitle strong {
    color: var(--branco);
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Portrait Visual Area (Larger Photo, Smaller Card, Offset from right margin) */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    height: 480px;
}

.hero-portrait-frame-container {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-right: 40px; /* Pushes portrait away from right edge */
}

.portrait-crop-container {
    width: 330px;
    height: 400px;
    border-radius: var(--radius-lg);
    border: 3px solid var(--dourado);
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.hero-portrait-main {
    width: 100%;
    height: 108%;
    object-fit: cover;
    object-position: center top;
    opacity: 1;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.hero-overlay-card {
    position: absolute;
    width: 220px;
    border-radius: var(--radius-md);
    padding: 16px 14px;
    text-align: center;
    z-index: 10;
    bottom: 30px;
    left: -35px;
    box-shadow: var(--shadow-glass);
    transition: var(--transition-smooth);
}

.hero-overlay-card:hover {
    transform: translateY(-5px);
    border-color: var(--dourado);
}

.card-dots {
    display: flex;
    gap: 5px;
    position: absolute;
    top: 10px;
    left: 10px;
}

.card-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.card-dots .red { background: #ef4444; }
.card-dots .yellow { background: #fbbf24; }
.card-dots .green { background: #10b981; }

.hero-overlay-card h3 {
    color: var(--branco);
    font-size: 1.1rem;
    margin-top: 6px;
    margin-bottom: 6px;
    line-height: 1.2;
}

.card-divider {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin-top: 10px;
    margin-bottom: 10px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-bottom: 14px;
}

.metric-item {
    display: flex;
    flex-direction: column;
}

.metric-val {
    font-family: var(--font-headings);
    font-size: 1rem;
    font-weight: 800;
    color: var(--dourado);
}

.metric-lbl {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 2px;
}

.badge-status-local {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 4px 8px;
    border-radius: 50px;
    font-size: 0.6rem;
    font-weight: 600;
    color: #34d399;
}

.indicator-green {
    width: 5px;
    height: 5px;
    background: var(--verde);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--verde);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

/* Floating Elements */
.floating-tag {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    z-index: 3;
    pointer-events: none;
    animation: floatElement 6s ease-in-out infinite;
}

.tag-top {
    top: 5%;
    right: -5%;
    animation-delay: 0s;
}

/* Pushed lower (-15px) and left (-40px) to clear metrics card overlap */
.tag-bottom {
    bottom: -15px; 
    left: -40px;   
    animation-delay: 3s;
}

@keyframes floatElement {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* --- Trust Section --- */
.trust-section {
    padding: 40px 0;
    background: var(--azul-profundo);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
}

.trust-grid {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 40px;
    align-items: center;
}

.trust-intro h3 {
    font-size: 1.3rem;
    color: var(--branco);
    font-weight: 700;
}

.trust-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.logo-item {
    display: flex;
    flex-direction: column;
    opacity: 0.8;
}

.logo-item strong {
    font-family: var(--font-headings);
    font-size: 1.05rem;
    color: var(--branco);
    letter-spacing: 0.03em;
    font-weight: 700;
}

.logo-item span {
    font-size: 0.65rem;
    color: var(--cinza-texto-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.logo-item.highlight-badge {
    background: rgba(201, 162, 39, 0.08);
    border: 1px solid var(--dourado);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    flex-direction: row;
    align-items: center;
    gap: 12px;
    opacity: 1;
}

.logo-item.highlight-badge .medal-icon {
    font-size: 1.5rem;
}

.logo-item.highlight-badge strong {
    color: var(--dourado);
    font-size: 0.9rem;
}

.logo-item.highlight-badge span {
    font-size: 0.65rem;
    color: var(--branco);
}

/* --- About Section --- */
.about-section {
    padding: 100px 0;
    background-color: var(--branco);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.about-image-wrapper {
    display: flex;
    justify-content: center;
}

/* About Block Container (Allow overflow so quote card doesn't clip) */
.premium-about-block {
    width: 100%;
    max-width: 440px;
    height: 480px;
    position: relative;
    background: transparent;
    overflow: visible; /* CRITICAL: Allows overlay quote card to render fully! */
}

/* Framed Sketch Container (Original white canvas with elegant blue border) */
.about-sketch-frame {
    width: 100%;
    height: 100%;
    background: var(--branco);
    border: 6px solid var(--azul-treicon); /* Elegant blue border */
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Clean original white background sketch image */
.about-sketch-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    filter: none; /* Keep original white background and black sketch */
    mix-blend-mode: normal;
}

/* Compact quote card ("o banner") centered, overlaying the frame */
.glass-info-card {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 380px;
    background: rgba(7, 26, 61, 0.95); /* Tighter, darker glass background for maximum readability */
    border: 1px solid var(--dourado);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    color: var(--branco);
    z-index: 5;
    text-align: center;
}

.glass-info-card h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.45;
    font-style: italic;
    color: var(--branco);
    margin-bottom: 8px;
}

.glass-info-card .author {
    font-family: var(--font-headings);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--dourado);
}

.about-content .section-title {
    margin-bottom: 24px;
}

.about-description {
    font-size: 1rem;
    color: var(--cinza-texto);
    margin-bottom: 20px;
}

.about-bullets {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-bullets li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.bullet-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--azul-claro);
    color: var(--azul-treicon);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.about-bullets li span {
    font-size: 0.95rem;
    color: var(--cinza-texto);
}

/* --- Services Section (4 Pillars in a Single Line & Compacted Spaces) --- */
.services-section {
    padding: 60px 0;
    background-color: var(--off-white);
    border-top: 1px solid var(--cinza-borda);
    border-bottom: 1px solid var(--cinza-borda);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    border-radius: var(--radius-md);
    padding: 24px 20px;
    transition: var(--transition-smooth);
    background: var(--branco);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--cinza-borda);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-premium);
    border-color: var(--azul-treicon);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--azul-claro);
    color: var(--azul-treicon);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background: var(--azul-treicon);
    color: var(--branco);
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--azul-profundo);
    line-height: 1.3;
}

.service-card p {
    font-size: 0.85rem;
    color: var(--cinza-medio);
    margin-bottom: 12px;
    line-height: 1.5;
    flex-grow: 1;
}

.service-bullets {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 1px solid var(--cinza-borda);
    padding-top: 12px;
}

.service-bullets li {
    font-size: 0.8rem;
    color: var(--cinza-texto);
    font-weight: 500;
    position: relative;
    padding-left: 12px;
}

.service-bullets li::before {
    content: '•';
    color: var(--azul-acao);
    position: absolute;
    left: 0;
    font-size: 0.9rem;
    line-height: 1;
}

/* --- Cases Section --- */
.cases-section {
    padding: 100px 0;
    background-color: var(--branco);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.case-card {
    background: var(--branco);
    border: 1px solid var(--cinza-borda);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-premium);
    border-color: var(--azul-treicon);
}

.case-badge {
    background: var(--azul-claro);
    color: var(--azul-treicon);
    padding: 8px 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    align-self: flex-start;
    border-bottom-right-radius: var(--radius-sm);
}

.case-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.case-content h3 {
    font-size: 1.3rem;
    color: var(--azul-profundo);
    margin-bottom: 8px;
}

.case-meta {
    font-size: 0.85rem;
    color: var(--cinza-medio);
    margin-bottom: 24px;
}

.case-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
}

.detail-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-block strong {
    font-family: var(--font-headings);
    font-size: 0.85rem;
    color: var(--azul-profundo);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.detail-block span {
    font-size: 0.9rem;
    color: var(--cinza-texto);
    line-height: 1.5;
}

.detail-block.highlight-success {
    background: #f0fdf4;
    border-left: 4px solid var(--verde);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-top: 8px;
}

.detail-block.highlight-success strong {
    color: var(--verde);
}

.detail-block.highlight-success span {
    color: #166534;
}

/* --- Trajectory / Timeline Section --- */
.trajectory-section {
    padding: 100px 0;
    background-color: var(--off-white);
    border-top: 1px solid var(--cinza-borda);
    border-bottom: 1px solid var(--cinza-borda);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 60px auto 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--cinza-borda);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    position: absolute;
    background: var(--azul-treicon);
    border: 3px solid var(--branco);
    border-radius: 50%;
    z-index: 1;
    top: 26px;
    transition: var(--transition-smooth);
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item.left .timeline-dot {
    right: -8px;
}

.timeline-item.right .timeline-dot {
    left: -8px;
}

.timeline-content {
    padding: 24px;
    background: var(--branco);
    border-radius: var(--radius-md);
    border: 1px solid var(--cinza-borda);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-content {
    background: var(--azul-profundo);
    color: var(--branco);
    border-color: var(--dourado);
    transform: translateY(-3px);
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--dourado);
    background: var(--dourado);
}

.timeline-date {
    font-family: var(--font-headings);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--azul-acao);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-block;
    margin-bottom: 8px;
}

.timeline-item:hover .timeline-date {
    color: var(--dourado);
}

.timeline-content h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-content h3 {
    color: var(--branco);
}

.timeline-content p {
    font-size: 0.875rem;
    color: var(--cinza-medio);
    line-height: 1.6;
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-content p {
    color: rgba(255, 255, 255, 0.7);
}

/* --- AI Chatbot Section (Modern Interactive UI) --- */
.ai-section {
    padding: 100px 0;
    background-color: var(--off-white);
    border-bottom: 1px solid var(--cinza-borda);
}

.chat-container {
    max-width: 650px;
    margin: 0 auto;
    background: var(--branco);
    border: 1px solid var(--cinza-borda);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: var(--azul-profundo);
    color: var(--branco);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bot-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bot-avatar {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--dourado);
    background: var(--branco);
}

.bot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bot-avatar .active-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background-color: #22c55e;
    border-radius: 50%;
    border: 2px solid var(--azul-profundo);
}

.bot-text h3 {
    font-size: 1rem;
    color: var(--branco);
    font-weight: 600;
}

.bot-text span {
    font-size: 0.75rem;
    color: var(--dourado);
    display: block;
}

.badge-ia {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-family: var(--font-headings);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.chat-messages {
    height: 250px; /* Reduced from 380px to close up empty spaces */
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8fafc;
}

/* Scrollbar styles for messages */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}
.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}
.chat-messages::-webkit-scrollbar-thumb {
    background: var(--cinza-borda);
    border-radius: 4px;
}

.message {
    max-width: 85%;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.45;
    position: relative;
    animation: messageReveal 0.3s ease-out forwards;
}

@keyframes messageReveal {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bot-message {
    align-self: flex-start;
    background: var(--branco);
    color: var(--cinza-texto);
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 4px rgba(7, 26, 61, 0.03);
    border: 1px solid var(--cinza-borda);
}

.user-message {
    align-self: flex-end;
    background: var(--azul-treicon);
    color: var(--branco);
    border-bottom-right-radius: 2px;
    box-shadow: 0 4px 12px rgba(23, 58, 158, 0.15);
}

.message-time {
    font-size: 0.65rem;
    color: var(--cinza-medio);
    display: block;
    margin-top: 4px;
    text-align: right;
}

.user-message .message-time {
    color: rgba(255, 255, 255, 0.7);
}

.quick-replies {
    padding: 12px 20px 20px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: var(--branco);
    border-top: 1px solid var(--cinza-borda);
}

.reply-btn {
    padding: 8px 16px;
    border: 1px solid var(--azul-treicon);
    color: var(--azul-treicon);
    background: var(--branco);
    border-radius: 24px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.reply-btn:hover {
    background: var(--azul-treicon);
    color: var(--branco);
}

/* Typing loading simulation */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 12px;
    align-items: center;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background-color: var(--cinza-medio);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Chat Integrated Lead Form */
.chat-lead-form-wrapper {
    background: var(--azul-claro);
    border-top: 1px solid #bfdbfe;
    padding: 24px;
    animation: slideUpForm 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes slideUpForm {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.form-intro {
    margin-bottom: 20px;
}

.form-intro h4 {
    font-family: var(--font-headings);
    font-size: 1.15rem;
    color: var(--azul-profundo);
    margin-bottom: 4px;
}

.form-intro p {
    font-size: 0.85rem;
    color: var(--cinza-texto);
    line-height: 1.5;
}

.form-row-chat {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 14px;
}

.form-group-chat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group-chat.full-width {
    grid-column: span 2;
}

.form-group-chat label {
    font-family: var(--font-headings);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--azul-profundo);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.form-group-chat input {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid #cbd5e1;
    font-size: 0.875rem;
    font-family: var(--font-body);
    background: var(--branco);
    color: var(--cinza-texto);
    transition: var(--transition-smooth);
}

.form-group-chat input:focus {
    outline: none;
    border-color: var(--azul-treicon);
    box-shadow: 0 0 0 3px rgba(23, 58, 158, 0.12);
}

.btn-chat-submit {
    width: 100%;
    background: var(--verde);
    color: var(--branco);
    border: none;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.15);
    transition: var(--transition-smooth);
    margin-top: 8px;
}

.btn-chat-submit:hover {
    background: #15803d;
    transform: translateY(-1px);
}

/* --- LLM-First Integration Box (AI Meta Elements Removed) --- */
.llm-section {
    padding: 80px 0;
    background-color: var(--branco);
}

.llm-box {
    background-color: var(--azul-claro);
    border: 1px solid #bfdbfe;
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.llm-box h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--azul-profundo);
}

.llm-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.meta-card {
    background: var(--branco);
    border: 1px solid var(--cinza-borda);
    padding: 20px;
    border-radius: var(--radius-md);
}

.meta-card strong {
    display: block;
    font-family: var(--font-headings);
    font-size: 0.9rem;
    color: var(--azul-treicon);
    margin-bottom: 6px;
}

.meta-card span {
    font-size: 0.85rem;
    color: var(--cinza-texto);
    line-height: 1.5;
    display: block;
}

/* --- FAQ Section --- */
.faq-section {
    padding: 100px 0;
    background-color: var(--off-white);
    border-top: 1px solid var(--cinza-borda);
    border-bottom: 1px solid var(--cinza-borda);
}

.faq-grid {
    max-width: 800px;
    margin: 48px auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--branco);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--cinza-borda);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: var(--azul-treicon);
}

.faq-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-headings);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--azul-profundo);
}

.faq-icon-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--off-white);
    color: var(--cinza-medio);
    font-size: 1rem;
    font-weight: 400;
    transition: var(--transition-smooth);
}

.faq-item.active .faq-icon-arrow {
    background: var(--azul-treicon);
    color: var(--branco);
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-answer p {
    padding: 0 24px 24px 24px;
    font-size: 0.925rem;
    color: var(--cinza-texto);
    line-height: 1.6;
}

/* --- Contact / Capture Section --- */
.contact-section {
    padding: 100px 0;
    background-color: var(--branco);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: flex-start;
}

.contact-info-panel p {
    font-size: 1.05rem;
    color: var(--cinza-texto);
    margin-bottom: 32px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.method-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.m-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--azul-claro);
    color: var(--azul-treicon);
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.method-item strong {
    display: block;
    font-size: 0.9rem;
    color: var(--azul-profundo);
    font-weight: 700;
    margin-bottom: 4px;
}

.method-item span {
    font-size: 0.95rem;
    color: var(--cinza-texto);
}

.maps-promo-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    background: var(--azul-profundo);
    color: var(--branco);
    border: 1px solid var(--dourado);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.maps-promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: #0d2859;
}

.maps-promo-btn .icon {
    font-size: 1.8rem;
}

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

.promo-text strong {
    font-size: 0.9rem;
    color: var(--dourado);
}

.promo-text span {
    font-size: 0.75rem;
    color: var(--cinza-medio);
}

/* Contact Lead Capture Form (Exact match mockup 4 layout) */
.contact-form-panel {
    padding: 48px;
    border-radius: var(--radius-lg);
    background: var(--off-white);
    border: 1px solid var(--cinza-borda);
    box-shadow: var(--shadow-md);
}

.form-main-title {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    color: var(--azul-profundo);
    margin-bottom: 32px;
    font-weight: 700;
}

.form-row {
    margin-bottom: 24px;
}

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

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

.form-group label {
    font-family: var(--font-headings);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--azul-profundo);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--cinza-borda);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--branco);
    color: var(--cinza-texto);
    transition: var(--transition-smooth);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--azul-treicon);
    box-shadow: 0 0 0 3px rgba(23, 58, 158, 0.15);
}

.form-group input.invalid, 
.form-group select.invalid, 
.form-group textarea.invalid {
    border-color: var(--vermelho);
}

.form-feedback {
    display: none;
    margin-top: 16px;
    padding: 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-feedback.success {
    display: block;
    background: rgba(22, 163, 74, 0.1);
    color: #15803d;
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.form-feedback.error {
    display: block;
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.error-msg {
    display: none;
    font-size: 0.75rem;
    color: var(--vermelho);
    margin-top: 2px;
}

.form-group input.invalid ~ .error-msg,
.form-group textarea.invalid ~ .error-msg {
    display: block;
}

/* --- Footer --- */
.main-footer {
    padding: 80px 0 40px 0;
    background-color: var(--azul-profundo);
    color: var(--cinza-texto-light);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 60px;
    margin-bottom: 48px;
}

.footer-brand .brand-text {
    color: var(--branco);
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.footer-brand .copyright {
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.footer-brand .tax-info {
    font-size: 0.7rem;
}

.footer-links, .footer-socials {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links strong, .footer-socials strong {
    font-family: var(--font-headings);
    color: var(--branco);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--dourado);
}

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

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--cinza-texto-light);
    transition: var(--transition-smooth);
}

.social-icons a:hover {
    background: var(--azul-acao);
    color: var(--branco);
    border-color: var(--azul-acao);
    transform: translateY(-2px);
}

/* Petroleum Blue Credits Bar Banner below Footer */
.credits-bar {
    background-color: #0b2d37; /* Petroleum Blue (Teal) */
    color: rgba(255, 255, 255, 0.7);
    padding: 16px 0;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: var(--font-headings);
    font-weight: 500;
    letter-spacing: 0.05em;
}

.credits-bar a {
    color: var(--dourado);
    font-weight: 700;
    transition: var(--transition-smooth);
}

.credits-bar a:hover {
    color: var(--branco);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* Floating WhatsApp Button */
.whatsapp-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: var(--branco);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: var(--transition-smooth);
}

.whatsapp-floating:hover {
    transform: scale(1.08) translateY(-3px);
    background-color: #20ba5a;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* --- Animations --- */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-fade-in-delayed {
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.6s forwards;
}

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

.animate-slide-up-delayed {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.2s forwards;
}

.animate-slide-up-delayed2 {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.4s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

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

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    
    .badge-premium {
        margin: 0 auto 24px auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        margin-top: 20px;
        justify-content: center;
    }
    
    .hero-portrait-frame-container {
        justify-content: center;
        margin-right: 0;
    }
    
    .portrait-crop-container {
        position: static;
    }
    
    .hero-overlay-card {
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .hero-overlay-card:hover {
        transform: translateX(-50%) translateY(-5px);
    }
    
    .tag-top {
        right: 5%;
    }
    
    .tag-bottom {
        left: 50%;
        transform: translateX(-50%);
        bottom: -80px; /* Shifted down on tablet to clear card */
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }
    
    .trust-logos {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .about-image-wrapper {
        order: 2;
    }
    
    .glass-info-card {
        left: 50%;
        transform: translateX(-50%);
        bottom: -20px;
        width: 90%;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .llm-meta-grid, .form-row-chat {
        grid-template-columns: 1fr;
    }
    
    .form-group-chat.full-width {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--branco);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: var(--transition-smooth);
        z-index: 999;
        border-top: 1px solid var(--cinza-borda);
    }
    
    .nav-menu.open {
        left: 0;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .mobile-nav-toggle.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-nav-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-nav-toggle.open .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .header-actions .btn {
        display: none;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 55px;
        padding-right: 0;
    }
    
    .timeline-item.right {
        left: 0;
    }
    
    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: 23px;
        right: auto;
    }
    
    .contact-form-panel {
        padding: 32px 20px;
    }
    
    .form-row.split {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}
