﻿#services-container {
    padding-bottom: 2rem;
}

#services {
    background-color: var(--tir-dark-blue);
    color: white;
    border-radius: 16px;
    padding-top: 2rem;
    padding-bottom: 2rem;
    opacity: 0;
    transform: translateY(50px);
    transition: transform 0.75s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.75s cubic-bezier(0.25, 1, 0.5, 1);
}

    #services.visible {
        opacity: 1;
        transform: translateY(0);
    }

.service-card-row {
    row-gap: 1.5rem;
    column-gap: 0;
    margin-left: .75rem;
    margin-right: .75rem;
}

.services-card {
    background-color: white;
    color: black;
    border: solid 3px #000;
    border-radius: 16px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-top: 2.75rem;
    overflow: visible;
}

    .services-card:hover {
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        transform: scale(1.01);
    }

.service-card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 3.5rem 1.5rem 1.5rem 1.5rem;
    position: relative;
}

.service-card-icon-wrapper {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.service-card-icon {
    width: 7rem;
    height: 7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background-color: white;
    border: 4px solid black;
    border-radius: 50%;
    box-sizing: border-box;
}

    .service-card-icon img {
        width: 4.5rem;
        height: auto;
        object-fit: contain;
    }

.service-card-title {
    font-weight: 750;
    font-size: clamp(1.5rem, 2.5vw, 1.75rem);
    margin-bottom: 0.75rem;
    margin-top: 0.75rem;
}

.service-card-text {
    color: rgba(0, 0, 0, 0.8);
    font-size: clamp(1rem, 1.6vw, 1.125rem);
    margin-bottom: 1.5rem;
}

.service-card-cta-btn {
    margin-top: auto;
    align-self: center;
    background-color: var(--tir-dark-blue);
    color: white;
    font-size: clamp(1.05rem, 2vw, 1.15rem);
    font-weight: 650;
    padding: 0.66rem 1.25rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    text-align: center;
    border: none;
}

    .service-card-cta-btn:hover {
        background-color: var(--tir-dark-blue);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .service-card-cta-btn:focus-visible {
        outline: 3px solid var(--tir-dark-blue);
        outline-offset: 2px;
    }
