/* ========================================================
   CSS VARIABLES & GLOBAL RESETS
   ======================================================== */
:root {
    --primary-color: #16a34a; /* WhatsApp Green */
    --secondary-color:   #D4AF37;
    --dark-bg: #111111;
    --light-bg: #f9fafb;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0; /* This forces the site to touch the absolute edges */
    padding: 0;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================================
   TYPOGRAPHY & BUTTONS
   ======================================================== */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.text-green {
    color: var(--primary-color);
}

.subtitle {
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

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

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    border: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--dark-bg);
}

.btn-primary:hover {
    background-color: #bfa030;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
}

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

/* ========================================================
   NAVIGATION BAR
   ======================================================== */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Standard Logo Size */
.logo-img {
    max-height: 70px; /* Increased from 40px to make it much bigger */
    margin-right: 1px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px; /* Adds space between the image and the text */
    text-decoration: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1; /* Keeps the top and bottom words close together */
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-bg); /* Almost black */
    letter-spacing: 1px;
}

.brand-sub {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary-color); /* The brand gold color */
    letter-spacing: 4px;
}


.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

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

/* Hamburger Menu (Hidden on Desktop) */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-icon,
.hamburger-icon::before,
.hamburger-icon::after {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: var(--transition);
}

.hamburger-icon::before { content: ''; transform: translateY(-8px); }
.hamburger-icon::after { content: ''; transform: translateY(5px); }

/* ========================================================
   HERO SECTION
   ======================================================== */
