/* ==========================================================================
   1. Theme Variables & Base Layout Rules
   ========================================================================== */
:root {
    --ms-primary: #0d6efd;
    --ms-yellow: #F9F55D;
    --ms-dark: #1e293b;
    --ms-light-gray: #f8f9fa;
}

.dropdown-menu .dropdown-item {
    font-weight: 600;
    color: #334155;
    transition: all 0.2s ease;
}

.dropdown-menu .dropdown-item:hover {
    background-color: rgba(13, 110, 253, 0.05);
    color: #0d6efd;
    transform: translateX(3px);
}

.footer-link {
    transition: color 0.25s ease, transform 0.25s ease;
    display: inline-block;
}

.footer-link:hover {
    color: #F9F55D !important; /* Matches bootstrap text-warning accent color */
    transform: translateX(4px);
}

.tracking-wider {
    letter-spacing: 1px;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--ms-dark);
    overflow-x: hidden;
}

/* Custom Text Utilities */
.ls-1 { letter-spacing: 1px; }
.ls-2 { letter-spacing: 2px; }
.bg-ms-light-gray { background-color: var(--ms-light-gray) !important; }
.text-ms-yellow { color: var(--ms-yellow) !important; }
.text-ms-dark { color: var(--ms-dark) !important; }

/* Sticky Navigation Overrides */
.navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    padding: 15px 0;
}

.navbar-nav .nav-link {
    color: #334155 !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--ms-primary) !important;
}

/* Custom Buttons */
.btn-ms-yellow {
    background-color: var(--ms-yellow);
    color: #111;
    font-weight: 700;
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-ms-yellow:hover {
    background-color: #e0a800;
    color: #111;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

/* Floating WhatsApp Link Component */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: #20ba5a;
}

/* ==========================================================================
   2. Interactive Hero Banner Slider (Crossfade Panels)
   ========================================================================== */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    width: 100%;
    background-color: #000;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: 1;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Ken Burns Zoom Animation */
.hero-slide.active .hero-bg-img {
    transform: scale(1.1);
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 6s ease-in-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.4) 100%);
    z-index: 3;
}

.hero-content-wrapper {
    position: relative;
    z-index: 4;
    height: 100%;
    display: flex;
    align-items: center;
}

/* ==========================================================================
   3. Modern Bento Grid Box Blocks
   ========================================================================== */
/* --- Mobile First Styles (Up to 767px) --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    grid-template-rows: repeat(3, 160px);  /* Shorter, flexible rows for mobile sizing */
    gap: 12px;
}

.grid-item {
    display: block;
    border-radius: 20px; /* Slightly tighter radius looks better on mobile */
    overflow: hidden;
    position: relative;
    text-decoration: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

/* Mobile positioning to keep everything fitting in 3 rows total */
.item-lg {
    grid-column: span 2;
    grid-row: span 2; /* Smart Solar takes the top half entirely */
}

.item-tall {
    grid-row: span 1; /* Fits normally in the bottom row on mobile */
}

.grid-item:hover {
    transform: scale(1.01);
}

.swiper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 15px; /* Tighter padding for small screens */
    width: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    color: #fff !important;
    z-index: 2;
    pointer-events: none;
}

/* --- Desktop Styles (768px and up) --- */
@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 320px);
        gap: 15px;
    }

    .slide-overlay {
        padding: 30px;
    }

    .item-lg {
        grid-column: span 2;
        grid-row: span 2;
    }

    .item-tall {
        grid-row: span 2;
    }
}

/* ==========================================================================
   4. Selection Filter Tabs & Range Cards
   ========================================================================== */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
    white-space: nowrap;
}

.filter-btn {
    white-space: nowrap;
    transition: all 0.3s ease;
}

.range-card {
    background: #ffffff;
    border-radius: 1.25rem !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: visible; /* Allows commercial design tags to stick out */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.range-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.12) !important;
}

.popular-border {
    border: 2px solid var(--ms-primary) !important;
}

.price-tag {
    font-size: 1.5rem;
}

/* ==========================================================================
   5. Net Metering & Global Authorized Partners Layouts
   ========================================================================== */
.net-metering-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #0d6efd 100%);
    color: #ffffff;
    padding: 4rem;
    border-radius: 2rem;
    position: relative;
    overflow: hidden;
}

