/* --- THEME VARIABLES --- */
:root {
    --primary-blue: #002147;  /* Deep Navy from Logo */
    --accent-yellow: #FFCC00; /* Yellow from Logo */
    --text-white: #ffffff;
    --text-dark: #333333;
    --light-bg: #f4f6f8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--text-dark);
}

/* --- TOP BAR --- */
.top-bar {
    background-color: #00152e; /* Darker shade of blue */
    color: white;
    padding: 8px 5%;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.top-bar i { margin-right: 5px; color: var(--accent-yellow); }
.contact-info span { margin-right: 20px; }

/* --- NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background-color: var(--primary-blue);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    height: 55px; /* Adjust based on logo file */
    width: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    color: white;
    font-weight: 800;
    font-size: 20px;
    line-height: 1;
    letter-spacing: 1px;
}

.brand-sub {
    color: var(--accent-yellow);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-white);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--accent-yellow); }

.nav-btn {
    background: var(--accent-yellow);
    color: var(--primary-blue);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.3s;
}

.nav-btn:hover { background: white; }

.hamburger { display: none; font-size: 24px; cursor: pointer; }

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 85vh;
    background: linear-gradient(rgba(0, 33, 71, 0.7), rgba(0, 33, 71, 0.7)), url('https://source.unsplash.com/1600x900/?solar-panels,roof');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 20px;
    background-color:#042d5d ;
}

.hero-content { z-index: 2; max-width: 800px; }

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero .highlight { color: var(--accent-yellow); }

.hero p { font-size: 18px; margin-bottom: 30px; line-height: 1.6; }

.primary-btn, .secondary-btn {
    padding: 15px 35px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px;
    border: none;
    transition: 0.3s;
}

.primary-btn { background: var(--accent-yellow); color: var(--primary-blue); }
.primary-btn:hover { background: white; }

.secondary-btn { background: transparent; border: 2px solid white; color: white; }
.secondary-btn:hover { background: white; color: var(--primary-blue); }

/* --- STATS STRIP --- */
.stats-container {
    display: flex;
    justify-content: space-around;
    background: white;
    padding: 40px 10%;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    margin-left: 5%;
    margin-right: 5%;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    align-items: center;
}

.stat-box { text-align: center; color: var(--primary-blue); }
svg.stat-icon {
    width: 35px;
    height: 35px;
    fill: var(--accent-yellow); /* Ensures it is Yellow */
    margin-bottom: 10px;
    display: inline-block;
}
.stat-icon { font-size: 30px; color: var(--accent-yellow); margin-bottom: 10px; }
.stat-box h3 { font-size: 28px; font-weight: 800; }

/* --- SERVICES --- */
.section { padding: 80px 10%; text-align: center; }
.section-title h2 { font-size: 36px; margin-bottom: 10px; color: var(--primary-blue); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
    border-top: 4px solid var(--accent-yellow);
    text-align: left;
}

.card:hover { transform: translateY(-5px); }

.card-icon {
    font-size: 30px;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.card h3 { margin-bottom: 10px; color: var(--primary-blue); }

/* --- CTA BANNER --- */
.cta-banner {
    background: var(--primary-blue);
    padding: 60px 20px;
    text-align: center;
    color: white;
}
.white-btn {
    background: white;
    color: var(--primary-blue);
    border: none;
    padding: 12px 30px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 20px;
}

/* --- FOOTER --- */
footer {
    background: #00152e;
    color: white;
    padding: 60px 10% 20px 10%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; color: #ccc; }

.footer-col h3 { color: var(--accent-yellow); margin-bottom: 20px; }
.footer-col p { margin-bottom: 10px; color: #ccc; display: flex; gap: 10px;}

.copyright {
    margin-top: 50px;
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    color: #777;
    font-size: 14px;
}

/* --- POPUP --- */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 33, 71, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    position: relative;
    border-top: 5px solid var(--accent-yellow);
}

.popup-content input, .popup-content select {
    width: 100%; padding: 12px; margin: 10px 0;
    border: 1px solid #ddd; border-radius: 4px;
}

.submit-btn {
    width: 100%; padding: 12px;
    background: var(--primary-blue);
    color: var(--accent-yellow);
    border: none; border-radius: 4px;
    font-size: 16px; font-weight: bold;
    cursor: pointer;
}

.close-btn {
    position: absolute; top: 10px; right: 15px;
    font-size: 24px; cursor: pointer; color: #333;
}
/* --- FAQ SECTION STYLING --- */
.faq-container {
    max-width: 800px;
    margin: 40px auto 0 auto;
    border-top: 1px solid #e0e0e0;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
    overflow: hidden;
}

.faq-question {
    background-color: transparent;
    color: var(--primary-blue); /* Uses your Theme Navy */
    padding: 20px 10px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #fffaf0; /* Light highlight */
}

/* The Square Icon Box */
.icon-box {
    min-width: 32px;
    height: 32px;
    background-color: var(--accent-yellow); /* Uses your Theme Yellow */
    color: var(--primary-blue); /* Navy Icon text */
    display: flex;
    justify-content: center; /* Horizontally center */
    align-items: center;     /* Vertically center */
    border-radius: 4px;
    margin-right: 20px;
    font-weight: bold;
    font-size: 24px;         /* Slightly larger for better visibility */
    line-height: 1;          /* CRITICAL: Removes extra line height spacing */
    padding-bottom: 3px;     /* Micro-adjustment to lift it visually to true center */
    transition: transform 0.3s ease, background-color 0.3s;
}

/* Active State */
.active .icon-box {
    background-color: var(--primary-blue); /* Swaps to Navy when open */
    color: var(--accent-yellow); /* Yellow Icon text */
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background-color: white;
}

.faq-answer p {
    margin: 0;
    padding: 0 20px 25px 62px; /* Indented text */
    color: var(--text-dark);
    line-height: 1.6;
    text-align: left;
}
/* --- PROCESS & WHY US SECTION --- */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 60px;
    align-items: start;
}

.col-title {
    font-size: 32px;
    color: var(--primary-blue);
    margin-bottom: 5px;
    font-weight: 800;
}

.subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    font-style: italic;
}

