/* --- CSS Variables --- */
:root {
    /* Rebranded Colors */
    --color-primary: #1A2B3C; /* Navy Blue */
    --color-accent: #FF8C00;  /* Solar Orange */
    --color-bg: #FFFFFF;
    --color-bg-white: #FFFFFF;
    --color-light: #F7FAFC;
    --color-text: #2D3748;
    --color-text-muted: #718096;
    --color-border: #E2E8F0;
    --color-bg-dark: #1A2B3C;
    --color-yellow: #f1c40f; /* Vibrant Solar Yellow */
    --color-yellow-dark: #d4ac0d;
    
    /* Layout & Styling Utilities */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Utility Classes (Replacing Inline Styles) */
.text-white { color: white !important; }
.text-accent { color: var(--color-accent) !important; }
.text-primary { color: var(--color-primary) !important; }
.text-muted { color: var(--color-text-muted) !important; }

.bg-white { background: white !important; }
.bg-light { background: var(--color-light) !important; }

.mb-4 { margin-bottom: 1.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-1 { margin-bottom: 0.25rem !important; }

.w-full { width: 100% !important; }
.text-center { text-align: center !important; }

/* Component Specific Utilities */
.feature-grid-responsive {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
}

.btn-large-cta {
    width: 100%;
    font-size: 1.1rem;
    padding: 20px;
}

.btn-yellow {
    background-color: var(--color-yellow) !important;
    color: var(--color-primary) !important;
    border: none !important;
}

.btn-yellow:hover {
    background-color: var(--color-yellow-dark) !important;
    transform: translateY(-2px);
}

.btn-yellow-white {
    background-color: var(--color-yellow) !important;
    color: white !important;
    border: none !important;
}

.btn-yellow-white:hover {
    background-color: var(--color-yellow-dark) !important;
    transform: translateY(-2px);
}

.specs-card-container {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.product-details-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.product-details-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.list-styled {
    padding-left: 20px;
    list-style: disc;
    color: var(--color-text-muted);
}

/* --- Base Reset (Since * is forbidden) --- */
html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    color: var(--color-text-dark);
    background-color: var(--color-bg-white);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, figure {
    margin: 0;
    padding: 0;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

/* --- Typography Classes --- */
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    position: relative;
    color: var(--color-accent);
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* --- Layout Wrappers --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
.section-padding {
    padding: 100px 0;
}
.bg-light {
    background-color: var(--color-bg-light);
}

/* --- Header & Navigation --- */
.header {
    height: 80px;
    background: var(--color-bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-box {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-icon {
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-accent);
    letter-spacing: -0.5px;
}
.nav-menu {
    display: flex;
    gap: 30px;
}
.nav-link {
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text-dark);
}
.nav-link:hover, .nav-link.active {
    color: var(--color-primary);
}

/* --- Mobile Menu --- */
.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    background: transparent;
    color: var(--color-accent);
    padding: 5px;
    z-index: 1001;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #ffffff !important;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 1000;
        gap: 0;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid #edf2f7;
        color: var(--color-text-dark);
        font-weight: 600;
    }
    
    .nav-link.active {
        color: var(--color-accent);
    }
    
    /* Overlay Backdrop */
    .menu-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s ease;
    }
    
    .menu-backdrop.active {
        opacity: 1;
        visibility: visible;
    }
}

/* Ensure body doesn't scroll when menu is active */
body.menu-open {
    overflow: hidden;
}

/* --- Buttons --- */
.btn {
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.8px;
    min-width: 180px;
    height: 50px;
    box-sizing: border-box;
}
.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(45, 106, 79, 0.4);
}
.btn-outline {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}
.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

/* --- Hero Section --- */
.hero {
    min-height: calc(100vh - 80px);
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1508514177221-188b1cf16e9d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    color: white;
}
.hero-content {
    max-width: 800px;
}
.hero-headline {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero-subheadline {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
}
@media (max-width: 768px) {
    .hero-headline { font-size: 2.5rem; }
    .hero-subheadline { font-size: 1.1rem; }
}

/* --- Feature Blocks --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.feature-grid img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}
.feature-item {
    padding: 40px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 5px solid transparent;
}
.feature-item:hover {
    transform: translateY(-10px);
    border-top-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
}
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--color-primary);
}
.feature-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-accent);
}

/* --- Products Grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.product-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.product-img-box {
    height: 240px;
    background: #f0f0f0;
    overflow: hidden;
    position: relative;
}
.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.product-card:hover .product-img {
    transform: scale(1.1);
}
.product-info {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.product-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--color-accent);
}
.product-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex-grow: 1;
}
.product-btn {
    width: 100%;
}

/* --- FAQ Accordion --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.faq-header {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    cursor: pointer;
    font-weight: 700;
}
.faq-header:hover {
    background: var(--color-bg-light);
}
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #fff;
}
.faq-content.active {
    max-height: 500px;
}
.faq-body {
    padding: 0 30px 25px;
    color: var(--color-text-muted);
}
.faq-icon {
    font-size: 1.2rem;
    transition: var(--transition);
}
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* --- Testimonials --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.testimonial-card {
    padding: 40px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
    border-left: 4px solid var(--color-secondary);
}
.testimonial-text {
    font-style: italic;
    color: var(--color-text-dark);
    margin-bottom: 20px;
    font-size: 1.1rem;
}
.testimonial-author {
    font-weight: 700;
    color: var(--color-primary);
}

/* --- Footer --- */
.footer {
    background: var(--color-bg-dark);
    color: white;
    padding: 80px 0 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}
.footer-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--color-secondary);
}
.footer-link {
    color: #cbd5e0;
    display: block;
    margin-bottom: 15px;
}
.footer-link:hover {
    color: white;
    transform: translateX(5px);
}
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: #cbd5e0;
}
.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid #2d3748;
    text-align: center;
    color: #718096;
    font-size: 0.9rem;
}

/* --- Gallery for Details --- */
.gallery-main {
    width: 100%;
    height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
}
.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.details-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    margin-top: 50px;
}
@media (max-width: 992px) {
    .details-grid { grid-template-columns: 1fr; }
}

/* --- Specs Table --- */
.specs-list {
    margin-top: 20px;
}
.specs-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--color-border);
}
.specs-label {
    font-weight: 700;
    color: var(--color-accent);
}
.specs-value {
    color: var(--color-text-muted);
}

/* --- About Us Page Specific --- */
.about-hero {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    text-align: center;
}
.content-wrapper {
    max-width: 900px;
    margin: 50px auto;
    font-size: 1.15rem;
    line-height: 1.8;
}
.rich-text h2 { margin: 40px 0 20px; color: var(--color-accent); }
.rich-text p { margin-bottom: 25px; }

/* --- Feature Grid (About Us) --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.feature-grid img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .feature-grid img {
        height: 300px;
    }
}

/* --- Legal Pages --- */
.legal-container {
    max-width: 800px;
    margin: 50px auto 100px;
    padding: 0 20px;
}
.legal-page h1 { font-size: 2.5rem; margin-bottom: 40px; color: var(--color-accent); }
.legal-page h2 { font-size: 1.6rem; margin: 40px 0 20px; color: var(--color-accent); }
.legal-page h3 { font-size: 1.2rem; margin: 30px 0 15px; }

/* --- Search Engine Optimized Spacing --- */
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-2 { margin-bottom: 20px; }
.mb-4 { margin-bottom: 40px; }
