/* Hero Section */
.services-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-tertiary) 100%);
    padding: 10vh 0;
    position: relative;
    overflow: hidden;
}

.services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.services-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.services-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* Service ids */
#aged-care-physio, #physio-for-ndis, #fall-prevention-balance-training, #workers-compensation-ctp, #joint-replacement, #chronic-conditions, #mobility-aid-training, #neurological-physio {
    scroll-margin-top: 150px;
}

.services-container {
    display: flex;
    gap: 5vw;
}

.services-sidebar {
    position: sticky;
    top: 200px;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    white-space: nowrap;
    gap: 3vh;
}

/* Services Grid */
.services-grid {
    flex-grow: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 2.5rem;
}

.service-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(80, 148, 159, 0.15);
    border-color: var(--color-primary);
}

.service-card:last-child:nth-child(3n + 1) {
    grid-column: 2;
}

.service-card p {
    margin-bottom: 1rem;
}

.service-card-image {
    position: relative;
    flex: 0 0 40%;
    min-height: 400px;
    overflow: hidden;
}

.service-card-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--card-image);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card-image::before {
    transform: scale(1.02);
}

.service-card h3 {
    margin: 2vh 2vw 0 2vw;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-dark);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.service-card p, ul {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-top: 1vh 0;
}

.service-card ul {
    text-align: left;
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.service-card-description {
    margin: 2vh 2vw;
}

/* Responsive Design */
@media (max-width: 1280px) {
    .services-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .services-hero h1 {
        font-size: 2.5rem;
    }

    .service-card {
        flex-direction: column;
        padding: 0 2vw;
    }

    .service-card-image {
        flex: none;
        width: 100%;
        min-height: 250px;
    }
}
