/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* CSS variables for an ultra-premium clean-tech engineering visual system (Enphase + Tesla + Apple) */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #090d16; /* Deep dark space-cadet navy/slate (Enphase style) */
    --bg-light: #f8fafc; /* Premium clean slate-light */
    --bg-dark-card: #111827; /* Gray 900 for dark layouts */
    
    --text-primary: #0f172a; /* Slate 900 */
    --text-secondary: #475569; /* Slate 600 */
    --text-light: #f8fafc;
    --text-light-muted: #94a3b8; /* Slate 400 */
    
    --accent-orange: #ff6b00; /* Enphase iconic brand orange */
    --accent-orange-hover: #e55a00;
    --accent-blue: #3b82f6; /* Digital clean-tech blue */
    --accent-blue-hover: #2563eb;
    
    --border-light: rgba(15, 23, 42, 0.05);
    --border-dark: rgba(255, 255, 255, 0.06);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-premium: 0 30px 60px -15px rgba(0, 0, 0, 0.15);
    --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.02);
    --shadow-glow: 0 0 20px rgba(255, 107, 0, 0.15);
    
    --transition-premium: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --carousel-item-width: 250px;
    --logo-height: 78px;
    --carousel-logo-height: 125px;
    --carousel-img-max-height: 85px;
}

/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    width: 100%;
}

/* Premium Typography System */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text-primary);
}

p {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

/* Layouts */
section {
    padding: 20px 2.5rem;
    position: relative;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    width: 100%;
    padding: 0 24px;
}

.section-dark {
    background-color: var(--bg-secondary);
    color: var(--text-light);
}

.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 {
    color: var(--text-light);
}

.section-dark p {
    color: var(--text-light-muted);
}

.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 80px;
}

.section-header .tagline {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-orange);
    margin-bottom: 15px;
    display: block;
}

.section-header h2 {
    font-size: 3.2rem;
    margin-bottom: 25px;
    font-weight: 800;
}

.section-header p {
    font-size: 1.15rem;
    line-height: 1.7;
}

/* Header Navigation - Premium Enphase style */
header {
    background-color: #090d16; /* Matte dark */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition-premium);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 1rem 2.5rem;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo-img {
    height: var(--logo-height);
    width: auto;
    border-radius: 4px;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    color: #ffffff; /* White logo text */
    letter-spacing: 0.5px;
}

.logo-text span {
    color: var(--accent-orange);
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1.8rem;
    margin-left: auto; /* Push the menu to the right side of the navbar */
    margin-right: 2rem; /* Give space between menu links and the proposal button */
}

.nav-item {
    position: relative;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8); /* Muted white link */
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-premium);
}

.nav-link:hover {
    color: var(--accent-orange);
    opacity: 1;
}

/* Mobile Toggle Button */
.menu-toggle-btn {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle-btn svg {
    width: 28px;
    height: 28px;
}

/* Clean Dropdown */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #111827; /* Dark dropdown */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 220px;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.nav-dropdown-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-premium);
}

.nav-dropdown-item a:hover {
    background-color: #1f2937;
    color: var(--accent-orange);
}

.nav-item:hover .nav-dropdown {
    display: block;
}

/* Premium Buttons - Minimal, clean layout */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    border-radius: 4px; /* Crisp square-rounded edges like Enphase/Tesla */
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition-premium);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--accent-orange-hover);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    border-color: var(--text-light);
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-outline-gold {
    background-color: transparent;
    color: var(--accent-orange);
    border: 1.5px solid var(--accent-orange);
}

.btn-outline-gold:hover {
    background-color: var(--accent-orange);
    color: #ffffff;
}

/* Homepage Hero - Apple Style minimalism */
.hero-home {
    min-height: 95vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    background-image: linear-gradient(180deg, rgba(9, 13, 22, 0.45) 0%, rgba(9, 13, 22, 0.8) 70%, #090d16 100%), url('../images/hero_solar.jpg');
    background-size: cover;
    background-position: center;
}

.hero-home-content {
    max-width: 700px;
    margin: 0;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-orange);
    margin-bottom: 20px;
    display: inline-block;
}

