/* ============================================
   Simplepage CSS
   BEM-style naming: .sp-{block}__{element}--{modifier}
   Design reference: thesecrethousekeeper.co.uk
   ============================================ */

/* --- CSS Custom Properties (Fallbacks) --- */
:root {
    --sp-primary: #3d5a6e;
    --sp-secondary: #2c3e50;
    --sp-accent: #1abc9c;
    --sp-accent-hover: #17a589;
    --sp-light: #f0f4f7;
    --sp-lighter: #f8f9fa;
    --sp-dark: #2c3e50;
    --sp-text: #555;
    --sp-heading: #333;
    --sp-font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --sp-heading-font: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --sp-border-radius: 4px;
    --sp-transition: 0.3s ease;
    --sp-standard: #0ab5a4;
}

/* --- Auto-contrast theme classes --- */
/* These use [class*=] to boost specificity and override block-specific defaults */
[class*="sp-theme--light"],
[class*="sp-theme--light"] h1, [class*="sp-theme--light"] h2, [class*="sp-theme--light"] h3,
[class*="sp-theme--light"] h4, [class*="sp-theme--light"] h5, [class*="sp-theme--light"] h6,
[class*="sp-theme--light"] p, [class*="sp-theme--light"] span, [class*="sp-theme--light"] li,
[class*="sp-theme--light"] label, [class*="sp-theme--light"] .lead,
[class*="sp-theme--light"] [class*="__title"],
[class*="sp-theme--light"] [class*="__value"],
[class*="sp-theme--light"] [class*="__label"],
[class*="sp-theme--light"] [class*="__prefix"],
[class*="sp-theme--light"] [class*="__suffix"],
[class*="sp-theme--light"] [class*="__content"] {
    color: #333;
}
[class*="sp-theme--light"] .btn-light {
    color: #333;
    background-color: #e9ecef;
    border-color: #dee2e6;
}
[class*="sp-theme--light"] .btn-outline-light {
    color: #333;
    border-color: #333;
}
[class*="sp-theme--light"] .btn-outline-light:hover {
    color: #fff;
    background-color: #333;
}
[class*="sp-theme--light"] a:not(.btn) {
    color: var(--sp-accent);
}

[class*="sp-theme--dark"],
[class*="sp-theme--dark"] h1, [class*="sp-theme--dark"] h2, [class*="sp-theme--dark"] h3,
[class*="sp-theme--dark"] h4, [class*="sp-theme--dark"] h5, [class*="sp-theme--dark"] h6,
[class*="sp-theme--dark"] p, [class*="sp-theme--dark"] span, [class*="sp-theme--dark"] li,
[class*="sp-theme--dark"] label, [class*="sp-theme--dark"] .lead,
[class*="sp-theme--dark"] [class*="__title"],
[class*="sp-theme--dark"] [class*="__value"],
[class*="sp-theme--dark"] [class*="__label"],
[class*="sp-theme--dark"] [class*="__prefix"],
[class*="sp-theme--dark"] [class*="__suffix"],
[class*="sp-theme--dark"] [class*="__content"] {
    color: #fff;
}
[class*="sp-theme--dark"] a:not(.btn) {
    color: #fff;
}

/* --- Base --- */
body {
    font-family: var(--sp-font-family);
    color: var(--sp-text);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--sp-heading-font);
    color: var(--sp-heading);
    font-weight: 700;
}

/* --- Global BetterIcons Styling --- */
svg[data-icon],
.sp-stats__icon svg,
.sp-service-intro svg,
.sp-services-grid svg,
.sp-services-icon-row svg {
    color: var(--sp-accent);
}

svg[data-icon] [fill]:not([fill="none"]),
.sp-stats__icon svg [fill]:not([fill="none"]),
.sp-service-intro svg [fill]:not([fill="none"]),
.sp-services-grid svg [fill]:not([fill="none"]),
.sp-services-icon-row svg [fill]:not([fill="none"]) {
    fill: var(--sp-accent) !important;
}

