/* 
 * Component: Services
 * Migrated to Vanilla CSS + Tokens (Tailwind-Ready)
 */

.app-services {
    padding: var(--space-3xl) 0;
    background-color: var(--color-bg-alt);
}

.app-services__container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Section Title */
.app-services__header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.app-services__title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: var(--space-sm);
    position: relative;
    padding-bottom: 20px;
}

.app-services__title::after {
    content: "";
    position: absolute;
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
}

.app-services__subtitle {
    color: color-mix(in srgb, var(--color-text-main), transparent 30%);
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Layout */
.app-services__grid {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: var(--space-xl);
    column-gap: var(--space-3xl);
}

@media (min-width: 768px) {
    .app-services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .app-services__grid {
        /* Original was col-lg-6 (2 columns). 
           3 columns makes 4 items look unbalanced (3 up, 1 down). 
           Keeping it 2x2 for symmetry. */
        grid-template-columns: repeat(2, 1fr);
        /* max-width removed to allow full container width (1320px) */
    }
}

/* Service Card (Restoring Original Layout) */
.app-service-card {
    background-color: var(--color-bg-surface);
    border: 1px solid color-mix(in srgb, var(--color-text-main), transparent 85%);
    height: 100%;
    padding: 30px;
    transition: 0.3s;
    border-radius: 10px;
    display: flex;
    /* Flex Row for Icon + Content side-by-side */
    align-items: flex-start;
    position: relative;
    box-shadow: none;
    /* Reset my previous shadow */
}

.app-service-card:hover {
    box-shadow: 0px 2px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    /* Reset my previous transform */
    border-color: color-mix(in srgb, var(--color-text-main), transparent 85%);
    /* Reset border change */
}

.app-service-card__icon {
    font-size: 32px;
    line-height: 1;
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    /* Original rounded square */
    margin-right: 25px;
    /* Spacing between icon and text */
    flex-shrink: 0;
    transition: 0.3s;
}

/* Service Values (Icon Colors & Backgrounds - Exact Match) */
.app-service-card--cyan .app-service-card__icon {
    color: #0dcaf0;
    border: 1px solid #0dcaf0;
    background: rgba(13, 202, 240, 0.1);
}

.app-service-card--orange .app-service-card__icon {
    color: #fd7e14;
    border: 1px solid #fd7e14;
    background: rgba(253, 126, 20, 0.1);
}

.app-service-card--teal .app-service-card__icon {
    color: #20c997;
    border: 1px solid #20c997;
    background: rgba(32, 201, 151, 0.1);
}

.app-service-card--red .app-service-card__icon {
    color: #df1529;
    border: 1px solid #df1529;
    background: rgba(223, 21, 4, 0.1);
}

/* Content Wrapper */
.app-service-card__content {
    flex-grow: 1;
}

.app-service-card__title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
    /* Tighter spacing */
    color: color-mix(in srgb, var(--color-text-heading), transparent 25%);
    transition: 0.3s;
}

.app-service-card:hover .app-service-card__title {
    color: var(--color-text-heading);
}

.app-service-card__text {
    margin-bottom: 0;
    color: color-mix(in srgb, var(--color-text-main), transparent 40%);
    transition: 0.3s;
    line-height: 1.6;
    font-size: 16px;
    /* Reset to default */
}

.app-service-card:hover .app-service-card__text {
    color: color-mix(in srgb, var(--color-text-main), transparent 10%);
}

.app-service-card__link {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    font-size: 14px;
    color: var(--color-accent);
    /* Bootstrap Default Link Color usually */
    font-weight: 600;
    /* Keeping my enhancement or reset? Original was 400 likely */
    text-decoration: none;
    transition: 0.3s;
}

.app-service-card__link i {
    margin-left: 10px;
    font-size: 14px;
}

/* Stretched Link Logic */
.app-service-card__link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}