.hero-home-content h1 {
    font-size: 4rem;
    margin-bottom: 25px;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
}

.hero-home-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

/* High-Contrast Ratings Stripe */
.credibility-bar {
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 24px 0;
    background-color: var(--bg-light);
}

.credibility-items {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
    flex-wrap: wrap;
    gap: 20px;
}

.credibility-item {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.credibility-item strong {
    color: var(--text-primary);
}

.credibility-item svg {
    color: var(--accent-orange);
    width: 18px;
    height: 18px;
}

/* Partner Logo Ribbon */
.partner-section {
    padding: 40px 0 20px;
    background-color: #ffffff;
}

.partner-title {
    text-align: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-secondary);
    margin-bottom: 35px;
    font-weight: 600;
}

.carousel-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.carousel-track {
    display: flex;
    width: calc(var(--carousel-item-width) * 20);
    animation: scroll 30s linear infinite;
}

.carousel-track-reverse {
    display: flex;
    width: calc(var(--carousel-item-width) * 20);
    animation: scroll-reverse 30s linear infinite;
}

.carousel-logo {
    width: var(--carousel-item-width);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 15px; /* Reduced side padding to group logos closer */
    height: var(--carousel-logo-height);
}

.carousel-logo img {
    max-height: var(--carousel-img-max-height);
    max-width: 100%;
    object-fit: contain;
    filter: none; /* No grayscale filter, logos in color */
    opacity: 1; /* Full opacity */
    transition: var(--transition-premium);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(var(--carousel-item-width) * -10)); }
}

@keyframes scroll-reverse {
    0% { transform: translateX(calc(var(--carousel-item-width) * -10)); }
    100% { transform: translateX(0); }
}

/* Why NEUSOL - Clean grids with crisp border alignments */
.why-section {
    background-color: var(--bg-light);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.why-card {
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 40px;
    transition: var(--transition-premium);
    box-shadow: var(--shadow-card);
}

.why-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 107, 0, 0.2);
    box-shadow: var(--shadow-premium);
}

.why-icon-wrapper {
    width: 45px;
    height: 45px;
    border-radius: 6px;
    background-color: rgba(255, 107, 0, 0.08);
    color: var(--accent-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.why-icon-wrapper svg {
    width: 20px;
    height: 20px;
}

.why-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.why-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Numbers Banner */
.numbers-section {
    background-color: var(--bg-secondary);
    color: var(--text-light);
    padding: 20px 2.5rem;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.number-card h3 {
    font-size: 4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1;
}

.number-card p {
    color: var(--text-light-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Enphase Promo section - High contrast split */
.enphase-promo-section {
    background-color: #ffffff;
}

.enphase-promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.enphase-promo-img {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.enphase-promo-img img {
    width: 100%;
    height: auto;
    display: block;
}

.enphase-promo-content h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-orange);
    margin-bottom: 12px;
}

.enphase-promo-content h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    font-weight: 800;
}

.enphase-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

.enphase-feature svg {
    color: var(--accent-orange);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 4px;
}

.enphase-feature h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.enphase-feature p {
    font-size: 0.88rem;
}

/* Solutions Cards - Clean-cut border outline styling */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.solution-card {
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 40px;
    transition: var(--transition-premium);
    display: flex;
    flex-direction: column;
}

.solution-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-orange);
    box-shadow: var(--shadow-premium);
}

.solution-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.solution-card p {
    font-size: 0.95rem;
    margin-bottom: 30px;
    flex-grow: 1;
}

.solution-link {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.solution-link:hover {
    color: var(--accent-orange-hover);
}

/* Solar Savings Calculator - Clean Tech box layout */
.calculator-box {
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 45px;
    box-shadow: var(--shadow-premium);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1.3fr 1.7fr;
    gap: 50px;
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.calc-form-group label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 10px;
    display: block;
}

.calc-bill-value {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-orange);
}

select.calc-select {
    padding: 12px 16px;
    background-color: var(--bg-light);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 0.95rem;
    width: 100%;
}

/* Calculator range slider track and thumb customization */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: #e2e8f0;
    border-radius: 3px;
}