svg[data-icon] [stroke]:not([stroke="none"]),
.sp-stats__icon svg [stroke]:not([stroke="none"]),
.sp-service-intro svg [stroke]:not([stroke="none"]),
.sp-services-grid svg [stroke]:not([stroke="none"]),
.sp-services-icon-row svg [stroke]:not([stroke="none"]) {
    stroke: var(--sp-accent) !important;
}

/* White icons for blocks on accent/coloured backgrounds */
.sp-cta-icons__item-icon svg [fill]:not([fill="none"]) {
    fill: #fff !important;
}

.sp-cta-icons__item-icon svg [stroke]:not([stroke="none"]) {
    stroke: #fff !important;
}

a {
    color: var(--sp-accent-link, var(--sp-accent));
    transition: color var(--sp-transition);
}

a:hover {
    color: var(--sp-accent-hover);
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Bootstrap Overrides --- */
.btn {
    border-radius: 50px;
    padding: 0.6rem 1.8rem;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all var(--sp-transition);
}

.btn-primary {
    background-color: var(--sp-accent-btn-bg, var(--sp-accent));
    border-color: var(--sp-accent-btn-bg, var(--sp-accent));
    color: var(--sp-accent-btn-text, #fff);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--sp-accent-btn-hover, var(--sp-accent-hover));
    border-color: var(--sp-accent-btn-hover, var(--sp-accent-hover));
    color: var(--sp-accent-btn-text, #fff);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-accent {
    background-color: var(--sp-accent);
    border-color: var(--sp-accent);
    color: #fff;
}

.btn-accent:hover,
.btn-accent:focus {
    background-color: var(--sp-accent-hover);
    border-color: var(--sp-accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-outline-primary {
    color: var(--sp-accent);
    border-color: var(--sp-accent);
    border-width: 2px;
}

.btn-outline-primary:hover {
    background-color: var(--sp-accent);
    border-color: var(--sp-accent);
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline-light {
    border-width: 2px;
    border-radius: 50px;
    padding: 0.6rem 1.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.btn-outline-light:hover {
    transform: translateY(-1px);
}

.text-primary {
    color: var(--sp-accent) !important;
}

.bg-primary {
    background-color: var(--sp-primary) !important;
}

/* --- Section Spacing --- */
section {
    position: relative;
}

.sp-section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.sp-section-heading h2 {
    font-size: 2.2rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
}

.sp-section-heading h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--sp-accent);
}

.sp-section-subtitle {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    color: var(--sp-accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* --- Top Bar --- */
.sp-topbar {
    background-color: #fff !important;
    border-bottom: 1px solid #eee;
    padding: 0.5rem 0;
}

.sp-topbar a {
    color: var(--sp-primary) !important;
    font-weight: 600;
    font-size: 0.9rem;
}

.sp-topbar a:hover {
    color: var(--sp-accent) !important;
}

.sp-topbar .bi {
    color: var(--sp-accent);
    font-size: 1.1rem;
}

.sp-topbar__contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* --- Logo --- */
.sp-logo {
    max-height: 80px;
    width: auto;
}

/* --- Navigation --- */
.navbar {
    background-color: var(--sp-primary) !important;
    padding: 0;
    transition: box-shadow var(--sp-transition);
}

.navbar .navbar-nav {
    gap: 0;
}

.navbar .nav-link {
    color: #fff !important;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 1.2rem !important;
    transition: all var(--sp-transition);
    position: relative;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--sp-accent) !important;
    background-color: rgba(255, 255, 255, 0.05);
}

.navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.2rem;
    right: 1.2rem;
    height: 3px;
    background-color: var(--sp-accent);
}

.navbar .dropdown-menu {
    border: none;
    border-radius: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    padding: 0;
    margin-top: 0;
}

.navbar .dropdown-item {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    transition: all var(--sp-transition);
}

.navbar .dropdown-item:hover {
    background-color: var(--sp-accent);
    color: #fff;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: '\F282';
    font-family: 'bootstrap-icons';
    font-size: 0.7rem;
    vertical-align: middle;
    margin-left: 0.3rem;
}

/* Hover-to-open dropdown on desktop */
@media (min-width: 992px) {
    .sp-nav-dropdown-hover:hover > .dropdown-menu {
        display: block;
    }

    .sp-nav-dropdown-hover > .dropdown-menu {
        margin-top: 0;
    }
}

.navbar .btn-primary {
    margin-left: 1rem;
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
    padding: 0.4rem 0.6rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- Navbar auto-contrast (light primary colour) --- */
.sp-navbar--light .nav-link {
    color: #333 !important;
}
.sp-navbar--light .nav-link:hover,
.sp-navbar--light .nav-link.active {
    color: var(--sp-accent) !important;
    background-color: rgba(0, 0, 0, 0.05);
}
.sp-navbar--light .navbar-brand span {
    color: #333 !important;
}
.sp-navbar--light .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.3);
}
.sp-navbar--light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- Page Banner (inner pages) --- */
.sp-page-banner {
    background-color: var(--sp-primary);
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 4rem 0;
    text-align: center;
    overflow: hidden;
}

.sp-page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.85), rgba(61, 90, 110, 0.75));
    z-index: 1;
}

.sp-page-banner > * {
    position: relative;
    z-index: 2;
}

.sp-page-banner h1 {
    color: #fff;
    font-size: 2.8rem;
    font-weight: 700;
    font-style: italic;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* --- Hero Banner --- */
.sp-hero {
    position: relative;
    min-height: 550px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.sp-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.sp-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.sp-hero__content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 550px;
}

.sp-hero__content h1 {
    color: #fff;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.sp-hero__content .sp-hero__subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.sp-hero__content p {
    font-size: 1rem;
    opacity: 0.85;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.sp-hero__content .btn {
    margin-top: 0.5rem;
}

/* --- Hero With Form --- */
.sp-hero-form {
    position: relative;
    min-height: 550px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.sp-hero-form__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.sp-hero-form__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.sp-hero-form__content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.sp-hero-form__content h1 {
    color: #fff;
    font-size: 2.8rem;
    font-weight: 700;
}

.sp-hero-form__card {
    background: #fff;
    border-radius: 10px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    text-align: center;
    border-left: 5px solid var(--sp-accent);
    max-width: 430px;
    margin-left: auto;
}

.sp-hero-form__card h3 {
    color: var(--sp-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.sp-hero-form__card p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.sp-hero-form__card .form-label {
    display: block;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 0.25rem;
}

.sp-hero-form__card .form-control {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
}

.sp-hero-form__card .form-control:focus {
    border-color: var(--sp-accent);
    box-shadow: 0 0 0 0.2rem rgba(26, 188, 156, 0.2);
}

.sp-hero-form__card .btn {
    width: 100%;
    padding: 0.8rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 6px;
    margin-top: 0.5rem;
}

/* --- Rich Text Block --- */
.sp-richtext {
    padding: 3rem 0;
}

.sp-richtext__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.sp-richtext__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--sp-accent);
}

.sp-richtext__content {
    font-size: 1rem;
    line-height: 1.8;
}

.sp-richtext__content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.18);
    margin: 1rem 0;
}

.sp-richtext__content table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

.sp-richtext__content table th,
.sp-richtext__content table td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
}

.sp-richtext__content ul {
    list-style: none;
    padding-left: 0;
}

.sp-richtext__content ul li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.5rem;
}

