/*
 Theme Name:     The Navigating Solar Divi by 1Pager
 Description:    1Pager Custom Divi Child Theme
 Author:         Shaun
 Author URI:     https://1pager.co.za
 Template:       Divi
 Version:        2.0
*/
 
/* =Theme customization starts here

------------------------------------------------------- */

/* =========================================
   SOLAR APP THEME - ACCESSIBLE CORE
   ========================================= */
:root {
    --solar-gold: #f1c40f;
    --solar-dark: #222;
    --solar-teal-dark: #036761;
    --solar-teal-med: #067864;
    --solar-green-med: #099168;
    --solar-green: #12a062;
    --solar-light: #f8f9fa;
    --solar-white: #ffffff;
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

#app {display: none !important;}

/* Accessibility: Skip Link (Hidden until focused) */
.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}

.skip-link:focus {
    background-color: var(--solar-white);
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: var(--solar-green);
    display: block;
    font-size: 1rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Global Reset & Focus States */
.solar-app-wrapper {
    font-family: var(--font-main);
    color: var(--solar-teal-dark);
    line-height: 1.6;
    background: var(--solar-white);
    width: 100%;
    margin: 0; 
    padding: 0;
}

/* Visible Focus Outline for Keyboard Users */
*:focus-visible {
    outline: 3px solid var(--solar-gold);
    outline-offset: 2px;
}

.sp-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* =========================================
   1. HEADER & NAV (Mobile First)
   ========================================= */
.solar-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.solar-nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.solar-brand a {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--solar-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.solar-brand .highlight { color: var(--solar-green); }

/* Navigation List */
.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
}

.nav-link {
    text-decoration: none;
    color: var(--solar-dark);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 4px;
    transition: color 0.2s;
}

.nav-link:hover, .nav-link:focus { 
    color: var(--solar-gold); 
    background: rgba(0,0,0,0.03);
}

/* Mobile Nav Tweak: Hide on very small screens if needed, or wrap */
@media (max-width: 600px) {
    .nav-list { gap: 10px; font-size: 0.8rem; }
    .solar-brand span { display: none; } /* Show only icon on tiny screens */
    .solar-brand .brand-icon { display: block; font-size: 2.5rem; }
}

/* =========================================
   2. VIDEO HERO SECTION
   ========================================= */
.sp-hero-section {
    position: relative;
    height: 90vh; /* Mobile: Tall hero */
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.video-background-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    background: #000; /* Fallback */
}

.video-background-layer video {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.video-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(44, 62, 80, 0.4), rgba(44, 62, 80, 0.9));
    z-index: 1;
}

.relative-z { position: relative; z-index: 2; }

.sp-headline {
    font-size: 2.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 20px;
}

.sp-highlight { color: var(--solar-gold); }

.sp-hero-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

.sp-btn-primary {
    background: var(--solar-gold);
    color: var(--solar-dark);
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
}

.sp-btn-primary:hover, .sp-btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(241, 196, 15, 0.4);
}

/* Desktop Hero adjustments */
@media (min-width: 900px) {
    .sp-headline { font-size: 4.5rem; }
    .sp-hero-text { font-size: 1.4rem; }
    .hero-actions { flex-direction: row; }
}

/* =========================================
   3. SECTIONS & GRIDS (Flexbox System)
   ========================================= */
.sp-section { padding: 60px 0; }
.sp-bg-light { background: var(--solar-light); }
.sp-text-center { text-align: center; }

