/********** Template CSS **********/
:root {
    --primary: #b53030;
    --secondary: #9B9B9B;
    --light: #F5F5F5;
    --dark: #161616;
}

.fw-medium {
    font-weight: 500 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-black {
    font-weight: 900 !important;
}

.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;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary {
    color: #FFFFFF;
}

.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 {
    height: 75px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 18px 0;
    color: var(--dark);
    font-weight: 500;
    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;
        transition: .5s;
        opacity: 1;
    }
}

.navbar .btn:hover {
    color: #FFFFFF !important;
    background: var(--primary) !important;
}

/* Topbar: keep all items on a single horizontal row across breakpoints */
.topbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-left: calc(8px + env(safe-area-inset-left));
    padding-right: calc(8px + env(safe-area-inset-right));
}
.topbar .info-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    color: #FFFFFF;
    font-size: 14px;
}
.topbar .info-item small {
    color: #FFFFFF;
    font-weight: 600;
}

/* Slightly reduce sizes on very small screens to ensure one-line fit */
@media (max-width: 480px) {
    .topbar .info-item { font-size: 13px; gap: 6px; }
    .btn-sm-square { width: 26px; height: 26px; }
    .btn-square { width: 32px; height: 32px; }
    .navbar .navbar-brand img { height: 40px; }
    .navbar .navbar-nav .nav-link { margin-right: 12px; padding: 8px 0; font-size: 14px; }
}

@media (min-width: 481px) and (max-width: 991.98px) {
    .topbar .info-item { font-size: 13.5px; }
}


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

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 360px;
    }
    
    .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: 26px;
        font-weight: 600;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 36px; /* base bottom for nav container */
    height: auto;
    display: block;
    z-index: 40;
    pointer-events: none; /* allow buttons to receive events */
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    position: absolute;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.9);
    border-radius: 50%;
    font-size: 20px;
    transition: .25s;
    pointer-events: auto;
}

.header-carousel .owl-nav .owl-prev { left: 50%; transform: translateX(calc(-50% - 34px)); }
.header-carousel .owl-nav .owl-next { left: 50%; transform: translateX(calc(50% + 34px)); }

.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: auto;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
}

@media (max-width: 767.98px) {
    /* keep controls overlayed on image and avoid pushing page content */
    .header-carousel { padding-bottom: 0; }
    .header-carousel .owl-nav {
        display: block;
        bottom: 46px; /* above dots on small screens */
        left: 0;
        right: 0;
        transform: none;
        z-index: 40;
    }
    .header-carousel .owl-dots { bottom: 12px; height: auto; z-index: 30; }
    .header-carousel .owl-nav .owl-prev { left: 50%; transform: translateX(calc(-50% - 28px)); }
    .header-carousel .owl-nav .owl-next { left: 50%; transform: translateX(calc(50% + 28px)); }
    .header-carousel .owl-carousel-item .btn {
        display: inline-block;
        margin: 0 8px 0 0;
    }
    .header-carousel .owl-carousel-item img {
        object-position: center top;
    }
}

@media (max-width: 480px) {
    .header-carousel .owl-dots { bottom: 10px; }
    .header-carousel .owl-dot {
        width: 10px;
        height: 10px;
        border-width: 1px;
        margin: 0 4px;
    }
    .header-carousel .owl-dot::after {
        width: 4px;
        height: 4px;
        top: 3px;
        left: 3px;
    }
    .header-carousel .owl-nav .owl-prev,
    .header-carousel .owl-nav .owl-next {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    /* reduce CTA size and keep controls above CTAs */
    .header-carousel { padding-bottom: 0; }
    .header-carousel .owl-nav { bottom: 28px; }
    .header-carousel .owl-nav .owl-prev { left: 50%; transform: translateX(calc(-50% - 22px)); }
    .header-carousel .owl-nav .owl-next { left: 50%; transform: translateX(calc(50% + 22px)); }
    .header-carousel .owl-dots { bottom: 8px; }
    .header-carousel .owl-carousel-item .btn {
        padding: .5rem 0.9rem;
        font-size: 14px;
        border-radius: 30px;
    }
    .header-carousel .carousel-inner .hero-content { margin-top: 0; }
}

/* Ensure hero content isn't clipped: use padding on the overlay instead of negative margins */
.header-carousel .carousel-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 32px; /* safe default for mobile */
    padding-top: calc(32px + constant(safe-area-inset-top));
    padding-top: calc(32px + env(safe-area-inset-top));
    padding-bottom: 24px;
    padding-bottom: calc(24px + constant(safe-area-inset-bottom));
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    padding-left: 16px;
    padding-left: calc(16px + constant(safe-area-inset-left));
    padding-left: calc(16px + env(safe-area-inset-left));
    padding-right: 16px;
    padding-right: calc(16px + constant(safe-area-inset-right));
    padding-right: calc(16px + env(safe-area-inset-right));
}

@media (min-width: 768px) {
    .header-carousel .carousel-inner { padding-top: 40px; padding-bottom: 40px; }
}

