/* Global Styles */
:root {
    --primary-color: #00a8cc;
    /* Solarstock Blue-ish */
    --secondary-color: #0a192f;
    --accent-color: #ffffff;
    --text-color: #333;
    --bg-color: #f0f4f8;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.page-body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Classes */
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.section-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.section-subheading {
    font-size: 1.2rem;
    color: #555;
    margin: 0;
}

.feature-title,
.testimonials-heading,
.footer-heading,
.modal-heading {
    font-weight: 700;
    color: var(--secondary-color);
}

.feature-title {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 1rem;
}

/* Link Classes */
.nav-link {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.footer-link {
    text-decoration: none;
    color: #aaa;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

.category-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 800;
    animation: fadeOut 1s ease-in-out 2s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Header */
.site-header {
    background: white;
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-color);
}

.logo span {
    color: var(--primary-color);
}

.desktop-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cta-btn {
    background: var(--secondary-color);
    color: var(--accent-color);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s;
    display: inline-block;
}

.cta-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Hamburger & Mobile Menu */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 0;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 10px;
    transition: all 0.3s linear;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    backdrop-filter: blur(3px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    height: 100dvh;
    background: white;
    z-index: 1003;
    transition: right 0.3s ease-in-out;
    padding: 2rem 2rem 6rem 2rem;
    box-sizing: border-box;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 1rem;
}

.mobile-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-color);
}

.close-menu-btn {
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-link {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    display: block;
}

.mobile-nav-link:hover {
    color: var(--primary-color);
}

.mobile-cta-container {
    margin-top: auto;
    padding-top: 2rem;
}

.mobile-cta {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

/* Hero Section */
.section-hero {
    background: linear-gradient(rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.8)), url('hero.jpg');
    /* Default fallback */
    background-size: cover;
    background-position: center;
    color: var(--accent-color);
    padding: 10rem 5% 6rem;
    text-align: center;
}

/* Note: Since we have local images, we should check if 'hero.jpg' exists in Solar_BE/images. Yes it does.
   However, the previous code had 'https://solarstock.be/img/cms/banner-solarstock.jpg' in CSS.
   We replaced main product image, but not this background image.
   Wait, the user previous instructions were to fix BROKEN images. Background images might be broken too.
   I should probably use a dark gradient only or try to download the background image if I can.
   For now, I'll stick to the dark gradient effectively, maybe just 'background: var(--secondary-color);' if image fails.
   Or use the product image as background with heavy overlay?
   Let's use the dark blue gradient as a safe premium fallback. */

.section-hero {
    background: linear-gradient(135deg, #0a192f 0%, #112240 100%);
    color: var(--accent-color);
    padding: 10rem 5% 6rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #cbd5e1;
}

/* Features */
.section-features {
    padding: 6rem 5%;
    background: white;
}

.bg-light {
    background: #f4f4f4;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: #f8fafc;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.feature-text {
    color: var(--text-color);
    line-height: 1.6;
}

/* About */
.section-about {
    padding: 6rem 5%;
    display: flex;
    align-items: center;
    gap: 4rem;
    background: #f1f5f9;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header-left {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-content {
    flex: 1;
}

.about-image-container {
    flex: 1;
}

.responsive-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: block;
}

/* Testimonials */
.section-testimonials {
    padding: 6rem 5%;
    background: var(--secondary-color);
    color: white;
}

.testimonials-heading {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--primary-color);
    font-size: 2.5rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #eee;
}

/* FAQ */
.section-faq {
    padding: 6rem 5%;
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1rem;
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 1.5rem 0;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-bottom: 0;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    padding-bottom: 1.5rem;
}

/* Footer */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 5rem 5% 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.footer-heading {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-list {
    list-style: none;
    padding: 0;
}

.footer-item {
    margin-bottom: 0.8rem;
}

.highlight-text {
    font-weight: bold;
    color: #ddd;
}

.disclaimer-box {
    background: #1e293b;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    margin-bottom: 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

.copyright-section {
    text-align: center;
    border-top: 1px solid #1e293b;
    padding-top: 2rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 1.5rem 5%;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    box-sizing: border-box;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
}

.reject-btn {
    background: #e2e8f0;
    color: #333;
}

.accept-btn {
    background: var(--secondary-color);
    color: white;
}

.accept-btn:hover {
    background: var(--primary-color);
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
    color: #000;
}

.modal-text {
    color: #000;
}

.modal-content .highlight-text {
    color: #000;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
}

.legal-text-container {
    text-align: left;
    max-height: 400px;
    overflow-y: auto;
}

.legal-subheading {
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .hamburger-btn {
        display: flex;
    }

    .section-hero {
        padding: 6rem 5% 3rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-about,
    .section-downloads {
        flex-direction: column;
        gap: 2rem;
        padding: 3rem 5%;
    }

    .features-grid,
    .testimonials-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .testimonial-card,
    .feature-card,
    .card {
        padding: 1.5rem;
    }

    .modal-content {
        width: 85%;
        padding: 1.5rem;
        max-height: 70vh;
    }
}