.sp-richtext__content ul li::before {
    content: '\F272';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    color: var(--sp-accent);
    font-weight: 700;
}

.sp-richtext__content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

/* --- Image & Text Block --- */
.sp-image-text {
    padding: 4rem 0;
}

.sp-image-text__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-image-text__title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.sp-image-text__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--sp-accent);
}

.sp-image-text__body {
    font-size: 1rem;
    line-height: 1.8;
    max-width: 410px;
}

.sp-image-text__body ul {
    list-style: none;
    padding-left: 0;
}

.sp-image-text__body ul li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.5rem;
}

.sp-image-text__body ul li::before {
    content: '\F272';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    color: var(--sp-accent);
    font-weight: 700;
}

/* --- Feature List --- */
.sp-features {
    padding: 3rem 0;
}

.sp-features__list {
    list-style: none;
    padding: 0;
}

.sp-features__list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.sp-features__list li::before {
    content: '\F272';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    color: var(--sp-accent);
    font-weight: 700;
}

/* --- Certifications Block --- */
.sp-certifications {
    background-color: var(--sp-secondary);
    color: #fff;
    padding: 4rem 0;
}

.sp-certifications__title {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.sp-certifications__item {
    text-align: center;
    padding: 1.5rem;
}

.sp-certifications__icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-certifications__icon img {
    max-width: 100%;
    max-height: 100%;
}

.sp-certifications__icon svg {
    max-width: 100%;
    max-height: 100%;
}

.sp-certifications__item h4 {
    color: var(--sp-accent);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.sp-certifications__item p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0;
}

/* --- CTA Banner --- */
.sp-cta-banner {
    background-color: var(--sp-primary);
    background-image: linear-gradient(135deg, var(--sp-primary), var(--sp-secondary));
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.sp-cta-banner__title {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.sp-cta-banner__text {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.sp-cta-banner__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- CTA With Icons --- */
.sp-cta-icons {
    background-color: var(--sp-accent);
    color: #fff;
    padding: 5rem 0;
}

.sp-cta-icons__content {
    margin-bottom: 2rem;
}

.sp-cta-icons__title {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.sp-cta-icons__body {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.8;
}

.sp-cta-icons__item {
    text-align: center;
    padding: 1.5rem;
}

.sp-cta-icons__item-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    color: #fff;
    font-size: 2.5rem;
}

.sp-cta-icons__item h5 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}

@media (min-width: 992px) {
    .sp-cta-icons__content {
        margin-bottom: 0;
    }
}

/* --- Services Grid --- */
.sp-services-grid {
    padding: 4rem 0;
}

.sp-services-grid__title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.sp-services-grid__subtitle {
    text-align: center;
    color: var(--sp-text);
    margin-bottom: 3rem;
}

/* --- Service Cards --- */
.sp-service-card {
    border: none;
    border-radius: 8px;
    text-align: center;
    transition: transform var(--sp-transition), box-shadow var(--sp-transition);
    overflow: hidden;
    background: #fff;
}

.sp-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important;
}

.sp-service-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.sp-service-card__icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto;
}

.sp-service-card .card-body {
    padding: 1.5rem;
}

.sp-service-card .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--sp-heading);
    margin-bottom: 0.75rem;
}

