/********** Template CSS **********/
:root {
    --primary: #6C9F97;
    --secondary: #354044;
    --light: #F0F8F6;
    --dark: #273437;
    --bs-primary: #6C9F97;
    --bs-secondary: #354044;
    --bs-light: #F0F8F6;
    --bs-dark: #273437;
}

h1,
h2,
.font-weight-bold {
    font-weight: 700 !important;
}

h3,
h4,
.font-weight-semi-bold {
    font-weight: 600 !important;
}

h5,
h6,
.font-weight-medium {
    font-weight: 500 !important;
}

.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-light {
    background-color: var(--light) !important;
}

.text-dark {
    color: var(--dark) !important;
}

.btn {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-primary,
.btn-secondary {
    color: #FFFFFF;
}

.btn-primary:hover {
    background: #527f78;
    border-color: #527f78;
}

.btn-secondary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

#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;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.top-shape::before {
    position: absolute;
    content: "";
    width: 35px;
    height: 100%;
    top: 0;
    left: -17px;
    background: var(--primary);
    transform: skew(40deg);
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Jost', sans-serif;
    padding: 35px 15px;
    font-size: 18px;
    color: var(--dark);
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 15px;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
    font-family: 'Jost', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.15;
}

.brand-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    flex: 0 0 auto;
}

.brand-lockup.logo-only {
    line-height: 0;
}

.brand-lockup.logo-only .brand-logo {
    width: 220px;
    height: 92px;
    object-fit: contain;
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link,
    .sticky-top.navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(39, 52, 55, .82);
    z-index: 1;
}

@media (max-width: 576px) {
    .navbar {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .navbar-brand h1 {
        font-size: 1.1rem;
        line-height: 1.2;
        white-space: normal;
    }

    .brand-lockup {
        max-width: 220px;
        gap: 8px;
        font-size: 1.05rem;
    }

    .brand-logo {
        width: 44px;
        height: 44px;
    }

    .brand-lockup.logo-only .brand-logo {
        width: 150px;
        height: 70px;
    }

    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

.section-title h5::before {
    position: absolute;
    content: "";
    width: 45px;
    height: 3px;
    right: -55px;
    bottom: 11px;
    background: var(--primary);
}

.section-title h5::after {
    position: absolute;
    content: "";
    width: 15px;
    height: 3px;
    right: -75px;
    bottom: 11px;
    background: var(--secondary);
}

.hero-header {
    background: linear-gradient(rgba(39, 52, 55, .82), rgba(39, 52, 55, .82)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.service-item img,
.service-item .bg-light,
.service-item .bg-light h5,
.team-item .team-text {
    transition: .5s;
}

.service-item:hover img {
    transform: scale(1.15);
}

.team-item .team-text::after,
.service-item .bg-light::after {
    position: absolute;
    content: "";
    top: 50%;
    bottom: 0;
    left: 15px;
    right: 15px;
    border-radius:100px / 15px;
    box-shadow: 0 0 15px rgba(0, 0, 0, .7);
    opacity: 0;
    transition: .5s;
    z-index: -1;
}

.team-item:hover .team-text::after,
.service-item:hover .bg-light::after {
    opacity: 1;
}

.service-list-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.service-list-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 72px;
    padding: 16px;
    border-left: 4px solid var(--primary);
    border-radius: 6px;
    color: var(--dark);
    background: var(--light);
    box-shadow: 0 6px 20px rgba(39, 52, 55, .08);
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    line-height: 1.25;
}

.service-list-card i {
    color: var(--primary);
    flex: 0 0 auto;
}

.service-image-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 4px;
    background: var(--light);
    box-shadow: 0 8px 24px rgba(39, 52, 55, .12);
    transition: .35s ease;
}

.service-image-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(39, 52, 55, .18);
}

.service-image-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}

.service-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 18px;
}

.service-image-card h5 {
    margin: 0;
    min-height: 48px;
    color: var(--dark);
    font-size: 1.15rem;
    line-height: 1.25;
}

