:root {
    --scp-primary: #023047;
    --scp-secondary: #219ebc;
    --scp-accent: #ffb703;
    --scp-text: #15313f;
    --scp-muted: #627989;
    --scp-soft: #eef8fb;
    --scp-white: #ffffff;
    --scp-radius: 28px;
    --scp-shadow: 0 20px 60px rgba(2, 48, 71, 0.14);
    --scp-card-bg: #ffffff;
    --scp-card-soft: #f4f5f6;
    --scp-card-border: rgba(56, 67, 74, 0.14);
    --scp-card-shadow: 0 16px 42px rgba(25, 38, 46, 0.12);
    --scp-card-shadow-hover: 0 24px 58px rgba(25, 38, 46, 0.18);
    --scp-max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.scp-theme {
    margin: 0;
    color: var(--scp-text);
    background: #f7fbfd;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

body.scp-theme a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.scp-container {
    width: min(var(--scp-max), calc(100% - 36px));
    margin: 0 auto;
}

.scp-skip-link {
    position: absolute;
    left: -999px;
    top: 10px;
    background: var(--scp-primary);
    color: #fff;
    padding: 10px 14px;
    z-index: 9999;
}

.scp-skip-link:focus {
    left: 10px;
}

.scp-site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(2, 48, 71, 0.08);
}

.scp-header-inner {
    min-height: 84px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.scp-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 230px;
}

.scp-brand-logo img {
    max-height: 58px;
    width: auto;
}

.scp-brand-mark {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--scp-primary), var(--scp-secondary));
    color: #fff;
    font-weight: 900;
    letter-spacing: -1px;
}

.scp-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.scp-brand-text strong {
    font-size: 1.05rem;
    color: var(--scp-primary);
}

.scp-brand-text em {
    font-size: 0.78rem;
    color: var(--scp-muted);
    font-style: normal;
    max-width: 260px;
}

.scp-primary-nav {
    margin-left: auto;
}

.scp-menu,
.scp-menu ul,
.scp-footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.scp-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.scp-menu a {
    display: block;
    text-decoration: none;
    color: var(--scp-text);
    font-weight: 700;
    font-size: 0.92rem;
    padding: 10px 12px;
    border-radius: 999px;
}

.scp-menu a:hover,
.scp-menu .current-menu-item > a {
    background: var(--scp-soft);
    color: var(--scp-primary);
}

.scp-header-cta {
    display: flex;
}

.scp-nav-toggle {
    display: none;
    border: 0;
    background: var(--scp-primary);
    border-radius: 14px;
    padding: 10px;
    width: 46px;
    height: 44px;
}

.scp-nav-toggle span:not(.screen-reader-text) {
    display: block;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    border-radius: 5px;
}

.screen-reader-text {
    clip: rect(1px,1px,1px,1px);
    height: 1px;
    overflow: hidden;
    position: absolute !important;
    width: 1px;
}

.scp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    border-radius: 999px;
    padding: 14px 22px;
    font-weight: 900;
    border: 2px solid transparent;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.scp-btn:hover {
    transform: translateY(-2px);
}

.scp-btn-primary:hover {
    box-shadow: var(--scp-btn-primary-hover-shadow, 0 14px 30px rgba(2, 48, 71, 0.20));
}

.scp-btn-primary {
    background: var(--scp-btn-primary-bg, var(--scp-accent));
    color: var(--scp-btn-primary-colour, #09202d);
    border-color: var(--scp-btn-primary-border, rgba(2, 48, 71, 0.18));
    box-shadow: var(--scp-btn-primary-shadow, 0 10px 24px rgba(2, 48, 71, 0.16));
}

.scp-btn-secondary {
    background: var(--scp-primary);
    color: #fff;
    box-shadow: 0 12px 28px rgba(2, 48, 71, 0.24);
}

.scp-btn-light {
    background: rgba(82, 96, 105, 0.94);
    color: #fff;
    border-color: rgba(255,255,255,0.28);
    box-shadow: 0 12px 28px rgba(2, 48, 71, 0.22);
}

.scp-btn-light:hover {
    background: rgba(58, 72, 82, 0.98);
    color: #fff;
}

.scp-btn-small {
    padding: 10px 16px;
    font-size: 0.9rem;
}

.scp-hero {
    position: relative;
    min-height: clamp(540px, 64vh, 680px);
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
}

.scp-hero-bg,
.scp-final-cta-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.scp-hero-bg img,
.scp-final-cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    max-width: none;
}

.scp-hero-slide-bg {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 1;
    transition-property: opacity;
    transition-timing-function: ease;
    transition-duration: var(--scp-hero-fade-out-duration, 900ms);
}

.scp-hero-slide-bg.is-active {
    opacity: 1;
    z-index: 2;
    transition-duration: var(--scp-hero-fade-in-duration, 900ms);
}

.scp-hero-slide-bg.is-leaving {
    opacity: 0;
    z-index: 3;
    transition-duration: var(--scp-hero-fade-out-duration, 900ms);
}

