/* =========================================================
   GENERAL HEADER STYLES
========================================================= */

html,
body {
    overflow-x: hidden;
    width: 100%;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.top-bar {
    background: #000;
}

.brand-text {
    color: #e31e24;
}

.navbar {
    background: #fff;
    z-index: 1050;
    position: relative;
}

.brand-logo-img {
    max-height: 70px;
}

/* =========================================================
   NAV LINKS
========================================================= */

.navbar-nav .nav-link {
    font-weight: 600;
    color: #111;
    transition: 0.3s;
}

.navbar-nav .nav-link:hover {
    color: #e31e24;
}

/* =========================================================
   DROPDOWN COMMON STYLES
========================================================= */

.custom-dropdown {
    border: none;
    border-radius: 12px;
    border-top: 4px solid #dc3545;
    background: #fff;
}

/* Dropdown Links */

.custom-dropdown .dropdown-item {
    font-size: 14px;
    color: #495057;
    white-space: normal;
    transition: 0.2s ease;
    padding: 8px 12px;
    border-radius: 6px;
}

.custom-dropdown .dropdown-item:hover {
    background-color: #fff5f5;
    color: #dc3545;
    padding-left: 20px !important;
}

/* Scrollbar */

.custom-dropdown::-webkit-scrollbar {
    width: 5px;
}

.custom-dropdown::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* =========================================================
   DESKTOP DROPDOWN
========================================================= */

@media (min-width: 992px) {

    .products-hover-menu {
        position: relative;
    }

    .products-hover-menu:hover .custom-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
        background-color: white;
        border-top: 5px solid #dc3545;
    }

    .custom-dropdown {
        display: block;
        opacity: 0;
        visibility: hidden;

        position: absolute;

        left: 50%;
        transform: translateX(-50%) translateY(10px);

        width: 800px;
        margin-top: 10px;

        transition: all 0.3s ease;

        z-index: 1000;

        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }
}

/* =========================================================
   MOBILE & TABLET DROPDOWN
========================================================= */

@media (max-width: 991px) {

    .navbar-collapse {
        overflow-x: hidden !important;
    }

    .navbar-nav {
        width: 100%;
    }

    .products-hover-menu {
        width: 100%;
    }

    .custom-dropdown {

        width: 100% !important;
        max-width: 100% !important;

        position: static !important;

        left: 0 !important;
        right: 0 !important;

        transform: none !important;

        margin-top: 10px !important;

        padding: 15px !important;

        box-sizing: border-box;

        box-shadow: none;

        overflow-x: hidden;

        overflow-y: auto;

        max-height: 400px;
    }

    .custom-dropdown .row {
        width: 100% !important;
        margin: 0 !important;
    }

    .custom-dropdown .col-md-4 {
        width: 100%;
        margin-bottom: 20px;
        border-bottom: 1px solid #eee;
        padding-bottom: 15px;
    }

    .custom-dropdown .dropdown-item {
        padding-left: 0 !important;
    }

    .custom-dropdown .dropdown-item:hover {
        padding-left: 10px !important;
    }
}

/* Home Banner */
[data-aos="fade-up"] {
    transition-duration: 1s;
    transition-property: opacity, transform;
}

/* expertise section home page */
.card {
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;

}

.card:not(.bg-dark)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(0, 0, 0, 0.5); */
    z-index: 1;
}

.bg-img-manhole {
    background-image: url('assets/images/Concrete-Manhole-Cover.webp');
}

.bg-img-kerb {
    background-image: url('assets/images/kerbstone.webp');
}

.bg-img-drain {
    background-image: url('assets/images/drainage.webp');
}

/* Quality section home */
.feature-card {
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-15px);
    background: #212529 !important;
    color: white !important;
}

.feature-card:hover h5,
.feature-card:hover p {
    color: white !important;
}

.feature-card:hover .icon-box {
    background: #dc3545 !important;
    color: white !important;
}

/* Icon Box Style */
.icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

/* Button Hover Effect */
.btn-danger:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

/* our products home page */
.card img {
    height: 360px;
    object-fit: cover;
    border-radius: 8px;
}

