/********** CSS  **********/

body {
    padding-top: 70px;
}

/* spin a logo */

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.spinner-logo {
    display: block;
}

/* --- Mega Menu Styling --- */
nav.navbar {
    background-color: #bd2e2e !important;
}

.mega-menu {
    min-width: 500px;
    background: rgba(16, 15, 24, 0.97);
    color: #FFFFFF;
    border-radius: 10px;
    left: 50% !important;
    transform: translateX(-50%);
    top: 60px !important;
    border: none;
}


.mega-menu h5 {
    color: #6cc3ff;
    font-weight: 600;
    font-size: 1.25rem;
}

.mega-menu a.dropdown-item {
    color: #eaf3fa;
    transition: background 0.1s, color 0.1s;
    padding-left: 0.2em;
}

.mega-menu a.dropdown-item:hover,
.mega-menu a.dropdown-item:focus {
    background: rgba(108, 195, 255, 0.08);
    color: #fff;
}

.mega-menu .badge {
    font-size: 0.65em;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

/* Keep dropdown open on hover (desktop only) */
@media (min-width: 992px) {

    .navbar-nav .dropdown:hover>.dropdown-menu,
    .navbar-nav .dropdown:focus-within>.dropdown-menu {
        display: block;
    }

    .navbar-nav .dropdown-menu {
        margin-top: 0;
    }

}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .mega-menu {
        min-width: 100vw;
        left: 0 !important;
        transform: none;
        border-radius: 0;
        top: 55px !important;
        padding: 2rem 1rem;
    }
}

/* --- End of navbar Menu Styling --- */

:root {
    --primary: #AB7442;
    --light: #F5F5F5;
    --dark: #353535;
}

