/* Hero Rounded Services (components/hero/rounded_services.html) — copy bottom-left, services grid bottom-right */
.hero-rounded-services-card-wrap {
    flex: 0 1 480px;
    width: 100%;
    max-width: 520px;
    align-self: flex-end;
}
.hero-rounded-services-card {
    background: #fff;
    border-radius: var(--border-radius, 16px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
    padding: 22px 22px 20px;
}
.hero-rounded-services-card-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 16px 0;
    line-height: 1.3;
    text-align: center;
}
.hero-rounded-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.hero-rounded-services-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 14px 8px 12px;
    background: #f8f9fa;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-rounded-services-item:hover {
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
.hero-rounded-services-item:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
.hero-rounded-services-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
}
.hero-rounded-services-item-icon i {
    font-size: 1.15rem;
    color: #fff;
    transition: color 0.2s ease;
}
.hero-rounded-services-item:hover .hero-rounded-services-item-icon {
    background: #fff;
}
.hero-rounded-services-item:hover .hero-rounded-services-item-icon i {
    color: var(--color-primary);
}
.hero-rounded-services-item-name {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-primary);
    transition: color 0.2s ease;
}
.hero-rounded-services-item:hover .hero-rounded-services-item-name {
    color: #fff;
}
.hero-rounded-services-card-subtitle {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.45;
    margin: 14px 0 0 0;
    text-align: center;
}
@media (max-width: 991px) {
    .hero-rounded-services-card-wrap {
        max-width: 100%;
        flex: 1 1 100%;
    }
}
@media (max-width: 767px) {
    .hero-rounded-services-card-wrap {
        order: 2;
        margin-left: auto;
        margin-right: auto;
        align-self: center;
        max-width: min(100%, 360px);
    }
    .hero-rounded-services-grid {
        gap: 8px;
    }
    .hero-rounded-services-item {
        padding: 12px 6px 10px;
    }
    .hero-rounded-services-item-icon {
        width: 38px;
        height: 38px;
    }
    .hero-rounded-services-item-icon i {
        font-size: 1rem;
    }
    .hero-rounded-services-item-name {
        font-size: 0.72rem;
    }
}
