/* Services Hover component (flip cards; unique prefix: services-hover-*) */
.services-hover-section {
    background: #fff;
    padding: 60px 0;
}
.services-hover-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}
.services-hover-subtitle {
    font-size: 1.15rem;
    color: #666;
    margin-bottom: 32px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}
.services-hover-card-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}
.services-hover-card-wrapper.clickable-card {
    cursor: pointer;
}
.services-hover-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
}
.services-hover-card-front {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
}
.services-hover-card-front-link {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: block;
    text-decoration: none;
}
.services-hover-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.services-hover-card-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-primary-transparent), #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
}
.services-hover-card-placeholder > i {
    font-size: 3.5rem;
    color: var(--color-primary);
    opacity: 0.35;
}
.services-hover-card-overlay {
    position: absolute;
    inset: 0;
    background: var(--color-primary-transparent-40);
    pointer-events: none;
    z-index: 1;
}
.services-hover-card-front-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 20px;
    pointer-events: none;
    transition: transform 0.5s ease, opacity 0.5s ease;
}
.services-hover-card-wrapper:hover .services-hover-card-front-content,
.services-hover-card-wrapper:focus-within .services-hover-card-front-content {
    transform: translateY(-12px);
    opacity: 0.92;
}
.services-hover-card-icon {
    font-size: 3.4rem;
    color: #fff;
    margin-bottom: 14px;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.services-hover-card-front-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    max-width: 90%;
}
.services-hover-card-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    min-height: 100%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    transform: translateY(100%);
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.services-hover-card-wrapper:hover .services-hover-card-panel,
.services-hover-card-wrapper:focus-within .services-hover-card-panel {
    transform: translateY(0);
    pointer-events: auto;
}
.services-hover-card-wrapper:hover .services-hover-card-front-link,
.services-hover-card-wrapper:focus-within .services-hover-card-front-link {
    pointer-events: none;
}
.services-hover-card-back-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}
.services-hover-card-back-subtitle {
    font-size: 1rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 18px;
}
.services-hover-card-btn {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: #fff;
    color: var(--color-button);
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.services-hover-card-btn.prevent-card-click {
    cursor: pointer;
}
.services-hover-card-btn:hover {
    color: var(--color-button);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.services-hover-card-btn-arrow {
    transition: transform 0.2s ease;
}
.services-hover-card-btn:hover .services-hover-card-btn-arrow {
    transform: translateX(4px);
}
@media (max-width: 767px) {
    .services-hover-section {
        padding: 40px 0;
    }
    .services-hover-title {
        font-size: 1.5rem;
    }
    .services-hover-card-icon {
        font-size: 2rem;
    }
    .services-hover-card-front-title {
        font-size: 1.05rem;
    }
    .services-hover-card-panel {
        padding: 20px 16px;
        min-height: 100%;
    }
}