@media (min-width: 992px) {
    .header-carousel .carousel-inner { padding-top: 80px; padding-bottom: 40px; }
    .header-carousel .owl-carousel-item { min-height: 520px; }
}

.header-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 15px;
    transition: .5s;
}

.header-carousel .owl-dot::after {
    position: absolute;
    content: "";
    width: 5px;
    height: 5px;
    top: 4px;
    left: 4px;
    background: #FFFFFF;
    border-radius: 5px;
}

.header-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}

/* control carousel wrapper offset: no overlap on mobile, slight overlap on desktop */
.hero-wrapper { margin-top: 0; }
@media (min-width: 992px) {
    .hero-wrapper { margin-top: -70px; }
}

.page-header {
    background: linear-gradient(rgba(22, 22, 22, .7), rgba(22, 22, 22, .7)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

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


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


/*** Service ***/
.service-row {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.service-item {
    border-color: rgba(0, 0, 0, .03) !important;
}

.service-item .btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 38px;
    white-space: nowrap;
    overflow: hidden;
    transition: .5s;
}

.service-item:hover .btn {
    width: 140px;
}

/* Facts / Cards redesign */
.facts-card {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: transform .28s ease, box-shadow .28s ease;
    color: #ffffff;
}
.facts-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.facts-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.facts-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}
.facts-text {
    color: rgba(255,255,255,0.9);
    margin-top: 8px;
    line-height: 1.45;
}

@media (max-width: 767.98px) {
    .facts-card { padding: 18px; }
    .facts-title { font-size: 18px; }
    .facts-icon { width: 52px; height: 52px; }
    .facts-text { font-size: 14px; }
}

@media (max-width: 480px) {
    .facts-card { padding: 14px; }
    .facts-title { font-size: 16px; }
    .facts-icon { width: 48px; height: 48px; }
    .facts-text { font-size: 13px; }
}

/* Responsive map container for embeds */
.map-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 576px) {
    .map-container { padding-bottom: 66.66%; }
}

/* Gallery grid */
.gallery-grid .gallery-item {
    display: block;
    overflow: hidden;
}
.gallery-grid .gallery-item img {
    width: 100%;
    height: auto; /* let image height flow for masonry */
    object-fit: cover;
    transition: transform .35s ease, filter .35s ease;
    display: block;
}
.gallery-grid .gallery-item:hover img {
    transform: scale(1.06);
    filter: brightness(0.95);
}

@media (min-width: 992px) {
    .gallery-grid .grid-sizer { width: 25%; }
}
@media (max-width: 576px) {
    .gallery-grid .grid-sizer { width: 50%; }
}

/* ensure grid items have no extra row gaps from bootstrap gutters when isotope positions them */
.gallery-grid { margin-left: 0; }
.gallery-grid .grid-item { margin-bottom: 12px; }


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


/*** Project Portfolio ***/
#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: var(--primary);
    border-color: var(--primary);
}

.portfolio-inner {
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.portfolio-inner img {
    transition: .5s;
}

.portfolio-inner:hover img {
    transform: scale(1.1);
}

.portfolio-inner .portfolio-text {
    position: absolute;
    width: 100%;
    left: 0;
    bottom: -50px;
    opacity: 0;
    transition: .5s;
}

.portfolio-inner:hover .portfolio-text {
    bottom: 0;
    opacity: 1;
}


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


/*** Team ***/
.team-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.1);
}

.team-item .team-social {
    position: absolute;
    width: 0;
    height: 0;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(22, 22, 22, .7);
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-social {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 1;
}

.team-item .team-social .btn {
    opacity: 0;
}

.team-item:hover .team-social .btn {
    opacity: 1;
}


/*** Testimonial ***/
.testimonial-carousel {
    display: flex !important;
    flex-direction: column-reverse;
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-carousel .owl-dots {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.testimonial-carousel .owl-dots .owl-dot {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 5px;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-dots .owl-dot::after {
    position: absolute;
    width: 40px;
    height: 40px;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    content: "\f10d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary);
    background: #FFFFFF;
    border-radius: 40px;
    transition: .5s;
    opacity: 0;
}

.testimonial-carousel .owl-dots .owl-dot.active::after {
    opacity: 1;
}

.testimonial-carousel .owl-dots .owl-dot img {
    border-radius: 60px;
    opacity: .4;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active img {
    opacity: 1;
}


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


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--dark);
    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: var(--danger);
    letter-spacing: 1px;
    box-shadow: none;
}




@media only screen and (max-width:1000px) { 

    #clients h1 {
      text-align: center;
      color: #b53030;
      font-size: 30px;
    }
}


@media only screen and (max-width:800px) { 

    #clients h1 {
      text-align: center;
      color: #b53030;
      font-size: 30px;
    }
}

@media only screen and (max-width:700px) { 

    #clients h1 {
      text-align: center;
      color: #b53030;
      font-size: 30px;
    }
}

@media only screen and (max-width:700px) { 

    #clients h1 {
      text-align: center;
      color: #b53030;
      font-size: 30px;
    }
}

@media only screen and (max-width:700px) { 

    #clients h1 {
      text-align: center;
      color: #b53030;
      font-size: 30px;
    }
}
