/* =========================================
   1. VARIÁVEIS BRANDBOOK & LAYOUT
   ========================================= */
:root {
    /* Cores Insights Pharma */
    --ip-blue-safe: #364780;
    --ip-blue-core: #0d0e59;
    --ip-green-safe: #87d7c1;
    --ip-dark: #1c1c1c;
    --ip-white: #ffffff;
    
    /* Fundo da Página e Cores de Apoio */
    --ip-body-bg: #e5e7eb; 
    --ip-sky-light: #e1eaf8;
    --ip-mint-light: #daf2ea;
    --ip-gray-light: #fbfbff;

    /* Layout */
    --gap: 24px; 
    --card-radius: 18px;
    --button-radius: 12px;
    --transition: 0.3s ease;
}

/* =========================================
   2. RESET E BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fira Sans', sans-serif;
    background-color: var(--ip-body-bg);
    color: var(--ip-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding: var(--gap);
    overflow-x: clip;
}

a {
    text-decoration: none;
    color: inherit;
}

.site-layout {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    width: 100%; /* Adicionado um max-width padrão para telas ultrawide */
    margin: 0 auto;
}

.card-section {
    width: 100%;
    border-radius: var(--card-radius);
    background-color: var(--ip-white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.section-title {
    font-size: 2.8rem;
    color: var(--ip-blue-core);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* =========================================
   ROTAGEM SUAVE E COMPENSAÇÃO DO HEADER
   ========================================= */
html {
    scroll-behavior: smooth; /* Faz a rolagem ser macia */
}

section {
    /* Diz para o navegador parar a rolagem antes de encostar no topo (Altura do Header + Gap) */
    scroll-margin-top: var(--gap); 
}

/* =========================================
   3. COMPONENTES: BOTÕES E BADGES
   ========================================= */
.button {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--button-radius);
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
}

.button-primary {
    background-color: var(--ip-green-safe);
    color: var(--ip-blue-core);
    border: 2px solid var(--ip-green-safe);
}

.button-primary:hover {
    background-color: var(--ip-blue-core);
    border-color: var(--ip-blue-core);
    color: var(--ip-white);
}

.button-outline {
    background-color: transparent;
    color: var(--ip-blue-core);
    border: 2px solid var(--ip-blue-core);
}

.button-outline:hover {
    background-color: var(--ip-blue-core);
    color: var(--ip-white);
}

.badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.badge-light {
    background-color: rgba(255, 255, 255, 0.4);
    color: var(--ip-blue-core);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.badge-dark {
    background-color: rgba(13, 14, 89, 0.1);
    color: var(--ip-blue-core);
    border: 1px solid rgba(13, 14, 89, 0.2);
}

.badge-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--ip-white);
}

/* =========================================
   4. NAVBAR (HEADER)
   ========================================= */
.sticky-top {
    position: sticky;
    top: var(--gap);
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    
    /* A MÁGICA AQUI: Impede que o header corte o menu de tela cheia */
    overflow: visible !important; 
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    color: var(--ip-blue-core);
}

.brand-logo {
    height: 20px;
    width: auto;
    display: block;
}

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

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--ip-blue-safe);
    transition: color var(--transition);
}

.nav-link:hover {
    color: var(--ip-green-safe);
}

.nav-actions {
    display: flex;
    align-items: center;
}

.desktop-only { display: inline-block; }
.mobile-only { display: none; }

.menu-button {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    z-index: 1001;
}

.menu-button span {
    width: 100%;
    height: 2px;
    background-color: var(--ip-blue-core);
    transition: var(--transition);
}

/* NOVA REGRA PARA O WRAPPER DOS LINKS NO DESKTOP */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-links-wrapper {
    display: flex;
    gap: 40px;
}

/* =========================================
   5. HERO SECTION
   ========================================= */

