/* --- VARIÁVEIS --- */
:root {
    --blue-light: #8bb4d2;
    --blue-mid: #96b3d3; /* Azul Soul */
    --blue-deep: #0D2B45; /* Azul Marinho */
    --bg-white: #FFFFFF;
    --text-main: #1F2937;
    --text-light: #64748B;
    
    --radius-lg: 24px;
    --shadow-soft: 0 10px 30px -10px rgba(13, 43, 69, 0.1);
}

/* POP-UP DE SUCESSO */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(13, 43, 69, 0.8);
    display: none; 
    align-items: center; justify-content: center;
    z-index: 2000; opacity: 0; transition: opacity 0.3s ease;
}
.modal-overlay.active { display: flex; opacity: 1; }

.modal-content {
    background: #FFF; border-radius: 12px; padding: 40px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3); max-width: 400px;
    text-align: center; transform: scale(0.95); transition: transform 0.3s ease;
}
.modal-overlay.active .modal-content { transform: scale(1); }

.modal-content .ph-check-circle {
    font-size: 3.5rem; color: #4CAF50; margin-bottom: 1rem;
}
.modal-content h3 {
    color: var(--blue-deep); font-size: 1.5rem; margin-bottom: 0.5rem;
}
.modal-content p {
    color: var(--text-light); font-size: 1rem; margin-bottom: 0;
}

/* --- RESET & TYPOGRAPHY --- */
h2 { font-size: 2.5rem; }