input[type=range]::-webkit-slider-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--accent-orange);
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -7px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.calc-results {
    background-color: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 40px;
}

.calc-results-title {
    font-size: 1.4rem;
    margin-bottom: 25px;
}

.calc-metric-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.calc-metric h4 {
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.calc-metric p {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
}

.calc-metric p span {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.calc-highlight p {
    color: var(--accent-orange);
}

/* Testimonial Panel Grid */
.testimonials-section {
    background-color: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 40px;
    box-shadow: var(--shadow-card);
}

.rating-stars {
    color: var(--accent-orange);
    font-size: 1rem;
    margin-bottom: 20px;
}

.testimonial-quote {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: var(--text-secondary);
}

.testimonial-savings-badge {
    background: rgba(37, 211, 102, 0.05);
    border: 1px solid rgba(37, 211, 102, 0.1);
    color: #166534;
    border-radius: 4px;
    padding: 12px;
    display: flex;
    justify-content: space-around;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 25px;
}

.testimonial-savings-badge span {
    font-weight: 700;
}

/* Footer layout */
footer {
    background-color: var(--bg-secondary);
    color: var(--text-light);
    padding: 100px 2.5rem 40px;
    border-top: 1px solid var(--border-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.8fr 1.5fr;
    gap: 60px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.footer-col p {
    color: var(--text-light-muted);
    font-size: 0.9rem;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: var(--text-light-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-premium);
}

.footer-col ul a:hover {
    color: var(--accent-orange);
}

.footer-tag {
    color: var(--accent-orange);
    border: 1px solid rgba(255, 107, 0, 0.2);
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.75rem;
}

/* Sub-page inner details */
.hero-inner {
    padding: 160px 2.5rem 80px;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
}

.hero-inner h1 {
    font-size: 3.5rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.hero-inner p {
    font-size: 1.15rem;
    color: var(--text-secondary);
}

/* Interactive flow diagram panel */
.energy-flow-visual {
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 40px;
    box-shadow: var(--shadow-premium);
}

.energy-flow-diagram {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 40px 0;
    margin-bottom: 30px;
}

.diagram-node {
    width: 65px;
    height: 65px;
    border-radius: 6px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Floating WhatsApp widget */
.whatsapp-floater {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    text-decoration: none;
}

/* Responsive Grid fixes */
@media (max-width: 1024px) {
    .enphase-promo-grid { grid-template-columns: 1fr; gap: 40px; }
    .calc-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1.2fr 0.8fr 0.8fr; }
    .footer-col:last-child { grid-column: span 3; }
}

@media (max-width: 768px) {
    :root {
        --carousel-item-width: 165px;
        --logo-height: 65px;
        --carousel-logo-height: 100px;
        --carousel-img-max-height: 70px;
    }
    
    section { padding: 20px 1.5rem; }
    
    .hero-home {
        background-image: linear-gradient(180deg, rgba(9, 13, 22, 0.5) 0%, rgba(9, 13, 22, 0.95) 100%), url('../images/hero_solar.jpg');
        padding-top: 140px;
        padding-bottom: 80px;
    }
    
    .hero-home-content h1 { font-size: 2.8rem; }
    .hero-home-content p { font-size: 1.1rem; }
    
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }
    .enphase-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .credibility-items {
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    .credibility-item {
        flex: 1 1 200px;
        justify-content: center;
        text-align: center;
        padding: 5px 0;
    }
    
    .calculator-box {
        padding: 24px 18px;
    }
    
    .calc-results {
        padding: 24px 18px;
    }
    
    .calc-metric-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-col:last-child { grid-column: span 1; }
    .nav-container {
        padding: 12px 20px;
    }
    
    /* Mobile nav drawer */
    .menu-toggle-btn {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 65px; /* Adjust based on mobile header height */
        left: 0;
        width: 100%;
        height: auto;
        max-height: calc(100vh - 65px);
        background-color: #090d16;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        flex-direction: column;
        align-items: center;
        padding: 30px 20px;
        gap: 20px;
        transition: all 0.4s ease-in-out;
        overflow-y: auto;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
        z-index: 1100;
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-dropdown {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 10px 0 0 15px;
        background-color: transparent;
        display: none;
    }
    
    .nav-item:hover .nav-dropdown {
        display: none;
    }
    
    .nav-item.active-dropdown .nav-dropdown {
        display: block;
    }
    
    .nav-dropdown-item a {
        padding: 8px 0;
        color: rgba(255, 255, 255, 0.7);
    }
}

/* Contact Us Grid & Input Styling */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 50px;
    padding: 80px 0;
    align-items: start;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 0;
    }
}

.contact-sidebar {
    display: flex;
    flex-direction: column;
}

.contact-card {
    display: flex;
    gap: 20px;
    background-color: var(--bg-dark-card);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 24px;
    transition: var(--transition-premium);
    box-shadow: var(--shadow-card);
}

.contact-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 107, 0, 0.3);
    box-shadow: var(--shadow-premium);
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 107, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    color: var(--accent-orange);
}

.contact-card-icon svg {
    width: 24px;
    height: 24px;
}

.contact-card-info h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.contact-card-info p {
    font-size: 0.95rem;
    color: var(--text-light-muted);
    line-height: 1.6;
}

.contact-card-info strong {
    color: #ffffff;
}

.contact-form-wrapper {
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-card);
}

.contact-form-wrapper h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.form-group-custom {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-custom label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--text-secondary);
}

