/*
 * enterprise-theme.css
 * A visual refinement layer over the base template's style.css — loaded
 * after it in _Layout.cshtml, so these rules win on shared selectors.
 * Does not fork/replace style.css; extends it. 
 */

:root {
    /* Deepened versions of the existing brand hues (not new colors) for
       better contrast on white and a less "stock template" flatness. */
    --primary: #0B84B8;
    --primary-dark: #076088;
    --secondary: #2E9E4F;
    --ink: #0A1930;
    --dark: #0A1930;
    --slate: #55677A;
    --cloud: #F5F9FC;
    --light: #F5F9FC;
    --line: #E3EAF0;
}

/*** Type pairing ***/
body {
    font-family: 'Nunito', sans-serif;
    color: var(--slate);
    line-height: 1.75;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand h1,
.display-1 {
    font-family: 'Rubik', sans-serif;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.carousel-caption h1,
.carousel-caption h5 {
    color: #FFFFFF;
}

h5.text-uppercase,
.section-title h5,
small.text-uppercase {
    font-family: 'Rubik', sans-serif;
    letter-spacing: .14em;
    font-weight: 700 !important;
}

/*** Accessibility: visible keyboard focus ***/
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .2rem rgba(11, 132, 184, .15);
}

/*** Respect reduced motion ***/
@media (prefers-reduced-motion: reduce) {
    .wow {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .section-title::after,
    .service-item,
    .card-surface,
    .btn {
        animation: none !important;
        transition: none !important;
    }
}

/*** Section title: static mark instead of a looping slide animation ***/
.section-title::after {
    animation: none !important;
    -webkit-animation: none !important;
    width: 10px;
}

.section-title::before {
    background: var(--primary);
}

/*** Fluid hero type — scales smoothly instead of jumping at one breakpoint ***/
.carousel-caption .display-1 {
    font-size: clamp(1.9rem, 5vw + 1rem, 4.2rem);
    line-height: 1.15;
    font-weight: 800 !important;
}

.carousel-caption h5 {
    font-size: clamp(.85rem, 1vw + .6rem, 1.1rem);
}

.carousel-caption {
    background: linear-gradient(135deg, rgba(10, 25, 48, .82), rgba(11, 132, 184, .55));
}

/* Stack hero CTAs full-width on small screens instead of wrapping mid-word */
@media (max-width: 575.98px) {
    .carousel-caption .btn {
        display: block;
        width: 100%;
        margin: 0 0 12px 0 !important;
    }
}

/*** Card surface: shared card treatment for services, testimonials, forms ***/
.card-surface {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(10, 25, 48, .05);
    transition: transform .3s ease, box-shadow .3s ease;
}

.card-surface:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(10, 25, 48, .10);
}

/*** Service cards: rounded tile icon instead of rotated diamond ***/
.service-item {
    height: 100%;
    min-height: 280px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(10, 25, 48, .05);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.service-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(10, 25, 48, .12);
    border-color: var(--primary);
}

.service-item .service-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: var(--primary);
    transform: none;
}

.service-item .service-icon i {
    transform: none;
    font-size: 1.4rem;
}

.service-item h4 {
    font-size: 1.15rem;
}

/*** Facts: one unified stat strip instead of two disconnected blocks ***/
.stat-strip {
    background: var(--ink);
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(10, 25, 48, .18);
}

.stat-strip .stat-block {
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

.stat-strip .stat-value {
    font-family: 'Rubik', sans-serif;
    font-weight: 800;
    font-size: clamp(2.2rem, 3vw, 3rem);
    color: #FFFFFF;
    line-height: 1;
}

.stat-strip .stat-label {
    color: rgba(255, 255, 255, .7);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .8rem;
    font-weight: 700;
    margin-top: 10px;
}

/* Divider between stat blocks — vertical on desktop, horizontal on mobile */
@media (min-width: 576px) {
    .stat-strip .stat-block:not(:last-child)::after {
        content: "";
        position: absolute;
        right: 0;
        top: 20%;
        bottom: 20%;
        width: 1px;
        background: rgba(255, 255, 255, .15);
    }
}

@media (max-width: 575.98px) {
    .stat-strip .stat-block:not(:last-child) {
        border-bottom: 1px solid rgba(255, 255, 255, .15);
    }
}

/*** Testimonials: quieter card, matching open/close quote marks ***/
.testimonial-item {
    border-radius: 12px;    
}

.testimonial-carousel .owl-stage {
    display: flex;
    align-items: stretch;
}

.testimonial-carousel .owl-item {
    display: flex;
    height: auto;
    min-height: 0;
}

    .testimonial-carousel .owl-item .testimonial-item {
        height: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

.testimonial-carousel .owl-stage-outer {
    overflow-x: hidden;
    height: auto !important;
}

.testimonial-item .pt-4.pb-5.px-5 {
    flex: 1 1 auto;
    min-height: 0;
}

    .testimonial-item .pt-4.pb-5.px-5::before {
        content: "\201C";
        color: var(--primary);
        font-weight: 700;
        margin-right: 2px;
    }

    .testimonial-item .pt-4.pb-5.px-5::after {
        content: "\201D";
        color: var(--primary);
        font-weight: 700;
        margin-left: 2px;
    }

/*** Quote / Payment panels: consistent field styling, responsive padding ***/
#quote .bg-primary.rounded,
#pay .bg-light.rounded {
    padding: clamp(28px, 5vw, 48px) !important;
}

#pay .bg-light.rounded {
    border: 1px solid var(--line);
}

.pay-trust-note {
    color: var(--slate);
    font-size: .85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
}

/*** Footer: deepen and tighten ***/
#footer {
    background: var(--ink) !important;
}

#footer .section-title-sm::before {
    background: var(--primary);
}

/*** Buttons: slightly more confident radius, consistent focus ***/
.btn {
    border-radius: 6px;
}

.btn-lg-square.back-to-top {
    border-radius: 8px;
}