/* List Styling */
.icon-list {
    list-style: none;
    padding: 0;
}

.icon-list li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--text-dark);
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.icon-list li:hover {
    transform: translateX(10px); /* Slide effect on hover */
}

/* Icon Styling */
.list-icon {
    font-size: 20px;
    min-width: 40px; /* Fixed width for alignment */
    color: var(--accent-yellow); /* Yellow icons for Process */
}

.blue-icon {
    color: var(--primary-blue); /* Blue icons for Why Us */
}
/* --- SOCIAL MEDIA LINKS IN FOOTER --- */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-item {
    text-decoration: none;
    color: #ccc; /* Default grey text */
    font-size: 16px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.social-item i {
    width: 30px; /* Fixed width for alignment */
    font-size: 20px;
    color: var(--accent-yellow); /* Yellow Icons */
}

/* Hover Effect */
.social-item:hover {
    color: white;
    padding-left: 5px; /* Slight slide effect */
}

.social-item:hover i {
    color: white; /* Icon turns white on hover */
}
/* --- DEALS SECTION STYLING --- */

/* Tab Buttons */
.deals-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.deal-tab {
    background-color: white;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 12px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px; /* Pill shape */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.deal-tab:hover {
    background-color: #f0f4f8;
    transform: translateY(-2px);
}

.deal-tab.active {
    background-color: var(--primary-blue);
    color: var(--accent-yellow);
    box-shadow: 0 4px 10px rgba(0, 33, 71, 0.3);
}

/* Sub-Category Dropdown Area */
.sub-cat-wrapper {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeIn 0.5s;
}

.sub-cat-wrapper label {
    font-size: 18px;
    font-weight: 600;
    margin-right: 10px;
    color: var(--text-dark);
}

.sub-cat-wrapper select {
    padding: 10px 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    min-width: 200px;
    cursor: pointer;
}

.sub-cat-wrapper select:focus {
    border-color: var(--primary-blue);
}

/* Results Grid */
.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* Deal Card */
.deal-card {
    background: white;
    border-top: 5px solid var(--accent-yellow);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    animation: slideUp 0.4s ease-out;
}

.deal-card:hover {
    transform: translateY(-5px);
}

.deal-card h3 {
    color: var(--primary-blue);
    font-size: 22px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.deal-card .range {
    font-size: 16px;
    font-weight: 700;
    color: #555;
    margin-bottom: 15px;
    display: block;
}

.brand-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.brand-tag {
    background-color: #f4f6f8;
    color: var(--primary-blue);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #e0e0e0;
}
/* --- COMPONENTS SECTION STYLING --- */

.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.component-card {
    background: white;
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid transparent; /* Hidden border for hover effect */
}

/* Hover Effect */
.component-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-bottom: 4px solid var(--accent-yellow); /* Yellow line appears on hover */
}

.component-card h3 {
    color: var(--primary-blue);
    font-size: 20px;
    margin: 15px 0 10px 0;
    font-weight: 700;
}

.component-card p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

/* Circular Icon Box */
.icon-circle {
    width: 70px;
    height: 70px;
    background-color: rgba(0, 33, 71, 0.05); /* Very light blue bg */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    transition: background-color 0.3s;
}

.icon-circle i {
    font-size: 30px;
    color: var(--primary-blue);
    transition: color 0.3s;
}

/* Icon changes color on hover */
.component-card:hover .icon-circle {
    background-color: var(--primary-blue);
}

.component-card:hover .icon-circle i {
    color: var(--accent-yellow);
}
/* --- PROMO POPUP STYLING --- */
.promo-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999; /* On top of everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Dark background dim */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.promo-content {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    width: 90%;
    max-width: 450px;
    position: relative;
    border: 4px solid var(--accent-yellow);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5); /* Yellow Glow */
    animation: popIn 0.5s ease-out;
}

.promo-header {
    background: var(--primary-blue);
    color: var(--accent-yellow);
    display: inline-block;
    padding: 5px 20px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.promo-content h2 {
    color: var(--primary-blue);
    font-size: 3rem;
    margin: 10px 0;
    font-weight: 800;
    line-height: 1;
}

.promo-content p {
    color: #555;
    margin-bottom: 20px;
}

/* Coupon Box */
.coupon-box {
    background: #f4f6f8;
    border: 2px dashed var(--primary-blue);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.copy-btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}

.copy-btn:hover {
    background: var(--accent-yellow);
    color: var(--primary-blue);
}

.claim-btn {
    background: var(--accent-yellow);
    color: var(--primary-blue);
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s;
}

.claim-btn:hover {
    transform: scale(1.05);
}

.close-promo {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #aaa;
}

.close-promo:hover {
    color: var(--primary-blue);
}

.promo-valid {
    font-size: 12px;
    color: #999 !important;
    margin-top: -10px;
    margin-bottom: 20px;
}

@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .split-layout {
        grid-template-columns: 1fr; /* Stack columns on mobile */
        gap: 40px;
    }
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .top-bar { flex-direction: column; text-align: center; gap: 5px; }
    .contact-info, .location { justify-content: center; display: flex; flex-wrap: wrap;}
    .nav-links { display: none; }
    .hamburger { display: block; }
    .hero h1 { font-size: 32px; }
    .stats-container { flex-direction: column; gap: 20px; }
}