/* MP Eletricidade - Global Stylesheet */

:root {
    --primary: #f97316; /* Vibrant Orange */
    --primary-hover: #ea580c;
    --secondary: #0b1329; /* Dark Navy Blue */
    --secondary-light: #1c2541;
    --accent: #3a506b;
    --light-bg: #f8fafc;
    --dark-bg: #0f172a;
    --white: #ffffff;
    --text-dark: #334155;
    --text-light: #94a3b8;
    --text-white: #f8fafc;
    --border-color: #e2e8f0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Button Component */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

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

.btn-secondary:hover {
    background-color: var(--secondary-light);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--secondary);
    transform: translateY(-2px);
}

.btn-outline-primary {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

/* TOP HEADER */
.top-header {
    background-color: var(--secondary);
    color: var(--text-white);
    font-size: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-contacts {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.top-contacts a, .top-contacts span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.85);
}

.top-contacts a:hover {
    color: var(--primary);
}

.top-contacts i {
    color: var(--primary);
}

.top-socials {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-socials a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
}

.top-socials a:hover {
    color: var(--primary);
}

.crea-badge {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* MAIN HEADER */
.main-header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 80px;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-mp {
    color: var(--primary);
    background-color: var(--secondary);
    padding: 4px 10px;
    border-radius: 4px;
    margin-right: 6px;
}

.logo-eletri {
    color: var(--secondary);
}

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 15px; /* Reduced slightly to fit more items */
}

.nav-menu a {
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
    padding: 8px 4px;
    position: relative;
    white-space: nowrap;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--primary);
}

.nav-menu a:hover::after, .nav-menu a.active::after {
    width: 100%;
}

.nav-highlight-outline {
    border: 2px solid var(--primary);
    color: var(--primary) !important;
    padding: 6px 15px !important;
    border-radius: 20px;
    font-weight: 700;
    margin-left: 5px;
    background-color: transparent;
    transition: all 0.3s ease;
}

.nav-highlight-outline:hover {
    background-color: var(--primary);
    color: var(--white) !important;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.4);
}

.nav-menu a.nav-highlight-outline::after {
    display: none !important;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--secondary);
    cursor: pointer;
}

/* HERO SLIDER */
.hero-slider {
    position: relative;
    height: 600px;
    background-color: var(--secondary);
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(11, 19, 41, 0.9) 0%, rgba(11, 19, 41, 0.6) 50%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 3;
    max-width: 650px;
    color: var(--white);
}

.slide-subtitle {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: inline-block;
    border-left: 3px solid var(--primary);
    padding-left: 10px;
}

.slide-title {
    font-size: 48px;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 25px;
}

.slide-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 35px;
}

.slide-buttons {
    display: flex;
    gap: 15px;
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 4;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

.slider-arrow {
    position: absolute;
    bottom: 30px;
    top: auto;
    transform: none;
    background-color: rgba(11, 19, 41, 0.5);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    z-index: 4;
    transition: var(--transition);
}

.slider-arrow:hover {
    background-color: var(--primary);
}

.slider-prev {
    left: auto;
    right: 90px;
}

.slider-next {
    right: 30px;
}

/* SECTION GLOBAL STYLES */
.section {
    padding: 90px 0;
}

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

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

.section-bg-dark h2 {
    color: var(--white);
}

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

.section-subtitle {
    font-size: 14px;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-size: 36px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary);
}

.section-header-left {
    text-align: left;
    margin-bottom: 40px;
}

.section-header-left .section-title::after {
    left: 0;
    transform: none;
}

/* STATS ROW (MP Badges) */
.stats-bar {
    background-color: var(--secondary-light);
    color: var(--white);
    padding: 30px 0;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    font-size: 32px;
    color: var(--primary);
    background-color: rgba(255, 255, 255, 0.05);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-info h4 {
    font-size: 24px;
    color: var(--white);
    margin-bottom: 2px;
}

.stat-info p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    font-weight: 500;
}



/* CREDENTIAL TOP BAR */
.credential-top-bar {
    background-color: var(--secondary);
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 1000;
}
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}
.marquee-content {
    display: inline-flex;
    align-items: center;
    animation: marquee-scroll 25s linear infinite;
    /* max-content ensures the box is as wide as its children */
    width: max-content;
}
.marquee-content:hover {
    animation-play-state: paused;
}
.cred-group {
    display: inline-flex;
    align-items: center;
    gap: 15px;
}
.cred-group .cred-top-text {
    display: inline-flex;
    align-items: center;
}
@keyframes marquee-scroll {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}
@media (max-width: 768px) {
    .credential-top-bar { padding: 8px 0; }
}



