:root {
    --brand-blue: #024D9C;
    --brand-dark-blue: #012b59;
    --glow-orange: #FF8c00;
    --text-white: #ffffff;
}

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

body {
    background-color: #f0f3f6; /* Cor de fundo clara inspirada no flyer */
    color: #333;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.hero-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: var(--brand-dark-blue); /* Evita fundo cinza em mobile */
}

/* --- OVERLAY DO LOGO E MARCA --- */
.logo-overlay {
    position: absolute;
    top: 20%; /* Abaixado para não colidir com o novo header */
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    text-align: center;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.4);
    padding: 20px 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 140, 0, 0.6);
}

/* --- ICONE DO LOGO (SVG) --- */
.consol-logo {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    margin-right: 15px; /* Afasta do texto */
}

.consol-logo.small {
    width: 32px;
    height: 32px;
    margin-right: 10px;
}

/* Fundo azul, setas brancas */
.consol-logo.logo-blue .logo-bg {
    fill: #1a63a5;
    transition: fill 0.3s ease;
}
.consol-logo.logo-blue .logo-fg {
    stroke: #ffffff;
    transition: stroke 0.3s ease;
}

/* Fundo branco, setas azuis */
.consol-logo.logo-white .logo-bg {
    fill: #ffffff;
    transition: fill 0.3s ease;
}
.consol-logo.logo-white .logo-fg {
    stroke: #1a63a5;
    transition: stroke 0.3s ease;
}

/* Sombras pra dar peso Apple-style */
.consol-logo {
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.15));
}
.consol-logo.logo-blue {
    filter: drop-shadow(0 4px 15px rgba(26, 99, 165, 0.4));
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    letter-spacing: 1px;
    margin: 0;
    text-shadow: 0 5px 15px rgba(0,0,0,0.8);
}

.tagline {
    font-size: 1rem;
    color: #e0e0e0;
    margin-top: 5px;
    letter-spacing: 0.5px;
}


/* --- ACCORDION EXPANSIVO 3D --- */
.accordion-container {
    display: flex;
    width: 100%;
    height: 100%;
}

.panel {
    flex: 1; /* Largura mínima quando inativo */
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: flex 1s cubic-bezier(0.25, 1, 0.5, 1);
    border-right: 2px solid #000;
    will-change: flex, height;
    backface-visibility: hidden;
}

.panel:last-child {
    border-right: none;
}

/* Estilo da Imagem nos Painéis */
.panel img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw; /* Garante que a imagem preencha esteticamente sem deformar */
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%) scale(1.1);
    filter: brightness(0.3) grayscale(0.6);
    transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1), filter 1s ease;
    will-change: transform, filter, opacity;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* O QUE ACONTECE QUANDO O PAINEL ESTÁ ATIVO */
.panel.active {
    flex: 6; /* Expande brutalmente para chamar atenção */
}

/* Truque de Câmera Viva (Ken Burns + Elementos) */
.panel.active img {
    filter: brightness(0.85) grayscale(0);
}

/* Navio - Sensação de navegar nas ondas (leve balanço e pan) */
.active#panel-ship img {
    animation: driftWave 15s ease-in-out infinite alternate 0.4s;
}

@keyframes driftWave {
    0% { transform: translate(-50%, -50%) scale(1.05) rotate(0deg) translateZ(0); }
    50% { transform: translate(-51%, -49%) scale(1.08) rotate(-0.5deg) translateZ(0); }
    100% { transform: translate(-49%, -51%) scale(1.05) rotate(0.5deg) translateZ(0); }
}

/* Avião - Sensação de cortar as nuvens (zoom e pan diagonal longo) */
.active#panel-plane img {
    animation: flySky 15s linear infinite alternate 0.4s;
}

@keyframes flySky {
    0% { transform: translate(-50%, -50%) scale(1.02) translateZ(0); }
    100% { transform: translate(-48%, -52%) scale(1.15) translateZ(0); }
}

