:root {
    --bg-color: #05070e;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-blue: #4261b3;
    --accent-blue-hover: #2d4585;
    --accent-green: #76c353;
    --accent-glow: rgba(118, 195, 83, 0.4);
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; margin-bottom: 1.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; color: var(--text-secondary); }

.highlight {
    color: var(--accent-green);
    text-shadow: 0 0 15px var(--accent-glow);
}

.text-center { text-align: center; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.italic { font-style: italic; }

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(ellipse at center, #0e1525 0%, #0b0f19 70%);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease, visibility 1s ease;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

/* Heliport icon container — H badge */
.loader-heli-icon {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Outer glow ring */
.loader-heli-icon::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(66, 97, 179, 0.35);
    box-shadow: 0 0 30px rgba(66, 97, 179, 0.25), inset 0 0 20px rgba(66, 97, 179, 0.1);
    animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse-ring {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.05); }
}

/* Heliport H symbol */
.loader-h-symbol {
    position: absolute;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
    /* Subtle blue background disc */
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(66, 97, 179, 0.15);
    border: 2px solid rgba(66, 97, 179, 0.4);
    border-radius: 50%;
    letter-spacing: -2px;
}


/* Label below icon */
.loader-label {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

/* Progress bar */
.loader-bar-wrap {
    width: 220px;
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 99px;
    overflow: hidden;
}

.loader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
    border-radius: 99px;
    transition: width 0.15s ease;
    box-shadow: 0 0 10px rgba(118, 195, 83, 0.5);
}

/* Percentage text */
.loader-percent {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-green);
    text-shadow: 0 0 15px rgba(118, 195, 83, 0.4);
    min-width: 4ch;
    display: block;
}

/* 3D Canvas */
#hero-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10; /* Initially high to show over the preloader */
    pointer-events: none;
    transition: z-index 0.5s step-end;
}

/* Layout & Components */
.scroll-container {
    position: relative;
    z-index: 1;
    opacity: 0; /* Hidden initially, JS will fade it in */
    visibility: hidden;
    transition: opacity 1.5s ease, visibility 1.5s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: #fff;
    box-shadow: 0 0 20px rgba(66, 97, 179, 0.4);
}