p { color: var(--text-light); font-size: 1.05rem; margin-bottom: 1.5rem; font-weight: 400; }
img { width: 100%; height: auto; display: block; object-fit: cover; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- UTILS --- */
.section { padding: 8rem 0; position: relative; }
.text-center { text-align: center; }

/* --- CORES DE FUNDO & TEXTO --- */
.bg-white { background-color: #FFFFFF; }

/* Fundo Azul Soul (Texto vira Branco) */
.bg-blue-soul { 
    background-color: var(--blue-mid); 
    color: #FFFFFF;
}
.bg-blue-soul h2, .bg-blue-soul h3, .bg-blue-soul h4, .bg-blue-soul .loc-val { color: #FFFFFF !important; }
.bg-blue-soul p, .bg-blue-soul .loc-label { color: rgba(255,255,255,0.9) !important; }
.bg-blue-soul .loc-icon { color: #FFFFFF !important; opacity: 0.9; }

/* --- SELOS (BADGES) --- */
.badge img { height: 24px; width: auto; display: block; }

/* TIPO 2: Para fundos BRANCOS (Selo Azul Translúcido) */
.badge-glass-blue { 
    background: rgba(139, 180, 210, 0.15); 
    backdrop-filter: blur(4px);
    color: var(--blue-deep);
}

/* --- BOTÕES --- */
.btn-soul:hover {
    background-color: #8bb4d2;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 180, 210, 0.4);
}

/* Botão Azul Escuro (Deep) - Elegante */
.btn-deep {
    background-color: var(--blue-deep);
    color: #FFF;
    box-shadow: 0 5px 15px rgba(13, 43, 69, 0.2);
}
.btn-deep:hover {
    background-color: #1a3c5e;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(13, 43, 69, 0.3);
}

/* Botão Outline Branco (Para fundo escuro) */
.btn-outline-white {
    border: 1px solid rgba(255,255,255,0.6); color: #FFF; background: transparent;
}
.btn-outline-white:hover {
    background: #FFF; color: var(--blue-deep); border-color: #FFF;
}

/* --- HEADER --- */
header.scrolled { background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(12px); box-shadow: 0 4px 20px rgba(0,0,0,0.05); height: 90px; }
header.scrolled .logo-img { filter: invert(1) brightness(0.2); height: 55px; }
header.scrolled .ticker-item { color: var(--blue-deep); }

/* TICKER */
.header-center { flex: 1; display: flex; justify-content: center; align-items: center; overflow: hidden; height: 40px; }
.ticker-wrap { position: relative; height: 100%; width: 100%; max-width: 400px; text-align: center; }
.ticker-item {
    position: absolute; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    gap: 8px; opacity: 0; font-size: 0.95rem; font-weight: 600; color: #FFF;
    letter-spacing: 0.03em; text-transform: uppercase; transition: color 0.4s ease;
    animation: fadeTicker 12s infinite;
}
.ticker-item:nth-child(1) { animation-delay: 0s; }
.ticker-item:nth-child(2) { animation-delay: 4s; }
.ticker-item:nth-child(3) { animation-delay: 8s; }
@keyframes fadeTicker {
    0% { opacity: 0; transform: translateY(10px); }
    10% { opacity: 1; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(0); }
    40% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 0; transform: translateY(-10px); }
}

/* --- HERO --- */
.hero-stats { display: flex; gap: 2rem; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.2); }
.stat-item strong { font-size: 2rem; color: var(--blue-light); display: block; line-height: 1; margin-bottom: 0.2rem; }
.stat-item span { color: rgba(255,255,255,0.7); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; }

/* FORMULÁRIO HEADER */
.form-field:focus { background: #FFF; outline: none; box-shadow: 0 0 0 3px rgba(139, 180, 210, 0.5); }
.check-group { margin-bottom: 1.5rem; }
.check-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; margin-bottom: 0.6rem; cursor: pointer; color: rgba(255,255,255,0.9); font-weight: 500; }
.check-item input { accent-color: var(--blue-light); width: 18px; height: 18px; }

/* --- CONCEITO --- */
.concept-wrap { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 6rem; }
.concept-img-wrapper { position: relative; z-index: 1; }
.concept-img-wrapper::before {
    content: ''; position: absolute; top: -30px; left: -30px; width: 100%; height: 100%;
    border: 2px solid var(--blue-light); z-index: -1; border-radius: var(--radius-lg); transition: 0.5s;
}
.concept-img-wrapper:hover::before { top: -15px; left: -15px; } 
.concept-img { border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }

/* --- LOCALIZAÇÃO --- */
.loc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.loc-card {
    background: rgba(255,255,255,0.1); backdrop-filter: blur(10px);
    padding: 2rem; border-radius: 16px; border: 1px solid rgba(255,255,255,0.3);
    transition: 0.3s; position: relative; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: center;
}
.loc-card:hover { transform: translateY(-8px); background: rgba(255,255,255,0.2); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.loc-icon { font-size: 2.2rem; margin-bottom: 1rem; display: block; }
.loc-val { font-size: 1.5rem; font-weight: 800; display: block; line-height: 1.2; }
.loc-label { font-size: 0.9rem; margin-top: 0.2rem; }

/* --- INFRA --- */
.infra-scroll { display: flex; gap: 1.5rem; overflow-x: auto; padding: 2rem 0.5rem 3rem 0.5rem; scroll-snap-type: x mandatory; }
.infra-scroll::-webkit-scrollbar { height: 6px; }
.infra-scroll::-webkit-scrollbar-thumb { background: var(--blue-light); border-radius: 4px; }
.infra-card { min-width: 320px; scroll-snap-align: center; border-radius: 20px; overflow: hidden; background: #FFF; box-shadow: var(--shadow-soft); transition: 0.4s; cursor: pointer; border: 1px solid #EEE; }
.infra-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-soft); }
.infra-img { height: 220px; transition: 0.5s; width: 100%; object-fit: cover; }
.infra-card:hover .infra-img { transform: scale(1.05); }
.infra-txt { padding: 1.5rem; }
.infra-txt h4 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--blue-deep); }

