/********** Template CSS **********/
:root {
    --primary: #fb643b;
    --secondary: #001064;
    --light: #F6F7F8;
    --dark: #010A35;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    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 {
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover,
.btn.btn-secondary,
.btn.btn-outline-secondary:hover {
    color: #FFFFFF;
}

.btn.btn-primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

.btn.btn-secondary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.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 img {
    max-height: 60px;
}

.navbar .navbar-nav .nav-link {
    margin-left: 25px;
    padding: 10px 0;
    color: #696E77;
    font-weight: 400;
    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-brand img {
        max-height: 45px;
    }

    .navbar .navbar-nav {
        margin-top: 20px;
        margin-bottom: 15px;
    }

    .navbar .nav-item .dropdown-menu {
        padding-left: 30px;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        right: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(1, 10, 53, .35);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--dark);
    border: 12px solid var(--dark);
    border-radius: 3rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    background: linear-gradient(rgba(1, 10, 53, .35), rgba(1, 10, 53, .35)), url(../img/slider1.jpeg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item a,
.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.page-header .breadcrumb-item a:hover,
.page-header .breadcrumb-item.active {
    color: var(--primary);
}


/*** Facts ***/
.facts {
    background: rgba(1, 10, 53, .35);
}


/*** Quote ***/
@media (min-width: 992px) {
    .container.quote {
        max-width: 100% !important;
    }

    .container.quote .quote-text {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }

    .container.quote .quote-form {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .container.quote .quote-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }

    .container.quote .quote-form  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .container.quote .quote-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }

    .container.quote .quote-form  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}

.container.quote .quote-text {
    background: rgba(1, 10, 53, .35);
}

.container.quote .quote-form {
    background: transparent;
    min-height: 420px;
}
.container.quote .quote-form .quote-form-placeholder {
    display: none !important;
}

.container.quote .quote-text .h-100,
.container.quote .quote-form .h-100 {
    padding: 6rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/*** Service ***/
.service-item .service-icon {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-item .service-icon img {
    max-width: 60px;
    max-height: 60px;
}


/*** Team ***/
.team-item .team-img::before,
.team-item .team-img::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(1, 10, 53, .8);
    transition: .5s;
}

.team-item .team-img::after {
    left: auto;
    right: 0;
}

.team-item:hover .team-img::before,
.team-item:hover .team-img::after {
    width: 50%;
}

.team-item .team-img .team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
    z-index: 3;
    opacity: 0;
}

.team-item:hover .team-img .team-social {
    transition-delay: .3s;
    opacity: 1;
}


/*** Testimonial ***/
.animated.pulse {
    animation-duration: 1.5s;
}

.testimonial-left,
.testimonial-right {
    position: relative;
}

.testimonial-left img,
.testimonial-right img {
    position: absolute;
    border-radius: 70px;
}

.testimonial-left img:nth-child(1),
.testimonial-right img:nth-child(3) {
    width: 70px;
    height: 70px;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-left img:nth-child(2),
.testimonial-right img:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
}

.testimonial-left img:nth-child(3),
.testimonial-right img:nth-child(1) {
    width: 50px;
    height: 50px;
    bottom: 10%;
    right: 10%;
}

.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
    border-radius: 100px;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--secondary);
}


/*** Footer ***/
.footer {
    color: #7F8499;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #7F8499;
    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;
    color: #7F8499;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .btn.btn-square {
    color: #7F8499;
    border: 1px solid #7F8499;
}

.footer .btn.btn-square:hover {
    color: var(--light);
    border-color: var(--primary);
}

.footer .copyright {
    padding: 25px 0;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--primary);
}

.footer .copyright a:hover {
    color: #FFFFFF;
}
/*** WhatsApp float ***/
.whatsapp-float {
    position: fixed;
    right: 30px;
    bottom: 100px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: #fff !important;
    border-radius: 50%;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    font-size: 28px;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
    color: #fff !important;
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}


/*** Clearer hero/quote overlays - keep white text readable ***/
.carousel-caption h1,
.carousel-caption p {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}