/* SERVICES SPLIT LAYOUT (HOME) */
.services-split-section {
    background-color: var(--light-bg);
    padding: 80px 0;
    overflow: hidden;
}
.services-split-grid {
    display: flex;
    align-items: center;
    gap: 50px;
}
.ss-left {
    flex: 0 0 35%;
    color: var(--secondary);
}
.ss-subtitle {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
}
.ss-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 30px;
}
.ss-title em {
    font-weight: 400;
    font-style: italic;
    opacity: 0.9;
}
.ss-controls {
    display: flex;
    gap: 15px;
}
.ss-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.ss-btn:hover {
    background-color: var(--secondary);
}
.ss-right {
    flex: 1;
    width: 100%;
    min-width: 0; /* fixes flex overflow issues */
}
.ss-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 20px 40px 20px; /* Increased padding to prevent shadow clipping */
    margin: -20px -20px 0 -20px; /* Offset margin to keep alignment correct */
    scrollbar-width: none; 
    -ms-overflow-style: none;
}
.ss-carousel::-webkit-scrollbar {
    display: none;
}
.ss-card {
    flex: 0 0 320px;
    background-color: #f8faff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.ss-card-img {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 25px;
}
.ss-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.ss-card:hover .ss-card-img img {
    transform: scale(1.05);
}
.ss-card-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 15px;
}
.ss-card-desc {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 25px;
}
.ss-card-link {
    font-size: 13px;
    font-weight: 700;
    color: #004de6;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ss-card-link:hover {
    color: var(--secondary);
}
@media (max-width: 992px) {
    .services-split-grid {
        flex-direction: column;
        align-items: flex-start;
    }
    .ss-left {
        flex: none;
        width: 100%;
        margin-bottom: 20px;
    }
    .ss-card {
        flex: 0 0 320px;
    }
}
@media (max-width: 768px) {
    .ss-card {
        flex: 0 0 85vw;
    }
}


/* CONTAINERS GRID */
.containers-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); 
    gap: 40px;
}
@media (max-width: 768px) {
    .containers-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* CONTACT FORM LAYOUT */
.contact-form-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 60px;
}
.contact-form-wrapper {
    background-color: #fff; 
    border: 1px solid var(--border-color); 
    border-radius: 12px; 
    padding: 50px; 
    margin-bottom: 0;
}
@media (max-width: 768px) {
    .contact-form-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contact-form-wrapper {
        padding: 25px 20px;
    }
}

/* NOSSOS DIFERENCIAIS */
.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.dif-card {
    background-color: var(--secondary-light);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 8px;
    transition: var(--transition);
}

.dif-card:hover {
    background-color: var(--secondary);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.dif-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.dif-icon {
    font-size: 24px;
    color: var(--primary);
}

.dif-title {
    font-size: 18px;
    color: var(--white);
}

.dif-list {
    font-size: 13px;
}

.dif-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.dif-list i {
    color: #22c55e; /* Green check */
    margin-top: 4px;
}

/* OBRAS REALIZADAS */
.obras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.obra-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 250px;
    box-shadow: var(--shadow);
}

.obra-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.obra-item:hover .obra-img {
    transform: scale(1.1);
}

.obra-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(11, 19, 41, 0.95) 0%, rgba(11, 19, 41, 0.4) 60%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: var(--white);
}

.obra-item:hover .obra-overlay {
    opacity: 1;
}

.obra-category {
    font-size: 11px;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.obra-title {
    font-size: 18px;
    color: var(--white);
}

/* CONTAINERS & CALCULATOR DUO SECTION */
.duo-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
}

@media (max-width: 992px) {
    .duo-grid {
        grid-template-columns: 1fr;
    }
}

.container-showcase {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.container-info-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 25px;
}

.container-mock-img {
    height: 250px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container-specs-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    font-size: 14px;
}

.container-specs-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.container-specs-list i {
    color: var(--primary);
}

/* Load Calculator Card Box */
.calc-card-box {
    background-color: var(--secondary);
    color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.calc-card-box h3 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 22px;
}

.calc-card-box p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
}

