/* --- CSS Reset & Global Styles --- */
:root {
    --primary-green: #1a7a3a; 
    --dark-bg: #4a4a4a; 
    --text-dark: #333;
    --text-light: #fff;
    --bg-gray: #f8f9fa;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Global fix to strictly prevent horizontal scrolling on mobile */
html, body {
    overflow-x: hidden;
    width: 100%;
}

body { 
    font-family: var(--font-main); 
    background-color: var(--bg-gray); 
    color: var(--text-dark); 
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; transition: 0.3s;}
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- Header & Dropdown --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.brand-container { display: flex; align-items: center; gap: 20px; }
.header-mascot { width: 90px; height: 90px; background-color: var(--primary-green); border-radius: 50%; display: flex; justify-content: center; align-items: center; border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.15); overflow: hidden; flex-shrink: 0; transition: 0.3s; }
.header-mascot img { width: 85%; height: auto; object-fit: contain; margin-top: 5px; }

.logo-area { display: flex; flex-direction: column; align-items: center; width: max-content; }
.logo-area h1 { color: var(--primary-green); font-size: 3.2rem; font-weight: 900; line-height: 0.9; text-transform: uppercase; letter-spacing: 2px; transition: 0.3s; }
.logo-area p { color: var(--text-dark); font-size: 1.05rem; font-weight: 600; margin-top: 6px; text-align: center; width: 100%; transition: 0.3s; }

/* Hamburger Menu Icon (Hidden on Desktop) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}
.hamburger span {
    width: 35px;
    height: 4px;
    background-color: var(--primary-green);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.header-nav { display: flex; align-items: center; gap: 30px; transition: 0.3s; }
.header-nav a { font-weight: 600; font-size: 1rem; }
.header-nav > a:hover, .dropdown-toggle:hover { color: var(--primary-green); }

/* Bulletproof Dropdown CSS */
.nav-dropdown { position: relative; display: flex; align-items: center; padding: 10px 0; }
.dropdown-menu { 
    display: none; 
    flex-direction: column; 
    position: absolute; 
    top: 100%; 
    left: -20px; 
    background-color: #fff; 
    min-width: 240px; 
    box-shadow: 0 8px 16px rgba(0,0,0,0.1); 
    z-index: 1000; 
    border-radius: 4px; 
    border-top: 3px solid var(--primary-green); 
}
.dropdown-menu a { 
    color: var(--text-dark); 
    padding: 12px 20px; 
    text-decoration: none; 
    display: block; 
    width: 100%; 
    font-weight: 500; 
    font-size: 0.95rem; 
    border-bottom: 1px solid #eee; 
    box-sizing: border-box;
}
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background-color: var(--bg-gray); color: var(--primary-green); padding-left: 25px; }
.nav-dropdown:hover .dropdown-menu { display: flex; } 

.btn-green { background-color: var(--primary-green); color: var(--text-light) !important; padding: 12px 25px; border-radius: 6px; font-weight: bold; box-shadow: 0 4px 10px rgba(26, 122, 58, 0.3); display: inline-block; }
.btn-green:hover { filter: brightness(1.1); transform: translateY(-2px); }

/* --- Hero Section (Home) --- */
.hero { 
    background-color: var(--dark-bg); 
    
    /* Creates a technical grid pattern and a soft green glow behind the technician */
    background-image: 
        radial-gradient(circle at 80% 50%, rgba(26, 122, 58, 0.25) 0%, transparent 60%),
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 100% 100%, 30px 30px, 30px 30px;
    
    color: var(--text-light); 
    padding: 80px 60px 140px 60px; 
    position: relative; 
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    gap: 50px;
    max-width: 1440px;
    margin: 0 auto;
}

.hero-content { flex: 1; max-width: 600px; z-index: 2; }
.hero h2 { font-size: 3.5rem; font-weight: 800; margin-bottom: 10px; line-height: 1.1;}
.hero p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9;}
.hero-price { font-size: 2.5rem; font-weight: bold; color: #f0e68c; display: block; margin: 10px 0;}
.hero .btn-outline { display: inline-block; border: 2px solid var(--text-light); color: var(--text-light); padding: 12px 35px; font-weight: bold; border-radius: 5px; text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s; }
.hero .btn-outline:hover { background-color: var(--text-light); color: var(--dark-bg); }
.hero-image-container { flex: 1; display: flex; justify-content: flex-end; align-items: flex-end; position: relative; z-index: 1; }
.hero-image-container img { max-width: 100%; height: auto; max-height: 450px; object-fit: contain; filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3)); }