.scp-hero-slide-copy {
    display: none;
    opacity: 0;
    transition-property: opacity;
    transition-timing-function: ease;
    transition-duration: var(--scp-hero-fade-out-duration, 900ms);
}

.scp-hero-slide-copy.is-active {
    display: block;
    opacity: 1;
    transition-duration: var(--scp-hero-fade-in-duration, 900ms);
}

.scp-hero-slide-copy.is-text-outgoing {
    display: block;
    opacity: 0;
    transition-duration: var(--scp-hero-fade-out-duration, 900ms);
    pointer-events: none;
}

@keyframes scpHeroCopyIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scp-hero-slider-controls {
    position: absolute;
    left: 0;
    bottom: 54px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 4;
}

.scp-hero-slider-controls button {
    cursor: pointer;
}

.scp-hero-prev,
.scp-hero-next {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.36);
    background: rgba(2,48,71,.54);
    color: #fff;
    border-radius: 999px;
    font-size: 26px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.scp-hero-prev:hover,
.scp-hero-next:hover {
    background: rgba(2,48,71,.82);
}

.scp-hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.scp-hero-dots button {
    width: 13px;
    height: 13px;
    border-radius: 999px;
    padding: 0;
    border: 2px solid rgba(255,255,255,.9);
    background: rgba(255,255,255,.24);
}

.scp-hero-dots button.is-active {
    width: 34px;
    background: var(--scp-accent);
    border-color: var(--scp-accent);
}

.scp-hero::before,
.scp-final-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.scp-final-cta::before {
    background: linear-gradient(90deg, rgba(2,48,71,.92), rgba(2,48,71,.55) 45%, rgba(2,48,71,.12));
}

.scp-hero {
    --scp-overlay-rgb: 2,48,71;
    --scp-overlay-strong: 0.82;
    --scp-overlay-mid: 0.44;
    --scp-overlay-soft: 0.10;
}

.scp-hero::before {
    transition: background .35s ease;
}

.scp-hero.scp-hero-overlay-left::before {
    background: linear-gradient(90deg,
        rgba(var(--scp-overlay-rgb), var(--scp-overlay-strong)),
        rgba(var(--scp-overlay-rgb), var(--scp-overlay-mid)) 45%,
        rgba(var(--scp-overlay-rgb), var(--scp-overlay-soft)));
}

.scp-hero.scp-hero-overlay-right::before {
    background: linear-gradient(270deg,
        rgba(var(--scp-overlay-rgb), var(--scp-overlay-strong)),
        rgba(var(--scp-overlay-rgb), var(--scp-overlay-mid)) 45%,
        rgba(var(--scp-overlay-rgb), var(--scp-overlay-soft)));
}

.scp-hero.scp-hero-overlay-center::before {
    background: linear-gradient(90deg,
        rgba(var(--scp-overlay-rgb), 0) 0%,
        rgba(var(--scp-overlay-rgb), var(--scp-overlay-soft)) 22%,
        rgba(var(--scp-overlay-rgb), var(--scp-overlay-mid)) 40%,
        rgba(var(--scp-overlay-rgb), var(--scp-overlay-strong)) 50%,
        rgba(var(--scp-overlay-rgb), var(--scp-overlay-mid)) 60%,
        rgba(var(--scp-overlay-rgb), var(--scp-overlay-soft)) 78%,
        rgba(var(--scp-overlay-rgb), 0) 100%);
}

.scp-hero-inner,
.scp-final-cta-inner {
    position: relative;
    z-index: 2;
}

.scp-hero-copy {
    width: min(590px, 100%);
    padding: 80px 0;
}

.scp-hero-slider-enabled .scp-hero-copy {
    padding-bottom: 132px;
}

.scp-kicker {
    margin: 0 0 12px;
    color: var(--scp-secondary);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-weight: 1000;
    font-size: 0.82rem;
}

.scp-hero .scp-kicker,
.scp-final-cta .scp-kicker {
    color: var(--scp-accent);
}

.scp-hero .scp-kicker {
    font-size: min(var(--scp-hero-kicker-size-desktop, 20px), 24px);
    letter-spacing: var(--scp-hero-kicker-letter-spacing, 0.105em);
}

.scp-hero h1 {
    margin: 0;
    font-size: min(var(--scp-hero-title-size-desktop, 58px), 58px);
    line-height: var(--scp-hero-title-line-height, 0.95);
    letter-spacing: var(--scp-hero-title-letter-spacing, -0.055em);
    font-weight: var(--scp-hero-title-weight, 900);
    text-transform: var(--scp-hero-text-transform, none);
}

.scp-hero p {
    font-size: min(var(--scp-hero-text-size-desktop, 20px), 24px);
    color: rgba(255,255,255,0.9);
    max-width: 610px;
}