/* Caminhão - Sensação de movimento na estrada (zoom direcional rápido) */
.active#panel-truck img {
    animation: driveHighway 8s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite alternate 0.4s;
}

@keyframes driveHighway {
    0% { transform: translate(-50%, -50%) scale(1.02) translateZ(0); }
    100% { transform: translate(-52%, -50%) scale(1.12) translateZ(0); }
}

/* Global - Sensação de escala global (zoom out suave) */
.active#panel-global img {
    animation: scaleGlobal 20s ease-out infinite alternate 0.4s;
}

@keyframes scaleGlobal {
    0% { transform: translate(-50%, -50%) scale(1.15) translateZ(0); }
    100% { transform: translate(-50%, -50%) scale(1.05) translateZ(0); }
}

/* --- MASCARAS DE EFEITO (CINEMAGRAPHS) --- */
.overlay-img {
    opacity: 0;
    transition: opacity 1.2s ease;
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.panel.active .overlay-img {
    opacity: 0.8;
}

.ripple-mask { filter: url(#waterRipple); }
.cloud-mask  { filter: url(#windClouds); }
.heat-mask   { filter: url(#heatBlur); }

/* Um overlay degradê sobre a imagem para o texto aparecer bem */
.panel::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(1, 43, 89, 0.8) 40%, transparent 100%);
    z-index: 1;
    opacity: 0.6;
    transition: opacity 1s ease;
}

.panel.active::before {
    opacity: 0.9;
}


/* --- CONTEÚDO DOS PAINÉIS (TEXTO) --- */
.panel-content {
    position: absolute;
    bottom: 10%;
    left: 50px;
    z-index: 2;
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.8s ease 0.4s, opacity 0.8s ease 0.4s;
    pointer-events: none;
}

.panel-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 5px;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 0 5px 20px rgba(0,0,0,1);
    border-left: 5px solid var(--glow-orange);
    padding-left: 20px;
}

.panel-content p {
    font-size: 1.2rem;
    max-width: 500px;
    color: #ddd;
    margin-left: 25px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* Texto vertical quando inativo */
.panel::after {
    content: attr(data-title);
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    transform-origin: center;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 3px;
    white-space: nowrap;
    z-index: 2;
    transition: opacity 0.4s ease;
    text-shadow: 0 2px 10px rgba(0,0,0,1);
}

.panel.active::after {
    opacity: 0; /* Esconde o texto vertical quando ativo */
}

/* Revelando o texto real quando o painel for aberto */
.panel.active .panel-content {
    opacity: 1;
    transform: translateY(0);
}

.hidden-btn {
    display: none;
}

/* =========================================================================
   ESTILOS GERAIS DE ESTRUTURA PARA A ROLAGEM DO SITE (TEMA "LIGHT" PREMIUM)
   ========================================================================= */

html {
    scroll-behavior: smooth;
}

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

/* Seções Padrão */
section {
    padding: 100px 0;
}

.section-badge {
    display: inline-block;
    color: var(--glow-orange);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: #1d1e20; /* Flyer header cor escura profunda */
    margin-bottom: 25px;
}

.section-header.center {
    text-align: center;
    margin-bottom: 60px;
}

.section-header.center p {
    color: #555;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* =========================================
   HEADER (NAVEGAÇÃO) - TOPO ESTÁTICO
   ========================================= */
.main-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 30px;
    background: rgba(1, 43, 89, 0.3); /* Ultra transparente */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text-small {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: #fff;
    letter-spacing: 1px;
    line-height: 1; /* Tighten up so tagline sits closer */
}

.logo-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.70rem;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.5px;
    margin-top: 4px;
    font-weight: 400;
}

.main-nav {
    display: flex;
    list-style: none;
    gap: 35px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
    font-family: 'Inter', sans-serif;
}

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

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

.header-socials {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-socials a {
    color: #fff;
    font-size: 1.15rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-socials a:hover {
    color: var(--glow-orange);
}

.header-divider {
    width: 1px;
    height: 18px;
    background-color: rgba(255, 255, 255, 0.4);
    margin: 0 5px;
}

.lang-selector {
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-btn {
    cursor: pointer;
    opacity: 0.6;
    font-weight: 500;
    transition: all 0.2s;
}

.lang-btn:hover {
    opacity: 1;
}

.lang-btn.active {
    opacity: 1;
    font-weight: 800;
}

.btn-phone {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 20px;
    border-radius: 20px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-phone:hover {
    background: #fff;
    color: var(--brand-blue);
}

/* =========================================
   SEÇÃO SOBRE (LIGHT THEME)
   ========================================= */
.about-section {
    background-color: transparent; /* Usa o fundo geral #f0f3f6 */
    color: #444; /* Texto escuro */
}

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

.about-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #555;
}

.about-text .lead-text {
    font-size: 1.35rem;
    color: var(--brand-blue);
    font-weight: 500;
}

.features-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05); /* Sombra difusa Apple-style */
    border-left: 4px solid var(--glow-orange);
    transition: transform 0.3s ease, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 2rem;
    color: var(--brand-blue);
    margin-bottom: 10px;
}

.feature-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: var(--brand-dark-blue);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.95rem;
    color: #666;
}

/* =========================================
   SEÇÃO SOLUÇÕES (GRID DINÂMICA)
   ========================================= */
.solutions-section {
    background-color: #ffffff; /* Fundo puro branco para destacar radicalmente do Sobre */
    padding: 100px 0;
    position: relative;
    border-top: 4px solid var(--brand-blue); /* Linha divisória robusta azul */
}

/* Pequeno detalhe laranjado na borda divisória para dar um charme moderno */
.solutions-section::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 20%;
    width: 150px;
    height: 4px;
    background-color: var(--glow-orange);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.solution-item {
    background: #fdfdfd;
    border-radius: 15px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.solution-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.solution-image-container {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.solution-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.solution-item:hover .solution-image-container img {
    transform: scale(1.08); /* Zoom sutil na imagem no hover */
}

.overlay-warehouse {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(26,99,165,0.2);
}

.solution-info {
    padding: 30px;
    flex-grow: 1;
    position: relative;
}

.sol-icon {
    position: absolute;
    top: -25px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--brand-blue);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(26,99,165,0.4);
}

.solution-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    color: var(--brand-dark-blue);
    margin-top: 15px;
    margin-bottom: 15px;
}

.solution-info p {
    color: #666;
    line-height: 1.6;
}

/* =========================================
   DIVISOR ESTATÍSTICO (STATS BANNER)
   ========================================= */
.stats-banner {
    background-color: var(--brand-dark-blue);
    padding: 60px 0;
    position: relative;
    border-top: 3px solid var(--glow-orange);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 30px;
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--glow-orange);
    margin-bottom: 15px;
}

.stat-item h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 5px;
}

.stat-item p {
    font-family: 'Inter', sans-serif;
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* =========================================
   SEÇÃO IMO (CARGA PERIGOSA)
   ========================================= */
.imo-section {
    background-color: #fdfdfd; 
    padding: 100px 0;
}

.imo-container {
    display: flex;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.08); /* Sombra difusa moderna */
    min-height: 500px;
}

.imo-image-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.imo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.imo-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.imo-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--brand-blue);
    margin: 40px 50px 20px 50px;
}

.imo-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    color: #444;
    line-height: 1.7;
    margin: 0 50px 40px 50px;
}

