/* Square brand layer: preserves the original theme layout and animation system. */
:root {
    --main-color: #ef3739;
    --primary-color: #252423;
    --secondary-color: #f6f4f2;
    --text-color: #5f5b59;
    --white-color: #ffffff;
}

::selection {
    color: #ffffff;
    background: #ef3739;
}

.sisf-header-logo-link.navbar-brand {
    width: 145px;
    height: auto;
    overflow: visible;
    padding: 0;
    border-radius: 5px;
    background: transparent;
    align-items: center !important;
}

.sisf-header-logo-link.navbar-brand img {
    display: block;
    width: 145px !important;
    min-width: 145px;
    max-width: none;
    height: auto !important;
    border-radius: 5px;
}

.footer-logo {
    width: 220px;
    max-width: 100%;
    overflow: hidden;
    border-radius: 4px;
}

.footer-logo img {
    display: block;
    width: 220px !important;
    max-width: 100%;
    height: auto;
}

.sis-loading-icon {
    width: 170px;
    max-width: none;
}

.sis-loading-container,
.sis-loading {
    width: 210px;
    height: 210px;
}

.sis-loading-icon img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.sis-loading,
.sis-back-to-top,
.sis-btn-default,
.swiper-pagination-bullet-active {
    border-color: var(--main-color);
}

.sis-header-top,
.main-footer,
.sisf-page-footer-inner-area {
    background-color: var(--primary-color);
}

.main-footer {
    margin-top: 64px;
}

/* Replace the template's remaining olive accents with Square brand colors. */
.sis-services-section .sis-e-page-sub-category a {
    border: 1px solid rgba(239, 55, 57, .45);
    color: #ffffff;
    background: linear-gradient(205deg, rgba(239, 55, 57, .72), rgba(239, 55, 57, .28));
}

.sis-services-section .sis-e-page-sub-category a:hover {
    border-color: var(--main-color);
    background: var(--main-color);
}

/* Keep dynamic service cards readable and aligned regardless of content length. */
.sis-services-section .sisf-sis-e-service-list {
    margin-bottom: 0;
}

.sis-services-section .service-card-media figure {
    aspect-ratio: 16 / 10;
    margin: 0;
    overflow: hidden;
    border-radius: inherit;
}

.sis-services-section .service-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.sis-services-section .sisf-sis-e-service-list.bg-white .service-card-title-link {
    color: var(--primary-color) !important;
}

.sis-services-section .sisf-sis-e-service-list.bg-white .service-card-title-link:hover {
    color: var(--main-color) !important;
}

.sis-services-section .service-card-excerpt {
    min-height: 3.2em;
    line-height: 1.6;
    -webkit-line-clamp: 2;
}

.sis-services-section .sis-e-page-sub-category {
    min-height: 72px;
    align-content: flex-start;
}

.sisf-hero-content-right .sis-e-icon-spin img {
    filter: hue-rotate(276deg) saturate(3.8) brightness(1.08);
}

/* Keep every uploaded testimonial photo uniform, regardless of source dimensions. */
.testimonial-avatar {
    width: 70px;
    height: 70px;
    min-width: 70px;
    flex: 0 0 70px;
    overflow: hidden;
    border-radius: 50%;
    background-color: #f4f4f4;
}

.testimonial-avatar .testimonial-avatar-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
}

@media (max-width: 1199px) {
    .sisf-header-logo-link.navbar-brand {
        width: 130px;
        height: auto;
    }

    .sisf-header-logo-link.navbar-brand img {
        width: 130px !important;
        min-width: 130px;
    }
}

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

    .sisf-header-logo-link.navbar-brand {
        width: 115px;
        height: auto;
    }

    .sisf-header-logo-link.navbar-brand img {
        width: 115px !important;
        min-width: 115px;
    }

    .sis-loading-container,
    .sis-loading {
        width: 180px;
        height: 180px;
    }

    .sis-loading-icon {
        width: 145px;
    }

    .sis-services-section .service-card-excerpt,
    .sis-services-section .sis-e-page-sub-category {
        min-height: auto;
    }
}