.scp-hero {
    font-family: var(--scp-hero-font-family, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.scp-hero .scp-btn {
    font-size: min(var(--scp-hero-button-size, 15px), 20px);
}

.scp-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.scp-hero-trust {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.scp-hero-trust span {
    display: inline-flex;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.28);
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.88rem;
}



@media (max-width: 991px) {
    .scp-hero .scp-kicker {
        font-size: min(var(--scp-hero-kicker-size-tablet, 17px), 22px);
    }

    .scp-hero h1 {
        font-size: min(var(--scp-hero-title-size-tablet, 44px), 46px);
    }

    .scp-hero p {
        font-size: min(var(--scp-hero-text-size-tablet, 18px), 22px);
    }
}

@media (max-width: 767px) {
    .scp-hero .scp-kicker {
        font-size: min(var(--scp-hero-kicker-size-mobile, 14px), 18px);
    }

    .scp-hero h1 {
        font-size: min(var(--scp-hero-title-size-mobile, 34px), 38px);
    }

    .scp-hero p {
        font-size: min(var(--scp-hero-text-size-mobile, 16px), 18px);
    }
}

.scp-quick-links {
    margin-top: -60px;
    position: relative;
    z-index: 4;
    padding-bottom: 48px;
    background: linear-gradient(to bottom, transparent 0 60px, rgba(238, 240, 242, 0.72) 60px 100%);
}

.scp-card-grid {
    display: grid;
    gap: 16px;
}

.scp-card-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.scp-card-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.scp-service-card,
.scp-info-card,
.scp-page-card,
.scp-post-card {
    background: var(--scp-card-bg);
    border-radius: var(--scp-radius);
    box-shadow: var(--scp-card-shadow);
    border: 1px solid var(--scp-card-border);
}

/* Premium gold + grey homepage service cards.
   Kept deliberately content-agnostic so customer-edited card labels remain flexible. */
.scp-service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    padding: 22px 22px 52px;
    min-height: 142px;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(145deg, #ffffff 0%, var(--scp-card-soft) 100%);
    border-radius: 22px;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.scp-service-card::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--scp-accent) 0%, #ffd35c 66%, rgba(255, 183, 3, 0.26) 100%);
}

.scp-service-card::after {
    content: "→";
    position: absolute;
    right: 18px;
    bottom: 15px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e8ebed;
    border: 1px solid rgba(56, 67, 74, 0.14);
    color: var(--scp-primary);
    font-size: 1.02rem;
    font-weight: 900;
    line-height: 1;
    transition: transform 220ms ease, background-color 220ms ease, border-color 220ms ease;
}

.scp-service-card strong {
    display: block;
    color: var(--scp-primary);
    font-size: 1.12rem;
    line-height: 1.22;
    letter-spacing: -0.02em;
    margin: 3px 0 7px;
}

.scp-service-card span {
    color: var(--scp-muted);
    line-height: 1.42;
}

.scp-service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 183, 3, 0.62);
    box-shadow: var(--scp-card-shadow-hover);
}

.scp-service-card:hover::after {
    transform: translateX(3px);
    background: var(--scp-accent);
    border-color: var(--scp-accent);
}

.scp-service-card:focus-visible {
    outline: 3px solid rgba(255, 183, 3, 0.5);
    outline-offset: 4px;
}

.scp-split-section {
    padding: 64px 0;
}

.scp-split-grid,
.scp-feature-grid,
.scp-testimonial-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 54px;
    align-items: center;
}

.scp-split-reverse .scp-split-image {
    order: 2;
}

.scp-split-image,
.scp-feature-image,
.scp-testimonial-grid img {
    border-radius: 36px;
    overflow: hidden;
    box-shadow: var(--scp-shadow);
    background: #fff;
}

.scp-split-image img,
.scp-feature-image img,
.scp-info-card img,
.scp-testimonial-grid img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.scp-split-copy h2,
.scp-feature-copy h2,
.scp-section-heading h2,
.scp-testimonial-section h2,
.scp-final-cta h2,
.scp-page-hero h1,
.scp-page-card h1 {
    color: var(--scp-primary);
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
    margin: 0 0 18px;
}

.scp-split-copy p,
.scp-feature-copy p,
.scp-section-heading p,
.scp-testimonial-section p {
    color: var(--scp-muted);
    font-size: 1.05rem;
}

.scp-feature-band,
.scp-testimonial-section {
    padding: 82px 0;
    background: linear-gradient(135deg, #e8f7fb, #ffffff);
}

.scp-check-list {
    padding: 0;
    margin: 24px 0 0;
    list-style: none;
}

.scp-check-list li {
    margin: 10px 0;
    padding-left: 32px;
    position: relative;
    font-weight: 800;
}

.scp-check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--scp-secondary);
    font-weight: 1000;
}

.scp-three-up {
    padding: 82px 0;
}

.scp-section-heading {
    width: min(760px, 100%);
    margin-bottom: 32px;
}

.scp-info-card {
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f7f8f9 100%);
    border-radius: 26px;
}

.scp-info-card img {
    border-bottom: 5px solid var(--scp-accent);
}

.scp-info-card h3,
.scp-info-card p {
    padding-left: 24px;
    padding-right: 24px;
}

.scp-info-card h3 {
    color: var(--scp-primary);
    font-size: 1.35rem;
    margin: 22px 0 8px;
}

.scp-info-card p {
    color: var(--scp-muted);
    margin: 0 0 26px;
}

.scp-testimonial-grid {
    grid-template-columns: .9fr 1.1fr;
}

