/* Services hub page (/services/) */

body {
    background-color: #0a0a0a;
}

/* Hero Banner (same pattern as the service pages, shorter) */
.service-hero {
    position: relative;
    width: 100%;
    height: 45vh;
    min-height: 320px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.service-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.service-hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    padding: 0 5%;
    width: 100%;
    max-width: 1300px;
}

.service-hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.2;
    max-width: 700px;
}

.hub-intro {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    max-width: 620px;
    margin-top: 1.2rem;
}

/* Service groups */
.hub-section {
    padding: 4rem 5% 5rem;
}

.hub-container {
    max-width: 1200px;
    margin: 0 auto;
}

.hub-group + .hub-group {
    margin-top: 3.5rem;
}

.hub-group-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.hub-group-title::before {
    content: '';
    width: 4px;
    height: 1.6rem;
    background: #CE0F05;
    border-radius: 2px;
    flex-shrink: 0;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.hub-card {
    display: flex;
    flex-direction: column;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.hub-card:hover {
    border-color: #CE0F05;
    transform: translateY(-3px);
}

.hub-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* A group with a single service: one full-width card, image beside the text */
.hub-card:only-child {
    grid-column: 1 / -1;
    flex-direction: row;
}

.hub-card:only-child img {
    width: 50%;
    height: auto;
    min-height: 260px;
}

.hub-card:only-child .hub-card-body {
    justify-content: center;
    padding: 2rem;
}

.hub-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    flex: 1;
}

.hub-card-body h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
}

.hub-card-body p {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

.hub-card-more {
    margin-top: auto;
    padding-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
}

.hub-card-more svg {
    color: #CE0F05;
    transition: transform 0.3s ease;
}

.hub-card:hover .hub-card-more svg {
    transform: translateX(4px);
}

/* CTA */
.hub-cta {
    margin-top: 4rem;
    background: #2D2D2D;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
}

.hub-cta h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.8rem;
}

.hub-cta p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 1.8rem;
}

.hub-cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.hub-btn {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hub-btn-primary {
    color: #ffffff;
    background: #CE0F05;
    border: 2px solid #CE0F05;
}

.hub-btn-primary:hover {
    background: #8B0A03;
    border-color: #8B0A03;
}

.hub-btn-secondary {
    color: #ffffff;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.hub-btn-secondary:hover {
    border-color: #ffffff;
}

@media (max-width: 900px) {
    .service-hero {
        height: auto;
        min-height: 0;
        padding: 6rem 0 3rem;
    }

    .service-hero-content {
        text-align: center;
    }

    .service-hero-title {
        font-size: 1.6rem;
        max-width: 100%;
    }

    .hub-intro {
        margin-left: auto;
        margin-right: auto;
        font-size: 0.95rem;
    }

    .hub-section {
        padding: 3rem 5% 4rem;
    }

    .hub-grid {
        grid-template-columns: 1fr;
    }

    .hub-group-title,
    .hub-cta h2 {
        font-size: 1.4rem;
    }

    .hub-card img {
        height: 190px;
    }

    .hub-card:only-child {
        flex-direction: column;
    }

    .hub-card:only-child img {
        width: 100%;
        height: 190px;
        min-height: 0;
    }

    .hub-card:only-child .hub-card-body {
        padding: 1.5rem;
    }

    .hub-cta {
        padding: 2.5rem 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hub-card,
    .hub-card-more svg {
        transition: none;
    }

    .hub-card:hover {
        transform: none;
    }
}
