/********** Radiance LPG — Solartec Theme (Primary: #E65C00 Orange-Red) **********/
:root {
    --primary: #E65C00;
    --primary-light: #FF7A2F;
    --primary-dark: #C04E00;
    --light: #F6F7F8;
    --dark: #1A2A36;
}

.fw-medium { font-weight: 500 !important; }
.fw-bold   { font-weight: 700 !important; }
.fw-black  { font-weight: 900 !important; }

/*** Back to Top ***/
.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;
}

/*** Colour utilities — orange-red overrides ***/
.text-primary  { color: var(--primary) !important; }
.bg-primary    { background-color: var(--primary) !important; }
.btn-primary   { background-color: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background-color: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background-color: var(--primary); border-color: var(--primary); color: #fff; }

/*** Button ***/
.btn { font-weight: 500; transition: .5s; }
.btn.btn-primary,
.btn.btn-outline-primary:hover { color: #FFFFFF; }

.btn-square    { width: 38px; height: 38px; flex-shrink: 0 !important; }
.btn-sm-square { width: 32px; height: 32px; flex-shrink: 0 !important; }
.btn-lg-square { width: 48px; height: 48px; flex-shrink: 0 !important; }
.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: 75px; }

.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; opacity: 1; }
}

/*** Topbar ***/
.topbar-phone, .topbar-email { font-size: 0.85rem; }

/*** Header / Carousel ***/
.owl-carousel-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, .45);
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item { position: relative; min-height: 500px; }
    .header-carousel .owl-carousel-item img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
    .header-carousel .owl-carousel-item p { font-size: 16px !important; }
}

.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;
    z-index: 10;
}
.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%;
    object-fit: cover;
    padding: 2px;
    border-radius: 45px;
    transition: .5s;
}

/* Header Carousel Navigation Arrows styling */
.header-carousel .owl-nav {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 50px;
    pointer-events: none;
    z-index: 12;
}
.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    color: #FFFFFF !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    pointer-events: auto;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}
.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #FFFFFF !important;
    transform: scale(1.08) !important;
}

/*** Page Header Banner ***/
.page-header {
    background: linear-gradient(rgba(26,42,54,.85), rgba(26,42,54,.85)), url(../Assets/radiance\ images/Gasplant1.jpeg) center center no-repeat;
    background-size: cover;
    padding: 90px 0;
}
.breadcrumb-item + .breadcrumb-item::before { color: var(--light); }

/*** About Full-Width Split ***/
@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); } }

/*** Feature Full-Width Split ***/
@media (min-width: 992px)  { .container.feature { max-width: 100% !important; } .feature-text { padding-left: calc(((100% - 960px)  / 2) + .75rem); } }
@media (min-width: 1200px) { .feature-text { padding-left: calc(((100% - 1140px) / 2) + .75rem); } }
@media (min-width: 1400px) { .feature-text { padding-left: calc(((100% - 1320px) / 2) + .75rem); } }

/*** Quote Full-Width Split ***/
@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); } }

/*** Contact Full-Width Split ***/
@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); } }

/*** Service Cards ***/
.service-item { box-shadow: 0 0 45px rgba(0,0,0,.08); }
.service-icon {
    position: relative;
    margin: -50px 0 25px 0;
    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: var(--primary); }

/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute; content: "";
    top: 0; left: 0; height: 100%; width: 0;
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    z-index: 1;
}
.testimonial-carousel::after {
    position: absolute; content: "";
    top: 0; right: 0; height: 100%; width: 0;
    background: linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    z-index: 1;
}
@media (min-width: 768px) { .testimonial-carousel::before, .testimonial-carousel::after { width: 200px; } }
@media (min-width: 992px) { .testimonial-carousel::before, .testimonial-carousel::after { width: 300px; } }
.testimonial-carousel .owl-nav { position: absolute; width: 350px; top: 20px; left: 50%; transform: translateX(-50%); display: flex; justify-content: space-between; opacity: 0; transition: .5s; z-index: 1; }
.testimonial-carousel:hover .owl-nav { width: 300px; opacity: 1; }
.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next { position: relative; color: var(--primary); font-size: 45px; transition: .5s; }
.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover { color: var(--dark); }
.testimonial-carousel .testimonial-img img { width: 100px; height: 100px; }
.testimonial-carousel .testimonial-img .btn-square { position: absolute; bottom: -19px; left: 50%; transform: translateX(-50%); }
.testimonial-carousel .owl-item .testimonial-text { margin-bottom: 30px; box-shadow: 0 0 45px rgba(0,0,0,.08); transform: scale(.8); transition: .5s; }
.testimonial-carousel .owl-item.center .testimonial-text { transform: scale(1); }

