/* ==========================================================================
   Services Archive Page
   ========================================================================== */

/* -- Hero ---------------------------------------------------------------- */
.hero-services {
    text-align: left;
    padding: 100px 0 80px;
}

.hero-services::before {
    background-color: rgba(14, 28, 60, 0.78);
}

.hero-services .hero__title {
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    max-width: 660px;
    margin-bottom: 20px;
}

.hero-services .hero__subtitle {
    font-size: 17px;
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.85);
}

.hero-services .hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    margin-bottom: 32px;
}

.hero-services .hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 100px;
    padding: 5px 12px;
}

.hero-services .btn-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* -- Service Tile Grid --------------------------------------------------- */
.services-tile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.service-tile {
    position: relative;
    display: block;
    min-height: 280px;
    border-radius: var(--radius);
    overflow: hidden;
    background-color: var(--color-navy);
    background-size: cover;
    background-position: center center;
    text-decoration: none;
    color: var(--color-white);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.service-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(14, 28, 60, 0.15) 0%,
        rgba(14, 28, 60, 0.70) 55%,
        rgba(14, 28, 60, 0.92) 100%
    );
    z-index: 1;
    transition: background 0.3s ease;
}

.service-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.service-tile:hover::before {
    background: linear-gradient(
        to bottom,
        rgba(14, 28, 60, 0.2) 0%,
        rgba(14, 28, 60, 0.78) 55%,
        rgba(14, 28, 60, 0.95) 100%
    );
}

.service-tile-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 28px;
    z-index: 2;
}

.service-tile-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-family: var(--font-body);
}

.service-tile-body p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.55;
    margin-bottom: 12px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, margin 0.35s ease;
}

.service-tile:hover .service-tile-body p {
    max-height: 80px;
}

.tile-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}

.service-tile:hover .tile-link {
    color: var(--color-white);
    border-color: var(--color-white);
}

/* -- How We Operate (segment cards) ------------------------------------- */
.segment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.segment-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 1px 2px rgba(31, 54, 105, 0.04), 0 2px 6px rgba(31, 54, 105, 0.06);
}

.segment-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-navy);
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0;
}

.segment-card p {
    font-size: 15px;
    color: var(--color-muted);
    line-height: 1.65;
    margin: 0;
    flex: 1;
}

.segment-card .tags-row {
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
    flex-wrap: wrap;
}

/* -- Responsive --------------------------------------------------------- */
@media (max-width: 1024px) {
    .services-tile-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

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

@media (max-width: 768px) {
    .hero-services {
        padding: 70px 0 60px;
        text-align: center;
    }

    .hero-services .hero__badges {
        justify-content: center;
    }

    .hero-services .btn-row {
        justify-content: center;
    }

    .hero-services .hero__title {
        max-width: 100%;
    }

    .hero-services .hero__subtitle {
        max-width: 100%;
    }

    .services-tile-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .service-tile {
        min-height: 240px;
    }

    .service-tile-body p {
        max-height: 80px;
    }
}