.scp-testimonial-section blockquote {
    margin: 24px 0;
    padding: 24px;
    border-left: 6px solid var(--scp-accent);
    background: #fff;
    border-radius: 20px;
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--scp-primary);
    box-shadow: 0 12px 30px rgba(2, 48, 71, 0.08);
}

.scp-muted {
    color: var(--scp-muted);
}

.scp-final-cta {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 110px 0;
}

.scp-final-cta h2 {
    color: #fff;
}

.scp-final-cta p {
    max-width: 650px;
    font-size: 1.16rem;
    color: rgba(255,255,255,0.92);
}

.scp-site-footer {
    background: var(--scp-primary);
    color: rgba(255,255,255,.82);
    padding: 58px 0 28px;
}

.scp-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr .8fr;
    gap: 34px;
}

.scp-site-footer h2,
.scp-site-footer h3 {
    color: #fff;
    margin-top: 0;
}

.scp-site-footer a {
    color: #fff;
    text-decoration: none;
}

.scp-footer-menu li {
    margin: 8px 0;
}

.scp-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.scp-social-links a {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 800;
    font-size: .88rem;
}

.scp-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    margin-top: 34px;
    padding-top: 22px;
    font-size: .9rem;
}

.scp-page-hero {
    padding: 86px 0;
    background: linear-gradient(135deg, var(--scp-primary), var(--scp-secondary));
    color: #fff;
}

.scp-page-hero h1,
.scp-page-hero p {
    color: #fff;
}

.scp-page-layout {
    padding: 54px 0;
}

.scp-page-card {
    padding: clamp(24px, 5vw, 54px);
}

.scp-page-featured {
    border-radius: 26px;
    overflow: hidden;
    margin-bottom: 28px;
}

.scp-content {
    font-size: 1.05rem;
}

.scp-content a,
.scp-text-link {
    color: var(--scp-secondary);
    font-weight: 900;
}

.scp-post-grid {
    display: grid;
    gap: 24px;
    padding: 54px 0;
}

.scp-post-card {
    overflow: hidden;
}

.scp-post-card img {
    width: 100%;
    display: block;
    aspect-ratio: 16/7;
    object-fit: cover;
}

.scp-post-card-body {
    padding: 28px;
}

.scp-post-card h2 {
    margin-top: 0;
}

.woocommerce .scp-page-card ul.products li.product,
.woocommerce ul.products li.product {
    background: #fff;
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 12px 30px rgba(2,48,71,.08);
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background: var(--scp-accent);
    color: var(--scp-primary);
    border-radius: 999px;
    font-weight: 900;
}

@media (max-width: 980px) {
    .scp-header-inner {
        flex-wrap: wrap;
        min-height: 74px;
        padding: 12px 0;
    }

    .scp-nav-toggle {
        display: block;
        margin-left: auto;
    }

    .scp-primary-nav {
        display: none;
        order: 5;
        width: 100%;
        margin-left: 0;
    }

    .scp-primary-nav.is-open {
        display: block;
    }

    .scp-menu {
        display: grid;
        gap: 6px;
        padding: 12px 0;
    }

    .scp-menu a {
        border-radius: 14px;
        background: #f4f9fb;
    }

    .scp-header-cta {
        display: none;
    }

    .scp-card-grid-4,
    .scp-card-grid-3,
    .scp-split-grid,
    .scp-feature-grid,
    .scp-testimonial-grid,
    .scp-footer-grid {
        grid-template-columns: 1fr;
    }

    .scp-split-reverse .scp-split-image {
        order: 0;
    }

    .scp-hero {
        min-height: clamp(500px, 60vh, 600px);
    }
}

@media (max-width: 640px) {
    .scp-container {
        width: min(100% - 24px, var(--scp-max));
    }

    .scp-brand {
        min-width: 0;
    }

    .scp-brand-text em {
        display: none;
    }

    .scp-hero h1 {
        font-size: min(var(--scp-hero-title-size-mobile, 34px), 38px);
    }

    .scp-quick-links {
        margin-top: -30px;
    }

    .scp-service-card {
        min-height: auto;
        padding: 20px 20px 48px;
        border-radius: 20px;
    }

    .scp-service-card::after {
        right: 16px;
        bottom: 13px;
        width: 32px;
        height: 32px;
    }

    .scp-split-section,
    .scp-feature-band,
    .scp-three-up,
    .scp-testimonial-section {
        padding: 44px 0;
    }

    .scp-actions {
        display: grid;
    }

    .scp-btn {
        width: 100%;
    }

    .scp-hero-slider-controls {
        left: 0;
        bottom: 28px;
    }

    .scp-hero-prev,
    .scp-hero-next {
        width: 38px;
        height: 38px;
        font-size: 23px;
    }

    .scp-hero-slider-enabled .scp-hero-copy {
        padding-bottom: 110px;
    }

}


@media (prefers-reduced-motion: reduce) {
    .scp-service-card,
    .scp-service-card::after {
        transition: none;
    }

    .scp-service-card:hover {
        transform: none;
    }
}

