/* ========================================= */
        /* --- CSS VARIABLES (Dark Mode DEFAULT) --- */
        /* ========================================= */
        :root {
            /* --- COLORS (Dark Mode) --- */
            --primary-gold: #d4af37;     
            --primary-gold-dim: #b59020; 
            
            --bg-body: #0a0a0a;          /* Deep Black */
            --bg-card: #141414;          /* Slightly Lighter Black */
            --bg-accent: #1c1c1c;        /* Dark Grey Sections */
            --bg-header: rgba(10, 10, 10, 0.95);
            --bg-footer: #000000;
            
            --text-main: #e0e0e0;        /* Soft White */
            --text-muted: #a0a0a0;       /* Light Grey */
            --text-inverse: #000000;     /* Black text inside Gold buttons */
            
            --border-color: #333333;     
            --overlay-opacity: 0.5;      /* Darker overlay for images */

            /* --- TYPOGRAPHY --- */
            --font-heading: 'DM Serif Display', serif;
            --font-body: 'Manrope', sans-serif;
            
            /* --- LAYOUT --- */
            --max-width: 1200px;
            --section-spacing: 80px;
            --border-radius: 4px; 
        }

        /* ========================================= */
        /* --- LIGHT MODE OVERRIDES (Toggle) --- */
        /* ========================================= */
        [data-theme="light"] {
            --primary-gold: #b08d26;     /* Darker gold for contrast on white */
            
            --bg-body: #ffffff;          /* Pure White */
            --bg-card: #ffffff;          
            --bg-accent: #f4f4f4;        /* Very Light Grey */
            --bg-header: rgba(255, 255, 255, 0.95);
            --bg-footer: #111111;        /* Footer stays dark */
            
            --text-main: #222222;        /* Dark Grey/Black Text */
            --text-muted: #666666;       
            --text-inverse: #ffffff;     /* White text inside Gold buttons */
            
            --border-color: #e5e5e5;     
            --overlay-opacity: 0.3;      
        }



        /* --- Invert Logo in Light Mode --- */
        [data-theme="light"] .logo-img img
        /*,
        [data-theme="light"] .hero-logo */{
            /* This inverts white to black and lowers brightness to ensure it's dark */
            filter: invert(1) brightness(0); 
        }
        
        /* Helper to dim images in light mode so they aren't too harsh */
        [data-theme="light"] .product-img img {
            opacity: 1; /* Full brightness in light mode */
        }
        
        /* Helper to dim images in dark mode */
        :root:not([data-theme="light"]) .product-img img,
        :root:not([data-theme="light"]) .image-block img {
            filter: brightness(0.9);
        }


        /* ========================================= */
        /* --- RESET & BASIC STYLES --- */
        /* ========================================= */
        * { box-sizing: border-box; margin: 0; padding: 0; }
        html { scroll-behavior: smooth; }
        
        body {
            font-family: var(--font-body);
            line-height: 1.7;
            color: var(--text-main);
            background-color: var(--bg-body);
            transition: background-color 0.3s ease, color 0.3s ease;
            -webkit-font-smoothing: antialiased;
        }

        a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
        ul { list-style: none; }
        img { max-width: 100%; display: block; }

        /* --- UTILITIES --- */
        .container {
            max-width: var(--max-width);
            margin: 0 auto;
            padding: 0 25px;
        }

        .btn {
            display: inline-block;
            padding: 14px 35px;
            background-color: var(--primary-gold);
            color: var(--text-inverse);
            font-family: var(--font-body);
            text-transform: uppercase;
            letter-spacing: 1px;
            font-size: 0.85rem;
            font-weight: 600;
            border-radius: 2px;
            transition: all 0.3s ease;
            cursor: pointer;
            border: 1px solid var(--primary-gold);
        }

        .btn:hover {
            background-color: transparent;
            color: var(--primary-gold);
        }

        .btn-outline {
            display: inline-block;
            background-color: transparent;
            border: 1px solid var(--primary-gold);
            color: var(--primary-gold);
            padding: 12px 30px;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-size: 0.85rem;
            font-weight: 600;
            border-radius: 2px;
            margin-top: 20px;
            transition: all 0.3s ease;
        }

        .btn-outline:hover {
            background-color: var(--primary-gold);
            color: var(--text-inverse);
        }

        h1, h2, h3 {
            font-family: var(--font-heading);
            font-weight: 400;
            color: var(--text-main);
        }

        h2 {
            font-size: 2.8rem;
            text-align: center;
            margin-bottom: 1.5rem;
            color: var(--primary-gold);
        }

        .section-padding { padding: var(--section-spacing) 0; }
        .text-center { text-align: center; }
        .muted-text { color: var(--text-muted); max-width: 700px; margin: 0 auto; }

        /* --- HEADER --- */
        header {
            background-color: var(--bg-header);
            backdrop-filter: blur(10px);
            position: sticky;
            top: 0;
            z-index: 1000;
            border-bottom: 1px solid var(--border-color);
            transition: background-color 0.3s ease;
        }

        .nav-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 90px;
        }

        /* Header Logo (Smaller) */
        .logo-img img {
            max-height: 60px; /* Kept concise for header */
            width: auto;
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .contact-bar {
            font-family: var(--font-body);
            font-size: 0.9rem;
            letter-spacing: 0.5px;
        }

        .contact-bar a {
            color: var(--text-main);
            font-weight: 600;
        }
        
        .contact-bar a:hover { color: var(--primary-gold); }

        .theme-toggle {
            background: none;
            border: 1px solid var(--border-color);
            color: var(--text-main);
            padding: 8px 12px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 1.1rem;
            transition: all 0.3s ease;
        }
        .theme-toggle:hover {
            border-color: var(--primary-gold);
            color: var(--primary-gold);
        }

        /* --- HERO SECTION --- */
        .hero {
            position: relative;
            height: 80vh; /* Increased slightly for logo space */
            min-height: 650px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            overflow: hidden;
            background-color: #000;
        }

        .hero-bg {
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            background: linear-gradient(rgba(0, 0, 0, var(--overlay-opacity)), rgba(0, 0, 0, var(--overlay-opacity))), 
                        url('https://lilyblinds.ca/img/lily-blinds-hero-roller-shades.jpg');
            background-size: cover;
            background-position: center;
            z-index: 1;
        }

        .hero-bg-overlay {
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            background: linear-gradient(rgba(0, 0, 0, var(--overlay-opacity)), rgba(0, 0, 0, var(--overlay-opacity))), 
                        url('https://lilyblinds.ca/img/lily-blinds-hero-zebra-shades.jpg');
            background-size: cover;
            background-position: center;
            z-index: 2;
            opacity: 0;
            animation: fadeEffect 12s infinite ease-in-out;
        }

        /* --- Hero Gradient Overlay --- */
        .hero::after {
            content: '';
            position: absolute;
            top: 0; 
            left: 0; 
            width: 100%; 
            height: 100%;
            /* Gradient: Darker at top, clearer in middle, Darker at bottom */
            background: linear-gradient(to bottom, 
                rgba(0,0,0,0.6) 0%, 
                rgba(0,0,0,0.3) 50%, 
                rgba(0,0,0,0.8) 100%
            );
            z-index: 5; /* Sits above images (z-1) but below text (z-10) */
            pointer-events: none; /* Allows clicking through if necessary */
        }

        @keyframes fadeEffect {
            0% { opacity: 0; }
            45% { opacity: 0; }
            55% { opacity: 1; }
            95% { opacity: 1; }
            100% { opacity: 0; }
        }

        .hero-content {
            position: relative;
            z-index: 10;
            max-width: 800px;
        }

        /* --- HERO LOGO (NEW) --- */
        .hero-logo {
            display: block;
            margin: 0 auto 30px auto; /* Centers it and adds space below */
            width: 280px; /* "At least 200px" */
            height: auto;
            max-height: 180px; /* Ensures it doesn't get too tall vertically */
            object-fit: contain;
        }

        .hero-content h1 {
            font-size: 3.5rem;
            line-height: 1.1;
            margin-bottom: 25px;
            color: #fff; 
        }

        .hero-content p {
            font-size: 1.3rem;
            margin-bottom: 40px;
            font-weight: 300;
            color: #f0f0f0; 
        }
        
        .hero-content .btn {
            color: #000; 
            background-color: var(--primary-gold);
            border-color: var(--primary-gold);
        }
        .hero-content .btn:hover {
            background-color: transparent;
            color: var(--primary-gold);
        }

        /* --- INTRO --- */
        .intro { background-color: var(--bg-body); }
        
        .features-grid {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 50px;
            flex-wrap: wrap;
        }

        .feature-item {
            border: 1px solid var(--primary-gold);
            padding: 12px 30px;
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--primary-gold);
            border-radius: 50px;
        }

        /* --- PRODUCTS GRID --- */
        .products { background-color: var(--bg-accent); }

        .product-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 40px;
            margin-top: 40px;
        }

        .product-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            transition: transform 0.4s ease, border-color 0.4s ease;
        }

        .product-card:hover {
            transform: translateY(-8px);
            border-color: var(--primary-gold);
        }

        .product-img {
            height: 280px;
            background-color: #222; 
            overflow: hidden;
        }
        
        .product-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .product-card:hover .product-img img {
            transform: scale(1.05);
        }

        .product-info { padding: 30px; text-align: center; }
        .product-info h3 { font-size: 1.5rem; margin-bottom: 10px; color: var(--text-main); }
        .product-info p { font-size: 0.95rem; color: var(--text-muted); }

        /* ========================================= */
        /* --- SECTIONS --- */
        /* ========================================= */
        
        /* 1. Power Options (Grid Layout) */
        .expert-solutions {
            background-color: var(--bg-body);
        }

        .motorization-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
            margin-top: 50px;
        }

        .motor-card {
            background-color: var(--bg-card);
            border: 1px solid var(--border-color);
            padding: 40px 30px;
            text-align: center;
            transition: all 0.3s ease;
            border-radius: var(--border-radius);
        }

        .motor-card:hover {
            border-color: var(--primary-gold);
            transform: translateY(-5px);
        }

        .motor-icon {
            font-size: 3.5rem;
            margin-bottom: 20px;
            display: block;
        }

        .motor-card h3 {
            font-size: 1.5rem;
            margin-bottom: 15px;
            color: var(--primary-gold);
        }

        .motor-card p {
            color: var(--text-muted);
            font-size: 1rem;
        }

        /* 2. Testimonials (Grid Layout) */
        .testimonials {
            background-color: var(--bg-accent);
        }

        .testimonials-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 40px;
            margin-top: 50px;
        }

        .review-card {
            background-color: var(--bg-card);
            border: 1px solid var(--border-color);
            padding: 40px;
            border-left: 3px solid var(--primary-gold);
            border-radius: var(--border-radius);
            position: relative;
        }

        .review-card p {
            font-style: italic;
            font-size: 1.1rem;
            color: var(--text-muted);
            margin-bottom: 20px;
            line-height: 1.8;
        }

        .review-card .author {
            color: var(--primary-gold);
            font-family: var(--font-heading);
            font-weight: 600;
            text-transform: uppercase;
            font-size: 0.9rem;
            letter-spacing: 1px;
            display: block;
        }

        /* --- FOOTER --- */
        footer {
            background-color: var(--bg-footer);
            color: #a0a0a0; 
            text-align: center;
            padding: 60px 20px;
            border-top: 1px solid var(--border-color);
        }
        
        .footer-cta { margin-bottom: 60px; }
        .footer-cta h3 { color: #fff; margin-bottom: 10px; font-size: 2rem; }
        .footer-cta p { margin-bottom: 30px; color: #ccc; }

        .copyright {
            font-size: 0.8rem;
            margin-top: 50px;
            padding-top: 20px;
            border-top: 1px solid #333;
        }
        
        .copyright a { color: var(--primary-gold); }
        
        /* --- BACK TO TOP --- */
        #back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background-color: var(--primary-gold);
            color: var(--text-inverse);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            cursor: pointer;
            border: none;
            opacity: 0;
            pointer-events: none;
            transition: all 0.3s ease;
            z-index: 900;
            box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        }

        #back-to-top.visible {
            opacity: 1;
            pointer-events: all;
        }
        
        #back-to-top:hover {
            transform: translateY(-5px);
            background-color: var(--text-main);
            color: var(--bg-body);
        }


        /* --- MOBILE --- */
        @media (max-width: 768px) {
            .nav-bar { flex-direction: column; height: auto; padding: 20px 0; }
            .hero-content h1 { font-size: 2.5rem; }
            .header-actions { margin-top: 15px; }
            .contact-bar { display: none; } 
            .header-actions .contact-bar { display: block; }
        }