.btn-primary:hover {
    background-color: var(--accent-blue-hover);
    box-shadow: 0 0 30px rgba(66, 97, 179, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

/* Glassmorphism */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: all 0.3s ease;
    padding: 1.5rem 0;
}

.header.scrolled {
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

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

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:not(.btn):hover {
    color: var(--accent-blue);
}

/* Sections */
section {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 3rem;
}

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

.subtitle {
    color: var(--accent-blue);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
}

.hero-content {
    max-width: 800px;
}

.hero-focus {
    margin: 2rem 0;
}

.focus-title {
    font-weight: 600;
    color: #fff;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tags span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Custom interactive tags with tooltips */
.tags span[data-tooltip] {
    position: relative;
    cursor: help;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tags span[data-tooltip] i {
    color: var(--accent-green);
    margin-right: 6px;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.tags span[data-tooltip]:hover {
    background: rgba(66, 97, 179, 0.15);
    border-color: var(--accent-blue);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 97, 179, 0.2);
}

.tags span[data-tooltip]:hover i {
    transform: scale(1.2);
}

/* Elegant glassmorphic tooltip */
.tags span[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 135%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 250px;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.78rem;
    line-height: 1.4;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(66, 97, 179, 0.15);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.tags span[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(15, 23, 42, 0.95) transparent transparent transparent;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.tags span[data-tooltip]:hover::after,
.tags span[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.center-tags {
    justify-content: center;
    margin-bottom: 2rem;
}

.spacer-large { height: 50vh; }
.spacer-huge { height: 100vh; } /* Important for scroll landing */

/* Sobre */
.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.img-responsive {
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
}

.glow-effect {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
}

/* Serviços */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-green);
}

/* Processo Timeline */
.process-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-blue), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.35rem;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 2px solid var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue);
}

.step-num {
    color: var(--accent-blue);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

/* Estatísticas Section */
.estatisticas-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: stretch;
}

.estatisticas-text, .estatisticas-chart {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.estatisticas-text p, .estatisticas-chart p {
    margin-bottom: 1.5rem;
}

.stats-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: auto;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 8px 8px 0;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(4px);
}

.stat-item:has(.glow-green):hover {
    border-left-color: var(--accent-green);
}

.stat-item:has(.glow-blue):hover {
    border-left-color: var(--accent-blue);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    min-width: 120px;
    line-height: 1;
}

.stat-number.glow-green {
    color: var(--accent-green);
    text-shadow: 0 0 10px rgba(118, 195, 83, 0.3);
}

.stat-number.glow-blue {
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(66, 97, 179, 0.3);
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.chart-container {
    width: 100%;
    height: 320px;
    margin-top: auto;
}

/* Orgaos & Leis */
.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.check-list {
    list-style: none;
    margin-top: 1rem;
}

.check-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

/* Accordion FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.accordion-header {
    padding: 1.2rem;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.accordion-body {
    padding: 0 1.2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-item.active .accordion-body {
    padding: 1.2rem;
    max-height: 500px; /* arbitrary high number */
}

/* Contato & Localização */
.contato-section {
    padding: 6rem 0;
}

.cta-box {
    text-align: center;
    padding: 4rem 2rem;
    margin-bottom: 4rem;
}

.glow-blue {
    border-color: rgba(118, 195, 83, 0.3);
    box-shadow: 0 0 50px rgba(118, 195, 83, 0.15);
}

.cta-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn i {
    margin-right: 8px;
    font-size: 1.1rem;
    vertical-align: middle;
}

/* Grid de Contato */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-info, .contact-map {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-info h3, .contact-map h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-info p, .contact-map p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: auto;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
}

.info-icon {
    font-size: 1.2rem;
    color: var(--accent-blue);
    width: 38px;
    height: 38px;
    background: rgba(66, 97, 179, 0.1);
    border: 1px solid rgba(66, 97, 179, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.info-item:hover .info-icon {
    background: var(--accent-blue);
    color: #fff;
    box-shadow: 0 0 15px rgba(66, 97, 179, 0.4);
    transform: scale(1.05);
}

.info-icon.whatsapp-color {
    color: var(--accent-green);
    background: rgba(118, 195, 83, 0.1);
    border-color: rgba(118, 195, 83, 0.2);
}

.info-item:hover .info-icon.whatsapp-color {
    background: var(--accent-green);
    color: #fff;
    box-shadow: 0 0 15px rgba(118, 195, 83, 0.4);
}

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

.info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.info-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1.05rem;
}

.info-link:hover {
    color: var(--accent-blue);
}

.info-item:hover .info-link.whatsapp-color {
    color: var(--accent-green);
}

.info-address {
    font-style: normal;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.5;
    font-size: 1.05rem;
}

.info-value {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.05rem;
}

/* Estilo do Mapa */
.map-container {
    position: relative;
    width: 100%;
    flex-grow: 1;
    min-height: 320px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
}

.map-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.map-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 15, 25, 0.6);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    color: #fff;
    gap: 0.8rem;
    z-index: 2;
}

.map-overlay i {
    font-size: 2rem;
    color: var(--accent-green);
    text-shadow: 0 0 15px rgba(118, 195, 83, 0.5);
    transform: translateY(10px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.map-overlay span {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transform: translateY(10px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.05s;
}

.map-link:hover .map-overlay {
    opacity: 1;
}

.map-link:hover .map-overlay i,
.map-link:hover .map-overlay span {
    transform: translateY(0);
}

.map-link:hover .map-image {
    transform: scale(1.06);
}

.footer {
    text-align: center;
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {
    .sobre-grid, .process-wrapper, .two-cols, .estatisticas-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    .map-container {
        min-height: 280px;
        height: 280px;
    }
    .process-image {
        order: -1;
    }
    h1 { font-size: 2.5rem; }
    .estatisticas-chart {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; } /* Mobile menu simplified */
    .hero-content { text-align: center; }
    .tags { justify-content: center; }
    .cta-actions { flex-direction: column; }
    
    .tags span[data-tooltip]::after {
        width: 200px;
        font-size: 0.75rem;
        left: 50%;
        bottom: 125%;
    }
    
    .stat-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        border-left: none;
        border-top: 3px solid rgba(255, 255, 255, 0.1);
        border-radius: 0 0 8px 8px;
        padding: 1rem;
    }
    
    .stat-item:hover {
        transform: translateY(2px);
    }
    
    .stat-item:has(.glow-green):hover {
        border-top-color: var(--accent-green);
    }
    
    .stat-item:has(.glow-blue):hover {
        border-top-color: var(--accent-blue);
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
}
/* =========================================
   Fundo Animado de Nuvens
   ========================================= */
.cloud-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0; /* Fica atrás do seu conteúdo (.scroll-container é z-index: 1) */
    pointer-events: none; /* Garante que as nuvens não bloqueiem os cliques do mouse */
    
    /* Configuração da Textura */
    background-image: url('../assets/img/cloud_texture.png'); /* <-- INSIRA O NOME DA IMAGEM AQUI */
    background-size: 800px; /* Define o tamanho do padrão */
    background-repeat: repeat;
    
    /* Efeito: Suave, desfocado e mesclado */
    opacity: 0.11; /* Deixa bem sutil (ajuste entre 0.1 e 0.3) */
    filter: blur(8px); /* Deixa a textura desfocada e macia */
    mix-blend-mode: screen; /* Remove o fundo preto da imagem, deixando só as nuvens visíveis */
    
    /* Animação */
    animation: driftClouds 80s linear infinite;
}

/* Animação movendo a textura na diagonal infinitamente */
@keyframes driftClouds {
    0% {
        background-position: 0px 0px;
    }
    100% {
        background-position: 1600px 800px; /* Dobro do background-size para um loop fluido */
    }
}