.scp-hero .scp-btn-light,
.scp-final-cta .scp-btn-light {
    color: #fff;
}


/* Higher-specificity button colour rules.
   These override the global body.scp-theme a { color: inherit; } link rule. */
body.scp-theme a.scp-btn-primary,
body.scp-theme a.scp-btn-primary:visited {
    color: var(--scp-btn-primary-colour, #09202d);
}

body.scp-theme a.scp-btn-secondary,
body.scp-theme a.scp-btn-secondary:visited,
body.scp-theme a.scp-btn-light,
body.scp-theme a.scp-btn-light:visited {
    color: #fff;
}

body.scp-theme a.scp-btn-secondary:hover,
body.scp-theme a.scp-btn-light:hover {
    color: #fff;
}

.scp-hero-copy h1,
.scp-hero-copy > p:not(.scp-kicker) {
    text-shadow: 0 3px 18px rgba(2, 48, 71, 0.28);
}


/* Temporary clone used by the hero slider for reliable fade-out timing. */
.scp-hero-fadeout-clone {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    z-index: 4;
    pointer-events: none;
    will-change: opacity;
}




/* Corporate-safe desktop/laptop hero sizing. Prevents oversized static banners on common laptop heights while retaining a premium full-width hero feel. */
.scp-hero-static {
    min-height: clamp(500px, 56vh, 610px);
}

.scp-hero-static .scp-hero-copy {
    padding-top: clamp(48px, 6vh, 70px);
    padding-bottom: clamp(58px, 7vh, 84px);
}

@media (min-width: 1200px) and (max-height: 850px) {
    .scp-hero,
    .scp-hero-static {
        min-height: clamp(460px, 54vh, 560px);
    }

    .scp-hero h1 {
        font-size: min(var(--scp-hero-title-size-desktop, 54px), 54px);
    }

    .scp-hero p {
        font-size: min(var(--scp-hero-text-size-desktop, 18px), 20px);
    }

    .scp-hero-copy {
        width: min(560px, 100%);
        padding-top: 48px;
        padding-bottom: 58px;
    }
}

@media (min-width: 1600px) {
    .scp-hero h1 {
        font-size: min(var(--scp-hero-title-size-desktop, 60px), 60px);
    }
}

/* Static hero fallback: when the rotating slider is disabled, keep the first banner image framed cleanly instead of inheriting slider crop behaviour. */
.scp-hero-static .scp-hero-slide-bg:not(.is-active) {
    display: none;
}

.scp-hero-static .scp-hero-slide-bg.is-active {
    opacity: 1;
    z-index: 2;
    object-position: center bottom;
}

.scp-hero-static .scp-hero-copy {
    padding-bottom: 92px;
}

@media (min-width: 1200px) {
    .scp-hero-static .scp-hero-slide-bg.is-active {
        object-position: center 62%;
    }
}

@media (max-width: 767px) {
    .scp-hero-static .scp-hero-slide-bg.is-active {
        object-position: center bottom;
    }
}

/* Runtime hero slider image layers for reliable separate fade-in/fade-out control */
.scp-hero-active-layer,
.scp-hero-outgoing-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    will-change: opacity;
}

.scp-hero-active-layer {
    z-index: 1;
    opacity: 1;
}

.scp-hero-outgoing-layer {
    z-index: 2;
    opacity: 0;
}


/* Text layer fade support for the rotating hero slider */
.scp-hero-slider-enabled .scp-hero-inner {
    display: grid;
    align-items: center;
}

.scp-hero-slider-enabled .scp-hero-slide-copy {
    grid-area: 1 / 1;
    display: block;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transition-property: opacity;
    transition-timing-function: ease;
    transition-duration: var(--scp-hero-fade-out-duration, 900ms);
}

.scp-hero-slider-enabled .scp-hero-slide-copy.is-active {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    transition-duration: var(--scp-hero-fade-in-duration, 900ms);
}

.scp-hero-slider-enabled .scp-hero-slide-copy.is-text-outgoing {
    visibility: visible;
    pointer-events: none;
    opacity: 0;
    transition-duration: var(--scp-hero-fade-out-duration, 900ms);
}

.scp-hero-slider-enabled .scp-hero-slider-controls {
    grid-area: 1 / 1;
    align-self: end;
}


/* Per-slide main banner text alignment */
.scp-hero-copy.scp-hero-align-left {
    text-align: left;
    margin-right: auto;
}

.scp-hero-copy.scp-hero-align-left .scp-actions,
.scp-hero-copy.scp-hero-align-left .scp-hero-trust {
    justify-content: flex-start;
}

.scp-hero-copy.scp-hero-align-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.scp-hero-copy.scp-hero-align-center .scp-actions,
.scp-hero-copy.scp-hero-align-center .scp-hero-trust {
    justify-content: center;
}

.scp-hero-copy.scp-hero-align-right {
    text-align: right;
    margin-left: auto;
}

.scp-hero-copy.scp-hero-align-right .scp-actions,
.scp-hero-copy.scp-hero-align-right .scp-hero-trust {
    justify-content: flex-end;
}