.form-group-custom input,
.form-group-custom select,
.form-group-custom textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    background-color: var(--bg-light);
    transition: var(--transition-premium);
}

.form-group-custom input:focus,
.form-group-custom select:focus,
.form-group-custom textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}

.form-group-custom textarea {
    height: 140px;
    resize: vertical;
}

.form-group-custom input[type="file"] {
    padding: 8px 12px;
    cursor: pointer;
}
.form-group-custom input[type="file"]::file-selector-button {
    background-color: var(--accent-orange);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    margin-right: 10px;
    transition: var(--transition-premium);
}
.form-group-custom input[type="file"]::file-selector-button:hover {
    background-color: var(--accent-orange-hover);
}

.success-alert {
    display: none;
    background-color: #ecfdf5;
    border: 1px solid #10b981;
    color: #065f46;
    padding: 16px;
    border-radius: 6px;
    font-size: 0.95rem;
    margin-bottom: 24px;
    font-weight: 500;
}


/* Timeline Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}
.timeline-item {
    padding: 20px 0;
    position: relative;
    border-left: 2px solid var(--accent-orange);
    padding-left: 30px;
    margin-left: 20px;
}
.timeline-badge {
    position: absolute;
    left: -9px;
    top: 25px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--accent-orange);
    border: 3px solid var(--bg-secondary);
}
.timeline-date {
    color: var(--accent-orange);
    font-weight: 700;
    margin-bottom: 5px;
}
.timeline-content h4 {
    color: var(--text-light);
    margin-bottom: 10px;
}
.timeline-content p {
    color: var(--text-light-muted);
}

/* Enphase style showcase sections */
.enphase-showcase-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding: 80px 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.enphase-showcase-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.55) 100%);
    z-index: 1;
}
.enphase-showcase-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}
.enphase-showcase-content h2 {
    font-size: 3.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.1;
}
.enphase-showcase-content p {
    font-size: 1.6rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
}
.enphase-showcase-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.enphase-btn-white {
    background-color: #ffffff;
    color: #090d16 !important;
    border: none;
    border-radius: 30px;
    padding: 12px 35px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-premium);
}
.enphase-btn-white:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}
.enphase-btn-outline {
    background-color: transparent;
    color: #ffffff !important;
    border: 2px solid #ffffff;
    border-radius: 30px;
    padding: 10px 35px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-premium);
}
.enphase-btn-outline:hover {
    background-color: #ffffff;
    color: #090d16 !important;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .enphase-showcase-section {
        min-height: 450px;
        padding: 60px 15px;
    }
    .enphase-showcase-content h2 {
        font-size: 2.2rem;
    }
    .enphase-showcase-content p {
        font-size: 1.15rem;
        margin-bottom: 25px;
    }
}