.sp-service-card .card-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--sp-text);
}

.sp-service-card .btn {
    margin-top: 1rem;
    font-size: 0.8rem;
    padding: 0.5rem 1.5rem;
}

/* --- Service Icon Row --- */
.sp-service-icons {
    padding: 3rem 0;
    background-color: var(--sp-lighter);
}

.sp-service-icon-item {
    text-align: center;
    padding: 1rem;
    transition: transform var(--sp-transition);
}

.sp-service-icon-item:hover {
    transform: scale(1.05);
}

.sp-service-icon-item__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-service-icon-item__icon img {
    max-width: 100%;
    max-height: 100%;
}

.sp-service-icon-item__name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sp-heading);
}

/* --- Testimonials Carousel --- */
.sp-testimonials {
    padding: 5rem 0;
    background-color: #fff;
    overflow: hidden;
}

.sp-testimonials__heading {
    text-align: center;
    margin-bottom: 3rem;
}

.sp-testimonials__subtitle {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    color: var(--sp-accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.sp-testimonials__title {
    font-size: 2.2rem;
    font-weight: 700;
}

.sp-testimonials__carousel {
    position: relative;
}

.sp-testimonials__track {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 0;
    position: relative;
}

.sp-testimonials__slide {
    display: none;
    flex: 0 0 auto;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.sp-testimonials__slide--active {
    display: block;
    width: 55%;
    max-width: 650px;
    opacity: 1;
    transform: scale(1);
    z-index: 3;
    position: relative;
}

.sp-testimonials__slide--prev,
.sp-testimonials__slide--next {
    display: block;
    width: 55%;
    max-width: 650px;
    opacity: 0.3;
    transform: scale(0.92);
    cursor: pointer;
    z-index: 1;
    margin-top: 4.5rem;
}

.sp-testimonials__slide--prev {
    order: -1;
    margin-right: -6%;
}

.sp-testimonials__slide--next {
    order: 1;
    margin-left: -6%;
}

.sp-testimonials__slide--prev:hover,
.sp-testimonials__slide--next:hover {
    opacity: 0.5;
}

.sp-testimonial-card {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    position: relative;
}

.sp-testimonial-card__quote-icon {
    color: var(--sp-accent);
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 0.75rem;
    opacity: 0.6;
}

.sp-testimonial-card__text {
    font-size: 0.95rem;
    line-height: 1.8;
    font-style: italic;
    color: var(--sp-text);
    margin-bottom: 1.5rem;
}

.sp-testimonial-card__customer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sp-testimonial-card__photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.sp-testimonial-card__name {
    font-weight: 700;
    color: var(--sp-heading);
    font-size: 1rem;
    margin-bottom: 0;
}

.sp-testimonial-card__role {
    font-size: 0.85rem;
    color: var(--sp-text);
    margin-bottom: 0;
}

/* --- Stats Counter --- */
.sp-stats {
    padding: 4rem 0;
    background-color: var(--sp-lighter);
}

.sp-stats__item {
    text-align: center;
    padding: 2rem 1rem;
}

.sp-stats__icon {
    margin-bottom: 1rem;
}

.sp-stats__value {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.sp-stats__prefix,
.sp-stats__suffix {
    font-size: 2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
}

.sp-stats__label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* --- Featured Work Gallery --- */
.sp-featured-gallery {
    padding: 5rem 0;
    background-color: #fff;
}

.sp-featured-gallery__heading {
    text-align: center;
    margin-bottom: 3rem;
}

.sp-featured-gallery__subtitle {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    color: var(--sp-accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.sp-featured-gallery__title {
    font-size: 2.2rem;
    font-weight: 700;
}

.sp-featured-gallery .carousel-item img {
    height: 400px;
    object-fit: cover;
    border-radius: 4px;
}

/* --- Image Gallery --- */
.sp-gallery {
    padding: 3rem 0;
}

.sp-gallery__grid {
    display: grid;
    gap: 1rem;
}

.sp-gallery__grid--3 { grid-template-columns: repeat(3, 1fr); }
.sp-gallery__grid--4 { grid-template-columns: repeat(4, 1fr); }
.sp-gallery__grid--6 { grid-template-columns: repeat(6, 1fr); }

.sp-gallery__item {
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
}

.sp-gallery__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--sp-transition), opacity var(--sp-transition);
    cursor: pointer;
}

.sp-gallery__image:hover {
    transform: scale(1.08);
    opacity: 0.9;
}

/* --- Page Gallery (Gallery Page template) --- */
.sp-page-gallery {
    background: var(--sp-lighter);
}

.sp-page-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.sp-page-gallery__item {
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
}

.sp-page-gallery__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--sp-transition), opacity var(--sp-transition);
    cursor: pointer;
}

.sp-page-gallery__image:hover {
    transform: scale(1.08);
    opacity: 0.9;
}

.sp-page-gallery__pagination {
    margin-top: 2rem;
}

.sp-page-gallery__pagination .page-link {
    color: var(--sp-primary);
    border-color: #dee2e6;
}

.sp-page-gallery__pagination .page-item.active .page-link {
    background-color: var(--sp-primary);
    border-color: var(--sp-primary);
    color: #fff;
}

.sp-page-gallery__pagination .page-link:hover {
    background-color: var(--sp-light);
    color: var(--sp-primary);
}

/* --- Blog Cards --- */
.sp-blog-cards {
    padding: 4rem 0;
}

.sp-blog-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform var(--sp-transition), box-shadow var(--sp-transition);
    background: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

.sp-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.sp-blog-card .card-img-top {
    height: 220px;
    object-fit: cover;
}

.sp-blog-card .card-body {
    padding: 1.5rem;
    text-align: center;
}

.sp-blog-card .card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.sp-blog-card .card-title a {
    color: var(--sp-heading);
    text-decoration: none;
}

.sp-blog-card .card-title a:hover {
    color: var(--sp-accent);
}

.sp-blog-card .card-text {
    font-size: 0.9rem;
    color: var(--sp-text);
    line-height: 1.7;
}

.sp-blog-card__meta {
    margin-bottom: 0.5rem;
}

.sp-blog-card .btn {
    margin-top: 1rem;
}

/* --- Blog Post --- */
.sp-blog-post {
    padding: 3rem 0;
}

.sp-blog-post__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--sp-text);
    margin-bottom: 1.5rem;
}