.hero {
    background-image: url('img/fundo-home.jpeg');
    background-size: cover;
    background-position: center;
    background-color: var(--ip-sky-light);
    display: flex;
    align-items: center;
    padding: 80px 60px;
    
    /* Estado Normal (Card com bordas arredondadas) */
    min-height: 75vh;
    width: 100%;
    margin-top: 0;
    margin-left: 0;
    border-radius: var(--card-radius);
    
    /* A transição que faz a mágica acontecer suavemente */
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-full {
    min-height: 100vh;
    border-radius: 0;
    
    /* Estica as laterais para anular os 24px de gap do body */
    width: calc(100% + (var(--gap) * 2));
    margin-left: calc(var(--gap) * -1);
    
    /* Puxa o hero lá pro topo (anulando o gap do body + altura do header + gap do layout) */
    margin-top: calc((var(--gap) * -2) - 80px);
    
    /* Dá um espaço extra em cima para o texto não ficar escondido atrás do menu flutuante */
    padding-top: 140px; 
}

.hero-content {
    max-width: 600px;
    color: var(--ip-blue-core);
}


.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: var(--ip-blue-core);
}

.hero-paragraph {
    font-size: 1.2rem;
    color: var(--ip-blue-safe);
    margin-bottom: 40px;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-proof {
    display: flex;
    align-items: center;
    gap: 16px;
}

.proof-avatars { display: flex; }

.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid var(--ip-white);
    margin-left: -15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--ip-blue-core);
}

.avatar:first-child { margin-left: 0; }
.avatar-1 { background: url('img/med1.jpg'); background-size: cover; }
.avatar-2 { background: url('img/med2.jpg'); background-size: cover;}
.avatar-3 { background-color: var(--ip-white); font-size: 18px; }

.proof-text {
    font-size: 14px;
    line-height: 1.3;
    color: var(--ip-blue-core);
}

/* =========================================
   6. SEÇÃO DE MÉTRICAS & MARQUEE
   ========================================= */
.metrics-section {
    padding: 80px 60px;
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    margin-bottom: 60px;
    padding-bottom: 50px;
    border-bottom: 1px solid #f0f0f0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 16px;
    width: max-content;
}

.marquee-group {
    display: flex;
    gap: 16px;
    animation: scroll-marquee 25s linear infinite;
}

.marquee-wrapper:hover .marquee-group {
    animation-play-state: paused;
}

.marquee-badge {
    background-color: var(--ip-sky-light);
    color: var(--ip-blue-core);
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid rgba(13, 14, 89, 0.05);
    transition: var(--transition);
}

.marquee-badge:hover {
    background-color: var(--ip-blue-core);
    color: var(--ip-white);
}

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100% - 16px)); }
}

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

.metrics-text .section-title {
    font-size: 2.5rem;
    color: var(--ip-blue-core);
    margin: 16px 0 24px;
    line-height: 1.2;
}

.metrics-text .section-paragraph {
    font-size: 1.1rem;
    color: var(--ip-blue-safe);
    max-width: 450px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.metric-card {
    background-color: var(--ip-gray-light);
    padding: 40px 30px;
    border-radius: var(--card-radius);
    transition: var(--transition);
}

.metric-card:hover {
    background-color: var(--ip-white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}

.metric-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--ip-green-safe);
    line-height: 1;
    margin-bottom: 10px;
}

.metric-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--ip-blue-core);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =========================================
   7. O PROBLEMA (DARK SECTION & FAQ)
   ========================================= */
.problem-dark-section {
    background-color: var(--ip-blue-core);
    background: url('img/problemas-Câmera.jpg');
    background-size: cover;
    background-position: right;
    background-repeat: no-repeat;
    padding: 80px 60px;
    color: var(--ip-white);
}

.problem-content-wrapper {
    max-width: 650px;
    text-align: left;
}

.problem-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: var(--ip-white);
}

.problem-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 60px;
    line-height: 1.6;
}

.faq_list {
    display: flex;
    flex-direction: column;
}

.qa_item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    cursor: pointer;
    color: var(--ip-white);
    transition: color var(--transition);
}

.question:hover {
    color: var(--ip-green-safe);
}

.text-all-caps {
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    font-weight: 500;
}

.icon-1x1-large {
    width: 28px;
    height: 28px;
    color: var(--ip-green-safe);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.active .icon-1x1-large {
    transform: rotate(45deg);
}

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

.text-color-tertiary {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    line-height: 1.6;
}

.spacer-medium {
    height: 24px;
}

/* =========================================
   8. SOLUÇÕES (STICKY SCROLL)
   ========================================= */
.scroll-wrapper {
    height: 250vh; 
    position: relative;
    width: 100%;
}

.solution-sticky-card {
    position: sticky;
    top: var(--gap);
    height: calc(100vh - (var(--gap) * 2));
    display: flex;
    flex-direction: column;
    padding: 60px;
    background-color: var(--ip-sky-light); /* Começa com o azul clarinho */
    border-radius: var(--card-radius);
    
    /* ESSA LINHA FAZ A COR MUDAR BEM SUAVE */
    transition: background-color 0.6s ease; 
}

.sticky-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.solution-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 40px;
}