.card {
    /* background-color: #ffffff !important; */
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

/* valuable customers */
.client-logo {
    max-height: 80px;
    width: auto;
    margin: 0 auto;
    display: block;
    transition: 0.3s;
}

.client-logo:hover {
    filter: grayscale(0%);
}

.carousel-item .row {
    padding: 20px 0;
}

/* testimonial */
.italic {
    font-style: italic;
    color: #555;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    padding: 15px;
}

.bg-white {
    background-color: #ffffff !important;
}

/* footer */
footer {
    border-top: 5px solid #dc3545;
}

footer a:hover {
    color: #dc3545 !important;
    transition: 0.3s;
}

.dropdown-menu {
    background-color: #212529;
    border: 1px solid #444;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    width: 330px;
}

.dropdown {
    position: relative;
}

.dropdown:hover .dropdown-menu {
    display: block;
    top: 50px;
    left: 100%;
    margin-left: -140px;
}

.dropdown-header {
    padding: 10px 15px 5px;
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .dropdown:hover .dropdown-menu {
        left: 0;
        top: 100%;
        margin-left: 0;
    }
}

/* floating icons */

/* 1. WhatsApp Floating Button */
.float-whatsapp {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.float-whatsapp:hover {
    transform: scale(1.1);
    color: #fff;
}

/* 2. Google Review Floating Button */
.float-review {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 110px;
    right: 40px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.float-review img {
    width: 30px;
    height: 30px;
}

.float-review:hover {
    transform: scale(1.1);
}

/* 3. Phone Floating Button (Left side) */
.dock-left {
    position: fixed;
    left: 20px;
    bottom: 40px;
    z-index: 1000;
}

.node-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #dc3545;
    /* Brand color */
    color: white;
    border-radius: 50%;
    font-size: 24px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.node-phone:hover {
    transform: scale(1.1);
    background-color: #bb2d3b;
    color: white;
}

/* about us page */
/* Hero Banner Style */
.hero-banner {
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('assets/images/banner1.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.about-image{
    position: relative;
    padding: 20px;
}


.about-image img{
    position: relative;
    z-index: 2;
    width: 100%;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 15px 35px rgba(0,0,0,.15);
}

.about-section p{
    font-size: 17px;
    line-height: 1.9;
}

@media(max-width:991px){

    .about-image{
        margin-bottom:30px;
    }

    .about-image::before{
        width:100%;
        height:100%;
    }

}

/* Image Grid Alignment */
.about-img-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}

.about-img-container img {
    width: 620px;
    height: 197px;
    object-fit: cover;
    border-radius: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Card Hover Effect */
/* .card-hover:hover {
    background: #f8f9fa;
    border-left: 5px solid #dc3545 !important;
    transition: 0.3s;
} */

/* Gallery page */

.gallery-banner {
    height: 350px;
    /* Adjust height as needed */
    background: url('assets/images/banner1.webp') no-repeat center center;
    background-size: cover;
    padding: 60px 0;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Adjust 0.6 to make it darker or lighter */
}

.gallery-banner h1 {
    letter-spacing: 2px;
}

.gallery-banner .lead {
    color: #e0e0e0;
    font-weight: 300;
}

.gallery-container {
    column-count: 3;
    column-gap: 20px;
}

.gallery-img {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.4s ease;
}

.gallery-img:hover {
    transform: scale(1.03);
}

.modal {
    background: rgb(0 0 0 / 40%);
}


/* Optional: Center the modal wrapper perfectly */
.modal-content {
    align-items: center;
    justify-content: center;
}

@media(max-width:991px) {
    .gallery-container {
        column-count: 2;
    }
}

@media(max-width:576px) {
    .gallery-container {
        column-count: 1;
    }
}

/* customers page */
.logo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    /* Adjust spacing between cards */
    padding: 0 15px;
    justify-content: center;
}

.logo-card {
    width: calc(20% - 15px);
    /* 5 cards per row on large screens */
    height: 120px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo-card img {
    max-width: 80%;
    max-height: 70%;
    object-fit: contain;
}

.logo-card:hover {
    transform: scale(1.05);
    border-color: #ccc;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .logo-card {
        width: calc(33.33% - 15px);
    }
}

@media (max-width: 768px) {
    .logo-card {
        width: calc(50% - 15px);
    }
}

@media (max-width: 576px) {
    .logo-card {
        width: calc(100% - 15px);
    }
}

/* product image slider */
.product-gallery{
    position:relative;
}

.main-image{
    width:100%;
    height:660px;
    object-fit:cover;
    border-radius:18px;
}

.gallery-btn{
    position:absolute;
    top:40%;
    transform:translateY(-50%);
    width:45px;
    height:45px;
    border:none;
    border-radius:50%;
    background:#fff;
    box-shadow:0 5px 15px rgba(0,0,0,.2);
    cursor:pointer;
    z-index:10;
}

.gallery-btn.prev{
    left:-20px;
}

.gallery-btn.next{
    right:-20px;
}

.thumb-wrapper{
    display:flex;
    gap:15px;
    justify-content:center;
    margin-top:20px;
    flex-wrap:wrap;
}

.thumb{
    width:80px;
    height:80px;
    object-fit:cover;
    border:3px solid #ddd;
    border-radius:10px;
    cursor:pointer;
    transition:.3s;
}

.thumb.active,
.thumb:hover{
    border-color:#dc3545;
}

@media(max-width:768px){

    .main-image{
        height:280px;
    }

    .gallery-btn.prev{
        left:10px;
    }

    .gallery-btn.next{
        right:10px;
    }

    .thumb{
        width:60px;
        height:60px;
    }

}

   .hover-danger:hover {
        color: #dc3545 !important;
        transition: 0.3s;
    }

    .hover-white:hover {
        opacity: 1 !important;
        transition: 0.3s;
    }
    
        /* Banner */
    .product-banner {
        height: 35vh;
        background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('assets/images/banner1.webp');
        background-size: cover;
        background-position: center;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
    }

    .specs-card {
        background: #f8f9fa;
        border-radius: 15px;
        padding: 20px;
    }

    .feature-list i {
        color: #dc3545;
        margin-right: 10px;
    }
  
    /* Premium Banner */
    .contact-banner { height: 40vh; background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('assets/images/banner1.webp'); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; color: white; }
    
    /* Card Styles */
    .contact-card { background: #fff; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); padding: 40px; }
    .info-box { display: flex; align-items: flex-start; margin-bottom: 25px; }
    .info-box i { font-size: 24px; color: #dc3545; margin-right: 15px; }
    
    /* Input Styles */
    .form-control { border-radius: 10px; padding: 12px; border: 1px solid #ddd; }
    .btn-custom { background: #dc3545; color: white; padding: 12px 30px; border-radius: 10px; font-weight: bold; border: none; width: 100%; transition: 0.3s; }
    .btn-custom:hover { background: #b02a37; }