/*** 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); }

/*** CTA Band ***/
.cta-band { background: var(--primary); }
.cta-band h2, .cta-band p { color: #fff; }

/*** Mobile Fixes ***/
@media (max-width: 576px) {
    .page-header { padding: 60px 0; }
    .page-header h1 { font-size: 2.2rem !important; }
    .back-to-top { right: 20px; bottom: 20px; }
}

/* ==========================================
   Responsive Enhancements for Mobile Views 
   ========================================== */

/* General Overflow Prevention */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Navbar Brand & Logo Adjustments on Mobile */
@media (max-width: 991.98px) {
    .navbar .navbar-brand {
        border-right: none !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}
@media (max-width: 576px) {
    .navbar .navbar-brand img {
        height: 45px !important;
    }
}

/* Hero Carousel Sizing and Dots Fixes */
@media (max-width: 768px) {
    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }
    .header-carousel .owl-dots {
        position: absolute !important;
        width: 100% !important;
        height: auto !important;
        bottom: 30px !important;
        top: auto !important;
        right: 0 !important;
        left: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 10 !important;
    }
    .header-carousel .owl-dots .owl-dot {
        width: 10px !important;
        height: 10px !important;
        margin: 0 5px !important;
        background: rgba(255, 255, 255, 0.4) !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 50% !important;
        transition: .3s !important;
    }
    .header-carousel .owl-dots .owl-dot.active {
        background: var(--primary) !important;
        width: 10px !important;
        height: 10px !important;
    }
    .header-carousel .owl-dots .owl-dot img {
        display: none !important;
    }
    .header-carousel .owl-nav {
        display: none !important;
    }
    .header-carousel .owl-carousel-item h1 {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }
    .header-carousel .owl-carousel-item h6 {
        font-size: 0.9rem !important;
    }
    .header-carousel .owl-carousel-item p {
        font-size: 14px !important;
        margin-bottom: 1.5rem !important;
    }
}
@media (max-width: 576px) {
    .header-carousel .owl-carousel-item h1 {
        font-size: 1.8rem !important;
    }
    .header-carousel .owl-carousel-item h6 {
        font-size: 0.8rem !important;
    }
    .header-carousel .owl-carousel-item p {
        font-size: 13px !important;
        margin-bottom: 1rem !important;
    }
    .header-carousel .owl-carousel-item .btn {
        padding: 8px 18px !important;
        font-size: 13px !important;
    }
}

/* Certifications Gallery Card Images */
.cert-img-container {
    height: 380px;
    overflow: hidden;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 576px) {
    .cert-img-container {
        height: 280px;
    }
}

/* Grid & Column spacing adjustments on mobile */
@media (max-width: 576px) {
    .row {
        --bs-gutter-x: 1rem !important;
    }
}

/* Force uniform visual sizing for FA icons inside circles */
.btn-lg-square i {
    font-size: 1.25rem !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
    display: inline-block !important;
}

/* Responsive Enhancements for Mobile Viewports */
@media (max-width: 768px) {
    /* 1. Entire Footer Center Aligned */
    .footer {
        text-align: center !important;
    }
    .footer .row.g-5 {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    .footer [class^="col-"] {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        margin-bottom: 30px !important;
    }
    .footer [class^="col-"]:last-child {
        margin-bottom: 0 !important;
    }
    .footer .d-flex {
        justify-content: center !important;
    }
    .footer .btn.btn-link {
        text-align: center !important;
        margin-inline: auto !important;
    }
    .footer .copyright .row {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 15px !important;
    }
    .footer .copyright .text-md-start,
    .footer .copyright .text-md-end {
        text-align: center !important;
    }

    /* 2. Distance Between Buttons in CTA Band */
    .cta-band .btn:first-child,
    .cta-band .btn.me-3 {
        margin-bottom: 15px !important;
        margin-right: 0 !important; /* Stacked layout clear */
    }

    /* 3. Center Counters Strip */
    .counters-section .col-md-6,
    .counters-section .col-lg-3 {
        margin-bottom: 30px !important;
    }
    .counters-section .col-md-6:last-child,
    .counters-section .col-lg-3:last-child {
        margin-bottom: 0 !important;
    }
}

.counters-badge-wrap {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

/* Custom nested sub-dropdown menu for Bootstrap */
.dropdown-submenu {
    position: relative;
}

/* Common toggle layout */
.dropdown-submenu > .dropdown-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 1.5rem !important;
}

.dropdown-submenu > .dropdown-toggle::after {
    display: inline-block !important;
    content: "" !important;
    width: 6px !important;
    height: 6px !important;
    border-top: 2px solid currentColor !important;
    border-right: 2px solid currentColor !important;
    margin-left: auto !important;
    border-left: 0 !important;
    border-bottom: 0 !important;
    float: none !important;
    margin-top: 0 !important;
    transition: transform 0.2s ease !important;
}

/* Desktop Viewports (Screen width >= 992px) - Elegant Left-opening flyout */
@media (min-width: 992px) {
    .dropdown-submenu .dropdown-menu {
        position: absolute !important;
        top: 0 !important;
        left: auto !important;
        right: 100% !important; /* Open to the left so it stays on screen! */
        margin-top: -1px !important;
        margin-right: 4px !important;
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: none !important;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    }
    .dropdown-submenu:hover > .dropdown-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    .dropdown-submenu > .dropdown-toggle::after {
        transform: rotate(45deg) !important; /* Points right (>) to look correct */
    }
}

/* Mobile & Tablet Viewports (Screen width < 992px) - Clean inline accordion expander */
@media (max-width: 991.98px) {
    .dropdown-submenu .dropdown-menu {
        position: static !important;
        float: none !important;
        display: block !important; /* Statically expanded under parent */
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none !important;
        border: none !important;
        background-color: rgba(0, 0, 0, 0.02) !important;
        padding-left: 1.25rem !important; /* Indent sub-items to show visual nesting */
        margin: 5px 0 !important;
    }
    .dropdown-submenu > .dropdown-toggle::after {
        transform: rotate(135deg) !important; /* Points down (v) to match vertical expansion */
    }
}


/* Blink twice animation to highlight scrolled category listing */
@keyframes blink-twice {
    0%, 100% {
        opacity: 1;
        outline: none;
        box-shadow: 0 0 45px rgba(0,0,0,.08);
    }
    25%, 75% {
        opacity: 0.25;
        outline: 3px solid var(--primary);
        box-shadow: 0 0 25px var(--primary);
    }
    50% {
        opacity: 1;
        outline: none;
        box-shadow: 0 0 45px rgba(0,0,0,.08);
    }
}
.blink-highlight {
    animation: blink-twice 1.2s ease-in-out 2 !important;
    border-radius: var(--radius-lg, 8px) !important;
}