.solution-tab {
    font-size: 14px;
    font-weight: 600;
    color: var(--ip-blue-safe);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 10px 0;
    position: relative;
    opacity: 0.5;
    transition: var(--transition);
}

.solution-tab.active {
    opacity: 1;
    color: var(--ip-blue-core);
}

.solution-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--ip-green-safe);
}

.solution-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    flex-grow: 1;
}

.solution-text-side {
    position: relative;
    height: 100%;
}

.solution-content-item {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

.solution-content-item.active {
    opacity: 1;
    visibility: visible;
    position: relative; 
}

.service-subtitle {
    text-transform: uppercase;
    font-size: 15px !important;
    letter-spacing: 2px;
    font-weight: 400;
    color: var(--ip-dark) !important;
    margin: 20px 0 12px;
    display: block;
}

.solution-content-item p {
    font-size: 1.15rem;
    color: #555;
    max-width: 500px;
}

.solution-image-side {
    height: 100%;
    max-height: 1080px;
}

.image-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--card-radius);
    overflow: hidden;
}

.solution-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.solution-img.active {
    opacity: 1;
}

/* =========================================
   9. BENEFÍCIOS (CARROSSEL)
   ========================================= */
.benefits-section {
    padding: 80px 60px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; 
    gap: 60px;
}

.benefits-text-side {
    max-width: 450px;
    padding-top: 10px;
}

.benefits-text-side .section-title {
    margin-bottom: 24px;
}

.benefits-text-side .section-paragraph {
    font-size: 1.15rem;
    color: #555;
    line-height: 1.6;
}

.benefits-carousel-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

.carousel-controls {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 24px;
}

.control-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    background: var(--ip-white);
    color: var(--ip-blue-core);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.control-btn:hover {
    background-color: var(--ip-green-safe);
    border-color: var(--ip-green-safe);
}

.benefits-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    padding-bottom: 20px;
}