.imo-blue-box {
    background-color: var(--brand-dark-blue);
    padding: 40px 50px;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.imo-blue-box p {
    color: #fff;
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 900px) {
    .imo-container {
        flex-direction: column;
    }
    .imo-image-wrapper {
        min-height: 300px;
    }
    .imo-title {
        margin: 30px 30px 15px 30px;
    }
    .imo-text {
        margin: 0 30px 30px 30px;
    }
    .imo-blue-box {
        padding: 30px;
    }
}



/* =========================================
   SEÇÃO ENVIAR MENSAGEM
   ========================================= */
.message-section {
    background-color: #f0f3f6;
    padding: 100px 0;
}

.message-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.message-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--brand-dark-blue);
    margin-bottom: 25px;
}

.message-text p {
    font-size: 1.15rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 40px;
}

.message-art {
    font-size: 6rem;
    color: rgba(26, 99, 165, 0.1);
    animation: float 4s ease-in-out infinite;
}

.contact-form {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: #444;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #333;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(26, 99, 165, 0.1);
}

.btn-submit {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--brand-blue);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-submit:hover {
    background-color: var(--brand-dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 99, 165, 0.3);
}

.btn-submit i {
    margin-left: 10px;
}

/* =========================================
   FOOTER CLÁSSICO
   ========================================= */