/* TESTIMONIALS MARQUEE ANIMATIONS & SLIDERS */
.testimonials-marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.testimonials-marquee-track {
    display: flex;
    gap: 24px;
    width: max-content;
}
.t-marquee-card {
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.t-marquee-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-orange) !important;
    box-shadow: var(--shadow-premium) !important;
}
.testimonials-marquee-wrapper:hover .testimonials-marquee-track {
    animation-play-state: paused !important;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 12px)); }
}
@keyframes marquee-reverse {
    0% { transform: translateX(calc(-50% - 12px)); }
    100% { transform: translateX(0); }
}

/* HEADER CTA BUTTON & ACTIONS */
.nav-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.nav-cta-btn {
    background-color: var(--accent-orange);
    color: #ffffff !important;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition-premium);
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.15);
}
.nav-cta-btn:hover {
    background-color: var(--accent-orange-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 107, 0, 0.3);
}
.nav-cta-btn .mobile-text {
    display: none;
}

/* Mobile Collision Adjustments */
@media (max-width: 1100px) {
    .nav-menu {
        gap: 1rem;
        margin-right: 1.2rem;
    }
}

@media (max-width: 580px) {
    .logo-text {
        font-size: 0.85rem;
        letter-spacing: 0px;
    }
    .nav-cta-btn {
        padding: 8px 14px;
        font-size: 0.72rem;
    }
    .nav-actions {
        margin-right: 10px;
    }
    /* Show full text on tablets and regular phones */
    .nav-cta-btn .desktop-text {
        display: inline;
    }
    .nav-cta-btn .mobile-text {
        display: none;
    }
}

/* Only switch to short text on very small phones */
@media (max-width: 380px) {
    .nav-cta-btn .desktop-text {
        display: none;
    }
    .nav-cta-btn .mobile-text {
        display: inline;
    }
}

/* FOOTER ACCORDIONS & CLEAN STYLING */
.footer-details {
    display: block;
}
.footer-details[open] summary::-webkit-details-marker,
.footer-details summary::-webkit-details-marker {
    display: none;
}
.footer-details summary {
    list-style: none;
    outline: none;
}
.footer-details summary h4 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 15px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #ffffff;
}
.footer-chevron {
    display: none;
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

@media (min-width: 1025px) {
    .footer-details summary {
        pointer-events: none; /* Disable toggling on desktop */
    }
    .footer-details summary h4 {
        cursor: default;
    }
    .footer-details ul,
    .footer-details .footer-contact-details {
        display: block !important;
    }
}

@media (max-width: 1024px) {
    .footer-chevron {
        display: inline-block;
    }
    .footer-details[open] .footer-chevron {
        transform: rotate(180deg);
    }
    .footer-details {
        border-bottom: 1px solid var(--border-light);
        padding: 15px 0;
    }
    .footer-details summary h4 {
        margin: 0;
    }
    .footer-details ul,
    .footer-details .footer-contact-details {
        padding-top: 15px;
    }
    .footer-bottom-brand-line {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }
    .footer-bottom-meta {
        flex-direction: column-reverse;
        align-items: flex-start !important;
        gap: 15px;
    }
}

/* FOOTER BOTTOM ALIGNMENT & COLOR CORRECTIONS */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px 0 0;
    margin-top: 40px;
}
.footer-bottom-brand-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}
.footer-years {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light) !important; /* Force readable text color */
}
.footer-social-icons {
    display: flex;
    gap: 20px;
}
.footer-social-icons a {
    color: var(--text-light-muted) !important; /* Force readable icon color */
    transition: var(--transition-premium);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.footer-social-icons a:hover {
    color: var(--accent-orange) !important;
}
.footer-bottom-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    font-size: 0.85rem;
    color: var(--text-light-muted) !important; /* Force readable meta text color */
}
.footer-bottom-meta p {
    margin: 0;
    color: var(--text-light-muted) !important;
    width: auto;
}
.t-marquee-card {
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.t-marquee-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-orange) !important;
    box-shadow: var(--shadow-premium) !important;
}
.testimonials-marquee-wrapper:hover .testimonials-marquee-track {
    animation-play-state: paused !important;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 12px)); }
}
@keyframes marquee-reverse {
    0% { transform: translateX(calc(-50% - 12px)); }
    100% { transform: translateX(0); }
}