/* --- Overlapping Services Cards (Home) --- */
.services-overlap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 0 60px; margin-top: -80px; position: relative; z-index: 10; max-width: 1440px; margin-left: auto; margin-right: auto;}
.service-card { background: #fff; border-radius: 8px; padding: 35px 20px; text-align: center; box-shadow: 0 10px 25px rgba(0,0,0,0.08); transition: transform 0.3s ease; display: flex; flex-direction: column; align-items: center; text-decoration: none; color: inherit; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(26,122,58,0.15); }
.card-icon { font-size: 2.5rem; margin-bottom: 15px; }
.service-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--primary-green); margin-bottom: 10px;}
.service-card p { font-size: 0.95rem; color: #555; }

/* --- Interior Service Pages --- */
.interior-hero { 
    background-color: var(--dark-bg); 
    
    /* Matches the homepage grid pattern */
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(26, 122, 58, 0.20) 0%, transparent 80%),
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 100% 100%, 30px 30px, 30px 30px;
    
    color: var(--text-light); 
    padding: 60px 60px; 
    text-align: center; 
    max-width: 1440px; 
    margin: 0 auto; 
}
.interior-hero h1 { font-size: 3rem; margin-bottom: 10px; color: #fff;}
.interior-content { max-width: 1000px; margin: 60px auto; padding: 0 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.interior-text h2 { color: var(--primary-green); font-size: 2rem; margin-bottom: 20px;}
.interior-text p { font-size: 1.1rem; color: #444; margin-bottom: 15px; line-height: 1.8;}
.interior-image img { border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); width: 100%; height: auto;}

/* --- Energy Tips Section --- */
.tips-section { padding: 80px 60px; max-width: 1440px; margin: 0 auto; }
.tips-section h2 { font-size: 2.2rem; color: var(--primary-green); margin-bottom: 10px; text-align: center;}
.tips-intro { text-align: center; font-size: 1.1rem; margin-bottom: 40px; color: #555;}
.tips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; }
.tip-card { background: var(--primary-green); color: white; border-radius: 8px; overflow: hidden; text-align: center; position: relative; padding: 40px 20px; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 250px; }
.tip-card::before { content: ''; position: absolute; bottom: 0; left: 0; right: 0; top: 0; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%); z-index: 1; }
.tip-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center;}
.tip-icon { font-size: 3.5rem; margin-bottom: 15px; line-height: 1;}
.tip-content h4 { font-size: 1.2rem; margin-bottom: 10px; line-height: 1.3;}
.tip-content p { font-size: 0.95rem; opacity: 0.9; }

/* --- About/Contact Section --- */
.about-section { background: #fff; padding: 80px 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; max-width: 1440px; margin: 0 auto; }
.about-image img { border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.about-text h2 { color: var(--primary-green); font-size: 2.2rem; margin-bottom: 20px; }
.about-text > p { font-size: 1.1rem; margin-bottom: 25px; color: #555; }
.contact-details { font-size: 1.1rem; line-height: 1.8; margin-bottom: 30px;}
.contact-details strong { color: var(--text-dark); display: inline-block; width: 100px;}
.contact-details a { color: var(--primary-green); font-weight: bold;}
.contact-details a:hover { text-decoration: underline; }

/* --- Footer --- */
footer { background: #222; color: #bbb; padding: 60px 60px 20px; }
.footer-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; max-width: 1440px; margin: 0 auto; }
.footer-section h3 { color: var(--text-light); border-bottom: 2px solid var(--primary-green); display: inline-block; padding-bottom: 5px; margin-bottom: 20px;}
.footer-links a { display: block; color: #bbb; margin-bottom: 10px; }
.footer-links a:hover { color: var(--text-light); }
.footer-bottom { border-top: 1px solid #444; margin-top: 40px; padding-top: 20px; text-align: center; font-size: 0.9rem; }

/* --- Responsive Design --- */
@media (max-width: 1100px) {
    .services-overlap { grid-template-columns: repeat(2, 1fr); margin-top: -60px;}
    .hero { padding-bottom: 200px; }
    .interior-content { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 900px) {
    /* Updated Mobile Header */
    header { flex-wrap: wrap; padding: 15px 25px; gap: 10px; }
    .brand-container { text-align: left; }
    
    /* Shrink the logo/mascot so they fit nicely with the hamburger */
    .header-mascot { width: 60px; height: 60px; }
    .logo-area h1 { font-size: 2.2rem; }
    .logo-area p { font-size: 0.9rem; text-align: left; }
    
    /* Display the hamburger */
    .hamburger { display: flex; }
    
    /* Hamburger Active Animation */
    .hamburger.active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

    /* Hide Navigation by default, display when active */
    .header-nav { 
        display: none; 
        width: 100%; 
        flex-direction: column; 
        align-items: center; 
        gap: 20px; 
        padding: 20px 0; 
        margin-top: 10px; 
        border-top: 1px solid #eee; 
    }
    .header-nav.active { display: flex; }
    
    /* Stack dropdown items inside the mobile menu */
    .nav-dropdown { padding: 0; text-align: center; width: 100%; }
    .dropdown-menu { position: static; box-shadow: none; border: none; background: var(--bg-gray); margin-top: 10px; width: 100%; display: none; }
    .nav-dropdown:hover .dropdown-menu { display: flex; }
    .dropdown-menu a { text-align: center; }

    /* Body sections formatting */
    .hero { flex-direction: column; padding: 60px 20px 200px 20px; text-align: center; }
    .hero-content { max-width: 100%; }
    .hero-image-container { justify-content: center; margin-top: 40px; }
    .hero h2 { font-size: 2.5rem; }
    .interior-hero h1 { font-size: 2.2rem; }
    
    /* Force services to stack into 1 column on mobile devices */
    .services-overlap { 
        padding: 0 20px; 
        grid-template-columns: 1fr; 
        margin-top: -20px; 
    }
    
    .tips-section { padding: 60px 20px; }
    .about-section { grid-template-columns: 1fr; padding: 60px 20px; text-align: center;}
    
    .contact-details strong { width: auto; margin-right: 10px;}
    footer { padding: 40px 20px 20px; text-align: center; }
}

/* Mobile-specific layout to stack elements and prevent overflow */
@media (max-width: 600px) {
    .tips-grid { grid-template-columns: 1fr; }
    
    /* Ensure hero text scales down properly */
    .hero h2 { font-size: 2rem; }
    .hero-price { font-size: 2rem; }
    
    /* Reduce hardcoded padding on interior pages */
    .interior-hero { padding: 40px 20px; }
    .interior-content { padding: 0 15px; margin: 40px auto; }
}