/* Services Fancy (components/services/fancy.html) — square cards, image bg on hover */
.services-fancy-section {
    background: #fff;
    padding: 60px 0;
}
.services-fancy-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 8px 0;
}
.services-fancy-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0;
    line-height: 1.5;
}
.services-fancy-section .row {
    row-gap: 2rem;
}
.services-fancy-section .row + .row {
    margin-top: 0.5rem;
}
.services-fancy-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 32px 28px 28px;
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 0;
    overflow: hidden;
    color: inherit;
    box-sizing: border-box;
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
}
.services-fancy-card.clickable-card {
    cursor: pointer;
}
.services-fancy-card:hover {
    border-color: #c8c8c8;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.services-fancy-image-wrap {
    position: absolute;
    inset: 0;
    aspect-ratio: 1 / 1;
    opacity: 0;
    transition: opacity 0.45s ease;
    z-index: 1;
    pointer-events: none;
}
.services-fancy-image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.48);
    z-index: 1;
}
.services-fancy-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.services-fancy-card:hover .services-fancy-image-wrap,
.services-fancy-card:focus-within .services-fancy-image-wrap {
    opacity: 1;
}
.services-fancy-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    margin-top: auto;
}
.services-fancy-icon {
    font-size: 2.75rem;
    line-height: 1;
    color: var(--color-primary);
    margin-bottom: 18px;
    transition: color 0.35s ease;
}
.services-fancy-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 14px 0;
    line-height: 1.3;
    transition: color 0.35s ease;
}
.services-fancy-divider {
    width: 100%;
    border: 0;
    border-top: 1px solid #ddd;
    margin: 0 0 16px 0;
    opacity: 1;
    transition: border-color 0.35s ease;
}
.services-fancy-card-subtitle {
    font-size: 0.98rem;
    line-height: 1.55;
    color: #666;
    margin: 0 0 22px 0;
    flex: 1;
    transition: color 0.35s ease;
}
.services-fancy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 10px 18px;
    background: var(--color-button);
    color: #fff !important;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0;
    border: 2px solid var(--color-button);
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.services-fancy-btn:hover {
    background: #fff;
    color: var(--color-button) !important;
    border-color: var(--color-button);
    text-decoration: none;
}
.services-fancy-btn-arrow {
    font-size: 0.85rem;
    transition: transform 0.25s ease;
}
.services-fancy-btn:hover .services-fancy-btn-arrow {
    transform: translateX(3px);
}
.services-fancy-card:hover .services-fancy-icon,
.services-fancy-card:focus-within .services-fancy-icon,
.services-fancy-card:hover .services-fancy-card-title,
.services-fancy-card:focus-within .services-fancy-card-title {
    color: #fff;
}
.services-fancy-card:hover .services-fancy-divider,
.services-fancy-card:focus-within .services-fancy-divider {
    border-top-color: rgba(255, 255, 255, 0.45);
}
.services-fancy-card:hover .services-fancy-card-subtitle,
.services-fancy-card:focus-within .services-fancy-card-subtitle {
    color: rgba(255, 255, 255, 0.92);
}
.services-fancy-card:hover .services-fancy-btn,
.services-fancy-card:focus-within .services-fancy-btn {
    background: #fff;
    color: var(--color-button) !important;
    border-color: #fff;
}
.services-fancy-card:hover .services-fancy-btn:hover,
.services-fancy-card:focus-within .services-fancy-btn:hover {
    background: transparent;
    color: #fff !important;
    border-color: #fff;
}
@media (max-width: 767px) {
    .services-fancy-section {
        padding: 44px 0;
    }
    .services-fancy-title {
        font-size: 1.75rem;
    }
    .services-fancy-card {
        padding: 26px 22px 22px;
    }
    .services-fancy-icon {
        font-size: 2.25rem;
        margin-bottom: 14px;
    }
    .services-fancy-card-title {
        font-size: 1.2rem;
    }
    .services-fancy-section .row {
        row-gap: 1.75rem;
    }
}
