@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Montserrat:wght@400;600;700;800;900&display=swap');

/* ================= SCROLL REVEAL ================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}


:root {
    --primary-color: #1a6390;
    --primary-dark: #0f3d59;
    --secondary-color: #f79927;
    --secondary-hover: #ffad4a;
    --bg-main: #fcfcfc;
    --bg-alt: #f3f5f7;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 50px -10px rgba(26, 99, 144, 0.15);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-dark);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ================= HEADER (GLASSMORPHISM) ================= */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    height: 90px;
}

.logo img {
    height: 75px;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-links a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ================= HERO SECTION ================= */
.hero {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 61, 89, 0.92) 0%, rgba(26, 99, 144, 0.85) 100%), url('assets/hero-bg.jpg') center/cover no-repeat;
    background-attachment: fixed;
    color: white;
    padding: 140px 20px 160px;
    text-align: center;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--bg-main), transparent);
}

.hero h1 {
    color: white;
    font-size: 3.8rem;
    font-weight: 800;
    max-width: 900px;
    margin: 0 auto 24px auto;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero p {
    font-size: 1.25rem;
    font-weight: 300;
    max-width: 750px;
    margin: 0 auto 40px auto;
    color: rgba(255,255,255,0.9);
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ================= BUTTONS ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 42px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #ffad4a 100%);
    color: white !important;
    box-shadow: 0 10px 25px rgba(247, 153, 39, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(247, 153, 39, 0.5);
}

.btn-outline {
    background-color: transparent;
    color: white !important;
    border: 2px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary-dark) !important;
    border-color: white;
}

/* ================= CONTENT & TYPOGRAPHY ================= */
.section-padding {
    padding: 100px 0;
}

.content-block {
    margin-bottom: 60px;
    animation: fadeIn 1s ease;
}

.content-block h2 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.content-block h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* Centralized h2 for index.html */
.content-block[style*="text-align: center"] h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.content-block h3 {
    font-size: 1.6rem;
    margin: 40px 0 20px;
    color: var(--primary-color);
}

.content-block p {
    font-size: 1.15rem;
    margin-bottom: 24px;
    color: var(--text-muted);
}

.content-block strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* ================= IMAGES ================= */
.seo-image-container {
    margin: 40px 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.cover-image {
    width: 100%;
    max-height: 550px;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}

.seo-image-container:hover .cover-image {
    transform: scale(1.03);
}

figcaption {
    background: white;
    padding: 16px;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
    border-bottom: 3px solid var(--primary-color);
}

/* ================= CTA BOX ================= */
.cta-box {
    background: linear-gradient(135deg, #ffffff 0%, var(--bg-alt) 100%);
    border-left: 6px solid var(--secondary-color);
    padding: 40px;
    border-radius: 0 16px 16px 0;
    margin: 50px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-box:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.cta-box h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: var(--primary-dark);
    margin-top: 0;
}

.cta-box p {
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ================= CARDS (SERVICES GRID) ================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: var(--primary-dark);
    font-weight: 700;
}

.service-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 0;
}

/* ================= FOOTER ================= */
footer {
    background: linear-gradient(160deg, #0a2a40 0%, var(--primary-dark) 60%, #0f3d59 100%);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 30px 0;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
}

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

.footer-col h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-col.brand-col img {
    height: 80px;
    margin-bottom: 20px;
    /* SEM filtro branco — logo aparece com suas cores originais */
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.footer-col.brand-col h3 {
    font-size: 1.4rem;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 16px;
}

.nap-info {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    line-height: 2.2;
}

.nap-info a {
    color: var(--secondary-color) !important;
    font-weight: 600;
    border-bottom: 1px dashed rgba(247,153,39,0.4);
    padding-bottom: 2px;
}

.nap-info a:hover {
    color: #ffc86e !important;
    border-color: #ffc86e;
}

.footer-col p {
    margin-bottom: 12px;
    font-size: 1rem;
}

.footer-col a {
    color: rgba(255,255,255,0.65);
    display: block;
    margin-bottom: 14px;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding-left: 0;
}

.footer-col a::before {
    content: '→ ';
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-col a:hover {
    color: var(--secondary-color);
    padding-left: 8px;
}

.footer-col a:hover::before {
    opacity: 1;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.4);
}


/* ================= WHATSAPP ANIMATED ================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    color: white;
    animation: none;
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}

/* ================= CTA INLINE HERO (abaixo do 1º H2) ================= */
.cta-inline-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: linear-gradient(135deg, #fff8ed 0%, #fff3dc 100%);
    border: 2px solid var(--secondary-color);
    border-radius: 20px;
    padding: 28px 36px;
    margin: 30px 0 40px;
    box-shadow: 0 8px 30px rgba(247, 153, 39, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-inline-hero:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(247, 153, 39, 0.25);
}

.cta-inline-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cta-inline-text strong {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.cta-inline-text span {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.btn-cta-pulse {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--secondary-color), #ffad4a);
    color: white !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 18px 36px;
    border-radius: 50px;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(247, 153, 39, 0.4);
    animation: cta-pulse 2.5s infinite;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.btn-cta-pulse:hover {
    animation: none;
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 15px 35px rgba(247, 153, 39, 0.6);
    color: white !important;
}

@keyframes cta-pulse {
    0%   { box-shadow: 0 8px 20px rgba(247,153,39,0.4); }
    50%  { box-shadow: 0 8px 35px rgba(247,153,39,0.7), 0 0 0 10px rgba(247,153,39,0.08); }
    100% { box-shadow: 0 8px 20px rgba(247,153,39,0.4); }
}

@media(max-width: 768px) {
    .cta-inline-hero { flex-direction: column; text-align: center; padding: 24px 20px; }
    .btn-cta-pulse { width: 100%; justify-content: center; }
}

/* ================= KEYFRAMES ================= */

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

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

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ================= STATS SECTION ================= */
.stats-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    padding: 60px 0;
}

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

.stat-item {
    text-align: center;
    padding: 30px 20px;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.stat-item:last-child {
    border-right: none;
}

.counter-number {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    display: block;
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ================= SERVICE ICON ================= */
.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.card-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.service-card:hover .card-link {
    color: var(--secondary-color);
    padding-left: 5px;
}

/* ================= DIFERENCIAIS ================= */
.diferenciais-section {
    background: var(--bg-alt);
    padding: 100px 0;
}

.diferenciais-section > .container > h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.6rem;
}

.diferenciais-section > .container > h2::after {
    left: 50%;
    transform: translateX(-50%);
    content: '';
    position: absolute;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

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

.diferencial-item {
    background: white;
    padding: 35px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.diferencial-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.dif-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.diferencial-item h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.diferencial-item p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 0;
}

/* ================= CTA FINAL SECTION ================= */
.cta-final-section {
    padding: 100px 0;
}

.cta-final-box {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    border-radius: 24px;
    padding: 80px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-final-box::before {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    background: rgba(247,153,39,0.1);
    border-radius: 50%;
    top: -100px; right: -100px;
}

.cta-final-box h2 {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.cta-final-box p {
    color: rgba(255,255,255,0.8);
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ================= RESPONSIVE ================= */

@media(max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .content-block h2 { font-size: 2.2rem; }
    .cta-box { flex-direction: column; text-align: center; gap: 24px; padding: 30px; }
    .cta-box h3 { margin-bottom: 16px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .diferenciais-grid { grid-template-columns: repeat(2, 1fr); }
}

@media(max-width: 768px) {
    .navbar { height: auto; padding: 15px; flex-direction: column; gap: 15px; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .hero { padding: 100px 20px; }
    .hero h1 { font-size: 2.4rem; }
    .btn { padding: 14px 30px; font-size: 14px; }
    .whatsapp-float { width: 55px; height: 55px; font-size: 30px; bottom: 20px; right: 20px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
    .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .diferenciais-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-final-box { padding: 50px 30px; }
    .cta-final-box h2 { font-size: 2rem; }
}

/* ================= EXIT INTENT POPUP ================= */
.exit-popup-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.exit-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}
.exit-popup-content {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: translateY(50px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border-top: 5px solid var(--secondary-color);
}
.exit-popup-overlay.active .exit-popup-content {
    transform: translateY(0) scale(1);
}
.exit-popup-close {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: 0.2s;
}
.exit-popup-close:hover { color: #333; }
.exit-popup-content h3 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    margin-bottom: 15px;
}
.exit-popup-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 25px;
}