.scp-hero-copy.scp-hero-align-right p,
.scp-hero-copy.scp-hero-align-center p {
    margin-left: auto;
    margin-right: auto;
}

.scp-hero-copy.scp-hero-align-right > p:not(.scp-kicker) {
    margin-left: auto;
    margin-right: 0;
}


/* Uniform main banner / hero slide layout */
.scp-hero {
    min-height: 720px;
}

.scp-hero-inner {
    min-height: 720px;
    display: grid;
    align-items: center;
}

.scp-hero-copy {
    min-height: 580px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 76px;
    padding-bottom: 132px;
}

.scp-hero-slide-copy.is-active,
.scp-hero-slide-copy.is-text-outgoing,
.scp-hero-slider-enabled .scp-hero-slide-copy {
    display: flex;
}

.scp-hero-copy .scp-kicker {
    min-height: 1.2em;
}

.scp-hero h1 {
    min-height: 3.95em;
    margin-bottom: 18px;
}

.scp-hero-copy > p:not(.scp-kicker) {
    min-height: 3.3em;
    margin-bottom: 0;
}

.scp-hero-copy .scp-actions {
    margin-top: 28px;
}

.scp-hero-copy .scp-hero-trust {
    min-height: 48px;
    margin-top: 18px;
}

.scp-hero-slider-enabled .scp-hero-slide-copy {
    align-self: stretch;
}

@media (max-width: 1200px) {
    .scp-hero,
    .scp-hero-inner {
        min-height: 700px;
    }

    .scp-hero-copy {
        min-height: 555px;
    }

    .scp-hero h1 {
        min-height: 3.85em;
    }
}

@media (max-width: 991px) {
    .scp-hero,
    .scp-hero-inner {
        min-height: 660px;
    }

    .scp-hero-copy {
        min-height: 510px;
        padding-top: 64px;
        padding-bottom: 122px;
    }

    .scp-hero h1 {
        min-height: 3.55em;
    }

    .scp-hero-copy > p:not(.scp-kicker) {
        min-height: 3.1em;
    }
}

@media (max-width: 767px) {
    .scp-hero,
    .scp-hero-inner {
        min-height: 620px;
    }

    .scp-hero-copy {
        min-height: 470px;
        padding-top: 56px;
        padding-bottom: 110px;
    }

    .scp-hero h1,
    .scp-hero-copy > p:not(.scp-kicker),
    .scp-hero-copy .scp-kicker,
    .scp-hero-copy .scp-hero-trust {
        min-height: 0;
    }
}


/* Keep description directly under the main banner heading while preserving bottom CTA alignment */
.scp-hero-copy {
    display: grid;
    grid-template-rows: auto auto auto 1fr auto auto;
    align-content: stretch;
    row-gap: 0;
}

.scp-hero-copy .scp-kicker {
    min-height: 0;
    margin-bottom: 12px;
}

.scp-hero h1 {
    min-height: 0;
    margin-bottom: 0;
}

.scp-hero-copy > p:not(.scp-kicker) {
    min-height: 0;
    margin-top: 14px;
    margin-bottom: 0;
}

.scp-hero-copy .scp-actions {
    margin-top: 28px;
    align-self: start;
}

.scp-hero-copy .scp-hero-trust {
    min-height: 0;
    margin-top: 18px;
    align-self: start;
}

@media (max-width: 991px) {
    .scp-hero-copy > p:not(.scp-kicker) {
        margin-top: 12px;
    }
}

@media (max-width: 767px) {
    .scp-hero-copy {
        grid-template-rows: auto auto auto 1fr auto auto;
    }

    .scp-hero-copy > p:not(.scp-kicker) {
        margin-top: 10px;
    }
}


/* Make hero heading and CTA/button blocks follow the chosen text alignment more cleanly */
.scp-hero-copy {
    justify-items: start;
}

.scp-hero-copy.scp-hero-align-left {
    justify-items: start;
}

.scp-hero-copy.scp-hero-align-center {
    justify-items: center;
}

.scp-hero-copy.scp-hero-align-right {
    justify-items: end;
}

.scp-hero-copy .scp-kicker,
.scp-hero-copy h1,
.scp-hero-copy > p:not(.scp-kicker) {
    width: 100%;
}

.scp-hero-copy .scp-actions,
.scp-hero-copy .scp-hero-trust {
    width: 100%;
    align-self: stretch;
}

.scp-hero-copy.scp-hero-align-left .scp-actions,
.scp-hero-copy.scp-hero-align-left .scp-hero-trust {
    justify-content: flex-start;
}

.scp-hero-copy.scp-hero-align-center .scp-actions,
.scp-hero-copy.scp-hero-align-center .scp-hero-trust {
    justify-content: center;
}

.scp-hero-copy.scp-hero-align-right .scp-actions,
.scp-hero-copy.scp-hero-align-right .scp-hero-trust {
    justify-content: flex-end;
}