.section-bg-light .form-group label {
    color: var(--secondary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--white);
    border: 1px solid #ccc;
    border-radius: 6px;
    color: var(--text-dark);
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
}

.section-bg-dark .form-control {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.section-bg-dark .form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: none;
}

/* PARTNERS LOGOS */
.partners-slider {
    background-color: var(--light-bg);
    padding: 50px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    position: relative;
}

.marquee-wrapper::before, .marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--light-bg), transparent);
}
.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--light-bg), transparent);
}

.partners-marquee {
    display: inline-flex;
    align-items: center;
    gap: 80px;
    padding-left: 80px;
    animation: scroll-marquee 30s linear infinite;
}

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

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: var(--transition);
    flex-shrink: 0;
}

.partner-item:hover {
    opacity: 1;
}

.partner-item img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.partner-item:hover img {
    filter: grayscale(0%);
}

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 40px)); /* -50% of content minus half gap */ }
}

@media (max-width: 768px) {
    .partners-marquee {
        gap: 40px;
        padding-left: 40px;
    }
    
    .partner-item img {
        max-height: 40px;
    }
    
    @keyframes scroll-marquee {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-50% - 20px)); }
    }
}

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

.test-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
}

.test-quote {
    font-size: 28px;
    color: rgba(249, 115, 22, 0.2);
    position: absolute;
    top: 20px;
    left: 20px;
    font-family: Georgia, serif;
}

.test-stars {
    color: #fbbf24;
    margin-bottom: 15px;
    font-size: 14px;
}

.test-text {
    font-size: 14px;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.test-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.test-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-weight: 700;
}

.test-info h5 {
    font-size: 15px;
    color: var(--secondary);
}

.test-info span {
    font-size: 12px;
    color: var(--text-light);
}

/* FOOTER SECTION */
.main-footer {
    background-color: var(--secondary);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
    border-top: 5px solid var(--primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--primary);
}

.footer-logo {
    display: block;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 800;
}

.footer-logo .logo-eletri {
    color: var(--white);
}

.footer-about .about-text {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.neoenergia-credential {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 3px solid #22c55e;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul a {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links ul a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.area-list li {
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.area-list i {
    color: var(--primary);
}

.footer-contact p {
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact i {
    color: var(--primary);
    margin-top: 4px;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-socials a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-socials a i {
    margin-top: 0;
    transition: var(--transition);
}

.footer-socials a:hover i {
    color: var(--white) !important;
}


.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 25px 0;
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}


/* Floating WhatsApp Button */
.whatsapp-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 99;
    transition: var(--transition);
}

.whatsapp-floating:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* INNER PAGES HERO */
.inner-hero {
    background-color: var(--secondary);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.inner-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 80%);
    pointer-events: none;
}

.inner-hero h1 {
    color: var(--white);
    font-size: 40px;
    margin-bottom: 15px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.breadcrumb a {
    color: var(--primary);
}

.breadcrumb span {
    color: var(--white);
}

/* EMPRESA PAGE STYLES */
.about-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    align-items: center;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
}

@media (max-width: 768px) {
    .about-features {
        grid-template-columns: 1fr;
    }
}

.feat-box {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.feat-box i {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 15px;
}

.feat-box h4 {
    margin-bottom: 10px;
}

.feat-box p {
    font-size: 13px;
    color: var(--text-dark);
}

/* PORTFOLIO / OBRAS PAGE */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filt.error-page .btn {
    padding: 12px 30px;
}

/* HOME POPUP */
.home-popup-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.home-popup-overlay.active {
    opacity: 1;
}
.home-popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}
.home-popup-overlay.active .home-popup-content {
    transform: scale(1);
}
.home-popup-content img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    object-fit: contain;
}
.home-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--white);
    color: var(--secondary);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: var(--transition);
}
.home-popup-close:hover {
    background: var(--primary);
    color: var(--white);
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 20px;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* INTERACTIVE CALCULATOR PAGE */
.calc-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .calc-container {
        grid-template-columns: 1fr;
    }
}