.fw-medium {
    font-weight: 500 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.footer a {
    text-decoration: none;
}


.fw-black {
    font-weight: 900 !important;
}

.skip-link {
    position: absolute;
    left: -1000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 10000;
    background: #fff;
    color: #000;
    padding: 8px 16px;
    font-size: 1rem;
    border-radius: 4px;
}

.skip-link:focus {
    left: 10px;
    top: 10px;
    width: auto;
    height: auto;
    outline: 2px solid var(--primary);
}

/* Responsive images */
img,
.service-item img,
.portfolio-item img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Improved focus for accessibility */
a:focus,
button:focus,
.btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.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 {
    visibility: visible;
    opacity: 1;
}

/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

/* Larger clickable area for small square buttons on mobile */
@media (max-width: 575.98px) {
    .btn-sm-square {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
}


/*** Navbar ***/

/*** Header ***/
@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 h5,
    .header-carousel .owl-carousel-item p {
        font-size: 14px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 30px;
        font-weight: 600;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    width: 200px;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.header-carousel .owl-dots {
    position: absolute;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: transparent;
    border: 1px solid #FFFFFF;
    transition: .5s;
}

.header-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background: linear-gradient(rgba(53, 53, 53, .7), rgba(53, 53, 53, .7)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

/*** Section Title ***/
.section-title h1 {
    position: relative;
    display: inline-block;
    padding: 0 60px;
}

.section-title h1::before,
.section-title h1::after {
    position: absolute;
    content: "";
    width: 45px;
    height: 5px;
    bottom: 0;
    background: var(--dark);
}

.section-title h1::before {
    left: 0;
}

.section-title h1::after {
    right: 0;
}

.section-title.text-start h1 {
    padding-left: 0;
}

.section-title.text-start h1::before {
    display: none;
}

/*** Service ***/
.service-item img {
    transition: .5s;
}

.service-item:hover img {
    transform: scale(1.1);
}

/*** Portfolio ***/
.portfolio-item img {
    transition: .5s;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item .portfolio-overlay {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0;
    height: 0;
    bottom: 0;
    left: 50%;
    background: rgba(53, 53, 53, .7);
    transition: .5s;
}

.portfolio-item:hover .portfolio-overlay {
    width: 100%;
    height: 100%;
    left: 0;
}

.portfolio-item .portfolio-overlay .btn {
    opacity: 0;
}

.portfolio-item:hover .portfolio-overlay .btn {
    opacity: 1;
}

/*** Footer ***/
.footer {
    background: linear-gradient(rgba(53, 53, 53, .7), rgba(53, 53, 53, .7)), url(../img/footer.jpg) center center no-repeat;
    background-size: cover;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid #FFFFFF;
    transition: .3s;
    text-decoration: none;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
    text-decoration: none;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
    text-decoration: none;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    text-decoration: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
    text-decoration: none;
}

.footer .copyright a {
    color: var(--light);
    text-decoration: none;
}

.footer .copyright a:hover {
    color: var(--primary);
    text-decoration: none;
}



/* Responsive tweaks for very small devices */
@media (max-width: 575.98px) {

    .footer,
    .navbar,
    .page-header,
    .section-title h1 {
        padding-left: 10px;
        padding-right: 10px;
        text-decoration: none;
    }

    .footer .btn.btn-social,
    .footer .btn.btn-link {
        font-size: 14px;
        text-decoration: none;
    }
}

/******* About us picture-for bluring  in contact page***/


.zikomo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

/***background for services**/
.shani {
    background-color: rgba(228, 179, 164, 0.5);
    padding: 20px;
}

.error {
    color: red;
    font-size: 0.9em;
}

.error-field {
    border-color: red;
}

/* Responsive tweaks for very small devices */
@media (max-width: 575.98px) {

    .footer,
    .navbar,
    .page-header,
    .section-title h1 {
        padding-left: 10px;
        padding-right: 10px;
    }

    .footer .btn.btn-social,
    .footer .btn.btn-link {
        font-size: 14px;
    }
}

/* Ensure all images are responsive */
img,
.service-item img,
.portfolio-item img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Improved focus style for accessibility */
a:focus,
button:focus,
.btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Larger clickable area for small square buttons on mobile */
@media (max-width: 575.98px) {
    .btn-sm-square {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
}

/* about us page */
.about-page {
    background: #f8fafc;
}

.about-box {
    background: #fff;
    border-radius: 1.5rem !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1.5px 3px rgba(0, 0, 0, 0.04);
    padding: 2rem !important;
    margin-bottom: 1.5rem;
}

.about-box h3 {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.about-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.why-choose-us-box {
    background: #fff3cd;
    border: 1px solid #ffe69c;
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

@media (max-width: 767.98px) {

    .about-box,
    .why-choose-us-box {
        padding: 1rem !important;
    }
}



/* text slide for home page */

.small-search-bar {
    width: 10cm;
    max-width: 100%;
}

.input-group.small-search-bar input {
    min-width: 0;
}

.input-group.small-search-bar .btn-success {
    background: linear-gradient(90deg, #20c997, #198754 90%);
    border: none;
    color: #fff;
    font-weight: 600;
}

.input-group.small-search-bar .btn-success:hover {
    background: #157347;
}

@media (max-width: 600px) {
    .small-search-bar {
        width: 100% !important;
    }
}


/* Marquee styles for index page */
.marquee-container {
    width: 100%;
    background: #e9f2f6;
    /* Light background for visibility */
    overflow: hidden;
    height: 42px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #d0dde7;
}

.marquee-text {
    display: inline-block;
    padding-left: 100%;
    white-space: nowrap;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2974e4;
    /* Keystone blue */
    animation: marquee-slide 25s linear infinite;
    letter-spacing: 1px;
}

@keyframes marquee-slide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* end text slide for home page */

/*for utomatic doors page */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-img {
    opacity: 0;
    animation: fadeInUp 1.2s ease forwards;
}

.animate-img:nth-child(1) {
    animation-delay: 0.2s;
}

.animate-img:nth-child(2) {
    animation-delay: 0.6s;
}