/* Quick link cards under hero: cleaner mobile behaviour. */
@media (max-width: 768px) {
    .scp-quick-links-mobile-hide {
        display: none;
    }

    .scp-quick-links-mobile-compact {
        margin-top: -16px;
        padding-bottom: 22px;
    }

    .scp-quick-links-mobile-compact .scp-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .scp-quick-links-mobile-compact .scp-service-card {
        border-radius: 16px;
        padding: 12px 44px 12px 14px;
        min-height: 58px;
        box-shadow: 0 10px 24px rgba(2, 48, 71, 0.08);
    }

    .scp-quick-links-mobile-compact .scp-service-card strong {
        font-size: 0.90rem;
        margin-bottom: 0;
    }

    .scp-quick-links-mobile-compact .scp-service-card span {
        display: none;
    }

    .scp-quick-links-mobile-compact .scp-service-card::before {
        height: 4px;
    }

    .scp-quick-links-mobile-compact .scp-service-card::after {
        right: 10px;
        bottom: 50%;
        width: 28px;
        height: 28px;
        font-size: 0.88rem;
        transform: translateY(50%);
    }

    .scp-quick-links-mobile-compact .scp-service-card:hover::after {
        transform: translate(2px, 50%);
    }
}

@media (max-width: 480px) {
    .scp-quick-links-mobile-compact .scp-card-grid {
        grid-template-columns: 1fr 1fr;
    }
}


/* v0.2.36 corporate-safe hero guardrails.
   Keeps the starter/demo hero looking controlled on large screens even if customers experiment with typography. */
.scp-hero,
.scp-hero-inner {
    min-height: clamp(560px, 66vh, 680px);
}

.scp-hero-copy {
    max-width: 720px;
    min-height: min(580px, calc(100vh - 120px));
}

.scp-hero h1 {
    font-size: min(var(--scp-hero-title-size-desktop, 58px), 58px);
}

.scp-hero .scp-kicker {
    font-size: min(var(--scp-hero-kicker-size-desktop, 20px), 24px);
}

.scp-hero p {
    font-size: min(var(--scp-hero-text-size-desktop, 20px), 24px);
}

@media (min-width: 1400px) {
    .scp-hero,
    .scp-hero-inner {
        min-height: clamp(560px, 62vh, 680px);
    }
}

@media (max-width: 1200px) {
    .scp-hero,
    .scp-hero-inner {
        min-height: 650px;
    }
}

@media (max-width: 991px) {
    .scp-hero,
    .scp-hero-inner {
        min-height: 610px;
    }

    .scp-hero h1 {
        font-size: min(var(--scp-hero-title-size-tablet, 44px), 46px);
    }

    .scp-hero .scp-kicker {
        font-size: min(var(--scp-hero-kicker-size-tablet, 17px), 22px);
    }

    .scp-hero p {
        font-size: min(var(--scp-hero-text-size-tablet, 18px), 22px);
    }
}

@media (max-width: 767px) {
    .scp-hero,
    .scp-hero-inner {
        min-height: 560px;
    }

    .scp-hero-copy {
        min-height: 430px;
    }

    .scp-hero h1 {
        font-size: min(var(--scp-hero-title-size-mobile, 34px), 38px);
    }

    .scp-hero .scp-kicker {
        font-size: min(var(--scp-hero-kicker-size-mobile, 14px), 18px);
    }

    .scp-hero p {
        font-size: min(var(--scp-hero-text-size-mobile, 16px), 18px);
    }
}

/* v0.2.39: static/non-rotating hero sizing guardrails.
   When the slider is off, keep the banner corporate-safe and closer to the rotating hero visual size on laptops. */
@media (min-width: 992px) {
    .scp-hero-static {
        min-height: 0;
        height: clamp(430px, 52vh, 540px);
        align-items: center;
    }

    .scp-hero-static .scp-hero-copy {
        width: min(540px, 100%);
        padding-top: clamp(34px, 4vh, 50px);
        padding-bottom: clamp(36px, 4.5vh, 56px);
    }

    .scp-hero-static .scp-kicker {
        font-size: min(var(--scp-hero-kicker-size-desktop, 18px), 20px);
        margin-bottom: 10px;
    }

    .scp-hero-static h1 {
        font-size: min(var(--scp-hero-title-size-desktop, 50px), 50px);
        line-height: 0.96;
    }

    .scp-hero-static p {
        font-size: min(var(--scp-hero-text-size-desktop, 18px), 19px);
        max-width: 560px;
    }

    .scp-hero-static .scp-actions {
        margin-top: 20px;
    }

    .scp-hero-static .scp-hero-trust {
        margin-top: 18px;
    }

    .scp-hero-static .scp-hero-slide-bg.is-active {
        object-position: center center;
    }
}

@media (min-width: 1200px) and (max-height: 900px) {
    .scp-hero-static {
        height: clamp(420px, 49vh, 500px);
    }

    .scp-hero-static .scp-hero-copy {
        padding-top: 34px;
        padding-bottom: 38px;
    }

    .scp-hero-static h1 {
        font-size: min(var(--scp-hero-title-size-desktop, 46px), 46px);
    }

    .scp-hero-static p {
        font-size: min(var(--scp-hero-text-size-desktop, 17px), 18px);
    }
}