/* HEADER CTA BUTTON & ACTIONS */
.nav-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.nav-cta-btn {
    background-color: var(--accent-orange);
    color: #ffffff !important;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition-premium);
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.15);
}
.nav-cta-btn:hover {
    background-color: var(--accent-orange-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 107, 0, 0.3);
}
.nav-cta-btn .mobile-text {
    display: none;
}

/* Mobile Collision Adjustments */
@media (max-width: 1100px) {
    .nav-menu {
        gap: 1rem;
        margin-right: 1.2rem;
    }
}

@media (max-width: 580px) {
    .logo-text {
        font-size: 0.85rem;
        letter-spacing: 0px;
    }
    .nav-cta-btn {
        padding: 8px 14px;
        font-size: 0.72rem;
    }
    .nav-actions {
        margin-right: 10px;
    }
    .nav-cta-btn .desktop-text {
        display: inline;
    }
    .nav-cta-btn .mobile-text {
        display: none;
    }
}

/* FOOTER ACCORDIONS & CLEAN STYLING */
.footer-details {
    display: block;
}
.footer-details[open] summary::-webkit-details-marker,
.footer-details summary::-webkit-details-marker {
    display: none;
}
.footer-details summary {
    list-style: none;
    outline: none;
}
.footer-details summary h4 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 15px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #ffffff;
}
.footer-chevron {
    display: none;
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

@media (min-width: 1025px) {
    .footer-details summary {
        pointer-events: none; /* Disable toggling on desktop */
    }
    .footer-details summary h4 {
        cursor: default;
    }
    .footer-details ul,
    .footer-details .footer-contact-details {
        display: block !important;
    }
}

@media (max-width: 1024px) {
    .footer-chevron {
        display: inline-block;
    }
    .footer-details[open] .footer-chevron {
        transform: rotate(180deg);
    }
    .footer-details {
        border-bottom: 1px solid var(--border-light);
        padding: 15px 0;
    }
    .footer-details summary h4 {
        margin: 0;
    }
    .footer-details ul,
    .footer-details .footer-contact-details {
        padding-top: 15px;
    }
    .footer-bottom-brand-line {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }
    .footer-bottom-meta {
        flex-direction: column-reverse;
        align-items: flex-start !important;
        gap: 15px;
    }
}

/* FOOTER BOTTOM ALIGNMENT & COLOR CORRECTIONS */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px 0 0;
    margin-top: 40px;
}
.footer-bottom-brand-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}
.footer-years {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light) !important; /* Force readable text color */
}
.footer-social-icons {
    display: flex;
    gap: 20px;
}
.footer-social-icons a {
    color: var(--text-light-muted) !important; /* Force readable icon color */
    transition: var(--transition-premium);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.footer-social-icons a:hover {
    color: var(--accent-orange) !important;
}
.footer-bottom-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    font-size: 0.85rem;
    color: var(--text-light-muted) !important; /* Force readable meta text color */
}
.footer-bottom-meta p {
    margin: 0;
    color: var(--text-light-muted) !important;
}
.footer-bottom-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-bottom-links a {
    color: var(--text-light-muted) !important; /* Force readable link color */
    text-decoration: none;
    transition: var(--transition-premium);
    display: inline-flex;
    align-items: center;
    pointer-events: auto !important;
    cursor: pointer !important;
}
.footer-bottom-links a svg {
    pointer-events: none !important;
}
.footer-bottom-links a:hover {
    color: var(--accent-orange) !important;
}

