/* ==========================================================================
   Clarity DevTest — Services page (clarityServices.css)
   Depends on: base.css
   ========================================================================== */

:root {
    --services-work-arc-height: clamp(5.5rem, 9.5vw, 8.5rem);
}


/* ==========================================================================
   Page body (intro + featured slider background)
   ========================================================================== */

.services_page_body {
    position: relative;
    z-index: 1;
    background-color: transparent;
}

.services_page_body::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(to bottom, #FFFFFF 0%, rgba(255, 255, 255, 0) 35%),
        url('../images/our_services_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}

.home_section_hero--bg-only {
    z-index: 2;
}


/* ==========================================================================
   Services intro grid
   ========================================================================== */

.services_intro-section {
    padding: 7rem 0 4rem;
}

.services_intro-section__group:last-child {
    margin-bottom: 0;
}

.services_intro-section__intro {
    max-width: 1050px;
    margin: 0 auto 3rem;
    text-align: center;
}

.services_intro-section__intro h1 {
    margin-bottom: 0;
}

.services_intro-section__group + .services_intro-section__group {
    margin-top: 3rem;
}

.services_intro-section__group-heading {
    font-size: var(--text-subsection);
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    margin: 0 0 1.5rem;
    color: var(--color-dark-blue);
}

.services_intro-section__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0;
}

.services_intro-section__card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 1 225px;
    padding: 2rem 1.5rem;
    background-color: var(--color-white);
}

.services_intro-section__card-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.services_intro-section__card-link:hover,
.services_intro-section__card-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.18);
}

.services_intro-section__card-link:focus-visible {
    outline: 2px solid var(--color-bright-blue);
    outline-offset: 2px;
}

.services_intro-section__card-link h3 {
    color: var(--color-dark-blue);
}

.services_intro-section__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    margin-bottom: 1rem;
}

.services_intro-section__icon img {
    width: 1.75rem;
    height: 1.75rem;
}

.services_intro-section__card h3 {
    margin-bottom: 0.75rem;
}

@media (max-width: 560px) {
    .services_intro-section__card {
        flex: 1 1 100%;
        max-width: 320px;
    }
}


/* ==========================================================================
   Technology works better together
   ========================================================================== */

.services_work-section__arc {
    line-height: 0;
    pointer-events: none;
    position: relative;
    z-index: 0;
}

.services_work-section__arc svg {
    display: block;
    width: 100%;
    height: var(--services-work-arc-height);
}

.services_work-section__arc path {
    fill: var(--color-dark-blue);
}

.services_work-section {
    padding: 4rem 0 2.5rem;
    background-color: var(--color-dark-blue);
}

.services_work-section__intro {
    max-width: 820px;
    margin: 0 auto;
    padding: 1.5rem 0 0.5rem;
}

.services_work-section__intro h2 {
    margin: 0 0 1.25rem;
    color: var(--color-white);
}

.services_work-section__lead {
    margin: 0;
    font-size: var(--text-prose);
    font-weight: 500;
    line-height: 1.5;
    color: var(--color-white);
}


/* ==========================================================================
   Not sure what you need
   ========================================================================== */

.services_talk-section {
    padding: calc(var(--services-work-arc-height) * 0.25) 0 calc(var(--services-work-arc-height) * 0.5);
    background-color: var(--color-white);
}

.services_talk-section__content {
    max-width: 820px;
    margin: 0 auto;
}

.services_talk-section__content h2 {
    margin: 0 0 1rem;
    color: var(--color-dark-blue);
}

.services_talk-section__lead {
    margin: 0 0 2rem;
}