.sp-blog-post__meta .bi {
    color: var(--sp-accent);
}

.sp-blog-post__categories {
    margin-bottom: 1.5rem;
}

.sp-blog-post__categories .badge {
    background-color: var(--sp-accent) !important;
    font-weight: 500;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
}

.sp-blog-post__image {
    margin-bottom: 2rem;
}

.sp-blog-post__image img {
    border-radius: 8px;
    width: 100%;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.18);
}

.sp-blog-post__content {
    font-size: 1.05rem;
    line-height: 1.9;
}

.sp-blog-post__content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--sp-heading);
}

.sp-blog-post__content h3 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.sp-blog-post__content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.sp-blog-post__content blockquote {
    border-left: 4px solid var(--sp-accent);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #666;
}

.sp-blog-post__content ul {
    list-style: none;
    padding-left: 0;
}

.sp-blog-post__content ul li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.5rem;
}

.sp-blog-post__content ul li::before {
    content: '\F272';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    color: var(--sp-accent);
    font-weight: 700;
}

/* --- Blog Sidebar --- */
.sp-blog-sidebar .card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

.sp-blog-sidebar .card-title {
    font-size: 1.2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.75rem;
}

.sp-blog-sidebar .card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--sp-accent);
}

.sp-blog-sidebar a {
    color: var(--sp-heading);
    text-decoration: none;
    transition: color var(--sp-transition);
}

