@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.preloader-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    display: block;
    animation: rotate 5s linear infinite;
}

@media (max-width: 768px) {
    .preloader-logo {
        width: 60px;
        height: 60px;
        margin: 0 auto 15px;
    }
}

@media (max-width: 480px) {
    .preloader-logo {
        width: 50px;
        height: 50px;
        margin: 0 auto 12px;
    }
}

.floating-contact {
    position: fixed;
    right: 20px;
    top: 70%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-contact a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    color: #ffffff;
    background: #25d366;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .18);
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.floating-contact a.call {
    background: #007bff;
}

.floating-contact a:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 58px rgba(0, 0, 0, .22);
}

.floating-contact .contact-label {
    position: absolute;
    right: 70px;
    background: rgba(0, 0, 0, .8);
    color: #fff;
    padding: 8px 12px;
    border-radius: 30px;
    font-size: .9rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.floating-contact a:hover .contact-label {
    opacity: 1;
}

@media (max-width: 767px) {
    .floating-contact {
        top: auto;
        bottom: 100px;
        right: 12px;
        transform: none;
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
    }

    .floating-contact a {
        width: 46px;
        height: 46px;
    }

    .floating-contact .contact-label {
        right: auto;
        left: -190px;
        font-size: .8rem;
    }
}

/* Position hero heading and button at left-bottom */
.hero-inner {
    position: relative;
}

.hero-1-content.hero-bottom-left {
    position: absolute;
    left: 5%;
    bottom: 6%;
    max-width: 640px;
    text-align: left;
    z-index: 5;
    padding: 18px 22px;
    background: rgba(0, 0, 0, 0.20);
    border-radius: 8px;
    color: #fff;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.hero-1-content.hero-bottom-left .hero-title {
    color: #fff;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

.hero-1-content.hero-bottom-left .btn-group {
    justify-content: flex-start !important;
    margin-top: 14px;
}

@media (max-width: 992px) {
    .hero-1-content.hero-bottom-left {
        left: 4%;
        bottom: 5%;
        max-width: 560px;
        padding: 14px 18px;
    }
}

@media (max-width: 576px) {
    .hero-1-content.hero-bottom-left {
        position: absolute;
        left: 3.5%;
        bottom: 3.5%;
        max-width: calc(100% - 40px);
        padding: 10px 12px;
        background: rgba(0, 0, 0, 0.28);
    }

    .hero-1-content.hero-bottom-left .hero-title {
        font-size: 1.125rem;
        line-height: 1.15;
    }
}

/* Strong overrides to ensure content pins to bottom-left of viewport */
.th-hero-wrapper .hero-inner,
.th-hero-wrapper .hero-inner .hero-video,
.th-hero-wrapper .hero-inner[data-bg-src],
.th-hero-wrapper .hero-inner[style] {
    height: 100vh !important;
    min-height: 100vh !important;
    overflow: hidden;
}

.th-hero-wrapper .hero-inner .hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-1-content.hero-bottom-left {
    position: absolute !important;
    left: 5% !important;
    bottom: 5% !important;
    transform: none !important;
    margin: 0 !important;
}

@media (max-width: 768px) {
    .th-hero-wrapper .hero-inner .hero-video {
        width: 100vw;
        height: 100vh;
        object-position: center center;
    }
}

/* reduce any auto centering from parent grid */
.th-hero-wrapper .container,
.th-hero-wrapper .row {
    height: 100% !important;
}

html {
    scroll-behavior: smooth;
}

.service-thumb,
.service-thumb img {
    min-height: 780px;
    /* large desktops */
    width: 100%;
    display: block;
    object-fit: cover;
}

/* Medium desktop */
@media (max-width: 1366px) {

    .service-thumb,
    .service-thumb img {
        min-height: 620px;
    }
}

/* Tablet */
@media (max-width: 992px) {

    .service-thumb,
    .service-thumb img {
        min-height: 420px;
    }
}

/* Mobile */
@media (max-width: 576px) {

    .service-thumb,
    .service-thumb img {
        min-height: 260px;
    }
}

/* Make tile overlay cover entire tile and center the title */
.tile-overlay-title {
    position: absolute;
    inset: 0;
    /* top:0; right:0; bottom:0; left:0; */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    color: var(--white-color);
    padding: 0 18px;
    border-radius: 0;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.02em;
    opacity: 1;
    z-index: 4;
    text-align: center;
    transition: background .25s ease, opacity .25s ease;
}

/* OUR PROJECTS section decorative logo background */
.popular-sec-1 {
    position: relative;
}

.popular-sec-1 .project-logo-bg {
    position: absolute;
    opacity: 0.16;
    z-index: 0;
    pointer-events: none;
    width: 512px;
    max-width: 25%;
}

.popular-sec-1 .project-logo-bg.top-right {
    top: -13%;
    right: -9%;
}

.popular-sec-1 .project-logo-bg.left-middle {
    left: -12%;
    top: 50%;
    transform: translateY(-50%);
}

.popular-sec-1 .project-content-wrap {
    position: relative;
    z-index: 1;
}

@media (max-width: 1200px) {
    .popular-sec-1 .project-logo-bg {
        max-width: 30%;
    }
}

@media (max-width: 768px) {
    .popular-sec-1 .project-logo-bg {
        opacity: 0.08;
        max-width: 40%;
    }

    .popular-sec-1 .project-logo-bg.top-right {
        top: -8%;
        right: -6%;
    }

    .popular-sec-1 .project-logo-bg.left-middle {
        left: -8%;
        top: 55%;
        width: 280px;
    }
}

@media (max-width: 576px) {
    .popular-sec-1 .project-logo-bg {
        max-width: 48%;
    }

    .popular-sec-1 .project-logo-bg.top-right {
        top: -6%;
        right: -4%;
    }

    .popular-sec-1 .project-logo-bg.left-middle {
        left: -10%;
        top: 58%;
        width: 220px;
    }
}

@media (max-width: 992px) {
    .tile-overlay-title {
        font-size: 1.25rem;
        padding: 0 14px;
    }
}

@media (max-width: 576px) {
    .tile-overlay-title {
        font-size: 1rem;
        padding: 0 10px;
    }
}

/* Header logo and menu spacing */
.header-default.header-layout1 .header-logo {
    padding: 10px 0 4px;
    margin-bottom: 0;
}

.header-default.header-layout1 .main-menu>ul>li>a {
    padding-top: 16px;
    padding-bottom: 16px;
}

/* Mobile header alignment */
@media (max-width: 991px) {
    .menu-area .d-lg-none.d-flex {
        justify-content: space-between !important;
        align-items: center;
        width: 100%;
    }

    .menu-area .header-logo {
        text-align: left;
        flex: 0 1 auto;
    }

    .menu-area .th-menu-toggle {
        margin-left: auto !important;
        order: 2;
    }

    .menu-area .th-menu-toggle i {
        display: inline-block;
    }
}

@media (max-width: 767px) {
    .menu-area .main-menu {
        display: none !important;
    }

    .menu-area .th-menu-toggle {
        margin-left: auto !important;
    }
}

/* Sticky header: small logo and tighter spacing */
.header-default.header-layout1 .header-logo .logo-sticky {
    display: none;
}

.header-default.header-layout1 .sticky-wrapper.sticky .header-logo .logo-default {
    display: none;
}

.header-default.header-layout1 .sticky-wrapper.sticky .header-logo .logo-sticky {
    display: inline-block;
}

.header-default.header-layout1 .sticky-wrapper.sticky .header-logo {
    padding: 8px 0 2px !important;
    margin-bottom: 0;
}

.header-default.header-layout1 .sticky-wrapper.sticky .main-menu>ul>li>a {
    padding-top: 12px;
    padding-bottom: 12px;
}

/* Legal pages: numbered sections and bullet lists */
.policy-sections {
    list-style: none;
    padding-left: 0;
    margin-top: 30px;
}

.policy-sections>li {
    margin-bottom: 30px;
}

.policy-sections>li>h5 {
    margin-bottom: 12px;
}

.policy-sections ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-top: 16px;
    margin-bottom: 0;
}

.policy-sections ul li {
    margin-bottom: 10px;
}