html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Prevents your sticky header from covering the section titles */
}

/* Base & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors pulled from your logo */
    --primary-indigo: #26106e; 
    --light-purple: #49269e;
    --text-dark: #121212;
    --text-light: #555555;
    --bg-white: #ffffff;
    --bg-offwhite: #f8f9fa;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- 1. The Frosted Glass Header --- */
/* --- 1. The Sticky "Follow" Header --- */
header {
    position: fixed; /* This makes it follow you down the page! */
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9); /* Heavy frosted glass */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

header.scrolled {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.logo {
    position: absolute;
    left: 0; /* Pins the logo to the far left edge of the container */
    top: 50%;
    transform: translateY(-50%); /* Keeps the logo perfectly vertically centered */
}

/* 1. MAKE THE LOGO MASSIVE */
.nav-logo {
    height: 120px; 
    width: auto;
    display: block;
    object-fit: contain;
}

/* --- Centered Luxury Navigation --- */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: center; /* Puts the nav links exactly in the middle of the screen */
    position: relative; /* Allows us to pin the logo to the left */
    padding: 20px 0; 
}

/* --- The Premium HTML Headline --- */
.hero-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 5.5rem; /* Makes it massive and authoritative */
    font-weight: 800; /* Extra bold */
    color: var(--primary-indigo);
    line-height: 1.1;
    letter-spacing: -2px; /* Pulls the letters tighter together for a modern look */
    margin-bottom: 16px;
}

.nav-logo:hover {
    transform: scale(1.02);
}

.nav-logo:hover {
    transform: scale(1.02); /* Very subtle growth effect when clicked/hovered */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 56px; /* Increased from 32px to spread them out elegantly in the center */
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem; /* Slightly larger to fill the space */
    position: relative; 
    padding-bottom: 6px; 
    transition: color 0.3s ease;
}

/* The starting state of the line (invisible / width 0) */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px; /* Thickness of the underline */
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--primary-indigo), var(--light-purple));
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
    border-radius: 2px;
}

/* The hover/active state of the line (visible / width 100%) */
.nav-links a:hover::after,
.nav-links a:active::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.nav-links a:hover {
    color: var(--primary-indigo);
}

/* --- Buttons --- */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-indigo), var(--light-purple));
    color: var(--bg-white);
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(38, 16, 110, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-indigo);
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--primary-indigo);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--bg-offwhite);
    transform: translateY(-2px);
}

/* --- Hero Section --- */
/* 3. GIVE THE HERO SECTION ROOM TO BREATHE */
.hero {
    /* 200px gives plenty of room so your huge 100px logo doesn't touch the graphic */
    padding-top: 200px; 
    padding-bottom: 80px; 
    background-image: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), url('Solar-background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 750px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Pulls the Canva image into the center */
    margin: 0 auto; /* Centers the whole block on the page */
}

.hero h1 {
    font-size: 4.2rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-dark);
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-dark); /* Made darker for better readability */
    margin-bottom: 32px; /* Tighter gap before buttons */
    max-width: 600px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

/* --- Features Section --- */
.features {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-indigo);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background-color: var(--bg-white); /* Pure white to pop off the purple */
    padding: 3rem 2.5rem; /* Generous luxury padding to let content breathe */
    border-radius: 16px; /* Slightly softer modern corners */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: none; /* Removed the old border */
    /* Custom tinted shadow using a dark hue to root it into the background */
    box-shadow: 0 10px 40px rgba(15, 6, 45, 0.4), 0 2px 10px rgba(15, 6, 45, 0.2);
}

.feature-card:hover {
    transform: translateY(-8px); /* Lifts up slightly higher */
    /* Deepens the shadow to make it feel like it's floating towards the user */
    box-shadow: 0 20px 50px rgba(15, 6, 45, 0.6), 0 5px 15px rgba(15, 6, 45, 0.3);
}

.feature-icon {
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 44px;
    height: 44px;
    stroke: var(--primary-indigo);
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon svg {
    transform: translateY(-3px) scale(1.05);
}

.feature-card h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}
.header-btn {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%); /* Keeps it perfectly vertically centered */
}