@media (min-width: 1400px) and (max-height: 820px) {
    .scp-hero-static {
        height: 460px;
    }

    .scp-hero-static h1 {
        font-size: min(var(--scp-hero-title-size-desktop, 44px), 44px);
    }
}

/* v0.2.40: static/non-rotating hero content visibility fix.
   When the slider is off, render just the first hero copy block and force it visible so image sizing fixes do not hide the text layer. */
.scp-hero-static .scp-hero-inner {
    display: grid;
    align-items: center;
}

.scp-hero-static .scp-hero-static-copy {
    display: grid !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
    align-self: center;
}

.scp-hero-static .scp-hero-slide-copy:not(.scp-hero-static-copy) {
    display: none !important;
}

/* v0.2.41 smoother slider rendering: keep image/text layers on their own compositor layers and avoid small browser paint glitches during fades. */
.scp-hero-bg,
.scp-hero-active-layer,
.scp-hero-outgoing-layer,
.scp-hero-slider-enabled .scp-hero-slide-copy {
    backface-visibility: hidden;
    transform: translateZ(0);
}

.scp-hero-active-layer,
.scp-hero-outgoing-layer {
    transition-property: opacity;
    transition-timing-function: ease-in-out;
}

.scp-hero.is-preparing-slide .scp-hero-active-layer {
    opacity: 1;
}

.scp-hero.is-transitioning .scp-hero-active-layer,
.scp-hero.is-transitioning .scp-hero-outgoing-layer,
.scp-hero.is-transitioning .scp-hero-slide-copy {
    will-change: opacity;
}

@media (prefers-reduced-motion: reduce) {
    .scp-hero-active-layer,
    .scp-hero-outgoing-layer,
    .scp-hero-slider-enabled .scp-hero-slide-copy,
    .scp-hero::before {
        transition-duration: 1ms !important;
    }
}


/* v0.2.42: make hero overlay shade/colour transitions fade smoothly with the image/text slider.
   The base ::before overlay remains as an initial fallback, then JS promotes two dedicated overlay layers
   so left/center/right shade changes and colour changes crossfade instead of snapping. */
.scp-hero::before {
    transition: background .35s ease, opacity .2s ease;
}

.scp-hero-slider-enabled.scp-hero-has-overlay-layers::before {
    opacity: 0;
}

.scp-hero-overlay-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    will-change: opacity;
}

.scp-hero-active-overlay-layer {
    z-index: 3;
    opacity: 0;
}

.scp-hero-outgoing-overlay-layer {
    z-index: 4;
    opacity: 0;
}

.scp-hero-slider-enabled .scp-hero-inner {
    position: relative;
    z-index: 5;
}

.scp-hero-slider-enabled .scp-hero-slider-controls {
    z-index: 6;
}


/* v0.2.45: static hero button guardrails.
   Prevents the non-rotating hero fallback from stretching CTA buttons into oversized ovals when the hero copy grid is reused without slider layers. */
.scp-hero-static .scp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    width: auto;
    max-width: 100%;
    align-self: start;
}

.scp-hero-static .scp-btn {
    width: auto;
    min-width: 0;
    max-width: 100%;
    height: auto;
    min-height: 0;
    padding: 13px 22px;
    line-height: 1.15;
    border-radius: 999px;
    flex: 0 0 auto;
}

.scp-hero-static .scp-hero-align-left .scp-actions {
    justify-self: start;
    justify-content: flex-start;
}

.scp-hero-static .scp-hero-align-center .scp-actions {
    justify-self: center;
    justify-content: center;
}

.scp-hero-static .scp-hero-align-right .scp-actions {
    justify-self: end;
    justify-content: flex-end;
}

@media (max-width: 767px) {
    .scp-hero-static .scp-actions {
        display: grid;
        width: 100%;
        justify-self: stretch;
    }

    .scp-hero-static .scp-btn {
        width: 100%;
        flex: none;
    }
}


/* v0.2.46: stronger static hero CTA guardrails.
   Keeps non-rotating hero buttons as normal CTA buttons even if older layout rules set the actions row to full width. */
.scp-hero-static .scp-hero-copy .scp-actions {
    width: auto !important;
    max-width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-self: flex-start !important;
    justify-self: start !important;
}

.scp-hero-static .scp-hero-copy.scp-hero-align-center .scp-actions {
    align-self: center !important;
    justify-self: center !important;
    justify-content: center !important;
}

.scp-hero-static .scp-hero-copy.scp-hero-align-right .scp-actions {
    align-self: flex-end !important;
    justify-self: end !important;
    justify-content: flex-end !important;
}

.scp-hero-static .scp-hero-copy .scp-actions .scp-btn {
    width: auto !important;
    min-width: 0 !important;
    max-width: min(100%, 280px) !important;
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: auto !important;
    flex: 0 1 auto !important;
    padding: 13px 22px !important;
    line-height: 1.15 !important;
}

@media (max-width: 640px) {
    .scp-hero-static .scp-hero-copy .scp-actions {
        width: 100% !important;
        display: grid !important;
    }

    .scp-hero-static .scp-hero-copy .scp-actions .scp-btn {
        width: 100% !important;
        max-width: 100% !important;
    }
}