.benefits-track {
    display: flex;
    gap: 24px;
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-card {
    flex: 0 0 calc(50% - 12px); 
    width: calc(50% - 12px);
    max-width: calc(50% - 12px);
    min-height: 280px;
    background-color: var(--ip-gray-light);
    padding: 40px 30px; 
    border-radius: var(--card-radius); 
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: var(--transition);
}

.benefit-card:hover {
    background-color: var(--ip-white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.benefit-icon {
    color: var(--ip-green-safe);
    margin-bottom: 24px;
}

.service-subtitle-benefit {
    margin-bottom: 12px;
    color: var(--ip-blue-safe);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
}

.benefit-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
}

/* =========================================
   10. PILARES DA MARCA (DARK GRID)
   ========================================= */
.pillars-section {
    background-color: var(--ip-blue-core);
    background: url('img/ecossistema-Câmera.jpg');
    background-size: cover;
    padding: 100px 60px;
    color: var(--ip-white);
}

.pillars-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.text-white {
    color: var(--ip-white) !important;
}

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

.pillar-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px 30px;
    border-radius: var(--card-radius);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.pillar-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.pillar-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(135, 215, 193, 0.1);
    color: var(--ip-green-safe);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.pillar-title {
    font-size: 1.5rem;
    color: var(--ip-white);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.pillar-description {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* =========================================
   11. MEDIA QUERIES (RESPONSIVO CONSOLIDADO)
   ========================================= */

/* Tablets / Telas Médias */
@media (max-width: 1024px) {
    .hero-title, .problem-title, .section-title { font-size: 2.8rem; }
    
    .hero { background-position: left; }
    #solucoes { background-position: left; }
    
    .hero, 
    .metrics-section, 
    .problem-dark-section, 
    .benefits-section, 
    .pillars-section { 
        padding: 60px 40px; 
    }
    
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .cta-grid-3 {
        grid-template-columns: 1fr 1fr; /* Transforma em 2 colunas no tablet */
    }
    .cta-image-wrapper {
        grid-column: span 2; /* Faz a imagem ocupar a largura total embaixo */
        aspect-ratio: 2.5 / 1; /* Vira um banner estiloso no tablet */
    }
}

/* Tablets Menores / Landscape */
@media (max-width: 991px) {
    .metrics-content-wrapper { grid-template-columns: 1fr; }
    
    .scroll-wrapper { height: auto; }
    .solution-sticky-card { 
        position: relative; 
        top: 0; 
        height: auto; 
        padding: 40px 24px; 
    }
    .solution-nav { 
        overflow-x: auto; 
        justify-content: flex-start; 
        white-space: nowrap; 
    }
    .solution-main-content { 
        grid-template-columns: 1fr; 
        gap: 40px; 
    }
    .solution-content-item {
        position: relative;
        transform: none;
        top: 0;
        display: none;
    }
    .solution-content-item.active { display: block; }
    .solution-image-side { height: 300px; }
    
    .benefits-grid { grid-template-columns: 1fr; gap: 30px; }
    .benefits-text-side { max-width: 100%; }
    .carousel-controls { justify-content: flex-start; margin-bottom: 16px; }
    
    .benefit-card { 
        flex: 0 0 100%; 
        width: 100%; 
        max-width: 100%; 
        min-height: 240px; 
    }

    .cta-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 40px;
    }
}

/* Mobile (Celulares) */
@media (max-width: 768px) {
    :root { --gap: 16px; }
    
    .navbar { padding: 0 24px; }
    
    .hero, 
    .metrics-section, 
    .problem-dark-section, 
    .benefits-section, 
    .pillars-section { 
        padding: 40px 24px; 
    }
    
    .hero-title, .problem-title, .section-title { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    
    /* Configuração do Menu Mobile */
    .desktop-only { display: none; }
    .mobile-only { display: inline-block; text-align: center; }
    .menu-button { display: flex; }

    /* Garante que o botão hambúrguer fique sempre acima da tela branca do menu */
    .menu-button { 
        display: flex; 
        z-index: 1001; 
        position: relative; 
    }

    /* O Novo Menu Lateral Full Screen (À prova de bugs) */
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%; 
        height: 100vh; 
        background-color: var(--ip-white);
        border-radius: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 40px 30px 80px 30px;
        z-index: 1000;
        
        /* A MÁGICA: Em vez de empurrar para fora, nós "recortamos" o menu todo para a direita */
        clip-path: inset(0 0 0 100%);
        transform: none; /* Removemos o translateX que causava o bug */
        visibility: hidden;
        
        /* Anima o recorte (clip-path) para criar o efeito de deslize perfeito */
        transition: clip-path 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.5s;
    }

    .nav-menu.active { 
        /* Revela 100% do menu */
        clip-path: inset(0 0 0 0); 
        visibility: visible;
        transition: clip-path 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
    }

    /* Ajustes internos do menu mobile */
    .nav-links-wrapper {
        display: flex;
        flex-direction: column;
        gap: 32px;
        align-items: flex-start;
        width: 100%;
        margin-top: 40px;
        margin-bottom: auto; /* Empurra o botão para o fundo */
    }

    .nav-menu .nav-link {
        font-size: 1.8rem; /* Letra maior e elegante no mobile */
        font-weight: 600;
        color: var(--ip-blue-core);
    }

    .mobile-menu-header {
        width: 100%;
        display: flex !important;
        justify-content: flex-start;
        align-items: center;
        height: 40px;
    }

    .mobile-menu-footer {
        width: 100%;
        display: flex !important;
        justify-content: center; /* Centraliza o botão no final */
    }
    
    /* Demais seções no Mobile */
    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .pillars-header { margin-bottom: 40px; }

    .cta-section {
        padding: 40px 24px;
    }
    .cta-grid-3 {
        grid-template-columns: 1fr; /* 1 coluna no mobile */
        gap: 30px;
    }
    .cta-image-wrapper {
        grid-column: span 1;
        aspect-ratio: 1 / 1; /* Volta a ser quadrado no mobile */
    }
    .cta-form-wrapper {
        padding: 24px;
    }

    
}

/* Telas muito pequenas */
@media (max-width: 480px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   12. ANIMAÇÕES DE SCROLL
   ========================================= */
/* Classe base: prepara o elemento para ser animado */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform; /* Otimização de performance */
}

/* Tipos de movimento inicial */
.fade-up { transform: translateY(50px); }
.fade-down { transform: translateY(-50px); }
.fade-left { transform: translateX(50px); }
.fade-right { transform: translateX(-50px); }
.fade-in { transform: scale(0.95); } /* Leve zoom in */

/* A classe que o JavaScript vai adicionar quando o elemento aparecer */
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Delays para animar cards em sequência (Cascata) */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Desativa animações se o usuário preferir menos movimento no sistema operacional */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

/* =========================================
   13. CTA / FALE CONOSCO (3 COLUNAS)
   ========================================= */
.cta-section {
    background-color: #66a391; /* Fundo com a cor exata solicitada */
    padding: 80px 60px;
}

/* Grid de 3 colunas (1.1fr no meio dá um fôlego extra para o form) */
.cta-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1fr; 
    gap: 40px;
    align-items: center;
}

.cta-text { width: 100%; }

.cta-text .section-title {
    font-size: 2.4rem; /* Ajustado para caber bem em 1/3 da tela */
    margin-bottom: 16px;
    line-height: 1.1;
}

.cta-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.6;
}

.cta-contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--ip-white);
    font-size: 1.05rem;
    font-weight: 500;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Formulário Flutuante */