/* --- Floating UI & Interactions --- */
.hidden-ui {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.hidden-ui.visible {
    opacity: 1;
    pointer-events: auto;
}

.floating-btn {
    background: var(--bg-white);
    color: var(--primary-indigo);
    border: 2px solid var(--primary-indigo);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.floating-btn:hover {
    background: var(--bg-offwhite);
    transform: translateY(-2px);
}

/* Hamburger Positioning */
/* Hamburger Positioning */
.hamburger-pos {
    display: none !important; /* THE FIX: This permanently kills the old floating button */
    position: fixed;
    top: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    z-index: 999;
}

.hamburger-pos svg { width: 28px; height: 28px; }

/* Bottom Right Controls Positioning */
.bottom-controls {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 999;
}

.scroll-top-btn {
    width: 48px;
    height: 48px;
}

.scroll-top-btn svg { width: 24px; height: 24px; }

.shadow-hover {
    box-shadow: 0 8px 25px rgba(38, 16, 110, 0.3);
}

/* --- Apple/Tesla Style Fullscreen Overlay --- */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* Apple's signature ultra-clean white frosted glass */
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    /* Uses a custom cubic-bezier for that buttery-smooth Apple animation */
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
}

.menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* Clean, dark X button */
.close-menu {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    font-size: 3rem;
    font-weight: 300;
    color: var(--text-dark); 
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-menu:hover {
    transform: scale(1.1); /* Clean pop instead of a rotation */
}

.overlay-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Left-aligns everything like Apple's lists */
    width: 100%;
    max-width: 500px;
    padding: 0 40px;
}

.overlay-nav a.menu-link {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    width: 100%;
    padding: 24px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* The signature clean divider line */
    transition: color 0.3s ease, padding-left 0.3s ease;
}

/* Removes the line under the very last link so it looks perfectly boxed */
.overlay-nav a.menu-link:last-child {
    border-bottom: none;
}

/* Subtle, premium hover effect */
.overlay-nav a.menu-link:hover {
    color: var(--primary-indigo);
    padding-left: 10px; /* Text gently bumps to the right when hovered */
}

/* --- Hero Graphic Styles --- */
.text-center {
    text-align: center;
}

/* --- Style Your Cropped Slogan Graphic --- */
.powering-graphic {
    max-width: 650px; /* Gives it a great, authoritative width */
    width: 100%;
    height: auto;
    margin: 0 auto 24px auto; /* 0 on top, centered horizontally, 24px gap on bottom */
    display: block;
    
    /* Adds a very subtle, premium shadow so it pops off the background */
    filter: drop-shadow(0 8px 16px rgba(38, 16, 110, 0.15));
    transition: transform 0.3s ease;
}

.powering-graphic:hover {
    transform: translateY(-3px); /* Just a tiny luxury hover effect */
}

.powering-graphic:hover {
    transform: translateY(-5px); /* Subtle float effect */
    filter: drop-shadow(0 10px 15px rgba(38, 16, 110, 0.15));
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--primary-indigo);
    font-weight: 700;
    margin-bottom: 8px; /* Tighter gap */
    letter-spacing: 0.5px;
}

/* Center the buttons below the graphic */
.centered-buttons {
    justify-content: center;
}

/* --- Hero Tagline Graphic Styles --- */
/* --- Style Your Slogan Graphic --- */
.powering-graphic {
    max-width: 600px; /* Adjust this if you want it bigger/smaller */
    width: 100%;
    height: auto;
    margin: 0 auto 15px; /* Keeps the gap below it very tight */
    display: block;
    filter: drop-shadow(0 10px 15px rgba(38, 16, 110, 0.15)); /* Adds a slight premium shadow to your graphic */
}

.powering-graphic:hover {
    transform: translateY(-5px); /* Subtle float effect */
    filter: drop-shadow(0 10px 15px rgba(38, 16, 110, 0.15));
}

/* --- Section Background Colors --- */
.bg-purple {
    background-color: var(--primary-indigo); /* Uses your existing dark purple */
    color: #ffffff; /* Makes text white so it can be read on purple */
}

/* Makes the text readable against the dark purple background */
.features.bg-purple .section-header h2,
.features.bg-purple .section-header p {
    color: #ffffff;
}

