/********** Template CSS **********/
:root {
    --primary: #F6B21A;      /* Solar Gold */
    --secondary: #4CAF2F;   /* Leaf Green */
    --dark: #0F2A3D;        /* Energy Dark Blue */
    --light: #F7F9FB;       /* Soft Light */
}


.fw-medium {
    font-weight: 500 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-black {
    font-weight: 900 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
    color: #000;
    background: linear-gradient(45deg, var(--primary), #ffd65c);
    border: none;
}

.btn.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(246,178,26,0.45);
    transform: translateY(-2px);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand,
.navbar a.btn {
    /* height: 46px; */
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: var(--dark);
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/* Navbar branding */
.navbar {
    background: #ffffff !important;
    border-bottom: 4px solid var(--primary);
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--secondary) !important;
    font-weight: 700;
    border-bottom: 3px solid var(--primary);
}




/*** Header ***/

h1, h2 {
    position: relative;
}

h1::after, h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin-top: 10px;
}



.header-carousel .owl-dots {
    position: absolute;
    width: 60px;
    height: 100%;
    top: 0;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dots .owl-dot {
    position: relative;
    width: 45px;
    height: 45px;
    margin: 5px 0;
    background: #FFFFFF;
    box-shadow: 0 0 30px rgba(255, 255, 255, .9);
    border-radius: 45px;
    transition: .5s;
}

.header-carousel .owl-dots .owl-dot.active {
    width: 60px;
    height: 60px;
}

.header-carousel .owl-dots .owl-dot img {
    position: absolute;
    width: 100%;
    height: 100%;
    
    padding: 2px;
    border-radius: 45px;
    transition: .5s;
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .1)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/* ===== Carousel Height Control (Desktop + Mobile) ===== */
.header-carousel .owl-carousel-item {
    position: relative;
    height: 70vh;          /* Desktop height */
    min-height: 420px;
    overflow: hidden;
}

.header-carousel .owl-carousel-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    
}

/* Overlay */
.owl-carousel-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 40px 0;
    background: linear-gradient(
        to right,
        rgba(15,42,61,0.85),
        rgba(76,175,47,0.45)
    );
}

/* Mobile tuning */
@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        height: 50vh;
        min-height: 300px;
    }

    .header-carousel h1 {
        font-size: 26px;
    }

    .header-carousel p {
        font-size: 14px;
    }
}


/*** About ***/
@media (min-width: 992px) {
    .container.about {
        max-width: 100% !important;
    }

    .about-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .about-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .about-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Service ***/
/* === Service Images Same Size === */
.service-item img {
    width: 100%;
    height: 240px;        /* SAME HEIGHT FOR ALL */
    object-fit: cover;   /* Crops nicely, no distortion */
    display: block;
}

.service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    height: 100%;
}

.service-icon {
    position: relative;
    margin: 25px 0 25px 0;   /* remove negative margin */
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #FFFFFF;
    border-radius: 100px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: .5s;
}


 .service-item:hover .service-icon {
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}



/*** Quote ***/
@media (min-width: 992px) {
    .container.quote {
        max-width: 100% !important;
    }

    .quote-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .quote-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .quote-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Team ***/
.team-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.team-item img {
    border-radius: 8px 60px 0 0;
}

.team-item .team-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    background: #FFFFFF;
    transition: .5s;
}


/*** Contact ***/
@media (min-width: 992px) {
    .container.contact {
        max-width: 100% !important;
    }

    .contact-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .contact-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .contact-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    color: #9B9B9B;
    border: 1px solid #9B9B9B;
    border-radius: 38px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
    border-color: var(--light);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #9B9B9B;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: #FFFFFF;
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}




/* Increase navbar height */
.navbar {
    min-height: 110px;   /* increase height */
    padding-top: 0;
    padding-bottom: 0;
}

/* Logo size */
.site-logo {
    max-height: 105px;     /* make logo larger */
    width: auto;
    object-fit: contain;
}

/* Center logo vertically */
.navbar-brand {
    height: 110px;
    display: flex;
    align-items: center;
}


@media (max-width: 768px) {
    .navbar {
        min-height: 70px;
    }

    .site-logo {
        max-height: 55px;
    }

    .navbar-brand {
        height: 70px;
    }
}


.footer {
    background: #0b2233 !important;
}

.footer h5 {
    color: var(--primary);
}

.footer .btn.btn-social:hover {
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(246,178,26,0.6);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(246,178,26,0.25);
}

.back-to-top:hover {
    background: var(--secondary);
    color: #fff;
}


/* ===== Topbar Branding ===== */
.topbar {
    background: linear-gradient(90deg, #0F2A3D, #163b52); /* dark solar blue */
    color: #ffffff;
    font-size: 14px;
}

.topbar small {
    color: #e6f2f2;
}

/* Topbar icons */
.topbar .fa,
.topbar .fab {
    color: var(--secondary);   /* green icons */
}

/* Social buttons */
.topbar .btn-link {
    color: #ffffff;
    transition: 0.3s;
}

.topbar .btn-link:hover {
    color: var(--primary);    /* gold on hover */
    transform: translateY(-2px);
}

/* Divider border color */
.topbar .border-secondary {
    border-color: rgba(255,255,255,0.15) !important;
}



/* ===== Why Choose Us Equal Box Fix ===== */

.service-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-height: 260px;   /* adjust if needed */
    text-align: center;
}

/* Icon circle alignment */
.service-item .service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Keep text spacing consistent */
.service-item h5 {
    min-height: 48px;  /* keeps titles aligned */
}

.service-item p {
    min-height: 72px;  /* keeps description aligned */
}