/* Premium Grid Cards for "Why NEUSOL" */
.why-card-premium {
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(255, 255, 255, 0.08); 
    border-radius: 12px; 
    padding: 35px 24px; 
    text-align: center; 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.4s ease, 
                border-color 0.4s ease, 
                box-shadow 0.4s ease;
}

.why-card-premium:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 107, 0, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.why-icon-circle {
    color: var(--accent-orange); 
    margin-bottom: 20px; 
    display: inline-flex; 
    justify-content: center; 
    align-items: center; 
    width: 54px; 
    height: 54px; 
    border-radius: 50%; 
    background: rgba(255, 107, 0, 0.1);
}

.why-card-premium h3 {
    font-size: 1.15rem; 
    font-weight: 700; 
    color: #ffffff;
    font-family: var(--font-heading);
    margin: 0;
    line-height: 1.3;
}

/* Parallax Background Fix for Desktop vs Mobile */
.parallax-bg {
    background-attachment: fixed !important;
    background-position: center !important;
    background-size: cover !important;
}

@media (max-width: 768px) {
    .parallax-bg {
        background-attachment: scroll !important; /* Fixes the iOS massive zoom issue causing cut-off images */
        background-position: center top !important; /* Ensures the top/subject of the image is always visible */
    }
}

/* Header Navbar Flex Alignment - Fix Mobile Layout */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 1rem 2.5rem;
}

/* Assign Order on Desktop */
.logo-link {
    order: 1;
}

.nav-menu {
    order: 2;
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1.8rem;
    margin-left: auto; /* Push menu to the right side of the navbar */
    margin-right: 2rem; /* Gap between menu links and the proposal button */
}

.nav-actions {
    order: 3;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.menu-toggle-btn {
    order: 4;
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
}

.nav-cta-btn {
    background-color: var(--accent-orange);
    color: #ffffff !important;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition-premium);
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.15);
}

.nav-cta-btn:hover {
    background-color: var(--accent-orange-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 107, 0, 0.3);
}

/* Tablet Responsive Ordering */
@media (max-width: 1024px) {
    .menu-toggle-btn {
        display: block !important; /* Show hamburger toggle */
        order: 3; /* Render on the far right */
    }
    
    .nav-actions {
        order: 2; /* Render proposal button directly to the left of the hamburger */
        margin-left: auto; /* Push it next to the hamburger icon */
        margin-right: 15px; /* Spacing between button and hamburger */
    }
    
    .nav-menu {
        /* Mobile menu drawer uses fixed positioning; order value won't affect flex flow */
        margin-right: 0;
        margin-left: 0;
    }
}

/* Mobile Phone Layout Spacing */
@media (max-width: 580px) {
    .nav-container {
        padding: 1rem 8px !important; /* Minimum possible padding on sides */
    }
    .logo-link {
        gap: 6px !important; /* Move text closer to the logo image */
    }
    .logo-img {
        height: 28px !important; /* Slightly smaller logo image */
    }
    .logo-text {
        font-size: 0.75rem !important; /* Smaller text size */
        white-space: nowrap !important; /* Prevent text wrapping */
        letter-spacing: -0.2px !important;
    }
    .nav-cta-btn {
        padding: 6px 10px !important;
        font-size: 0.7rem !important;
    }
    .nav-actions {
        margin-right: 5px !important; /* Push closer to the hamburger menu */
    }
}

/* Split Layout Premium */
.split-layout-premium {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

@media (max-width: 992px) {
    .split-layout-premium {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