.bg-white {
    background-color: #ffffff;
    color: var(--text-dark); /* Makes text dark so it can be read on white */
}


/* ========================================= */
/* --- 1. DESKTOP HEADER ELEMENTS --- */
/* ========================================= */

.nav-right {
    position: absolute;
    right: 0; 
    top: 50%;
    transform: translateY(-50%); 
    display: flex;
    align-items: center;
    gap: 16px; 
}

.call-now-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--primary-indigo);
    font-weight: 700;
    font-size: 1.05rem;
    transition: opacity 0.3s ease;
}

.call-now-link:hover {
    opacity: 0.6; 
}

/* THE FIX: Completely hides the hamburger on Desktop so there is no weird pill line */
/* THE FIX: Removed the border to make it just three sleek lines */
.sleek-hamburger {
    display: none; 
    background: transparent;
    border: none; /* Killed the ugly box */
    padding: 4px; /* Just enough padding so it's easy to tap */
    color: var(--primary-indigo);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.sleek-hamburger svg {
    width: 28px; /* Bumped up slightly so the lines feel deliberate and premium */
    height: 28px;
}

/* --- Desktop Dropdown Styling --- */
.dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.nav-link-main {
    display: flex;
    align-items: center;
    gap: 4px;
}

.luxury-dropdown {
    position: absolute;
    top: 150%; /* Pushes it slightly below the header */
    left: 50%;
    transform: translateX(-50%) translateY(15px); /* Centers it and pushes it down for the animation */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    min-width: 200px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(38, 16, 110, 0.1);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 8px 0;
    
    /* Animation setup: Hidden by default */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* The Magic: When you hover over the wrapper, the dropdown glides up and fades in */
.dropdown-wrapper:hover .luxury-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.luxury-dropdown a {
    display: block;
    padding: 12px 24px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.luxury-dropdown a:hover {
    background: rgba(38, 16, 110, 0.05);
    color: var(--primary-indigo);
}

/* ========================================= */
/* --- 2. MOBILE RESPONSIVE LAYOUT --- */
/* ========================================= */

@media (max-width: 768px) {
    /* Hide the desktop text links */
    .desktop-nav { 
        display: none !important; 
    }

    /* THE FIX: Logo perfectly dead-center and large */
    .logo {
        left: 55% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 10 !important;
    }
    .nav-logo {
        height: 100px !important; 
        width: auto !important;
    }

    /* THE FIX: Stretches 100% across, pushing Call Now to the left and Hamburger to the right */
    /* 3. Stretch container to split items Left and Right */
    .nav-right {
        position: absolute !important;
        left: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 100% !important;
        padding: 0 24px !important; 
        display: flex !important;
        justify-content: space-between !important; 
        box-sizing: border-box !important;
        
        /* THE FIX: Bumped to 20 so the buttons sit on top of the giant logo's invisible edges */
        z-index: 20 !important; 
    }

    /* Show the hamburger menu on mobile */
    .sleek-hamburger {
        display: flex !important;
    }

    /* Keep Call Now visible on mobile */
   /* THE FIX: Hides the text, leaving only the clean phone icon */
    .call-now-link {
        font-size: 0 !important; 
    }
    .call-now-link svg {
        width: 24px !important; /* Ensures the icon stays a great size */
        height: 24px !important;
    }

    /* Mobile bottom controls (Your existing code) */
   /* --- The New Floating "Bubble" Quote Button --- */
    
    /* 1. Remove the clunky full-width bar */
    .bottom-controls {
        bottom: 24px !important; /* Hovers 24px above the bottom */
        right: 24px !important;  /* Hovers 24px from the right edge */
        width: auto !important;
        background: transparent !important;
        backdrop-filter: none !important;
        border: none !important;
        padding: 0 !important;
        box-shadow: none !important;
        
        /* The slide-up animation */
        animation: slideUpBubble 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    }
    
    /* 2. Shape the button into a sleek pill */
    .bottom-controls .btn-primary {
        width: auto !important;
        border-radius: 50px !important; /* Makes it a perfect bubble/pill */
        padding: 14px 28px !important;
        font-size: 1.05rem !important;
        /* Premium drop shadow so it floats off the screen */
        box-shadow: 0 10px 30px rgba(38, 16, 110, 0.35) !important; 
    }

    /* 3. The Animation Keyframes */
    @keyframes slideUpBubble {
        0% { 
            transform: translateY(100px); /* Starts off-screen */
            opacity: 0; 
        }
        100% { 
            transform: translateY(0); /* Glides into place */
            opacity: 1; 
        }
    }
    
    .scroll-top-btn {
        display: none !important; 
    }
    
    .scroll-top-btn {
        display: none !important; 
    }
    
    .bottom-controls .btn-primary {
        width: 100% !important;
        text-align: center !important;
        font-size: 1.1rem !important;
        padding: 16px 28px !important;
    }
}

/* ========================================= */
/* --- OUR STORY SECTION (MAGAZINE LAYOUT) --- */
/* ========================================= */

.story-section {
    padding: 120px 0;
    background-color: var(--bg-offwhite); /* Subtle contrast from pure white sections */
}

.story-container {
    display: flex;
    align-items: center;
    gap: 80px; /* Massive gap for luxury breathing room */
}

/* --- Left: Image Styling --- */
.story-image-wrapper {
    flex: 1;
    position: relative;
}

.story-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    position: relative;
    z-index: 2;
}

/* Adds a sleek offset box behind the image for a designer touch */
/* --- The "Whisper" Accent Box (True High-End) --- */
.image-accent-box {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    /* Thin, elegant, barely-there border */
    border: 1px solid rgba(38, 16, 110, 0.15);
    border-radius: 12px;
    z-index: 1;
    
    /* Extremely slow, 8-second ambient breathe */
    animation: luxuryAmbient 8s infinite alternate ease-in-out;
}

/* The Keyframes: Soft ambient shadow shift, no neon */
@keyframes luxuryAmbient {
    0% {
        box-shadow: 0 5px 20px rgba(38, 16, 110, 0.02);
        border-color: rgba(38, 16, 110, 0.1);
    }
    100% {
        /* A subtle, cool ambient spread, not a glowing lightbulb */
        box-shadow: 0 15px 45px rgba(38, 16, 110, 0.12);
        border-color: rgba(38, 16, 110, 0.25);
    }
}

/* --- Right: Typography --- */
.story-content {
    flex: 1;
}

.eyebrow-text {
    display: block;
    color: var(--light-purple);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.story-content h2 {
    font-size: 3rem;
    color: var(--primary-indigo);
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.story-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

/* --- Custom Checkmark List --- */
.luxury-list {
    list-style: none;
    margin-top: 32px;
}

.luxury-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.luxury-list svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary-indigo);
}

/* --- Staggered Animation Setup --- */
.luxury-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
    
    /* Start them hidden and pushed slightly to the left */
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* When the 'is-visible' class is activated, they slide into place */
.luxury-list.is-visible li {
    opacity: 1;
    transform: translateX(0);
}

/* The magic stagger delays */
.luxury-list.is-visible li:nth-child(1) { transition-delay: 0.1s; }
.luxury-list.is-visible li:nth-child(2) { transition-delay: 0.3s; }
.luxury-list.is-visible li:nth-child(3) { transition-delay: 0.5s; }

/* --- Mobile Fix for Story Section --- */
@media (max-width: 992px) {
    .story-container {
        flex-direction: column; /* Stacks the image on top of the text on phones */
        gap: 50px;
    }
    
    .image-accent-box {
        display: none; /* Hides the offset box on mobile to save space */
    }
    
    .story-content h2 {
        font-size: 2.5rem;
    }
}

/* ========================================= */
/* --- CONTACT & QUOTE SECTION --- */
/* ========================================= */

.contact-section {
    padding: 100px 0;
    background-color: var(--primary-indigo); /* Dark anchor for the bottom of the page */
    color: var(--bg-white);
}

.contact-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.contact-text {
    flex: 1;
    max-width: 500px;
}

.contact-text h2 {
    font-size: 3rem;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 20px;
    color: var(--bg-white);
}

.contact-text p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* --- The Form Layout --- */
.contact-form-wrapper {
    flex: 1;
    background: rgba(255, 255, 255, 0.05); /* Very subtle glass effect */
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.luxury-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* --- Minimalist Input Fields --- */
.form-group input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* Only a bottom line, very sleek */
    padding: 12px 0;
    font-family: inherit;
    font-size: 1.1rem;
    color: var(--bg-white);
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* The Premium Focus Effect */
.form-group input:focus {
    outline: none;
    border-bottom: 1px solid var(--bg-white); /* Line turns bright pure white */
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
}

.form-submit {
    margin-top: 10px;
    width: 100%;
    font-size: 1.15rem;
    padding: 16px;
    border: none;
    cursor: pointer;
    /* Inverts the button color since we are on a dark background */
    background: var(--bg-white);
    color: var(--primary-indigo);
}

.form-submit:hover {
    background: var(--bg-offwhite);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* --- Mobile Fix for Contact Section --- */
@media (max-width: 992px) {
    .contact-container {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-text h2 {
        font-size: 2.5rem;
    }
    
    .contact-form-wrapper {
        width: 100%;
        padding: 30px 20px;
    }
}

/* --- Low Bill Warning & Shake Animation --- */
/* High-End Toast Container */
#low-bill-msg {
    display: none; 
    /* Shifts from indigo/blue to a cool, deep purple gradient */
    background: linear-gradient(135deg, #8b5cf6 0%, #4c1d95 100%);
    color: #ffffff;
    padding: 16px 20px;
    border-radius: 12px;
    margin-top: 15px;
    align-items: center;
    gap: 12px;
    /* Updates the shadow to match the new purple vibe */
    box-shadow: 0 8px 20px rgba(76, 29, 149, 0.4);
    font-size: 0.95rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

/* The Lightning Bolt (Custom SVG) */
.bolt-icon {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

.low-bill-msg.show {
    display: block;
    opacity: 1;
}

/* The physical shake effect */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

.shake-active {
    animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

/* ========================================= */
/* --- HOW IT WORKS (INTERACTIVE MAP) --- */
/* ========================================= */

.how-it-works-hero {
    /* Lots of padding at the top so it clears your sticky header */
    padding: 180px 24px 100px; 
    background-color: var(--bg-offwhite);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hiw-header {
    text-align: center;
    max-width: 800px;
    margin-bottom: 60px;
}

.hiw-header h2 {
    font-size: 3.5rem;
    color: var(--primary-indigo);
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.interactive-map-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    /* THE FIX: Removed overflow: hidden so boxes can overlap the site layout */
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(38, 16, 110, 0.15);
    display: flex; 
}

.map-bg-image {
    width: 100%;
    height: auto;
    display: block;
    /* THE FIX: Rounded corners are now applied directly to the image */
    border-radius: 20px; 
}

/* --- The Pulsing Nodes --- */
.hotspot-node {
    position: absolute;
    width: 32px;
    height: 32px;
    transform: translate(-50%, -50%); 
    cursor: pointer;
    z-index: 10;
}

/* --- The Upgraded, High-Contrast Nodes --- */
.node-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px; /* Made slightly larger */
    height: 16px;
    background: var(--primary-indigo); /* Pops with your brand color */
    border: 2px solid #ffffff; /* Crisp white ring so it never gets lost */
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(38, 16, 110, 0.6);
    z-index: 2;
}

.node-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px; /* Bigger pulse */
    height: 40px;
    background: rgba(73, 38, 158, 0.4); /* Brand purple pulse instead of white */
    border-radius: 50%;
    animation: pulseRing 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
    z-index: 1;
}

@keyframes pulseRing {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

/* --- The Glass Cards --- */
/* --- Pop-up Glass Cards --- */
.hotspot-card {
    position: absolute;
    bottom: 40px; /* Sits cleanly above the dot */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 280px;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 40px rgba(38, 16, 110, 0.15);
    
    /* Animation Configuration */
    opacity: 0;
    visibility: hidden;
    pointer-events: none; 
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.2);
    z-index: 999; /* Forces cards to sit on top of everything */
}

.hotspot-card h3 {
    color: var(--primary-indigo);
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.hotspot-card p {
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* --- DESKTOP HOVER MECHANICS --- */
@media (min-width: 769px) {
    .hotspot-node:hover .hotspot-card {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
    
    .close-card-btn {
        display: none !important;
    }
}

/* --- MOBILE & TABLET CLICK MECHANICS --- */
@media (max-width: 768px) {
    .hotspot-card {
        width: 240px; 
        padding: 32px 16px 16px; /* Space for the manual close X */
        bottom: 45px;
    }
    
    .hotspot-card h3 { font-size: 1rem; }
    .hotspot-card p { font-size: 0.85rem; }

    .close-card-btn {
        display: block !important;
        position: absolute;
        top: 6px;
        right: 12px;
        background: transparent !important;
        border: none !important;
        outline: none !important;
        font-size: 1.4rem;
        color: var(--text-light);
        cursor: pointer;
        line-height: 1;
    }

    /* JavaScript toggles this class on mobile touch */
    .hotspot-node.active .hotspot-card {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }

    /* Pushes the far-left card to the right so it stays on screen */
    .hotspot-card.shift-right {
        left: -15px !important; 
        transform: translateX(0) translateY(10px) !important; /* Starts pushed down */
    }
    
    .hotspot-node.active .hotspot-card.shift-right {
        transform: translateX(0) translateY(0) !important; /* Glides up into place */
    }
}

/* ========================================= */
/* --- GLOBAL SCROLL ANIMATIONS --- */
/* ========================================= */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px); /* Starts pushed down slightly */
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0); /* Glides into place */
}

/* --- Premium Mobile Sub-Link --- */
/* 1. Removes the divider line directly under 'Solar' so they group together */
.overlay-nav a[href="index.html#solar"] {
    border-bottom: none !important;
    padding-bottom: 10px !important;
}

/* 2. The Updated Sub-Link (Moves the divider to the bottom of this instead) */
.menu-sub-link {
    font-size: 1.1rem;
    color: var(--primary-indigo);
    text-decoration: none;
    padding-left: 16px;
    margin: 0 0 24px 20px; /* Removes the negative top margin */
    padding-bottom: 24px; /* Adds space before the new divider */
    border-left: 2px solid rgba(38, 16, 110, 0.2); 
    border-bottom: 1px solid rgba(0, 0, 0, 0.08); /* Places the divider below the ecosystem link */
    display: block;
    font-weight: 600;
    transition: all 0.3s ease;
}

.menu-sub-link:hover {
    color: var(--light-purple);
    border-left: 2px solid var(--primary-indigo);
}

/* Hide the message icon on desktop */
.mobile-icon {
    display: none;
}

/* --- Floating UI Fixes for Mobile/Tablet --- */
@media (max-width: 768px) {
    /* Align both buttons side-by-side */
    .bottom-controls {
        display: flex !important;
        gap: 12px;
        align-items: center;
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 90;
    }

    /* Convert the "Get a Quote" button into a circular message icon */
    .bottom-controls a.btn-primary {
        width: 45px !important;
        height: 45px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-width: 0 !important; /* Overrides any default button widths */
    }

    /* Hide the text, show the icon */
    .desktop-text {
        display: none !important;
    }
    
    .mobile-icon {
        display: block !important;
    }

    /* Style the arrow to match the new message circle */
    #scroll-top-btn {
        display: flex !important;
        width: 45px !important;
        height: 45px !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.9) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    }
}

/* ========================================= */
/* --- MICRO-INTERACTIONS (HOVER & TOUCH) --- */
/* ========================================= */

/* 1. Gives both buttons a smooth, bouncy transition timer */
#scroll-top-btn, 
.bottom-controls a.btn-primary {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* 2. Arrow flips to a blue background and white icon on hover/press */
#scroll-top-btn:hover, 
#scroll-top-btn:active {
    background: var(--primary-indigo) !important;
    color: #ffffff !important; 
    border-color: var(--primary-indigo) !important;
}

/* 3. Quote/Message button jumps up slightly on hover/press */
.bottom-controls a.btn-primary:hover, 
.bottom-controls a.btn-primary:active {
    transform: translateY(-6px) !important;
    /* Expanding the shadow during the jump makes it feel 3D */
    box-shadow: 0 15px 30px rgba(38, 16, 110, 0.25) !important; 
}