.net-metering-section .opacity-10 {
    opacity: 0.1;
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
}

.partner-section {
    padding: 5rem 0;
    background-color: #ffffff;
}

.partner-logo-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    border: 1px solid #edf2f7;
    transition: all 0.3s ease;
}

.partner-logo-card:hover {
    transform: translateY(-5px);
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.partner-logo-card img {
    max-width: 100%;
    object-fit: contain;
}

.trust-line {
    width: 60px;
    height: 3px;
    background-color: var(--ms-primary);
    margin: 1rem auto 1.5rem auto;
}

/* ==========================================================================
   6. Execution Workflow Icons
   ========================================================================== */
.icon-box {
    width: 80px;
    height: 80px;
    background-color: #ffffff;
    color: var(--ms-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   7. Recent Installations Portfolio Grid (Slick Slider)
   ========================================================================== */
.project-section {
    background-color: var(--ms-dark);
    padding: 5rem 0;
}

.project-card {
    background: #243146;
    border-radius: 1.25rem;
    overflow: hidden;
    margin: 0 12px; /* Gaps slider boxes perfectly */
    color: #ffffff;
}

.project-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--ms-yellow);
    color: #111;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    letter-spacing: 1px;
    z-index: 2;
}

.project-content {
    padding: 1.5rem;
}

.project-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.stat-item {
    color: var(--ms-yellow);
}

/* Slick Carousel Dots Stylings */
.slick-dots {
    bottom: -35px !important;
}

.slick-dots li button:before {
    color: #ffffff !important;
    font-size: 10px !important;
    opacity: 0.25;
}

.slick-dots li.slick-active button:before {
    color: var(--ms-yellow) !important;
    opacity: 1;
}

/* ==========================================================================
   8. FAQ Accordion Modules
   ========================================================================== */
.faq-section {
    padding: 5rem 0;
    background-color: var(--ms-light-gray);
}

.faq-sidebar {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    padding: 2.5rem;
    border-radius: 1.5rem;
    height: 100%;
}

.faq-section .accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 1rem !important;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.faq-section .accordion-button {
    font-weight: 600;
    padding: 1.25rem;
    color: var(--ms-dark);
    background-color: #ffffff;
}

.faq-section .accordion-button:not(.collapsed) {
    background-color: rgba(13, 110, 253, 0.05);
    color: var(--ms-primary);
    box-shadow: none;
}

/* ==========================================================================
   9. Lead Generation Engine (Consultation & Calculator Form)
   ========================================================================== */
.quote-section {
    padding: 5rem 0;
    background-color: #ffffff;
}

.quote-container {
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.quote-info-card {
    background-color: var(--ms-dark);
    color: #ffffff;
    padding: 4rem;
    display: flex;
    flex-direction: column;
}

.quote-form-area {
    background-color: #ffffff;
    padding: 4rem;
}

.quote-form-area .form-control,
.quote-form-area .form-select {
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background-color: #f8fafc;
}

.quote-form-area .form-control:focus,
.quote-form-area .form-select:focus {
    border-color: var(--ms-primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

/* Custom Inline Bill Range Radio Selectors */
.bill-range-selector {
    display: flex;
    gap: 10px;
    margin-top: 0.5rem;
}

.bill-btn {
    flex: 1;
    text-align: center;
    border: 2px solid #e2e8f0;
    padding: 0.75rem;
    border-radius: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.bill-btn:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

.btn-check:checked + .bill-btn {
    border-color: var(--ms-primary);
    background-color: rgba(13, 110, 253, 0.05);
    color: var(--ms-primary);
}

/* ==========================================================================
   10. Footer Blueprint Blocks
   ========================================================================== */
footer {
    background-color: #0f172a;
    color: #ffffff;
    padding: 80px 0 30px 0;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   11. Media Queries (Responsive Grid Mechanics)
   ========================================================================== */
@media (max-width: 991px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .item-lg {
        grid-column: span 2;
        height: 400px;
    }

    .item-tall {
        height: 350px;
    }

    .net-metering-section, 
    .quote-info-card, 
    .quote-form-area {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    #rangeToggles {
        padding: 0 1rem;
    }
}

@media (max-width: 576px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .item-lg,
    .item-tall {
        grid-column: span 1;
        height: 300px;
    }
    
    .bill-range-selector {
        flex-direction: column;
        gap: 5px;
    }
}