.sp-blog-sidebar a:hover {
    color: var(--sp-accent);
}

.sp-blog-sidebar a:hover h6 {
    color: var(--sp-accent);
}

/* --- Blog Listing --- */
.sp-blog-listing {
    padding: 4rem 0;
}

/* --- Services Listing --- */
.sp-services-listing {
    padding: 0 0 4rem;
}

.sp-services-intro {
    padding: 3rem 0 1rem;
}

.sp-services-cta {
    background-color: var(--sp-secondary);
    padding: 4rem 0;
}

/* --- Contact Form Block --- */
.sp-contact-form {
    padding: 4rem 0;
}

.sp-contact-form__card {
    background: #fff;
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

.sp-contact-form__title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.sp-contact-form__subtitle {
    color: var(--sp-text);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.sp-contact-form .form-control {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: border-color var(--sp-transition), box-shadow var(--sp-transition);
}

.sp-contact-form .form-control:focus {
    border-color: var(--sp-accent);
    box-shadow: 0 0 0 0.2rem rgba(26, 188, 156, 0.2);
}

.sp-contact-form .form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--sp-heading);
}

.sp-contact-form .btn-primary {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
}

.sp-form-feedback.success {
    color: #198754;
    background-color: #d1e7dd;
    border: 1px solid #badbcc;
    padding: 0.75rem 1rem;
    border-radius: 4px;
}

.sp-form-feedback.error {
    color: #842029;
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
    padding: 0.75rem 1rem;
    border-radius: 4px;
}

/* --- Google Map --- */
.sp-map {
    width: 100%;
}

.sp-map__container {
    width: 100%;
    border: none;
    border-radius: 0;
}

.sp-map__container iframe {
    width: 100%;
    border: none;
}

/* InfoWindow overrides */
.sp-map__container .gm-style-iw-c {
    border-radius: 10px !important;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12) !important;
}

/* --- Recent Posts Sidebar --- */
.sp-recent-posts .card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