.site-footer {
    background-color: var(--brand-dark-blue);
    color: #fff;
    padding-top: 80px;
}

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

.footer-brand p {
    color: #aaa;
    margin: 20px 0;
    max-width: 300px;
}

/* Logo + nome lado a lado */
.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 5px;
}

.footer-brand-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
    margin: 0;
}

/* Label redes sociais */
.social-label {
    margin-top: 12px !important;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem !important;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--glow-orange), #ffcc70);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    max-width: none !important;
}

.social-label i {
    -webkit-text-fill-color: var(--glow-orange);
    margin-right: 5px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    margin-right: 10px;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--glow-orange);
    transform: translateY(-3px);
}

.footer-contacts h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: #fff;
}

.footer-contacts p {
    color: #aaa;
    margin-bottom: 20px;
}

.footer-phone {
    display: block;
    font-size: 1.5rem;
    color: var(--glow-orange);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 25px;
}

.btn-quote {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--glow-orange);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-quote:hover {
    background-color: #ff9d2e;
}

.footer-locations {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.location-box h4 {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.location-box h4 i {
    color: var(--glow-orange);
    margin-right: 8px;
}

.location-box p {
    color: #aaa;
    line-height: 1.6;
}

.footer-bottom {
    background-color: #011E41;
    text-align: center;
    padding: 20px 0;
    color: #777;
    font-size: 0.9rem;
}

/* =========================================
   WIDGET FLUTUANTE: COTAÇÃO DIRETA
   ========================================= */
.floating-cta {
    position: fixed;
    bottom: 35px;
    left: 35px;
    z-index: 998;
    display: flex;
    align-items: center;
    gap: 0;
    /* Oculto por padrão */
    opacity: 0;
    transform: translateY(30px) scale(0.92);
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-cta.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.floating-cta-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--glow-orange);
    color: #fff;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 22px;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(255, 140, 0, 0.45);
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    white-space: nowrap;
}

.floating-cta-btn i {
    font-size: 1.1rem;
}

.floating-cta-btn:hover {
    background: #e07800;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 140, 0, 0.6);
}

.floating-cta-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    background: var(--brand-dark-blue);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    z-index: 1;
}

.floating-cta-close:hover {
    background: #c0392b;
    transform: scale(1.15);
}

@media (max-width: 768px) {
    .floating-cta {
        left: 15px;
        bottom: 20px;
    }
    .floating-cta-btn {
        font-size: 0.85rem;
        padding: 12px 16px;
    }
}

/* =========================================
   BOTÃO VOLTAR AO TOPO
   ========================================= */
#backToTop {
    position: fixed;
    bottom: 35px;
    right: 35px;
    width: 52px;
    height: 52px;
    background: var(--brand-blue);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 25px rgba(2, 77, 156, 0.45);
    /* Oculto por padrão */
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s;
}

#backToTop.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

#backToTop:hover {
    background: var(--glow-orange);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.4);
}

@media (max-width: 768px) {
    #backToTop {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
}

/* =========================================
   SISTEMA DE ANIMAÇÕES DE SCROLL (PREMIUM)
   ========================================= */

/* Estado inicial: todos os elementos animáveis ficam ocultos */
.anim-slide-right,
.anim-slide-left,
.anim-fade-up,
.anim-scale-in {
    opacity: 0;
    will-change: transform, opacity;
}

