/* Color Palette Variables */
:root {
    --olive-green: #556B2F;
    --warm-coral: #FF7F50;
    --soft-beige: #F5F5DC;
    --teal-blue: #008080;
    --dark-brown: #3E2723;
    --white: #FFFFFF;
    --light-overlay: rgba(255, 255, 255, 0.9);
    --dark-overlay: rgba(0, 0, 0, 0.8);
}

/* Reset without * selector */
html, body, div, span, h1, h2, h3, h4, p, a, ul, li, button, img, section, header, footer {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(-45deg, var(--soft-beige), #e8e8c8, var(--soft-beige), #fffdf0);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #333;
    overflow-x: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Preloader */
.preloader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--soft-beige);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-circle {
    width: 50px;
    height: 50px;
    border: 5px solid var(--olive-green);
    border-top: 5px solid var(--warm-coral);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loader-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--teal-blue);
    letter-spacing: 2px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Advertisement Header */
.ad-disclosure-top {
    background-color: #f0f0f0;
    text-align: center;
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

.ad-text {
    font-size: 0.8rem;
    color: #666;
}

/* Navigation */
.main-header {
    background-color: var(--dark-brown);
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    color: var(--soft-beige);
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 1px;
}

.desktop-nav {
    display: block;
}

.nav-list {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-link {
    color: var(--soft-beige);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--warm-coral);
}

.header-action {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-shop {
    background-color: var(--warm-coral);
    color: var(--white);
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s, background-color 0.3s;
}

.btn-shop:hover {
    background-color: #ff6347;
    transform: translateY(-2px);
}

.hamburger-menu {
    display: none;
    color: var(--soft-beige);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%; 
    width: 75%; /* Requirement: 75% width */
    height: 100%;
    background-color: var(--white);
    z-index: 2000;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.active {
    right: 0;
}

.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: var(--olive-green);
    color: var(--white);
}

.mobile-brand {
    font-size: 1.2rem;
    font-weight: bold;
}

.close-icon {
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav-list {
    list-style: none;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-link {
    text-decoration: none;
    color: var(--dark-brown);
    font-size: 1.2rem;
    display: block;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Hero Section */
.hero-section {
    padding: 80px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80vh;
}

.hero-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--olive-green);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 40px;
    max-width: 90%;
}

.btn-cta {
    display: inline-block;
    background-color: var(--teal-blue);
    color: var(--white);
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background-color: #006666;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,128,128,0.3);
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-solar-panel {
    animation: floatImg 4s ease-in-out infinite;
    width: 100%;
    max-width: 500px;
}

.product-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.1);
}

@keyframes floatImg {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

/* Common Section Styling */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark-brown);
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--warm-coral);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* About Section */
.about-section {
    background-color: var(--white);
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    max-width: 800px;
    margin: 0 auto;
}

/* Why Choose Us */
.features-section {
    background-color: rgba(255,255,255,0.5);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.icon-wrapper {
    font-size: 3rem;
    color: var(--olive-green);
    margin-bottom: 20px;
}

.feature-title {
    color: var(--teal-blue);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.feature-desc {
    color: #666;
    line-height: 1.6;
}

/* Testimonials */
.testimonials-section {
    background-color: var(--olive-green);
}

.testimonials-section .section-title {
    color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--soft-beige);
    padding: 30px;
    border-radius: 10px;
    text-align: left;
}

.customer-avatar {
    width: 50px;
    height: 50px;
    background-color: var(--teal-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-bottom: 15px;
}

.review-text {
    font-style: italic;
    color: #555;
    margin-bottom: 15px;
}

.customer-name {
    font-weight: bold;
    color: var(--dark-brown);
}

/* FAQ Section */
.faq-section {
    background-color: var(--white);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.faq-question {
    color: var(--olive-green);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.faq-answer {
    color: #555;
    line-height: 1.6;
}

/* Footer */
.main-footer {
    background-color: var(--dark-brown);
    color: var(--white);
    padding: 60px 5% 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-heading {
    color: var(--warm-coral);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-text {
    color: #ccc;
    margin-bottom: 10px;
}

.footer-link-email {
    color: var(--warm-coral);
    text-decoration: none;
}

.footer-links {
    list-style: none;
}

.f-item {
    margin-bottom: 10px;
}

.f-link {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.f-link:hover {
    color: var(--white);
}

.footer-btn-legal {
    background: none;
    border: 1px solid #ccc;
    color: #ccc;
    padding: 8px 15px;
    margin-right: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.footer-btn-legal:hover {
    border-color: var(--warm-coral);
    color: var(--warm-coral);
}

.footer-disclaimer {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    margin-bottom: 10px;
}

.disclaimer-text {
    font-size: 0.8rem;
    color: #888;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

.copyright-text {
    font-size: 0.9rem;
    color: #aaa;
}

/* Modals */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-overlay);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #555;
}

.modal-title {
    color: var(--olive-green);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--soft-beige);
    padding-bottom: 10px;
}

.modal-body {
    max-height: 60vh;
    overflow-y: auto;
}

.modal-text {
    margin-bottom: 10px;
    color: #444;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: var(--white);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 10px;
    z-index: 2500;
    display: none; /* Hidden by default, shown by JS */
    max-width: 400px;
    border-left: 5px solid var(--warm-coral);
}

.cookie-text {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.cookie-btn.accept {
    background-color: var(--olive-green);
    color: var(--white);
}

.cookie-btn.reject {
    background-color: #eee;
    color: #333;
}

/* Responsive Queries */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 30px;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
}