/*
Theme Name: Eletrocol Theme
Theme URI: https://eletrocol.com.br
Author: Eletrocol
Description: Tema personalizado para Eletrocol - Revenda Ouro Intelbras. Inclui páginas Vision Control (CFTV) e Eletrocol Access (Controle de Acesso).
Version: 2.1
*/

:root {
    --primary-blue: #13679C;
    --highlight-orange: #D98A2E;
    --intelbras-green: #00A335;
    --intelbras-green-light: rgba(0, 163, 53, 0.1);
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --text-color: #333333;
    --text-light: #666666;
    --border-radius: 8px;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    transition: var(--transition);
}

h1, h2, h3, h4 {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.section-padding {
    padding: 80px 0;
}

.bg-light-gray {
    background-color: var(--light-gray);
}

.text-center {
    text-align: center;
}

.max-w-800 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.white-text h2, .white-text p {
    color: var(--white);
}

/* Separator */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.separator {
    width: 60px;
    height: 4px;
    background-color: var(--intelbras-green);
    margin: 0 auto;
    border-radius: 2px;
}

.white-bg {
    background-color: var(--white);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    border-top: 3px solid var(--highlight-orange);
    padding: 10px 0;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.navbar-logo {
    display: flex;
    align-items: center;
}

.navbar-logo img {
    height: 50px;
    width: auto;
    padding: 0;
    border-radius: 0;
    filter: brightness(0) invert(1);
}

/* Informações de Contato (Esquerda) */
.navbar-contact-left {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--white);
    margin-right: auto; /* Push menu to right */
    margin-left: 20px; /* Space from logo */
}

.navbar-contact-left a, .navbar-contact-left span {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.navbar-contact-left a:hover {
    color: var(--primary-blue); /* Ou branco com opacidade */
    text-decoration: underline;
}

.navbar-contact-left .fa-instagram {
    font-size: 1.4rem;
    vertical-align: middle;
}

/* Menu de Navegação (Direita) */
.navbar-menu {
    display: flex;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.navbar-item {
    margin-left: 20px;
}

.navbar-link {
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.navbar-link:hover {
    color: var(--white);
    opacity: 0.9;
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--white);
    transition: var(--transition);
}

.navbar-link:hover::after {
    width: 100%;
}

.navbar-btn {
    background-color: var(--intelbras-green);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.navbar-btn:hover {
    background-color: #008f2e;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

/* Mobile Menu Toggle */
.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: 0.4s;
}

/* Buttons */
.cta-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: var(--highlight-orange);
    color: var(--white);
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(217, 138, 46, 0.4);
    border: 2px solid transparent;
}

.cta-button i {
    margin-right: 12px;
}

.cta-button.primary-cta {
    background-color: var(--primary-blue);
    box-shadow: 0 4px 15px rgba(19, 103, 156, 0.4);
}

.cta-button:hover {
    background-color: #c07a25;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 138, 46, 0.6);
}

.cta-button.primary-cta:hover {
    background-color: #0e4d75;
    box-shadow: 0 6px 20px rgba(19, 103, 156, 0.6);
}

/* Pulse Animation */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(217, 138, 46, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(217, 138, 46, 0); }
    100% { box-shadow: 0 0 0 0 rgba(217, 138, 46, 0); }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh; /* Full viewport height */
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 0;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 50, 20, 0.6); /* Slightly more transparent */
    background: linear-gradient(90deg, rgba(0, 70, 30, 0.9) 0%, rgba(0, 163, 53, 0.3) 100%);
    z-index: -1;
}

.hero-content-wrapper {
    z-index: 1;
    position: relative;
    width: 100%;
    padding-top: 80px; /* Space from top to account for navbar */
    padding-bottom: 40px;
}

.hero-content {
    max-width: 700px; /* Narrower for better reading */
    color: var(--white);
    /* No longer centered, left aligned by default */
}

.hero h1 {
    color: var(--white);
    font-size: 3rem; /* Larger font */
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.subheadline {
    color: rgba(255,255,255,0.95);
    font-size: 1.4rem;
    margin-bottom: 50px; /* More space before button */
    font-weight: 300;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
    max-width: 600px;
}

/* About Us */
.about-us {
    background-color: var(--intelbras-green-light); /* Light green background */
}

.about-us p {
    font-size: 1.3rem; /* Increased font size */
    line-height: 1.8;
    color: #444;
    font-weight: 500;
}

/* MVV Cards */
.mvv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.mvv-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid var(--intelbras-green);
    box-shadow: var(--shadow-sm);
}

.mvv-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: var(--intelbras-green-light);
    color: var(--intelbras-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    transition: var(--transition);
}

.mvv-card:hover .icon-wrapper {
    background-color: var(--intelbras-green);
    color: var(--white);
}

/* Solutions / Como Ajudamos */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.solution-block {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #eee;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.solution-block:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--intelbras-green);
}

.icon-box-large {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    transition: var(--transition);
}

.solution-block:hover .icon-box-large {
    color: var(--intelbras-green);
    transform: scale(1.1);
}

/* Partner Section (Intelbras) */
.partner-section {
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

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

.partner-content h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
}

.partner-logo {
    max-width: 200px;
    margin-bottom: 20px;
}

.partner-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.badge {
    background-color: var(--intelbras-green-light);
    color: var(--intelbras-green);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.partner-image-wrapper {
    position: relative;
}

.partner-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    position: relative;
    z-index: 2;
}

.partner-overlay-deco {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background-color: var(--intelbras-green);
    border-radius: 20px;
    z-index: 1;
    opacity: 0.1;
}

/* Services Carousel */
.services-slider {
    padding-bottom: 50px !important;
}

.service-slide {
    background: var(--white);
    border-radius: 15px;
    overflow: visible !important;
    box-shadow: var(--shadow-sm);
    height: 420px;
    position: relative;
    transition: var(--transition);
    cursor: pointer;
}

.service-slide:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.service-image {
    height: 60%;
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.service-content {
    padding: 20px;
    position: relative;
    background: var(--white);
    height: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 2;
    overflow: visible !important;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.service-content i {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--highlight-orange), #c07a25);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 6px 16px rgba(217,138,46,0.45);
    z-index: 99;
}

.service-link:hover {
    color: var(--highlight-orange) !important;
}

.service-link:hover i {
    transform: translateX(4px) !important;
}

.service-content h3 {
    margin-top: 15px;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.service-content p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Intelbras Solutions Banner Carousel */
.banner-slider {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.banner-slider .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* App Section */
.app-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.app-image img {
    max-width: 100%;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
    transition: var(--transition);
}

.app-image:hover img {
    transform: scale(1.02);
}

.app-text h2 {
    font-size: 2.5rem;
}

.feature-list {
    list-style: none;
    margin-top: 20px;
}

.feature-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--text-color);
}

.feature-list li i {
    color: var(--intelbras-green);
}

/* Segments */
.segments {
    background-color: var(--primary-blue);
    background-image: linear-gradient(135deg, var(--primary-blue) 0%, #0d4b73 100%);
}

.segments-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.segment-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    cursor: default;
}

.segment-card:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: scale(1.05);
}

/* Social Proof Marquee */
.clients-slider .swiper-wrapper {
    transition-timing-function: linear;
}

.clients-slider img {
    max-width: 100%;
    max-height: 80px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.clients-slider img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Final CTA */
.final-cta {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--intelbras-green) 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.final-cta h2 {
    color: var(--white);
    font-size: 2.2rem;
    max-width: 900px;
    margin: 0 auto 40px;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #888;
    padding: 60px 0 20px;
    border-top: 5px solid var(--intelbras-green);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-logo {
    flex-shrink: 0;
}

.footer-logo img {
    height: 120px; /* Increased size */
    width: auto;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
}

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

.footer-info p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 10px;
}

.footer-info i {
    color: var(--intelbras-green);
    margin-right: 10px;
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}

/* Swiper Customization */
.swiper-button-next, .swiper-button-prev {
    color: var(--highlight-orange) !important;
}

.swiper-pagination-bullet-active {
    background: var(--highlight-orange) !important;
}

/* ==========================================================================
   Dropdown Menu Navbar
   ========================================================================== */
.navbar-dropdown { position: relative; }

.navbar-dropdown > .navbar-link .fa-chevron-down {
    font-size: 0.62rem;
    margin-left: 4px;
    transition: transform 0.2s ease;
    vertical-align: middle;
    display: inline-block;
}

.navbar-dropdown:hover > .navbar-link .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: #0F172A;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    min-width: 250px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04);
    z-index: 200;
    list-style: none;
}

.navbar-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    color: #94A3B8;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
    font-family: 'Inter', system-ui, sans-serif;
}

.dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #F1F5F9;
}

.dropdown-menu li a i {
    color: var(--intelbras-green);
    width: 18px;
    text-align: center;
    font-size: 0.86rem;
    flex-shrink: 0;
}

/* Item ativo no dropdown (página atual) */
.dropdown-active > a {
    background: rgba(19, 103, 156, 0.15) !important;
    color: #7EC8F0 !important;
}

.dropdown-active > a i {
    color: #7EC8F0 !important;
}

/* Separador no dropdown */
.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    margin: 6px 8px;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

/* Tablet and Mobile (< 991px) */
@media (max-width: 991px) {
    .hidden-mobile {
        display: none !important;
    }

    /* Footer Responsive */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-info {
        text-align: center;
    }
    
    .footer-logo img {
        height: auto;
        max-width: 150px; /* Limit width to be proportional */
        max-height: 60px; /* Limit height */
    }

    /* Mobile specific adjustments (< 480px) */
    @media (max-width: 480px) {
        .footer-logo img {
            max-width: 120px;
            max-height: 50px;
        }
    }

    .navbar-toggle {
        display: flex;
        margin-left: 0; /* No need to push if logo is there */
    }

    .navbar-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 70px; /* Adjusted for navbar height */
        left: -100%;
        width: 100%;
        background-color: var(--white);
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
        z-index: 999;
    }

    .navbar-menu.active {
        left: 0;
    }

    .navbar-item {
        margin: 15px 0;
    }
    
    .navbar-link {
        color: var(--text-color); /* Menu mobile fundo branco, texto escuro */
    }
    
    .navbar-link:hover {
        color: var(--highlight-orange);
    }
    
    .navbar-link::after {
        background-color: var(--highlight-orange);
    }

    .navbar-btn {
        background-color: var(--intelbras-green);
        color: var(--white);
    }

    /* Hamburger Animation */
    .navbar-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .navbar-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Dropdown mobile */
    .navbar-dropdown .dropdown-menu {
        position: static;
        transform: none !important;
        background: rgba(255, 255, 255, 0.04);
        border: none;
        border-radius: 8px;
        margin: 4px 12px;
        padding: 4px;
        box-shadow: none;
        opacity: 1 !important;
        visibility: visible !important;
        display: none;
    }

    .navbar-dropdown.open .dropdown-menu {
        display: block;
    }
}

/* Small Tablets and Mobile (< 768px) */
@media (max-width: 768px) {
    .section-padding {
        padding: 50px 0;
    }

    .hero {
        height: auto;
        padding: 120px 0 80px; /* Mais espaço no topo para compensar navbar */
        min-height: auto;
    }

    .hero h1 {
        font-size: 2rem;
    }
    
    .partner-grid, .app-container {
        grid-template-columns: 1fr;
        flex-direction: column;
        text-align: center;
    }

    .partner-image-wrapper {
        order: -1;
        margin-bottom: 30px;
    }

    .partner-badges {
        justify-content: center;
    }

    .app-image {
        margin-bottom: 30px;
    }

    .feature-list li {
        justify-content: center;
    }
    
    .service-content i {
        top: -20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .mvv-grid, .solutions-grid {
        grid-template-columns: 1fr; /* Força 1 coluna em tablets/mobile para evitar cards espremidos */
    }
    
    .footer-info {
        text-align: center;
    }
}

/* Extra Small Mobile (< 480px) */
@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .cta-button {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
    }

    .navbar-contact-left {
        display: none; /* Garante que suma em telas muito pequenas se vazar */
    }
    
    .navbar-logo img {
        height: 40px; /* Smaller logo on very small screens */
    }
}