.service-image-card p {
    display: -webkit-box;
    min-height: 72px;
    margin: 10px 0 18px;
    overflow: hidden;
    color: #5f6b6d;
    line-height: 1.5;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.service-image-card .btn {
    align-self: flex-start;
    margin-top: auto;
}

@media (max-width: 991.98px) {
    .service-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.footer-main {
    margin-top: 0;
    background: #273437;
}

.testimonial-section {
    background: #fff;
}

.blog-section {
    background: #fff;
    padding-top: 0 !important;
    padding-bottom: 8.5rem !important;
}

.blog-card,
.testimonial-card {
    position: relative;
    overflow: hidden;
    height: 100%;
    border-radius: 6px;
    background: var(--light);
    box-shadow: 0 8px 24px rgba(39, 52, 55, .12);
}

.blog-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-date {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    padding: 8px 12px;
    border-radius: 4px;
    color: #fff;
    background: var(--primary);
    box-shadow: 0 6px 18px rgba(39, 52, 55, .18);
    font-family: 'Jost', sans-serif;
    font-size: .82rem;
    font-weight: 700;
}

.blog-card-body {
    padding: 24px;
}

.blog-card-body span {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: .82rem;
}

.blog-card-body h4 {
    min-height: 58px;
    margin-bottom: 12px;
}

.blog-card-body p {
    min-height: 72px;
    color: #5f6b6d;
}

.testimonial-card {
    min-height: 285px;
    padding: 34px 28px 76px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-stars {
    margin-bottom: 18px;
    color: #d7a847;
    letter-spacing: 2px;
}

.testimonial-stars::after {
    content: " Google Review";
    margin-left: 8px;
    color: var(--primary);
    font-family: 'Open Sans', sans-serif;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: 0;
}

.testimonial-card p {
    font-size: 1.08rem;
    line-height: 1.8;
    color: #465255;
}

.testimonial-card h5 {
    margin-top: 18px;
    margin-bottom: 4px;
}

.testimonial-card span {
    color: var(--primary);
    font-weight: 600;
}

.google-review-summary {
    color: #5f6b6d;
    font-weight: 600;
}

.blog-category {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
}

.blog-detail-card {
    position: relative;
    padding: 32px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(39, 52, 55, .10);
}

.blog-detail-card p {
    color: #5f6b6d;
    font-size: 1.05rem;
    line-height: 1.8;
}

.blog-control,
.testimonial-control {
    width: 42px;
    height: 42px;
    top: auto;
    bottom: -58px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 1;
}

.blog-control.carousel-control-prev,
.testimonial-control.carousel-control-prev {
    left: auto;
    right: 66px;
}

.blog-control.carousel-control-next,
.testimonial-control.carousel-control-next {
    right: 14px;
}

.blog-control:hover,
.testimonial-control:hover {
    background: var(--secondary);
}

.footer-main .container {
    padding-top: 4rem !important;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.55rem;
    line-height: 1.25;
}

.footer-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    padding: 4px;
    border-radius: 6px;
    background: #fff;
}

.footer-title {
    position: relative;
    padding-bottom: 12px;
    font-size: 1.35rem;
}

.footer-title::after {
    position: absolute;
    content: "";
    left: 0;
    bottom: 0;
    width: 46px;
    height: 3px;
    background: var(--primary);
}

.footer-copy {
    color: rgba(255, 255, 255, .78);
    max-width: 380px;
}

.footer-links {
    display: grid;
    gap: 9px;
}

.footer-links a {
    color: rgba(255, 255, 255, .82);
    line-height: 1.35;
}

.footer-links a::before {
    content: "\2192";
    color: var(--primary);
    margin-right: 8px;
}

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

.footer-contact p {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 8px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, .84);
    line-height: 1.45;
}

.footer-contact i {
    color: var(--primary);
    margin-top: 2px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    color: #fff;
    background: var(--primary);
}

.footer-social a:hover {
    background: var(--secondary);
}

.footer-bottom {
    background: #1f292c;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.ai-assist-widget {
    position: fixed;
    left: 24px;
    bottom: 86px;
    z-index: 100;
    width: 330px;
    max-width: calc(100vw - 32px);
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(39, 52, 55, .28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: .25s ease;
}

.ai-assist-widget.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ai-assist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    color: #fff;
    background: var(--primary);
}

.ai-assist-close {
    border: 0;
    color: #fff;
    background: transparent;
    font-size: 28px;
    line-height: 1;
}

.ai-assist-body {
    max-height: 245px;
    overflow-y: auto;
    padding: 14px;
    background: #f7f9fc;
}

.ai-assist-message {
    padding: 14px;
    margin-bottom: 14px;
    border-radius: 7px;
    color: #2d2a57;
    background: #fff;
    box-shadow: 0 3px 14px rgba(39, 52, 55, .12);
}

.ai-assist-actions {
    display: grid;
    gap: 10px;
}

.ai-assist-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 12px;
    border-radius: 6px;
    color: var(--dark);
    background: #e9edf3;
    font-weight: 600;
}

.ai-assist-actions a:hover {
    color: #fff;
    background: var(--primary);
}

.ai-assist-form {
    display: grid;
    grid-template-columns: 1fr auto;
    border-top: 1px solid #e8edf5;
}

.ai-assist-form input {
    min-width: 0;
    border: 0;
    padding: 13px 12px;
    outline: 0;
}

.ai-assist-form button {
    border: 0;
    padding: 0 18px;
    color: #fff;
    background: var(--primary);
    font-weight: 600;
}

.ai-assist-float {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 99;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    padding: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--secondary);
    box-shadow: 0 8px 24px rgba(39, 52, 55, .25);
}

.ai-assist-float:hover {
    color: #fff;
    background: var(--primary);
}

.ai-assist-float i {
    font-size: 24px;
}

.ai-assist-float span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

@media (max-width: 576px) {
    .footer-main {
        margin-top: 0;
    }

    .blog-card-body h4,
    .blog-card-body p,
    .testimonial-card {
        min-height: auto;
    }

    .testimonial-card {
        padding: 32px 24px 78px;
    }

    .blog-section {
        padding-bottom: 8rem !important;
    }

    .blog-control,
    .testimonial-control {
        bottom: -54px;
    }

    .service-list-grid {
        grid-template-columns: 1fr;
    }

    .footer-main .container {
        padding-top: 3rem !important;
    }

    .footer-brand {
        font-size: 1.3rem;
    }

    .footer-logo {
        width: 42px;
        height: 42px;
    }

    .footer-title {
        font-size: 1.15rem;
    }

    .ai-assist-widget {
        left: 10px;
        right: 10px;
        bottom: 72px;
        width: auto;
    }

    .ai-assist-float {
        left: 12px;
        bottom: 16px;
        right: auto;
        width: 52px;
        height: 52px;
    }
}
