/********** MRK Roofing System - Template CSS **********/

:root {
    --primary: #C0392B;        /* MRK Logo Red */
    --secondary: #1A3A5C;      /* MRK Logo Steel Blue */
    --accent: #E74C3C;         /* Lighter red for hover */
    --light: #F5F5F5;
    --dark: #1A1A2E;
    --steel: #2C3E50;          /* Dark steel grey */
}

/* ---- Bootstrap primary color override ---- */
.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(--accent); border-color: var(--accent); color: #fff; }
.btn-outline-primary        { border-color: var(--primary); color: var(--primary); }
.btn-outline-primary:hover  { background-color: var(--primary); color: #fff; }
.border-primary     { border-color: var(--primary) !important; }

/* ---- Image helpers ---- */
.product-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

/* Full-cover utility used on about/service detail images */
.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Remove legacy rules */
.img {
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    background-color: transparent;
}

.beanut-flower {
    object-fit: cover;
    width: 100%;
}

/* ---- Back to Top ---- */
.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
    background-color: var(--primary);
    border-color: var(--primary);
}

.fw-medium { font-weight: 600; }
.fw-bold   { font-weight: 700; }
.fw-black  { font-weight: 900; }


/*** 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;
    font-weight: 500;
}

.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 ***/
.sticky-top {
    top: -150px;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 25px 0;
    color: var(--dark);
    font-weight: 600;
    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-brand {
        width: 126px;
        height: 100px;
    }
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }
    .navbar .navbar-nav {
        margin-top: 75px;
        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;
    }
}


/*** Carousel / Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0;
    text-align: left;
    z-index: 1;
}

/* Indicator dots */
.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    border: none;
    margin: 0 5px;
    transition: background .3s, transform .3s;
}
.carousel-indicators .active {
    background-color: var(--primary);
    transform: scale(1.3);
}

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

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

@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 — uses real MRK website slide image */
.page-header {
    background: linear-gradient(135deg, rgba(26, 58, 92, 0.80), rgba(192, 57, 43, 0.65)),
                url(https://mrkroofingsystem.com/wp-content/uploads/2024/04/slide1-6.webp) center center no-repeat;
    background-size: cover;
}

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

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: #ffffff;
    text-decoration: none;
}


/*** Section Title ***/
.section-title {
    position: relative;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
}

.section-title::before {
    position: absolute;
    content: "";
    width: 50%;
    height: 3px;
    bottom: 0;
    left: 0;
    background: var(--primary);
    border-radius: 3px;
}

.section-title::after {
    position: absolute;
    content: "";
    width: 28px;
    height: 28px;
    bottom: -13px;
    left: calc(25% - 13px);
    background: var(--secondary);
    border: 10px solid #FFFFFF;
    border-radius: 28px;
}

.section-title.text-center::before {
    left: 25%;
}

.section-title.text-center::after {
    left: calc(50% - 13px);
}


/*** Products / Services Carousel ***/
.product {
    /* Subtle steel-toned gradient background for the services section */
    background: linear-gradient(135deg, rgba(26, 58, 92, 0.06), rgba(192, 57, 43, 0.06));
}

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

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

.product-carousel .owl-nav .owl-prev:hover,
.product-carousel .owl-nav .owl-next:hover {
    background: var(--secondary);
    color: #FFFFFF;
}

/* Service card image hover zoom */
.product-item {
    overflow: hidden;
    transition: .5s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}

.product-item:hover {
    box-shadow: 0 8px 35px rgba(192, 57, 43, 0.20);
    transform: translateY(-4px);
}

.product-item img {
    transition: transform .5s ease;
}

.product-item:hover img {
    transform: scale(1.05);
}


/*** Stats / Primary Banner ***/
.bg-primary h2,
.bg-primary p {
    color: #ffffff;
}


/*** Why-Choose-Us cards ***/
.border.rounded.shadow-sm .btn-square {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
}


/*** Contact ***/
.contact .btn-square {
    width: 100px;
    height: 100px;
    border: 20px solid var(--light);
    background: var(--primary);
    border-radius: 50px;
}


/*** Testimonial ***/
.testimonial {
    background: linear-gradient(rgba(26, 58, 92, 0.85), rgba(26, 58, 92, 0.85)), url(../img/img-2.jpeg) center center no-repeat;
    background-size: cover;
}

.testimonial-item {
    margin: 0 auto;
    max-width: 600px;
    text-align: center;
    background: #FFFFFF;
    border: 30px solid var(--primary);
}

.testimonial-item img {
    width: 60px !important;
    height: 60px !important;
    border-radius: 60px;
}

.testimonial-carousel .owl-dots {
    margin-top: 35px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: var(--primary);
    border-radius: 15px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--secondary);
}


/*** Footer ***/
.footer {
    color: #B0B9AE;
    background-color: var(--dark) !important;
}

.footer a {
    color: #B0B9AE;
    text-decoration: none;
    transition: .3s;
    display: block;
    margin-bottom: 6px;
}

.footer a:hover {
    color: #ffffff;
    padding-left: 4px;
}

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

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

/* Footer social icons */
.footer .btn-square.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

/*** Floating Action Buttons ***/
.floating-buttons {
    position: fixed;
    right: 22px;
    bottom: 90px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.float-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(0,0,0,0.25);
    transition: transform .3s, box-shadow .3s;
    position: relative;
}

.float-btn:hover {
    transform: scale(1.13);
    box-shadow: 0 8px 28px rgba(0,0,0,0.32);
    color: #fff;
}

.float-btn.whatsapp { background: #25D366; }
.float-btn.call     { background: var(--primary); }

/* Pulse animation on WhatsApp */
.float-btn.whatsapp::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.4);
    animation: float-pulse 2s ease-out infinite;
}

.float-btn.call::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(192, 57, 43, 0.35);
    animation: float-pulse 2s ease-out infinite 0.4s;
}

@keyframes float-pulse {
    0%   { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.9); opacity: 0; }
}

/* Tooltip labels */
.float-btn .float-label {
    position: absolute;
    right: 62px;
    background: #333;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}

.float-btn:hover .float-label { opacity: 1; }

/*** Copyright Bar ***/
.copyright {
    background: #111111;
    color: #B0B9AE;
}

.copyright a {
    color: var(--primary);
    text-decoration: none;
}

.copyright a:hover {
    color: #FFFFFF !important;
}