/* --- Service Page Intro --- */
.sp-service-intro {
    border-bottom: 1px solid #eee;
}

.sp-service-intro__icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* --- Footer --- */
.sp-footer {
    background-color: var(--sp-dark) !important;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.sp-footer__heading {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.sp-footer__heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--sp-accent);
}

.sp-footer__text {
    font-size: 0.85rem;
    line-height: 1.7;
    opacity: 0.8;
}

.sp-footer__link {
    color: rgba(255, 255, 255, 0.6) !important;
    transition: all var(--sp-transition);
    font-size: 0.9rem;
}

.sp-footer__link:hover {
    color: #fff !important;
    padding-left: 5px;
}

.sp-footer__social a {
    transition: opacity var(--sp-transition);
}

.sp-footer__social a:hover {
    opacity: 0.7;
}

.sp-footer__social a[aria-label="Facebook"]    { color: #1877F2 !important; }
.sp-footer__social a[aria-label="Instagram"]   { color: #E4405F !important; }
.sp-footer__social a[aria-label="Twitter"]     { color: #000000 !important; }
.sp-footer__social a[aria-label="LinkedIn"]    { color: #0A66C2 !important; }
.sp-footer__social a[aria-label="YouTube"]     { color: #FF0000 !important; }
.sp-footer__social a[aria-label="TikTok"]      { color: #000000 !important; }
.sp-footer__social a[aria-label="Pinterest"]   { color: #BD081C !important; }
.sp-footer__social a[aria-label="Snapchat"]    { color: #FFFC00 !important; }
.sp-footer__social a[aria-label="WhatsApp"]    { color: #25D366 !important; }

.sp-footer p {
    color: rgba(255, 255, 255, 0.6);
}

.sp-footer a {
    color: var(--sp-accent);
}

.sp-footer .bi {
    color: var(--sp-accent);
}

.sp-footer__social a,
.sp-footer__social a .bi {
    color: inherit;
}

.sp-footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* --- Back to Top Button --- */
.sp-back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    background-color: var(--sp-accent);
    color: #fff;
    border: none;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--sp-transition);
    box-shadow: 0 2px 10px rgba(26, 188, 156, 0.3);
}

.sp-back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.sp-back-to-top:hover {
    background-color: var(--sp-accent-hover);
    transform: translateY(-3px);
}

/* --- Loading Spinner --- */
.sp-spinner {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: sp-spin 0.75s linear infinite;
}

@keyframes sp-spin {
    to { transform: rotate(360deg); }
}

/* --- Utility: Alternating Section Backgrounds --- */
.sp-bg-light {
    background-color: var(--sp-light);
}

.sp-bg-lighter {
    background-color: var(--sp-lighter);
}

/* --- Print Styles --- */
@media print {
    .sp-topbar,
    .navbar,
    .sp-footer,
    .sp-cta-banner,
    .sp-cta-icons,
    .sp-contact-form,
    .sp-map,
    .sp-back-to-top,
    .btn {
        display: none !important;
    }

    .sp-hero,
    .sp-hero-form {
        min-height: auto !important;
        padding: 2rem 0;
    }

    .sp-hero__bg,
    .sp-hero__overlay,
    .sp-hero-form__bg,
    .sp-hero-form__overlay {
        display: none;
    }

    .sp-hero .text-white,
    .sp-hero-form .text-white {
        color: #000 !important;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    a {
        text-decoration: none;
        color: #000;
    }
}

/* --- Two Column Feature Block --- */
.sp-two-col-feature {
    position: relative;
}

/* Banner */
.sp-two-col-feature__banner {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 5rem 0 8rem;
    text-align: center;
}

.sp-two-col-feature__banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.sp-two-col-feature__banner-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.sp-two-col-feature__banner-title {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.sp-two-col-feature__banner-divider {
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--sp-accent);
    margin: 0 auto 1rem;
}

.sp-two-col-feature__banner-subtext {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.sp-two-col-feature__banner-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.sp-two-col-feature__banner-actions .btn {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 0.65rem 1.8rem;
}

/* Cards */
.sp-two-col-feature__cards {
    margin-top: -4rem;
    position: relative;
    z-index: 2;
    padding-bottom: 4rem;
}

.sp-two-col-feature__cards .row {
    max-width: 900px;
    margin: 0 auto;
}

.sp-two-col-feature__card {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2.5rem;
    overflow: hidden;
}

.sp-two-col-feature__card--image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px 0 0 12px;
}

.sp-two-col-feature__card--solid {
    border-radius: 0 12px 12px 0;
}

.sp-two-col-feature__card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.sp-two-col-feature__card-content {
    position: relative;
    z-index: 1;
    max-width: 400px;
}

.sp-two-col-feature__card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.sp-two-col-feature__card-body {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.sp-two-col-feature__card .btn {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    padding: 0.55rem 1.5rem;
}

.sp-two-col-cta {
    display: inline-block;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    padding: 14px 36px;
    border: none;
    transition: opacity 0.25s ease;
    margin-top: 0.5rem;
}
.sp-two-col-cta:hover {
    opacity: 0.85;
}
.sp-two-col-cta--light {
    color: var(--sp-accent-text);
    background: var(--sp-accent);
}
.sp-two-col-cta--light:hover {
    color: var(--sp-accent-text);
}
.sp-two-col-cta--dark {
    color: #fff;
    background: #111;
}
.sp-two-col-cta--dark:hover {
    color: #fff;
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
    .sp-hero,
    .sp-hero-form {
        min-height: 450px;
    }

    .sp-hero__content h1,
    .sp-hero-form__content h1 {
        font-size: 2.2rem;
    }

    .sp-page-banner h1 {
        font-size: 2rem;
    }

    .navbar .nav-link {
        padding: 0.75rem 1rem !important;
    }

    .navbar .nav-link.active::after {
        display: none;
    }

    .sp-gallery__grid--4,
    .sp-gallery__grid--6 {
        grid-template-columns: repeat(3, 1fr);
    }

    .sp-page-gallery__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sp-stats__value {
        font-size: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .sp-hero,
    .sp-hero-form {
        min-height: 400px;
    }

    .sp-hero__content h1,
    .sp-hero-form__content h1 {
        font-size: 1.8rem;
    }

    .sp-page-banner h1 {
        font-size: 1.75rem;
    }

    .sp-gallery__grid--3,
    .sp-gallery__grid--4,
    .sp-gallery__grid--6 {
        grid-template-columns: repeat(2, 1fr);
    }

    .sp-page-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sp-cta-banner__title {
        font-size: 1.6rem;
    }

    .sp-testimonials__slide--prev,
    .sp-testimonials__slide--next {
        display: none;
    }
    .sp-testimonials__slide--active {
        width: 100%;
        max-width: 100%;
    }
    .sp-testimonial-card {
        padding: 1.5rem;
    }

    .sp-blog-post .col-lg-4 {
        margin-top: 2rem;
    }

    .sp-two-col-feature__banner {
        padding: 3rem 0 6rem;
    }

    .sp-two-col-feature__banner-title {
        font-size: 1.6rem;
    }

    .sp-two-col-feature__card {
        min-height: 300px;
        padding: 2rem 1.5rem;
    }

    .sp-two-col-feature__card--image {
        border-radius: 12px 12px 0 0;
    }

    .sp-two-col-feature__card--solid {
        border-radius: 0 0 12px 12px;
    }
}

@media (max-width: 575.98px) {
    .sp-hero,
    .sp-hero-form {
        min-height: 350px;
    }

    .sp-hero__content h1,
    .sp-hero-form__content h1 {
        font-size: 1.5rem;
    }

    .sp-stats__value {
        font-size: 2rem;
    }

    .sp-gallery__grid--3,
    .sp-gallery__grid--4,
    .sp-gallery__grid--6 {
        grid-template-columns: 1fr;
    }

    .sp-page-gallery__grid {
        grid-template-columns: 1fr;
    }

    .sp-topbar__contact {
        font-size: 0.75rem;
        gap: 0.75rem;
    }

    .btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }
}