.map-footer iframe {
    border-radius: 8px;
    filter: brightness(0.9);
}


/* ===== Solar Calculator Match Styling ===== */

.service-item input.form-control {
    border-radius: 6px;
}

.service-item hr {
    opacity: 0.15;
}

.service-item label {
    color: var(--dark);
}

.service-item .fa-calculator {
    color: var(--primary);
}


/* ===== Solar Calculator Visual Match ===== */

.calculator-card {
    max-width: 520px;
    margin: 0 auto;
    background: #ffffff;
}

/* Match service card depth */
.calculator-card {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

/* Input styling consistency */
.calculator-card input.form-control {
    border-radius: 8px;
    font-size: 16px;
}

/* Button prominence */
.calculator-card .btn {
    font-size: 16px;
    font-weight: 600;
}

/* Result spacing */
.calculator-card #result p {
    font-size: 15px;
}


/* ===== Solar Calculator UI Enhancements ===== */

.solar-calculator .service-item {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
    transition: all 0.35s ease;
}

.solar-calculator .service-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

/* Input focus */
.solar-calculator .form-control {
    border-radius: 12px;
    border: 1px solid #ddd;
}

.solar-calculator .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.15rem rgba(246,178,26,0.25);
}

/* Result box */
.solar-result {
    background: #f9fbfc;
    border-radius: 14px;
    padding: 18px;
    border-left: 5px solid var(--secondary);
}

/* Subsidy note */
.subsidy-note {
    background: rgba(76,175,47,0.08);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.6;
}

.subsidy-section h2 {
    text-shadow: 0 2px 8px rgba(0,0,0,0.6) !important;
}

/* Floating Calculator Button */
/* Floating Solar Calculator Button */
.solar-float-btn {
    position: fixed;
    right: 25px;
    bottom: 120px; /* ⬅ moved UP to avoid back-to-top */
    z-index: 9999;

    background: #f9b233;
    color: #000;
    border: none;
    padding: 14px 22px;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 0 15px rgba(249,178,51,0.7);
    animation: blinkPulse 1.5s infinite;
    cursor: pointer;
}


@keyframes blinkPulse {
    0% { box-shadow: 0 0 5px rgba(249,178,51,0.6); }
    50% { box-shadow: 0 0 25px rgba(249,178,51,1); }
    100% { box-shadow: 0 0 5px rgba(249,178,51,0.6); }
}


/* Modal Background */
.solar-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
}

/* Modal Box */
/* Modal Box */
.solar-modal-content {
    background: #fff;
    width: 95%;
    max-width: 520px; /* ⬅ increased width */
    margin: 6% auto;  /* ⬅ slightly higher */
    padding: 30px 35px; /* ⬅ more breathing space */
    border-radius: 14px;
    position: relative;
    animation: popupZoom 0.35s ease;
}


@keyframes popupZoom {
    from {
        transform: scale(0.85);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}


/* Close Button */
.solar-close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 26px;
    cursor: pointer;
}

.solar-modal-content .form-control {
    font-size: 16px;
}

.solar-modal-content p {
    margin-bottom: 8px;
}



/* Navbar CTA Button – refined */
.signup-btn {
    background: linear-gradient(135deg, #fbbf24, #f59e0b); /* solar yellow */
    color: #1f2937 !important; /* dark text */
    font-weight: 600;
    font-size: 14px;          /* smaller text */
    padding: 8px 18px;        /* smaller height & width */
    border-radius: 999px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

/* Hover effect */
.signup-btn:hover {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
}


#solarCalcBtn {
    font-size: 13px;
    animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(255,193,7,0.6);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(255,193,7,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255,193,7,0);
    }
}


/* Common navbar CTA button style */
.nav-cta-btn {
    height: 42px;
    min-width: 210px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

/* Solar Calculator Button Animation */
#solarCalcBtn {
    animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(255,193,7,0.6);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(255,193,7,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255,193,7,0);
    }
}



@media (max-width: 768px) {
    .consult-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .consult-tabs button {
        flex: 1;
        font-size: 13px;
    }

    .bill-options button {
        width: 100%;
        margin-bottom: 6px;
    }
}


.navbar .dropdown-menu {
    border-radius: 14px;
    padding: 8px 0;
}

.navbar .dropdown-item {
    font-weight: 500;
    padding: 10px 18px;
}

.navbar .dropdown-item:hover {
    background: #fef3c7;
    color: #92400e;
}


/* ================= NAVBAR CLEAN VERSION ================= */

/* Base Navbar */
.navbar {
    background: #ffffff !important;
    border-bottom: 4px solid var(--primary);
    padding: 0;
}

/* Logo */
.navbar-brand {
    display: flex;
    align-items: center;
    padding: 8px 16px;
}

.site-logo {
    max-height: 95px;
    width: auto;
}

/* Nav Links */
.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: var(--dark);
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--secondary) !important;
    font-weight: 700;
    border-bottom: 3px solid var(--primary);
}

/* ================= MOBILE FIX ================= */

@media (max-width: 991px) {

    .navbar {
        padding: 6px 0;
    }

    .navbar-brand {
        padding: 6px 16px;
    }

    .site-logo {
        max-height: 65px;
    }

    .navbar-nav {
        text-align: center;
        padding: 15px 0;
        gap: 12px !important;
    }

    .navbar .navbar-nav .nav-link {
        padding: 8px 0;
        margin-right: 0;
    }

    /* FIX BIG BUTTONS */
    .nav-cta-btn {
        width: 70% !important;
        min-width: unset !important;
        font-size: 13px !important;
        padding: 8px 14px !important;
        margin: 6px auto !important;
        display: block !important;
    }

}