.sp-section-title {
    font-size: 2rem;
    color: var(--solar-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.sp-lead-text {
    max-width: 700px;
    margin: 0 auto 50px;
    color: #555;
    font-size: 1.1rem;
}

/* Reset Lists */
.sp-grid-3, .sp-grid-2 {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column; /* Mobile Default: Stacked */
    gap: 30px;
}

/* Cards */
.sp-card-wrapper { flex: 1; }

.sp-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%; /* Equal Height */
    text-align: left;
}

.sp-card:hover, .sp-card:focus {
    transform: translateY(-5px);
    border-color: var(--solar-green);
}

.sp-icon-box { font-size: 3rem; margin-bottom: 15px; }
.sp-card h3 { color: var(--solar-dark); margin: 0 0 10px 0; font-size: 1.5rem; }
.sp-link {
    color: var(--solar-green);
    font-weight: 700;
    margin-top: auto; /* Push to bottom */
    padding-top: 15px;
    display: inline-block;
}

/* Feature Boxes */
.sp-feature-box {
    background: white;
    padding: 25px;
    border-left: 5px solid var(--solar-gold);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: left;
}

.feature-title { margin-top: 0; color: var(--solar-dark); display: flex; align-items: center; gap: 10px; }

/* Desktop Grid Expansions */
@media (min-width: 900px) {
    .sp-grid-3 { flex-direction: row; }
    .sp-grid-2 { flex-direction: row; flex-wrap: wrap; }
    .sp-feature-box { flex: 1 1 calc(50% - 30px); } /* 2 per row */
}

/* =========================================
   4. SPLIT LAYOUT (QUIZ)
   ========================================= */
.sp-split-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.sp-split-content { flex: 1; }
.sp-split-widget { flex: 1; }

/* Desktop Split */
@media (min-width: 900px) {
    .sp-split-layout {
        flex-direction: row;
        align-items: center;
        gap: 60px;
    }
}

.section-tag {
    background: #eafaf1;
    color: var(--solar-green);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 15px;
}

.sp-check-list { list-style: none; padding: 0; margin-top: 25px; }
.sp-check-list li { margin-bottom: 12px; padding-left: 30px; position: relative; font-weight: 500; font-size: 1.1rem; }

.sp-check-list li:before {
    content: '✔';
    color: var(--solar-green);
    position: absolute; left: 0; font-weight: bold;
}

/* Widget Container */
.sp-split-widget {
    background: white;
    padding: 10px; /* Internal widget has padding, keep this slim */
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* =========================================
   5. FOOTER
   ========================================= */
.solar-footer {
    background: var(--solar-dark);
    color: white;
    padding: 80px 20px 40px;
    margin-top: 40px;
}

.solar-footer h2 { color: white; }
.sp-btn-white {
    background: white;
    color: var(--solar-dark);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    margin: 20px 0 40px;
    transition: background 0.2s;
}
.sp-btn-white:hover, .sp-btn-white:focus { background: var(--solar-gold); color: var(--solar-dark); }

.footer-links { margin-bottom: 20px; font-size: 0.9rem; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; margin: 0 10px; display: inline-block; }
.footer-links a:hover, .footer-links a:focus { color: white; text-decoration: underline; }

.copyright { color: rgba(255,255,255,0.4); font-size: 0.8rem; }

/* Hides default Divi Header & Footer on our Custom Page Template only */
.page-template-template-solar-home #main-header,
.page-template-template-solar-home #top-header,
.page-template-template-solar-home #main-footer {
    display: none !important;
}

/* Fix for Divi adding padding to the body */
.page-template-template-solar-home #page-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* =========================================
   ADMIN BAR FIX FOR STICKY HEADER
   ========================================= */

/* Default: If admin bar exists, push header down */
body.admin-bar .solar-header {
    top: 32px !important;
}

/* Mobile: Admin bar is sometimes taller (46px) on smaller screens */
@media screen and (max-width: 782px) {
    body.admin-bar .solar-header {
        top: 46px !important;
    }
}

/* =========================================
   PAGE 2: INITIALIZATION STYLES
   ========================================= */

/* Hero Specifics */
.init-hero {
    background: linear-gradient(135deg, var(--solar-teal-dark) 0%, var(--solar-dark) 100%);
    color: white;
    padding: 80px 20px 60px;
    text-align: center;
}

.phase-tag {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 15px;
}

.init-hero h1 { font-size: 2.5rem; margin-bottom: 15px; font-weight: 800; }
.hero-sub { font-size: 1.1rem; opacity: 0.8; max-width: 600px; margin: 0 auto; }

/* Main Grid Layout (Sidebar vs Content) */
.main-grid-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-top: 50px;
    padding-bottom: 80px;
}