/* --- PLANTAS --- */
.tabs-nav { display: flex; justify-content: center; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.tab-btn {
    background: transparent; border: 1px solid rgba(255,255,255,0.3); padding: 0.8rem 2rem;
    border-radius: 50px; font-weight: 600; color: rgba(255,255,255,0.9); cursor: pointer; transition: 0.3s; font-size: 0.9rem;
}
.tab-btn:hover, .tab-btn.active { background: #FFF; color: var(--blue-mid); border-color: #FFF; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

.tab-pane {
    display: none; animation: fadeUp 0.6s ease;
    background: #FFF; border-radius: 24px; padding: 3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); text-align: center;
}
.tab-pane h3 { color: var(--blue-mid) !important; }
.tab-pane p { color: var(--text-light) !important; }
.tab-pane.active { display: block; }
.plant-img { max-height: 400px; width: auto; max-width: 100%; margin: 0 auto 1.5rem; object-fit: contain; }

/* --- ARTE --- */
.art-section { background-color: var(--blue-deep); color: var(--bg-white); position: relative; overflow: hidden; padding: 8rem 0; }
.art-wrap { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 5rem; }
.art-content h2 { color: var(--bg-white); }
.art-img-border { border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,0.1); box-shadow: 20px 20px 0 rgba(255,255,255,0.05); }

/* --- INSTITUCIONAL --- */
.logos-row { display: flex; justify-content: center; align-items: center; gap: 5rem; flex-wrap: wrap; margin-top: 4rem; }
.logo-partner { height: 110px; width: auto; object-fit: contain; filter: invert(1) opacity(0.7); transition: 0.3s; display: block; margin: 0 auto; }
.logo-partner:hover { filter: invert(1) opacity(1); transform: scale(1.05); }

/* --- FOOTER --- */
footer { background: #0b1822; color: #FFF; padding: 6rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 400px; gap: 6rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 4rem; }
.footer-form { background: rgba(255,255,255,0.03); padding: 2rem; border-radius: 20px; border: 1px solid rgba(255,255,255,0.08); }
.footer-input { background: #08121a; border: 1px solid rgba(255,255,255,0.1); color: #FFF; margin-bottom: 1rem; width: 100%; padding: 1rem; border-radius: 10px; font-family: 'Manrope', sans-serif; }
.footer-check-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; margin-bottom: 0.6rem; cursor: pointer; color: rgba(255,255,255,0.7); }
.legal-text { font-size: 0.75rem; color: #5a6b7c; text-align: center; margin-top: 2rem; max-width: 900px; margin: 2rem auto 0; }

/* --- ANIMAÇÕES --- */
@keyframes float-y { 0% { transform: translateY(0px); } 50% { transform: translateY(-12px); } 100% { transform: translateY(0px); } }
.animate-float { animation: float-y 6s ease-in-out infinite; }
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- MEDIA QUERIES (REGRAS PARA MOBILE) --- */
@media (max-width: 900px) {
    .section { padding: 4rem 0; }
    /* Ajuste de Padding do Container */
    .container { padding: 0 0.5rem; } 
    
    /* Header e Logo */
    header { height: 95px; } /* Altura para 2 linhas */
    header.scrolled { height: 80px; }
    .logo-img { height: 60px; margin-right: 0.2rem; }
    
    /* Botão CTA (Maior e Mais Clicável) */
    .btn { 
        padding: 1rem 1.5rem; 
        font-size: 0.85rem; 
        gap: 0.5rem; 
    }
    
    /* Ticker em Duas Linhas */
    .header-center { 
        flex: 1; 
        height: 55px; /* Aumenta a altura para 2 linhas */
        margin: 0 0.2rem; /* Margem miníma entre logo e botão */
    } 
    .ticker-wrap { max-width: 170px; height: 55px; } 
    .ticker-item { 
        font-size: 0.7rem; 
        line-height: 1.2; 
        white-space: normal; /* Permite a quebra de linha */
        padding: 5px 0;
    } 
    /* Garante o início correto da animação CSS no mobile */
    .ticker-item:nth-child(1) { animation-delay: 0s; }
    .ticker-item:nth-child(2) { animation-delay: 4s; }
    .ticker-item:nth-child(3) { animation-delay: 8s; }

    /* Outros Ajustes Mobile */
    .hero { height: auto; min-height: 100vh; display: block; padding-bottom: 4rem; }
    .hero-bg-wrapper { position: absolute; height: 100%; top:0; left:0; width:100%; }
    .hero-desktop { display: none; }
    .hero-mobile { display: block; }
    .hero-content { grid-template-columns: 1fr; gap: 2rem; padding-top: 130px; padding-left: 1.5rem; padding-right: 1.5rem; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-stats { flex-wrap: wrap; gap: 1rem; }
    .glass-form { margin-top: 1rem; padding: 1.5rem; }
    .concept-wrap, .art-wrap, .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
    .concept-img-wrapper { order: -1; margin-bottom: 1rem; }
    .loc-grid { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
    .loc-card { padding: 1rem 0.5rem; min-height: 140px; }
    .loc-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
    .loc-val { font-size: 1.2rem; }
    .logos-row { gap: 2rem; }
    .logo-partner { height: 80px; }
}