.hero-section {
    max-width: 1200px;
    margin: 100px auto 0;
    padding: 4rem 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.trust-badge {
    display: inline-block;
    background-color: #dcfce7;
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-size: 3rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-image-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

/* ========================================================
   STATS SECTION
   ======================================================== */
.stats-section {
    max-width: 1000px;
    margin: -3rem auto 4rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.stat-card {
    text-align: center;
    padding: 1rem;
    border-right: 1px solid #e5e7eb;
}

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

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.stat-card h3 {
    margin-bottom: 0.2rem;
    font-size: 1.5rem;
}

/* ========================================================
   SERVICES SECTION
   ======================================================== */
.services-section, .portfolio-section, .faqs-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 5%;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #f3f4f6;
}

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

.service-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.learn-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
}

/* ========================================================
   ABOUT SECTION
   ======================================================== */
.about-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-img {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.benefit-list {
    list-style: none;
    margin-top: 1.5rem;
}

.benefit-list li {
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* ========================================================
   FAQS SECTION (ACCORDION)
   ======================================================== */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--white);
    margin-bottom: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: none;
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    transition: var(--transition);
}

.accordion-header.active::after {
    content: '-';
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
}

/* ========================================================
   FOOTER
   ======================================================== */
.footer {
    background-color: var(--dark-bg);
    color: #e5e7eb;
    padding: 4rem 5% 2rem;
    margin-top: 4rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    border-bottom: 1px solid #374151;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: #9ca3af;
    margin-top: 1rem;
}

.footer-contact h4, .footer-links h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-contact p, .footer-links a {
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.footer-links a {
    display: block;
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #9ca3af;
    padding-top:1rem;
}

.agency-credit {
    font-weight: 600;
    color: var(--secondary-color);
}

/* ========================================================
   SCROLL ANIMATIONS (SLIDE IN)
   ======================================================== */
.slide-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================================
   MOBILE RESPONSIVENESS (MEDIA QUERIES)
   ======================================================== */
@media (max-width: 992px) {
    .services-grid, .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-section, .about-section {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 6rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .stats-section {
        margin: 2rem 5%;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .stat-card {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .nav-links, .nav-cta {
        display: none; /* Hidden by default on mobile, handled by JS */
    }

    .mobile-menu-btn {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .services-grid, .stats-section {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
}
/* ========================================================
   FLOATING WHATSAPP BUTTON
   ======================================================== */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: transform 0.3s ease;
    animation: bounce 2s infinite;
}

.floating-wa:hover {
    transform: scale(1.1);
    background-color: #1ebe57;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@media (max-width: 768px) {
    .floating-wa {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}
/* About Page Specific Styling */
.about-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Example professional font */
    color: #333;
}

.highlight-gold {
    color: #D4AF37; /* Refined gold */
    font-weight: bold;
}

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

/* About Hero */
.about-hero {
    background-color: #004D40; /* Refined deep green */
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Methodology Grid */
.methodology-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 40px;
    padding: 60px 0;
}

.technical-explanation h2 {
    font-size: 2.5rem;
    color: #D4AF37;
    margin-bottom: 25px;
}

.technical-explanation p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Ecosystem Diagram */
.ecosystem-diagram {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
}

.diagram-wrapper {
    display: grid;
    grid-template-areas:
        "solar grid"
        "inverter inverter"
        "battery battery"
        "output output";
    gap: 20px;
    position: relative;
}

.diagram-wrapper::after {
    /* Main downward flow arrows */
    content: '▼';
    position: absolute;
    top: calc(10% + 70px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: #D4AF37;
}

.diagram-wrapper .panel-input { grid-area: solar; }
.diagram-wrapper .grid-input { grid-area: grid; }
.diagram-wrapper .inverter-hub { grid-area: inverter; text-align: center; }
.diagram-wrapper .battery-storage { grid-area: battery; text-align: center; }
.diagram-wrapper .output-wrapper { grid-area: output; }

.component {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.inverter-hub, .battery-storage {
    flex-direction: column;
}

.component img, .output img {
    width: 60px;
    height: auto;
}

.grid-icon, .switch-icon, .board-icon, .power-icon {
    font-size: 2.5rem;
    color: #D4AF37;
}

.component h3, .output h3 {
    color: #004D40;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

/* Output Wrapper */
.output-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    border-top: 2px solid #D4AF37;
    padding-top: 15px;
}

.output {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Local Engineering & Precise Wiring */
.local-engineering {
    background-color: #fff;
    padding: 60px 0;
}

.two-col-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.local-engineering h2 {
    color: #004D40;
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.local-engineering p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.wiring-visual img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
/* ================= DETAILED SERVICES PAGE ================= */
.services-detailed-container {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 5%;
}

.service-detail-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

/* Make every second row flip directions so it staggers! */
.service-detail-row:nth-child(even) {
    flex-direction: row-reverse;
}

.service-detail-content {
    flex: 1;
    min-width: 350px;
}

.service-detail-content h2 {
    font-size: 2.2rem;
    color: #111;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.service-detail-content p {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-detail-image {
    flex: 1;
    min-width: 350px;
}

.service-detail-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
/* ================= MOBILE RESPONSIVENESS OVERRIDES ================= */
@media (max-width: 768px) {
    /* Header & Logo Adjustments */
    .logo-img {
        max-height: 70px !important; /* Keeps the thicker logo from breaking the navbar */
    }
    .nav-links {
        display: none; /* Hides desktop links behind the hamburger menu */
    }
    .nav-cta {
        display: none; /* Hides the extra button on mobile so the header stays clean */
    }
    
    /* Hero Section */
    #hero {
        height: auto !important;
        min-height: 85vh !important;
        padding: 100px 5% 40px !important;
        text-align: center !important; /* Centers text for better mobile reading */
    }
    #hero h1 {
        font-size: 2.4rem !important; /* Shrinks the massive 4rem text */
        line-height: 1.2 !important;
    }
    #hero p {
        font-size: 1rem !important;
    }
    .hero-buttons {
        justify-content: center !important;
    }
    
    /* Stats Section */
    .stats-section {
        grid-template-columns: 1fr 1fr !important; /* Makes it a 2x2 grid instead of 4 across */
        gap: 20px !important;
        padding: 40px 5% !important;
    }

    /* General Grids (Services, About) */
    .services-grid {
        grid-template-columns: 1fr !important; /* Stacks all services vertically */
    }
    #about {
        flex-direction: column !important;
        padding: 50px 5% !important;
        gap: 30px !important;
    }
    #about h2 {
        font-size: 2.2rem !important;
    }
    .about-image img {
        height: 300px !important; /* Prevents the image from being too tall on phones */
    }

    /* Detailed Services Staggered Layout (services.html) */
    .service-detail-row,
    .service-detail-row:nth-child(even) {
        flex-direction: column !important;
        margin-bottom: 60px !important;
        gap: 25px !important;
    }
    .service-detail-image img {
        height: 250px !important;
    }
    
    /* Footer Grid */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: center;
    }
}
    /* Hide Header Button on Mobile */
    .nav-container .nav-cta,
    header .btn-primary {
        display: none !important;
    }
/* Premium Social Media Buttons - High Contrast */
.social-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px; 
    padding: 8px 18px; 
    background-color: transparent;
    border: 1px solid #ffffff; /* Bright white border */
    color: #ffffff !important; /* Bright white text */
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
}

/* Forces the SVG icon to be bright white */
.social-pill svg {
    fill: #ffffff; 
    transition: fill 0.3s ease;
}

/* HOVER: Fills with Gold, Text & Icon turn Black for perfect readability */
.social-pill:hover {
    background-color: #D4AF37;
    border-color: #D4AF37;
    color: #111111 !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

/* Forces the SVG icon to turn black on hover */
.social-pill:hover svg {
    fill: #111111;
}
/* Premium Legal Document Buttons */
.legal-pill {
    display: inline-block;
    padding: 6px 16px; 
    background-color: transparent;
    border: 1px solid #ffffff; 
    color: #ffffff !important; 
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.legal-pill:hover {
    background-color: #D4AF37;
    border-color: #D4AF37;
    color: #111111 !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}
/* Prevent horizontal scrolling & zooming from Elfsight Widget */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
}

.portfolio-section {
    overflow: hidden !important;
    max-width: 100% !important;
}

/* Force the Elfsight container to stay inside the screen */
.elfsight-app-b5887f99-bae1-45ed-83e5-f3c8107a1063 {
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
}
/* FORCIBLY REMOVE WHITE GAP BETWEEN HEADER AND HERO */
main, .main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

#hero, .hero-section {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.navbar {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