/* Content Stream (Left Column) */
.content-stream {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Content Cards */
.content-card {
    background: white;
    padding: 0 25px 0 0; /* Let inner elements handle padding */
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border: 1px solid #eee;
    overflow: hidden;
}

.content-card h2, .content-card p, .content-card .info-grid-2, .content-card .alert-box, .content-card .accordion-ui, .content-card .formula-box, .content-card .sp-check-list {
    margin-left: 30px; margin-right: 5px; /* Consistent inner padding */
}
.content-card h2 { margin-top: 30px; margin-bottom: 15px; color: var(--solar-dark); font-size: 1.8rem; }
.content-card p { color: #555; margin-bottom: 20px; font-size: 1.05rem; }

/* Specific Card Styling */
.widget-card { background: #fafbfc; border: 1px solid #e0e0e0; }
.card-header-accent {
    background: var(--solar-dark);
    color: white;
    padding: 20px 30px;
    margin-bottom: 20px;
    margin-right: -25px;
}
.card-header-accent h3 { margin: 0; color: white; display: flex; align-items: center; gap: 10px; }
.card-header-accent p { color: rgba(255,255,255,0.8); margin: 5px 0 0 0; font-size: 0.9rem; }

/* Info Bits Grid */
.info-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}
.info-bit {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 0.95rem;
}
.bit-icon { font-size: 1.5rem; }

/* Alert Box */
.alert-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: 4px;
    color: #856404;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

/* Formula Box */
.formula-box {
    background: var(--solar-teal-dark);
    color: #ecf0f1;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}
.formula-box code { font-size: 1.2rem; display: block; margin-bottom: 10px; color: var(--solar-gold); }
.small-print { font-size: 0.85rem; opacity: 0.8; margin: 0 !important; color: #bdc3c7 !important; }

/* Accordion UI */
details {
    background: #f9f9f9;
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
}
summary {
    padding: 15px 20px;
    font-weight: 700;
    cursor: pointer;
    list-style: none; /* Hide default arrow */
    background: #f1f1f1;
    transition: background 0.2s;
}
summary:hover { background: #e9e9e9; }
.details-body { padding: 20px; border-top: 1px solid #ddd; background: white; }

/* Sidebar (Sticky Readiness Checklist) */
.sidebar-rail {
    display: block;
}

.sticky-widget-wrapper {
    position: sticky;
    top: 90px; /* Stick below the header */
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    padding: 20px;
}

.sidebar-header h4 { margin: 0 0 5px 0; color: var(--solar-dark); }
.sidebar-header p { font-size: 0.85rem; color: #777; margin-bottom: 15px; }

.full-width { width: 100%; text-align: center; box-sizing: border-box; }
.sidebar-cta { margin-top: 20px; text-align: center; border-top: 1px solid #eee; padding-top: 20px; }

/* DESKTOP LAYOUT (900px+) */
@media (min-width: 900px) {
    .main-grid-layout {
        flex-direction: row;
        align-items: flex-start;
    }
    .content-stream { flex: 2; }
    .sidebar-rail { flex: 1; min-width: 320px; }
    .info-grid-2 { grid-template-columns: 1fr 1fr; }
}

/* Hides default Divi Header & Footer on our Custom Page Template only */
.page-template-template-solar-initialization #main-header,
.page-template-template-solar-initialization #top-header,
.page-template-template-solar-initialization #main-footer {
    display: none !important;
}

/* Fix for Divi adding padding to the body */
.page-template-template-solar-initialization #page-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* =========================================
   FIX: STICKY SIDEBAR (Desktop)
   ========================================= */
/* Ensure parent containers don't block stickiness with overflow:hidden */
.solar-app-wrapper, .main-grid-layout {
    overflow: visible !important; 
}

/* The Sticky Rail itself */
.sidebar-rail {
    display: block;
    height: 100%; /* Important for tracking scroll */
}

.sticky-widget-wrapper {
    position: -webkit-sticky; /* Safari support */
    position: sticky;
    top: 100px; /* Gap from header */
    z-index: 10;
}


/* =========================================
   MOBILE HAMBURGER MENU
   ========================================= */
.mobile-menu-toggle {
    display: none; /* Hidden on Desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 2000;
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
}

.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    width: 30px;
    height: 3px;
    background-color: var(--solar-dark);
    border-radius: 4px;
    position: absolute;
    transition-property: transform;
    transition-duration: 0.15s;
    transition-timing-function: ease;
}

.hamburger-inner::before, .hamburger-inner::after {
    content: "";
    display: block;
}

.hamburger-inner::before { top: -10px; }
.hamburger-inner::after { bottom: -10px; }

/* Active State (X shape) */
.mobile-menu-toggle.is-active .hamburger-inner {
    background-color: transparent !important;
}
.mobile-menu-toggle.is-active .hamburger-inner::before {
    transform: translateY(10px) rotate(45deg);
}
.mobile-menu-toggle.is-active .hamburger-inner::after {
    transform: translateY(-10px) rotate(-45deg);
}

/* Mobile Menu Layout */
@media (max-width: 768px) {
    .mobile-menu-toggle { display: block; }

    .solar-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        border-bottom: 2px solid var(--solar-gold);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        
        /* Hidden State */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        padding: 20px 0;
    }

    .solar-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-list {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .nav-link {
        font-size: 1.1rem;
        display: block;
        padding: 10px;
    }
}

/* =========================================
   PAGE 3: OPTIMIZATION STYLES
   ========================================= */

/* Hero Variant */
.opt-hero {
    background: linear-gradient(135deg, var(--solar-teal-med) 0%, var(--solar-dark) 100%); /* Teal Med Theme */
    color: white;
    padding: 80px 20px 60px;
    text-align: center;
}
#opt-title {color: white;}
.phase-2 {
    background: rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.3);
}

/* Card Header Colors */
.accent-blue { background: #3498db; }
.accent-green { background: #27ae60; }
.accent-purple { background: #9b59b6; }

.widget-padding {
    padding: 10px 20px 30px; /* Space for the widget inside the card */
}

/* Sidebar CTA Card */
.sidebar-cta-card {
    text-align: center;
    background: #f8fcfb;
    border: 2px dashed #1abc9c;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.cta-icon { font-size: 2.5rem; margin-bottom: 10px; }
.sidebar-cta-card h4 { margin: 0 0 10px 0; color: var(--solar-dark); }
.sidebar-cta-card p { font-size: 0.9rem; color: #666; margin-bottom: 15px; line-height: 1.4; }

.sp-btn-outline.full-width {
    color: #1abc9c;
    border-color: #1abc9c;
    width: 100%;
    display: block;
}
.sp-btn-outline.full-width:hover {
    background: #1abc9c;
    color: white;
}

.cta-note { display: block; margin-top: 10px; color: #aaa; font-size: 0.75rem; text-transform: uppercase; }

/* Sidebar Divider */
.sidebar-divider {
    height: 1px;
    background: #eee;
    margin: 20px -25px 20px 0;
}

/* Sidebar Tips */
.sidebar-tips h4 { color: var(--solar-dark); margin-top: 0; }
.tip-list { padding-left: 20px; margin-bottom: 0; }
.tip-list li { margin-bottom: 12px; font-size: 0.9rem; color: #555; }
.tip-list li strong { color: #e67e22; }

/* Alert Box Variant */
.alert-box.info-mode {
    background: #e3f2fd;
    border-left-color: #2196f3;
    color: #0d47a1;
    margin-right: 5px;
}

/* Mobile Tweak for Widgets */
@media (max-width: 600px) {
    .widget-padding { padding: 10px; } /* Less padding on small screens */
}

/* Hides default Divi Header & Footer on our Custom Page Template only */
.page-template-template-solar-optimization #main-header,
.page-template-template-solar-optimization #top-header,
.page-template-template-solar-optimization #main-footer {
    display: none !important;
}

/* Fix for Divi adding padding to the body */
.page-template-template-solar-optimization #page-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* =========================================
   PAGE 3: ADDITIONAL CONTENT STYLES
   ========================================= */

/* Comparison Grid (Net Metering vs Buyback) */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.compare-box {
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.compare-box h4 { margin-top: 0; color: var(--solar-dark); font-size: 1.1rem; }
.compare-box p { font-size: 0.95rem; margin-bottom: 0; }

.compare-box.good { background: #eafaf1; border-left: 4px solid var(--solar-green); }
.compare-box.warn { background: #fff5e6; border-left: 4px solid #f39c12; }

/* Info Block spacing */
.info-block { margin-bottom: 30px; }
.info-block h3 { color: var(--solar-teal-dark); font-size: 1.4rem; }

/* Success Alert (Pro Tip) */
.alert-box.success-mode {
    background: #d4edda;
    border-left-color: #28a745;
    color: #155724;
    margin-right: 5px;
}

.accent-dark { background: var(--solar-teal-dark); }

/* Desktop Grid Expansion */
@media (min-width: 768px) {
    .comparison-grid { grid-template-columns: 1fr 1fr; }
}

/* =========================================
   PAGE 4: MAXIMIZATION STYLES
   ========================================= */

/* Hero Variant (Dark/Electric) */
.max-hero {
/*    background: linear-gradient(135deg, #2c3e50 0%, #000000 100%);*/
    background: linear-gradient(135deg, var(--solar-green-med) 0%, var(--solar-dark) 100%);
    color: white;
    padding: 80px 20px 60px;
    text-align: center;
}

.phase-3 {
    background: rgba(155, 89, 182, 0.2); /* Purple Tint */
    border-color: rgba(155, 89, 182, 0.4);
    color: #e0aaff;
}

.text-gradient {
    background: linear-gradient(to right, #f1c40f, #e67e22);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.accent-purple-dark { background: #8e44ad; }

/* Arbitrage Visual */
.arbitrage-visual {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: #fdfdfd;
    padding: 20px;
    border-radius: 8px;
    border: 1px dashed #ccc;
    margin: 20px -25px 20px 0;
    text-align: center;
}

.arb-icon { font-size: 2rem; display: block; margin-bottom: 5px; }
.arb-arrow { font-size: 1.5rem; color: #ccc; }
.arb-desc { display: block; font-size: 0.8rem; color: #888; margin-top: 5px; }

/* Tech Stack Grid */
.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 25px;
    margin-right: -25px;
}

.tech-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #eee;
    transition: transform 0.2s;
}
.tech-card:hover { transform: translateY(-3px); border-color: var(--solar-gold); }
.tech-icon { font-size: 2.5rem; margin-bottom: 10px; }
.tech-card h4 { margin: 0 0 10px 0; color: var(--solar-dark); font-size: 1rem; }
.tech-card p { font-size: 0.9rem; margin: 0; color: #666; }

/* Solar Window List */
.solar-window-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}
.solar-window-list li {
    background: #fff;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}
.sw-icon { font-size: 1.2rem; }

/* VPP Section (Grid Hero) */
.vpp-hero {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-right: -25px;
}
.vpp-badge {
    background: var(--solar-green);
    color: white;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
    display: inline-block;
}
.vpp-hero h3 { color: white; margin-top: 5px; }
.vpp-hero p { color: rgba(255,255,255,0.8); }

.vpp-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}
.vpp-stats .val { display: block; font-size: 1.2rem; font-weight: 700; color: var(--solar-gold); }
.vpp-stats .lbl { font-size: 0.8rem; opacity: 0.7; }

/* Community Solar Card */
.community-card {
    background: #fef9e7; /* Light Yellow */
    border: 2px dashed #f1c40f;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.compare-box.neutral { background: #fdfdfd; }

/* Hides default Divi Header & Footer on our Custom Page Template only */
.page-template-template-solar-maximization #main-header,
.page-template-template-solar-maximization #top-header,
.page-template-template-solar-maximization #main-footer {
    display: none !important;
}

/* Fix for Divi adding padding to the body */
.page-template-template-solar-maximization #page-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* --- RESOURCES PAGE --- */
.phase-complete { background: #27ae60; color: white; border: none; box-shadow: 0px 0px 10px 3px var(--solar-gold); }
.res-hero { background: var(--solar-green); color: white; padding: 60px 20px; text-align: center; }

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

.partner-card {
    background: white; border: 1px solid #eee; border-radius: 12px;
    padding: 30px; position: relative; box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    display: flex; flex-direction: column;
}

.p-badge {
    position: absolute; top: 20px; right: 20px;
    background: #f8f9fa; color: #7f8c8d; font-size: 0.7rem;
    padding: 4px 8px; border-radius: 4px; text-transform: uppercase; font-weight: 700;
}

.partner-card h3 { margin-top: 0; color: #2c3e50; }
.partner-card .sp-btn-primary, .partner-card .sp-btn-outline { margin-top: auto; }

.about-section { background: #f9f9f9; padding: 40px; border-radius: 12px; margin-bottom: 40px; }
.legal-block { font-size: 0.85rem; color: #7f8c8d; border-top: 1px solid #eee; padding-top: 20px; }
.legal-links a { color: #7f8c8d; margin-right: 15px; text-decoration: underline; }

/* --- DASHBOARD STYLES --- */
.dash-header { background: #f1c40f; color: #2c3e50; padding: 60px 20px 80px; text-align: center; }
.dash-card { background: white; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); overflow: hidden; margin-bottom: 20px; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 20px; }
.dash-card.large { grid-column: span 1; } 
@media(min-width:900px) { .dash-card.large { grid-column: span 2; } }

/* --- FOOTER MENU (Simple) --- */
.solar-footer-simple { background: #222; padding: 40px 20px; text-align: center; color: #777; margin-top: auto; }
.footer-nav-row { margin-bottom: 20px; }
.footer-nav-row a { color: #ccc; margin: 0 10px; text-decoration: none; font-size: 0.9rem; }
.footer-nav-row a:hover { color: white; }

/* --- MOBILE BOTTOM NAV (The "Pop-Up" Hamburger) --- */
@media (max-width: 768px) {
    .solar-footer-simple { padding-bottom: 80px; } /* Space for fixed bar */
    
    #mobile-bottom-nav {
        position: fixed; bottom: 0; left: 0; width: 100%;
        background: rgba(30, 30, 30, 0.95); backdrop-filter: blur(10px);
        border-top: 1px solid #444; padding: 10px 20px;
        display: flex; justify-content: space-between; align-items: center;
        z-index: 9999;
    }
    
    .mob-nav-trigger {
        background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer;
    }
    .mob-next-btn {
        background: #f1c40f; color: #2c3e50; padding: 8px 15px; border-radius: 20px;
        text-decoration: none; font-weight: 700; font-size: 0.9rem;
    }
    
    /* Pop-up Menu Layer */
    #mob-menu-layer {
        position: fixed; bottom: 60px; left: 10px; right: 10px;
        background: white; border-radius: 12px;
        box-shadow: 0 -5px 30px rgba(0,0,0,0.3);
        padding: 20px;
        display: none; z-index: 9998;
        transform: translateY(20px); transition: 0.3s; opacity: 0;
    }
    #mob-menu-layer.active { display: block; transform: translateY(0); opacity: 1; }
    #mob-menu-layer a { display: block; padding: 12px 0; border-bottom: 1px solid #eee; color: #333; text-decoration: none; font-weight: 600; }
}

@media(min-width:900px) {
    /* Pop-up Menu Layer */
    #mob-menu-layer {
       display:none !important;
    }
}

/* Hides default Divi Header & Footer on our Custom Page Template only */
.page-template-template-solar-dashboard #main-header,
.page-template-template-solar-dashboard #top-header,
.page-template-template-solar-dashboard #main-footer {
    display: none !important;
}

/* Fix for Divi adding padding to the body */
.page-template-template-solar-dashboard #page-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Hides default Divi Header & Footer on our Custom Page Template only */
.page-template-template-solar-resources #main-header,
.page-template-template-solar-resources #top-header,
.page-template-template-solar-resources #main-footer {
    display: none !important;
}

/* Fix for Divi adding padding to the body */
.page-template-template-solar-resources #page-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* =========================================
   DASHBOARD ACCORDION STYLES
   ========================================= */

.solar-accordion-wrapper {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border: 1px solid #eee;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item.active {
    box-shadow: 0 10px 25px rgba(241, 196, 15, 0.15); /* Solar Glow */
    border-color: var(--solar-gold);
}

.accordion-trigger {
    width: 100%;
    background: white;
    border: none;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}

.accordion-trigger:hover {
    background: #fcfcfc;
}

.accordion-item.active .accordion-trigger {
    background: #fffcf0; /* Very light yellow bg when active */
}

.acc-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--solar-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.acc-title i {
    color: var(--solar-gold);
    width: 24px; /* Fixed width for alignment */
    text-align: center;
}

.acc-icon {
    color: #ccc;
    transition: transform 0.3s ease;
}

.accordion-item.active .acc-icon {
    transform: rotate(180deg);
    color: var(--solar-dark);
}

/* Panel Animation */
.accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    background: white;
}

.panel-inner {
    padding: 0 20px 30px 20px;
    border-top: 1px solid #f0f0f0;
}

/* Override Widget Container Styles within Accordion */
.accordion-panel .spw-widget-container {
    border: none !important;
    box-shadow: none !important;
    padding: 20px 0 0 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

/* --- GLOBAL NAVIGATION STATES --- */
.journey-nav-hidden {
    display: none !important;
}

/* --- BOTTOM MOBILE NAV (Pop-Up) --- */
@media (max-width: 768px) {
    #mobile-bottom-nav {
        position: fixed; bottom: 0; left: 0; width: 100%;
        background: rgba(30, 30, 30, 0.98); 
        border-top: 1px solid #444; 
        padding: 12px 20px;
        display: flex; justify-content: space-between; align-items: center;
        z-index: 9999;
    }
    
    .mob-nav-trigger {
        background: none; border: none; color: white; font-size: 1.8rem; cursor: pointer; line-height: 1;
    }
    .mob-next-btn {
        background: #f1c40f; color: #2c3e50; padding: 10px 20px; border-radius: 50px;
        text-decoration: none; font-weight: 700; font-size: 0.9rem;
        box-shadow: 0 4px 10px rgba(241, 196, 15, 0.3);
    }
    
    /* Pop-up Menu Layer */
    #mob-menu-layer {
        position: fixed; bottom: 70px; left: 10px; right: 10px;
        background: white; border-radius: 12px;
        box-shadow: 0 -10px 40px rgba(0,0,0,0.4);
        padding: 10px 0;
        display: none; z-index: 9998;
        transform: translateY(20px); opacity: 0; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    #mob-menu-layer.active { display: block; transform: translateY(0); opacity: 1; }
    
    #mob-menu-layer a { 
        display: block; padding: 15px 20px; 
        border-bottom: 1px solid #f0f0f0; 
        color: #333; text-decoration: none; font-weight: 600; font-size: 1.1rem;
    }
    #mob-menu-layer a:last-child { border-bottom: none; }
}

@media(min-width: 900px) {
    #mobile-bottom-nav, #mob-menu-layer { display: none !important; }
}

/* Dashboard Tweaks */
.dash-card .spw-widget-container { border: none !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; }

/*.content-card#roof-intel{padding-right:0px !important;}*/

/* Utility Helpers */
.d-block { display: block; }
.text-sm { font-size: 0.85rem; }
.text-muted { color: #7f8c8d; line-height: 1.4; margin-top: 4px; }
.ordered { list-style: decimal; padding-left: 20px; }
.ordered li { margin-bottom: 10px; padding-left: 10px; }
.ordered li::before { content: none; } /* Remove custom checkmarks for ordered list */

/* =========================================
   3 PILLARS FEATURE BLOCK (Init Page)
   ========================================= */
.pillars-feature {
/*
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 12px;
*/
    padding: 25px;
    margin-bottom: 40px;
/*    box-shadow: 0 4px 10px rgba(0,0,0,0.02);*/
}

.pillars-feature h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--solar-dark);
}

.pillars-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 25px;
    display: block;
}

/* Placeholder glow effect while you wait for the image */
.placeholder-glow {
    min-height: 200px;
    background: #f0f0f0;
    border: 2px dashed #ddd;
}

.pillars-grid {
    display: grid;
    gap: 15px;
}

.pillar-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pillar-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: var(--solar-green);
}

.p-icon {
    font-size: 1.8rem;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.p-text strong { 
    display: block; 
    color: var(--solar-dark); 
    font-size: 1rem;
    line-height: 1.2;
}

.p-sub { 
    font-size: 0.85rem; 
    color: #7f8c8d; 
    display: block;
    margin-top: 2px;
}

/* Desktop: Make it a 3-column row */
@media(min-width: 768px) {
    .pillars-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .pillar-item {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }
    .p-icon { margin-bottom: 10px; width: auto; }
}

.congrats {
    text-align: center;
    font-size: 140%;
}

.about-content p{
    margin-bottom: 30px;
    font-size: 1.05rem;
}

/* =========================================
   THANK YOU NOTE (Collapsible)
   ========================================= */
.thank-you-section {
    margin: 40px 0;
}

.ty-details {
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Open State Styling */
.ty-details[open] {
    box-shadow: 0 10px 25px rgba(241, 196, 15, 0.15); /* Solar Glow */
    border-color: var(--solar-gold);
}

.ty-summary {
    list-style: none; /* Hides default triangle */
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    transition: background 0.2s;
}

.ty-summary:hover {
    background: #fdfdfd;
}

/* Remove default marker in some browsers */
.ty-summary::-webkit-details-marker { display: none; }

.ty-title {
    font-weight: 700;
    color: var(--solar-dark);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ty-icon {
    color: #ccc;
    transition: transform 0.3s ease;
}

/* Rotate Arrow when Open */
.ty-details[open] .ty-icon {
    transform: rotate(180deg);
    color: var(--solar-dark);
}

.ty-content {
    padding: 0 25px 25px 25px;
    color: #555;
    line-height: 1.6;
    border-top: 1px solid #f9f9f9;
    animation: fadeIn 0.4s ease;
}

.ty-sig {
    margin-top: 20px;
    font-weight: 700;
    color: var(--solar-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}