/* Slide da direita para esquerda */
.anim-slide-right {
    transform: translateX(80px);
    transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
/* Slide da esquerda para direita */
.anim-slide-left {
    transform: translateX(-80px);
    transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
/* Fade + sobe de baixo */
.anim-fade-up {
    transform: translateY(50px);
    transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
/* Escala + aparece do centro */
.anim-scale-in {
    transform: scale(0.85);
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Estado VISÍVEL: aplicado pelo IntersectionObserver */
.anim-slide-right.in-view,
.anim-slide-left.in-view,
.anim-fade-up.in-view,
.anim-scale-in.in-view {
    opacity: 1;
    transform: none;
}

/* Delays escalonados para efeito em cascata (stagger) */
.anim-delay-1 { transition-delay: 0.1s; }
.anim-delay-2 { transition-delay: 0.2s; }
.anim-delay-3 { transition-delay: 0.3s; }
.anim-delay-4 { transition-delay: 0.4s; }
.anim-delay-5 { transition-delay: 0.5s; }
.anim-delay-6 { transition-delay: 0.6s; }

/* Backward compatibility */
.slide-up-element {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.slide-up-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   RESPONSIVIDADE COMPLETA — MOBILE FIRST
   ========================================= */

/* --- BOTÃO HAMBÚRGUER --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 1100;
    background: none;
    border: none;
    padding: 0;
}

.hamburger span {
    display: block;
    height: 2.5px;
    width: 100%;
    background: #fff;
    border-radius: 3px;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    transform-origin: center;
}

/* Animação X ao abrir */
.hamburger.open span:nth-child(1) { transform: translateY(8.75px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-8.75px) rotate(-45deg); }

/* --- MENU MOBILE (DRAWER) --- */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 27, 58, 0.88);
    backdrop-filter: blur(20px);
    z-index: 1050;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 35px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.mobile-nav.open {
    opacity: 1;
    pointer-events: all;
}

/* Botão X de fechar o menu mobile */
.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, transform 0.25s;
    /* pointer-events: none; -- Removido para permitir o clique no botão X */
    z-index: 10;
}

.mobile-nav-close:hover,
.mobile-nav-close:active {
    background: var(--glow-orange);
    transform: rotate(90deg) scale(1.05);
}

.mobile-nav a {
    color: #fff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.mobile-nav a:hover { color: var(--glow-orange); }

.mobile-nav .mobile-nav-lang {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.mobile-nav .mobile-nav-lang span {
    color: rgba(255,255,255,0.6);
    font-size: 1.1rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    transition: color 0.2s;
}

.mobile-nav .mobile-nav-lang span.active,
.mobile-nav .mobile-nav-lang span:hover { color: var(--glow-orange); }

.mobile-nav .mobile-socials {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.mobile-nav .mobile-socials a {
    font-size: 1.5rem;
    width: 50px; height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

/* =========================================
   TABLET (max 1024px)
   ========================================= */
@media (max-width: 1024px) {
    /* No tablet também usa menu hamburguer */
    .main-nav { display: none; }
    .header-actions { display: none; }
    .hamburger { display: flex; }
    .header-container { padding: 0 20px; }
    .btn-phone { display: none; }
    /* Header fixo no tablet/mobile para sempre ficar visível no scroll */
    .main-header { position: fixed !important; }
    .about-grid { gap: 40px; }
    .solutions-grid { gap: 20px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* =========================================
   MOBILE (max 768px)
   ========================================= */
@media (max-width: 768px) {

    /* HEADER */
    .main-nav { display: none; }
    .header-actions { display: none; }
    /* Hambúrguer fica acima do drawer (1200 > 1050) e sempre visível */
    .hamburger { display: flex; z-index: 1200; position: relative; }

    .header-container { padding: 0 20px; }
    .main-header { padding: 15px 20px; }

    /* LOGO - reduz no mobile */
    .logo-text-small { font-size: 1.2rem; }
    .logo-tagline { display: none; }
    .consol-logo.small { width: 36px; height: 36px; }

    /* HERO SECTION: auto height no mobile, sem padding (o accordion tem o offset) */
    .hero-section {
        height: auto !important;
        overflow: visible !important;
        padding-top: 0 !important;
    }

    /* HERO ACCORDION: empilhado + offset para não ficar sob o header fixo */
    .accordion-container {
        flex-direction: column;
        height: auto;
        padding-top: 65px;
    }

    /* Sobrescreve o flex do desktop para usar height */
    .panel {
        flex: none !important;
        width: 100% !important;
        height: 80px;
        min-height: 80px;
        cursor: pointer;
        will-change: height;
        /* Substitui a transição de flex por transição de height */
        transition: height 0.4s ease, min-height 0.4s ease !important;
    }

    .panel.active {
        flex: none !important;
        height: 220px !important;
        min-height: 220px !important;
    }

    /* Texto do label na horizontal em baixo do painel */
    .panel::after {
        writing-mode: horizontal-tb !important;
        transform: none !important;
        top: auto !important;
        bottom: 15px !important;
        left: 18px !important;
        right: auto !important;
        font-size: 0.85rem !important;
        font-weight: 800 !important;
        letter-spacing: 3px !important;
        opacity: 1 !important;
    }

    /* Quando ativo: oculta o label e mostra o conteúdo */
    .panel.active::after {
        opacity: 0 !important;
    }

    /* Conteúdo: parte de oculto e aparece com fade */
    .panel .panel-content {
        bottom: 15px !important;
        left: 15px !important;
        right: 15px !important;
        opacity: 0 !important;
        transform: translateY(10px) !important;
        transition: opacity 0.35s ease 0.15s, transform 0.35s ease 0.15s !important;
    }

    .panel.active .panel-content {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    .panel-content h2 { font-size: 1.5rem !important; }
    .panel-content p  { font-size: 0.85rem !important; margin-left: 10px !important; max-width: 100% !important; }

    /* SEÇÕES GERAIS */
    .container { padding: 0 20px; }
    .section-title { font-size: 2rem; }

    /* SOBRE */
    .about-section { padding: 60px 0; }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-text .lead-text { font-size: 1.1rem; }

    /* SOLUÇÕES */
    .solutions-section { padding: 60px 0; }
    .solutions-grid { grid-template-columns: 1fr; gap: 25px; }

    /* STATS */
    .stats-grid { grid-template-columns: 1fr; gap: 30px; }
    .stat-item h4 { font-size: 2rem; }

    /* IMO */
    .imo-section { padding: 60px 0; }
    .imo-container { flex-direction: column; }
    .imo-image-wrapper { min-height: 240px; }
    .imo-title { font-size: 1.8rem; margin: 25px 20px 15px; }
    .imo-text { font-size: 0.95rem; margin: 0 20px 25px; }
    .imo-blue-box { padding: 25px 20px; }
    .imo-blue-box p { font-size: 1rem; }

    /* MENSAGEM */
    .message-section { padding: 60px 0; }
    .message-grid { grid-template-columns: 1fr; gap: 40px; }
    .message-text h2 { font-size: 2rem; }
    .message-art { font-size: 4rem; }
    .contact-form { padding: 25px 20px; }

    /* FOOTER */
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-phone { font-size: 1.2rem; }
    .site-footer { padding-top: 50px; }

    /* Desativa animações laterais no mobile (evita overflow horizontal) */
    .anim-slide-right { transform: translateY(40px); }
    .anim-slide-left  { transform: translateY(40px); }
}

/* =========================================
   MOBILE PEQUENO (max 480px)
   ========================================= */
@media (max-width: 480px) {
    .section-title { font-size: 1.7rem; }
    .panel.active { height: 260px; }
    .panel-content h2 { font-size: 1.5rem; }
    .message-text h2 { font-size: 1.7rem; }
    .mobile-nav a { font-size: 1.5rem; }
}
