.services-section__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 400px;
    height: auto;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.service-card img.service-card__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--animation-easing, cubic-bezier(0.25, 0.46, 0.45, 0.94));
    z-index: 1;
}

.service-card:hover img.service-card__bg {
    transform: scale(1.1);
}

.service-card__overlay {
    position: relative;
    z-index: 2;
    background: linear-gradient(to top, rgba(64, 50, 38, 0.98) 0%, rgba(64, 50, 38, 0.85) 40%, rgba(64, 50, 38, 0.4) 70%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    padding-top: 180px;
    flex: 1;
}

.service-card__icon {
    width: 60px;
    height: 60px;
    background: var(--secondary-color-100);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-card__icon {
    transform: scale(1.1);
}

.service-card__icon svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

.service-card__icon--image {
    padding: 0;
    overflow: hidden;
}

.service-card__icon--image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.service-card__title {
    color: #fff;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    font-family: 'AlbertSansBold', sans-serif;
}

.service-card__text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary-color-100);
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.service-card__link:hover {
    gap: 15px;
}

.service-card__link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.service-card__link:hover svg {
    transform: translateX(4px);
}

.service-card:focus-within {
    outline: 2px solid var(--secondary-color-100);
    outline-offset: 4px;
}

.services-section--detailed {
    background: var(--secondary-color-700);
}

.services-section__grid--detailed {
    gap: 3rem;
}

.service-card--detailed {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(64, 50, 38, 0.08);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: auto;
    cursor: default;
}

.service-card--detailed:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(64, 50, 38, 0.15);
}

.service-card--detailed .service-card__image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.service-card--detailed .service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card--detailed:hover .service-card__image img {
    transform: scale(1.08);
}

.service-card--detailed .service-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(64, 50, 38, 0.6) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card--detailed:hover .service-card__image::after {
    opacity: 1;
}

.service-card__badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--secondary-color-100);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.service-card--detailed .service-card__content {
    padding: 2rem;
}

.service-card--detailed .service-card__icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color-100) 0%, #8C6629 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(187, 154, 101, 0.3);
}

.service-card--detailed .service-card__icon svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

.service-card--detailed .service-card__icon--image {
    padding: 0;
}

.service-card--detailed .service-card__icon--image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

.service-card--detailed .service-card__title {
    color: var(--primary-color-100);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card__description {
    color: var(--ternary-color-100);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 15px;
}

.service-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.service-card__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--primary-color-200);
    font-size: 15px;
}

.service-card__features li svg {
    width: 18px;
    height: 18px;
    fill: var(--secondary-color-100);
    flex-shrink: 0;
}

.service-card--detailed .service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color-100);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.service-card--detailed .service-card__link:hover {
    color: var(--secondary-color-100);
    gap: 15px;
}

.service-card--detailed .service-card__link svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.service-card--detailed .service-card__link:hover svg {
    transform: translateX(5px);
}

/* Detailed Mobile Adjustments */


.service-card--detailed:focus-within {
    outline: 2px solid var(--secondary-color-100);
    outline-offset: 4px;
}

@media (max-width: 640px) {
    .service-card {
        min-height: 320px;
        height: auto;
    }
    
    .service-card__overlay {
        padding: 1.5rem;
        padding-top: 140px;
    }
    
    .service-card__icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }
    
    .service-card__icon svg {
        width: 24px;
        height: 24px;
    }
    
    .service-card__title {
        font-size: 1.35rem;
        margin-bottom: 0.5rem;
    }
    
    .service-card__text {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .service-card--detailed .service-card__image {
        height: 200px;
    }
    
    .service-card--detailed .service-card__content {
        padding: 1.5rem;
    }
    
    .service-card--detailed .service-card__icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }
    
    .service-card--detailed .service-card__icon svg {
        width: 24px;
        height: 24px;
    }
    
    .service-card--detailed .service-card__title {
        font-size: 1.25rem;
    }
    
    .service-card__description {
        font-size: 14px;
        margin-bottom: 1rem;
    }
    
    .service-card__features {
        margin-bottom: 1.5rem;
    }
    
    .service-card__features li {
        font-size: 14px;
        padding: 6px 0;
    }
}

@media (min-width: 641px) and (max-width: 767px) {
    .service-card {
        min-height: 380px;
    }
    
    .service-card__overlay {
        padding-top: 160px;
    }
}

@media (min-width: 768px) {
    .services-section__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-card {
        min-height: 420px;
    }
    
    .service-card__overlay {
        padding-top: 180px;
    }
}

@media (min-width: 1024px) {
    .services-section__grid {
        gap: 2.5rem;
    }
    
    .service-card {
        min-height: 450px;
    }
    
    .service-card__overlay {
        padding: 2.5rem;
        padding-top: 200px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-card--detailed,
    .service-card--detailed .service-card__image img,
    .service-card--detailed .service-card__link svg {
        transition: none;
    }
    
    .service-card--detailed:hover {
        transform: none;
    }

    .service-card img,
    .service-card__icon,
    .service-card__link svg {
        transition: none;
    }
}