.cta-form-wrapper {
    background-color: var(--ip-white);
    padding: 32px;
    border-radius: var(--card-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    height: 100%;
    min-width: 100%;
    display: flex;
    align-items: center;
}

.cta-form {
    width: 100%;
}

.form-title {
    font-size: 1.6rem;
    color: var(--ip-blue-core);
    margin-bottom: 24px;
}

.input-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ip-blue-safe);
}

.input-group input {
    width: 100%;
    padding: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background-color: var(--ip-gray-light);
    font-family: inherit;
    font-size: 1rem;
    color: var(--ip-dark);
    transition: var(--transition);
}

.input-group input:focus {
    outline: none;
    border-color: var(--ip-green-safe);
    background-color: var(--ip-white);
    box-shadow: 0 0 0 4px rgba(135, 215, 193, 0.1);
}

.btn-full {
    width: 100%;
    margin-top: 10px;
}

/* Botão Azul Escuro para destacar no fundo #66a391 */
.btn-cta {
    background-color: var(--ip-blue-core);
    color: var(--ip-white);
    border-color: var(--ip-blue-core);
}

.btn-cta:hover {
    background-color: var(--ip-dark);
    border-color: var(--ip-dark);
}

/* Imagem quadrada 1:1 */
.cta-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.cta-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================
   14. FOOTER (RODAPÉ)
   ========================================= */
.site-footer {
    background-color: var(--ip-white);
    padding: 60px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #f0f0f0;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .brand-logo {
    height: 24px;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.95rem;
    color: var(--ip-blue-safe);
}

.footer-links h4, .footer-social h4 {
    font-size: 1.1rem;
    color: var(--ip-blue-core);
    margin-bottom: 16px;
}

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

.footer-links a {
    font-size: 0.95rem;
    color: var(--ip-blue-safe);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--ip-green-safe);
}

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

.social-btn {
    width: 44px;
    height: 44px;
    background-color: var(--ip-gray-light);
    color: var(--ip-blue-core);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-btn:hover {
    background-color: var(--ip-green-safe);
    color: var(--ip-white);
}

.footer-bottom {
    text-align: left;
}

.footer-bottom p {
    font-size: 0.7rem;
    color: #888;
}

/* Tablet */
@media (max-width: 991px) {
    .cta-grid-3 {
        grid-template-columns: 1fr; /* Quebra para 1 coluna empilhada */
        gap: 40px;
    }
    .cta-image-wrapper {
        grid-column: span 1; 
        aspect-ratio: 2 / 1; /* Retângulo deitado (Banner) no tablet */
    }
}

/* Celular */
@media (max-width: 768px) {
    .cta-section {
        padding: 40px 24px !important; /* Força a redução daquele padding gigante */
    }
    .cta-grid-3 {
        grid-template-columns: 1fr; /* Garante que fica em 1 coluna */
        gap: 32px;
    }
    .cta-image-wrapper {
        aspect-ratio: 1 / 1; /* Volta a ser quadrado perfeito no celular */
    }
    .cta-form-wrapper {
        padding: 24px;
    }
}
