:root {
    --primary: #1e3a8a; /* Azul Profundo */
    --primary-light: #2563eb;
    --secondary: #22c55e; /* Verde Vibrante */
    --secondary-hover: #16a34a;
    --accent: #3b82f6;
    --dark: #1e3a8a;
    --light: #f8fafc;
    --text-main: #334155;
    --text-dark: #0f172a;
    --text-light: #ffffff;
    --gray-light: #f1f5f9;
    --gray: #94a3b8;
    --danger: #ef4444;
    --success: #22c55e;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --glass: rgba(30, 58, 138, 0.85); /* Azul no Glassmorphism */
    --glass-blur: blur(12px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    background-color: var(--light);
    color: var(--text-main);
    line-height: 1.6;
}

/* Header & Navigation */
header {
    background: transparent;
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 10px 0;
}

header.scrolled {
    background: var(--glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow);
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar {
    background: rgba(0, 0, 0, 0.1);
    color: white;
    font-size: 0.8rem;
    padding: 5px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

header.scrolled .topbar {
    display: none;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    width: 100%;
}

.logo-nav {
    height: 50px;
    max-width: 150px;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

header.scrolled .logo-nav {
    height: 45px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    opacity: 0.9;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--secondary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-login {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

.nav-login:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-2px);
    color: white !important;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7)), url('../img/dedetizacao.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 80px 20px;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(transparent, var(--light));
}

.hero-content {
    width: 100%;
    max-width: 900px;
    z-index: 1;
}

.hero-content img {
    max-width: 100%;
    height: auto;
}

.hero-content h1 {
    font-size: clamp(2rem, 8vw, 4rem);
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: clamp(1rem, 4vw, 1.25rem);
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--secondary);
    color: white;
    padding: 15px 30px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
    max-width: 100%;
}

.btn-hero:hover {
    background: var(--secondary-hover);
    transform: translateY(-3px);
    box-shadow: 0 20px 30px -10px rgba(16, 185, 129, 0.5);
}

/* Services Section */
.services {
    padding: 80px 5%;
    text-align: center;
    background: var(--light);
}

.section-title {
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: clamp(2rem, 6vw, 3rem);
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-title .underline {
    width: 60px;
    height: 5px;
    background: var(--secondary);
    margin: 0 auto;
    border-radius: 10px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    text-align: left;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.service-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-info {
    padding: 25px;
}

.service-info i {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.service-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.service-link {
    display: inline-flex;
    align-items: center;
    margin-top: 18px;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--secondary-hover);
}

.local-seo-section {
    padding: 80px 5%;
    background: white;
}

.local-seo-content {
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}

.local-seo-content h2 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    color: var(--primary);
    margin-bottom: 24px;
    line-height: 1.2;
}

.local-seo-content p {
    font-size: 1.05rem;
    margin-bottom: 18px;
}

.local-seo-actions {
    margin-top: 32px;
}

.service-page-hero {
    min-height: 72vh;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.72)), var(--service-bg, url('../img/dedetizacao.jpg')) center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 140px 20px 80px;
}

.service-page-hero.dedetizacao-bg,
.service-page-hero.baratas-bg,
.service-page-hero.formigas-bg {
    --service-bg: url('../img/dedetizacao.jpg');
}

.service-page-hero.descupinizacao-bg {
    --service-bg: url('../img/descupinizacao.jpg');
}

.service-page-hero.desratizacao-bg {
    --service-bg: url('../img/desratizacao.jpg');
}

.service-page-hero .hero-content h1 {
    font-size: clamp(2rem, 7vw, 3.5rem);
}

.service-detail {
    padding: 80px 5%;
    background: var(--light);
}

.service-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    gap: 40px;
    max-width: 1180px;
    margin: 0 auto;
    align-items: start;
}

.service-copy h2,
.service-copy h3 {
    color: var(--primary);
    line-height: 1.25;
}

.service-copy h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 20px;
}

.service-copy h3 {
    font-size: 1.35rem;
    margin: 34px 0 14px;
}

.service-copy p {
    margin-bottom: 16px;
}

.service-copy ul {
    margin: 14px 0 0 20px;
}

.service-copy li {
    margin-bottom: 10px;
}

.service-sidebar {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.04);
}

.service-sidebar h2 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.service-sidebar p {
    margin-bottom: 20px;
}

.service-list {
    list-style: none;
    margin: 22px 0;
}

.service-list li {
    margin-bottom: 12px;
}

.service-list a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

.service-list a:hover {
    color: var(--secondary-hover);
}

/* Why Choose Us */
.why-us {
    background: var(--dark);
    color: white;
    padding: 80px 5%;
    text-align: center;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.why-item i {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.why-item h4,
.why-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Map Section */
.map-section {
    padding: 80px 5%;
    text-align: center;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 40px;
}

/* Footer */
footer {
    background: #111;
    color: white;
    padding: 60px 5% 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-item h4 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-item h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--secondary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #BDC3C7;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 10px;
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #BDC3C7;
}

.contact-info i {
    color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: #7F8C8D;
}

/* Animation: Exterminator chasing Rat */
.chase-container {
    position: relative;
    width: 100%;
    height: 40px;
    background: transparent;
    overflow: hidden;
    margin-top: -40px; /* Sobrepõe levemente a transição */
    z-index: 5;
    pointer-events: none;
}

.chase-wrapper {
    position: absolute;
    left: -150px;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: runChase 15s linear infinite;
    opacity: 0.4; /* Bem discreto */
    color: var(--primary);
}

.chase-wrapper i.fa-running {
    font-size: 1.5rem;
}

.chase-wrapper i.fa-mouse {
    font-size: 1rem;
    margin-left: 10px;
    color: var(--text-main);
}

@keyframes runChase {
    0% {
        left: -150px;
    }
    20% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* Ajuste no rodapé para a animação aparecer acima dele */
footer {
    position: relative;
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #1ebe5d;
}

/* Video Section */
.video-section {
    padding: 80px 5%;
    background: white;
}

.video-container-flex {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.video-text {
    flex: 1;
}

.video-text h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.video-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-main);
}

.video-content-right {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-wrapper {
    width: 100%;
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 8px solid white;
    background: var(--dark);
    aspect-ratio: 9 / 16;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.benefit-list {
    list-style: none;
    margin-top: 20px;
}

.benefit-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-weight: 500;
    color: var(--dark);
}

.benefit-list i {
    color: var(--secondary);
    font-size: 1.2rem;
}

/* Instagram Button */
.instagram-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
    width: 100%;
}

.instagram-cta span {
    font-weight: 600;
    color: var(--primary);
    font-size: 1rem;
}

.btn-insta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(204, 35, 102, 0.3);
    font-size: 0.9rem;
    white-space: nowrap;
}

.btn-insta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(204, 35, 102, 0.4);
}

.btn-insta i {
    font-size: 1.2rem;
}

@media (max-width: 992px) {
    .video-container-flex {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .video-content-right {
        flex: none;
        width: 280px;
        max-width: 90%;
    }
    
    .benefit-list li {
        justify-content: center;
    }

    .hero {
        padding: 120px 20px 80px;
    }

    .service-detail-grid {
        grid-template-columns: 1fr;
    }

    .navbar {
        padding: 10px 5%;
    }

    .logo-nav {
        height: 40px;
    }
}

/* Responsive */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--dark);
        padding: 30px 20px;
        gap: 20px;
        text-align: center;
        box-shadow: var(--shadow);
    }

    .nav-links.active li {
        width: 100%;
    }

    .nav-links.active a {
        display: block;
        padding: 10px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }

    .video-text h2 {
        font-size: 1.6rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        display: none;
    }
}
