/* Global Defaults for Solar-Haus */
:root {
    --primary-color: #2c9a42;
    /* Solar Green */
    --secondary-color: #1a1a1a;
    --text-color: #333;
    --bg-color: #fcfcfc;
    --font-family: 'Roboto', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, background-color 0.2s;
}

.btn:hover {
    background-color: #248036;
    transform: translateY(-2px);
}

.section {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

/* Loader */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #2c9a42;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.loader-text {
    font-size: 2.5rem;
    font-weight: 900;
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.logo span {
    color: var(--primary-color);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 100px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    font-size: 2.8rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #555;
}

.hero-image img {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.feature-box {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.feature-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* FAQ */
.faq {
    background: #fff;
}

.faq-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    background: #fdfdfd;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}

.faq-answer {
    padding: 20px;
    display: none;
    background: #fff;
    color: #666;
}

.active .faq-answer {
    display: block;
}

/* Footer */
.footer {
    background: #212529;
    color: #adb5bd;
    padding: 60px 0 20px;
}

.footer h4 {
    color: #fff;
    margin-bottom: 25px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-ad {
    background: #343a40;
    color: #fff;
    padding: 15px;
    text-align: center;
    margin-bottom: 30px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Cookie */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #212529;
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-btn {
    background: var(--primary-color);
    border: none;
    padding: 8px 20px;
    color: white;
    cursor: pointer;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 15px 20px;
        height: auto;
    }

    .hamburger {
        display: block;
    }

    .header-container .btn {
        display: none;
    }

    .mobile-nav .btn {
        display: inline-block;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    .logo {
        flex-grow: 1;
    }

    .hero-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Hamburger Menu */
.hamburger {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--secondary-color);
}

.mobile-nav {
    display: none;
    /* Hidden by default */
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    font-weight: 600;
    color: var(--secondary-color);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 40px;
    border: none;
    width: 85%;
    max-width: 650px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    color: #999;
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal h2 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.8rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.modal-body {
    max-height: 60vh;
    overflow-y: auto;
    text-align: left;
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
}

.modal-body p {
    margin-bottom: 15px;
}

.modal-body strong {
    color: var(--secondary-color);
}