/*** Hero Get Direction (stacked under Contact Us) ***/
.carousel-caption .btn.btn-primary.animated.slideInDown {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
/* Match sitewide Get Quote (.get-quote-contact): navy #001064, white bold */
.carousel-caption .hero-get-direction {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    background: #001064 !important;
    border-color: #001064 !important;
    color: #fff !important;
    font-weight: 700;
}
.carousel-caption .hero-get-direction:hover,
.carousel-caption .hero-get-direction:focus {
    background: #001064 !important;
    border-color: #001064 !important;
    color: #fff !important;
    opacity: 0.92;
}

/* Hide unused quote-form white card so PCB image stays clear */
.container.quote .quote-form .bg-white {
    display: none !important;
}


.product-card-image-link {
    display: block;
    line-height: 0;
}
.product-card-image-link img {
    cursor: pointer;
}


/* Sitewide Get Quote pair - bottom-left, clear of WhatsApp float (bottom-right) */
.get-quote-sitewide {
    position: fixed !important;
    left: max(20px, env(safe-area-inset-left, 0px)) !important;
    right: auto !important;
    bottom: max(24px, env(safe-area-inset-bottom, 0px)) !important;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    max-width: calc(100vw - 100px);
    width: max-content;
    box-sizing: border-box;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible;
    inset-inline-start: max(20px, env(safe-area-inset-left, 0px)) !important;
}
.get-quote-sitewide a {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
    color: #fff !important;
    white-space: nowrap;
    box-sizing: border-box;
}
.get-quote-sitewide .get-quote-contact {
    background: #001064;
}
.get-quote-sitewide .get-quote-whatsapp {
    background: #25D366;
}
.get-quote-sitewide a:hover {
    opacity: .92;
    color: #fff !important;
}
@media (max-width: 576px) {
    .get-quote-sitewide {
        left: max(16px, env(safe-area-inset-left, 0px)) !important;
        inset-inline-start: max(16px, env(safe-area-inset-left, 0px)) !important;
        bottom: max(90px, env(safe-area-inset-bottom, 0px)) !important;
        max-width: calc(100vw - 88px);
    }
    .get-quote-sitewide a {
        padding: 8px 12px;
        font-size: 13px;
    }
}
.product-info-section h5 {
    font-size: 1rem;
    font-weight: 700;
}
.product-buttons .btn.custom-btn {
    margin: 4px 6px 4px 0;
}


/* How We Work */
.how-we-work-section {
    background: linear-gradient(180deg, #f7f8fc 0%, #ffffff 100%);
}
.how-step {
    height: 100%;
    padding: 1.5rem 1.25rem;
    border-top: 3px solid #fb643b;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 16, 100, 0.06);
}
.how-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 0.85rem;
    border-radius: 50%;
    background: #001064;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}
.how-step h5 {
    color: #001064;
    font-weight: 700;
}
.how-step p {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Google Reviews */
.google-reviews-section {
    background: #fff;
}
.google-rating-badge {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.75rem;
}
.google-rating-score {
    font-size: 2rem;
    font-weight: 800;
    color: #001064;
    line-height: 1;
}

.google-rating-count {
    color: #555;
    font-size: 0.95rem;
}
.google-review-card {
    height: 100%;
    padding: 1.35rem 1.25rem;
    background: #f7f8fc;
    border-left: 4px solid #001064;
}
.google-review-quote {
    color: #222;
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1rem;
    min-height: 6.5rem;
}
.google-review-author {
    font-weight: 700;
    color: #001064;
    font-size: 0.95rem;
}
.google-review-source {
    font-size: 0.8rem;
    color: #777;
}
.google-reviews-cta-inner {
    background: linear-gradient(90deg, rgba(0,16,100,0.06), rgba(251,100,59,0.08));
    border: 1px solid rgba(0,16,100,0.08);
}
@media (max-width: 767.98px) {
    .google-review-quote { min-height: 0; }
    .how-step { margin-bottom: 0.25rem; }
}


/* Product cards - mobile polish + lazy images */
.product-card-image-link {
    overflow: hidden;
    background: #f3f4f8;
}
.product-card-img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: #f3f4f8;
}
@media (max-width: 576px) {
    .product-card-img { height: 180px; }
    .product-card-meta .h5 { font-size: 1rem; }
}
/* Zoom container mobile */
@media (max-width: 576px) {
    .zoom-container img.carousel-img {
        max-height: min(50vh, 380px);
    }
}

.google-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    line-height: 1;
    vertical-align: middle;
    visibility: visible !important;
}
.google-stars .gstar {
    display: inline-block !important;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    visibility: visible !important;
    opacity: 1 !important;
}
.google-stars .gstar path {
    fill: #fbbc04 !important;
}
.google-stars .fa-star,
.google-stars .fas {
    color: #fbbc04;
    font-size: 1em;
    visibility: visible !important;
}
/* Keep review stars visible even while parent WOW animation is pending */
.google-reviews-section .google-stars,
.google-reviews-section .google-stars * {
    visibility: visible !important;
}
