/* Carousel */

.solutions-showcase {
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--navy);
}

.solutions-carousel {
    position: relative;
    width: 100%;
}

.solutions-slides {
    overflow: hidden;
}

.solution-slide {
    position: relative;
    display: none;
    height: 1120px;
    isolation: isolate;
}

.solution-slide.active {
    display: block;
    animation: slide-fade 450ms ease-out;
}

.solution-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.solution-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        90deg, rgba(7, 21, 47, 0.23), rgba(7, 21, 47, 0.05) 45%, transparent 66%
    );
}

.solution-slide-content {
    position: absolute;
    z-index: 2;
    top: 115px;
    left: 7%;
    width: 38%;
    max-width: 620px;
    color: white;
}

.solution-slide-content h2 {
    margin: 0 0 20px;
    color: white;
    font-size: clamp(38px, 3.3vw, 64px);
    line-height: 1.1;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.solution-slide-content p {
    max-width: 480px;
    margin: 0 0 28px;
    color: #f1f5ff;
    font-size: clamp(17px, 1.2vw, 22px);
    line-height: 1.6;
}

.solution-slide-content .solution-slide-button {
    background: white;
    color: var(--blue);
    gap: 14px;
}

.solution-slide-content .solution-slide-button:hover {
    background: var(--gold);
    color: var(--navy);
}

@keyframes slide-fade {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

/* Touch controls and keyboard focus */

.carousel-button {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    appearance: none;
    background: transparent;
    color: white;
    transform: translateY(-50%);
}

.carousel-button-prev {
    left: 16px;
    --edge: 0%;
}

.carousel-button-next {
    right: 16px;
    --edge: 100%;
}

.carousel-button::before {
    content: "";
    width: 16px;
    height: 16px;
    border-top: 3px solid currentColor;
    border-right: 3px solid currentColor;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.85));
}

.carousel-button-prev::before {
    transform: translateX(3px) rotate(-135deg);
}

.carousel-button-next::before {
    transform: translateX(-3px) rotate(45deg);
}

/* C1 narrow feather: reveal each desktop edge independently. */

@media (min-width: 769px) and (hover: hover) and (pointer: fine) {
    .solutions-carousel .carousel-button {
        top: 0;
        bottom: 0;
        width: clamp(48px, 5%, 88px);
        height: 100%;
        opacity: 0;
        transform: none;
        transition: opacity 180ms ease;
        background: radial-gradient(
            ellipse 100% 54% at var(--edge) 50%,
            rgba(7, 21, 47, 0.60),
            rgba(7, 21, 47, 0.38) 40%,
            rgba(7, 21, 47, 0.12) 75%,
            transparent
        );
    }

    .carousel-button-prev {
        left: 0;
    }

    .carousel-button-next {
        right: 0;
    }

    .solutions-carousel .carousel-button:is(:hover, :focus-visible) {
        opacity: 1;
    }

    .solutions-carousel .carousel-button:focus-visible {
        outline-offset: -4px;
    }
}

.carousel-dots {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 18px;
    display: flex;
    gap: 2px;
    transform: translateX(-50%);
}

.carousel-dot {
    display: grid;
    place-items: center;
    width: 28px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
}

.carousel-dot::before {
    content: "";
    width: 9px;
    height: 9px;
    border: 1px solid white;
    border-radius: 50%;
    background: rgba(7, 21, 47, 0.48);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.carousel-dot.active::before {
    width: 11px;
    height: 11px;
    background: white;
}

/* Why Brainsharp and county partnerships */

.trust-section {
    max-width: 1248px;
    margin-inline: auto;
    padding: 76px 24px;
}

.trust-grid,
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.trust-card,
.client-card {
    padding: 28px;
    border: 1px solid #e1e7ef;
    border-radius: 12px;
    background: white;
    box-shadow: 0 8px 22px rgba(7, 21, 47, 0.06);
}

.trust-card {
    border-top: 4px solid var(--green);
}

.check-mark {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--green);
    color: white;
    font-weight: 700;
}

.trust-card h3,
.client-card h3 {
    margin: 0;
    color: var(--blue);
    font-size: 22px;
    line-height: 1.3;
}

.trust-card p,
.client-card-content p {
    color: var(--muted);
}

.clients-section {
    padding: 76px 5%;
    background: white;
}

.clients-grid,
.highlights-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin-inline: auto;
}

.client-card {
    display: flex;
    flex-direction: column;
    min-height: 235px;
    border-top: 4px solid var(--blue);
    background: linear-gradient(145deg, white, #f7f9fc);
}

.client-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.client-logo {
    flex: 0 0 56px;
    height: 56px;
}

.client-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.client-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.client-card-content p {
    margin: 0 0 6px;
}

.client-card-content .client-status {
    margin: auto 0 0;
    padding-top: 18px;
    color: var(--navy);
    font-size: 15px;
    font-weight: 700;
}

/* Highlights and testimonials */

.highlights-section {
    padding: 48px 5%;
    background: var(--blue);
    color: white;
    text-align: center;
}

.highlight-item h3 {
    margin: 0 0 8px;
    color: var(--gold);
    font-size: clamp(22px, 2vw, 32px);
    line-height: 1.2;
}

.highlight-item p {
    margin: 0;
}

.testimonials-section {
    padding: 76px 5%;
    background: linear-gradient(135deg, var(--navy), #183b70);
}

.testimonials-section .section-heading > p:first-child {
    color: var(--gold);
}

.testimonials-section .section-heading h2 {
    color: white;
}

.testimonials-section .section-description {
    color: #e0e8fb;
}

.testimonials-grid {
    max-width: 1200px;
    margin-inline: auto;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    padding: 25px 28px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-left: 4px solid #7ca653;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    color: white;
}

.testimonial-card:nth-child(2) {
    border-left-color: var(--gold);
}

.testimonial-card:nth-child(3) {
    border-left-color: #db6868;
}

.testimonial-mark {
    height: 34px;
    color: var(--gold);
    font: 50px/1 Georgia, serif;
}

.testimonial-card p {
    margin: 10px 0 18px;
}

.testimonial-card strong {
    margin-top: auto;
    font-size: 14px;
}

.testimonial-card strong::before {
    content: "— ";
}

/* Homepage About section */

.about-section {
    padding: 76px 5%;
    background: #eef3ff;
}

.about-container {
    max-width: 1200px;
    margin-inline: auto;
}

.about-heading p {
    margin: 0 0 8px;
    color: #b82929;
    font-weight: 700;
}

.about-heading h2 {
    max-width: 700px;
    margin: 0;
    color: var(--blue);
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.18;
    text-wrap: balance;
}

.about-content {
    max-width: 900px;
    margin-top: 22px;
}

.about-content p {
    margin: 0 0 16px;
    color: var(--muted);
}

.about-learn-more {
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
}

.about-learn-more:hover {
    text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
    .solution-slide.active {
        animation: none;
    }

    .solutions-carousel .carousel-button {
        transition: none;
    }
}