.calc-form-box {
    background-color: var(--light-bg);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.calc-result-box {
    background-color: var(--secondary);
    color: var(--white);
    padding: 40px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.calc-result-box h3 {
    color: var(--white);
    font-size: 24px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.result-placeholder {
    text-align: center;
    padding: 40px 0;
    color: rgba(255, 255, 255, 0.5);
}

.result-placeholder i {
    font-size: 50px;
    margin-bottom: 15px;
}

.result-content {
    display: none;
}

.result-value-box {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--primary);
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 25px;
}

.result-val {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
}

.result-list {
    margin-bottom: 30px;
}

.result-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
}

.result-list li span:first-child {
    color: rgba(255, 255, 255, 0.7);
}

.result-list li span:last-child {
    font-weight: 600;
}

/* BLOG PAGE */
.blog-layout {
    display: grid;
    grid-template-columns: 2.2fr 0.8fr;
    gap: 40px;
}

@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
}

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

@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

.blog-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.blog-card-img {
    height: 180px;
    object-fit: cover;
}

.blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    font-size: 11px;
    color: var(--text-light);
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 600;
}

.blog-meta i {
    color: var(--primary);
}

.blog-card-title {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-card-summary {
    font-size: 13px;
    color: var(--text-dark);
    opacity: 0.8;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-sidebar-box {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.blog-sidebar-box h4 {
    font-size: 16px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 8px;
}

.sidebar-post-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.sidebar-post-img {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
}

.sidebar-post-info h5 {
    font-size: 13px;
    line-height: 1.3;
    margin-bottom: 5px;
}

.sidebar-post-info span {
    font-size: 11px;
    color: var(--text-light);
}

/* CONTACT PAGE */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 768px) {
    .contact-container {
        gap: 30px;
    }
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.contact-info-card {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    display: flex;
    gap: 20px;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(249, 115, 22, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-info-detail h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-info-detail p {
    font-size: 14px;
    color: var(--text-dark);
}

.edge-map-container {
    width: 100vw;
    height: 450px;
    margin-left: calc(-50vw + 50%);
    position: relative;
    border-top: 5px solid var(--primary);
    border-bottom: 1px solid var(--secondary);
    display: block;
}

/* RESPONSIVE NAVIGATION & LAYOUTS */
@media (max-width: 992px) {
    .mobile-nav-toggle {
        display: block;
        z-index: 1000;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 30%;
        background-color: var(--secondary);
        z-index: 999;
        transform: translateX(100%);
        transition: transform 0.4s ease;
        padding: 100px 40px 40px;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
    }
    
    .nav-menu[data-visible="true"] {
        transform: translateX(0);
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }
    
    .nav-menu a {
        color: var(--white);
        font-size: 16px;
    }
    
    .header-cta {
        display: none;
    }
    
    .hero-slider {
        height: 500px;
    }
    
    .slide-title {
        font-size: 36px;
    }
    
    .about-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .top-header {
        display: none;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .slide-title {
        font-size: 28px;
    }
    
    .slide-text {
        font-size: 14px;
    }
    
    .slide-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .slide-buttons .btn {
        width: 100%;
    }
} /* Closing max-width: 600px */

/* FLOATING SOCIAL MEDIA BAR */
.floating-socials {
    position: fixed;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}
.floating-socials a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border-radius: 50%;
    font-size: 20px;
    transition: var(--transition);
}
.floating-socials a:hover {
    transform: scale(1.1);
}
.f-soc-whats { border: 2px solid #25D366; color: #25D366; }
.f-soc-whats:hover { background-color: #25D366; color: var(--white); }

.f-soc-insta { border: 2px solid #E1306C; color: #E1306C; }
.f-soc-insta:hover { background-color: #E1306C; color: var(--white); }

.f-soc-tiktok { border: 2px solid var(--primary); color: var(--primary); background-color: transparent; }
.f-soc-tiktok:hover { background-color: var(--primary); color: var(--white); border-color: var(--primary); }

.f-soc-fb { border: 2px solid #1877F2; color: #1877F2; }
.f-soc-fb:hover { background-color: #1877F2; color: var(--white); }

/* Hide old whatsapp-float to avoid duplication */
.whatsapp-float {
    display: none !important;
}

/* PAGE SERVICES GRID (Frontend Services Page) */
.page-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-service-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.page-service-card:hover {
    border-color: var(--primary);
}

.ps-card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 3px solid var(--primary);
}

.ps-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ps-card-title {
    font-size: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary);
    font-weight: 700;
}

.ps-card-title i {
    color: var(--primary);
}

.ps-card-desc {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 25px;
    flex-grow: 1;
    line-height: 1.6;
}
