/* ============================================================================
   Services Page Styles
   Extracted from services.html inline <style> block (was 478 lines inline).
   Note: Critical FOUC-prevention CSS for [data-animate] stays inline in
   services.html so it loads synchronously with the page.
   ============================================================================ */

/* Services Page Specific Styles */
/* Hero frame aligned with .dist-hero (distribution.css) — rem-based heights,
   135deg overlay, left-aligned content. */
.services-hero {
    position: relative;
    min-height: 26rem;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 0 0 1.5rem 1.5rem;
    margin-bottom: 3rem;
    padding: 8rem 1rem 4rem;
    background-color: #0f172a;
    color: #fff;
}

@media (min-width: 768px) {
    .services-hero {
        padding: 9rem 2rem 5rem;
        min-height: 30rem;
    }
}

@media (min-width: 1024px) {
    .services-hero {
        padding: 10rem 2rem 6rem;
        min-height: 34rem;
    }
}

.services-hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.services-hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    opacity: 0.55;
}

.services-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
                rgba(15, 23, 42, 0.85) 0%,
                rgba(15, 23, 42, 0.55) 50%,
                rgba(15, 23, 42, 0.78) 100%);
    z-index: 1;
}

.services-hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.services-hero-text {
    max-width: 44rem;
}

.services-hero h1 {
    font-size: clamp(2.125rem, 4.4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
    color: #fff;
    line-height: 1.05;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.services-hero p {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
    line-height: 1.65;
    max-width: 38rem;
}

@media (min-width: 768px) {
    .services-hero p {
        font-size: 1.125rem;
    }
}

.services-hero-description strong {
    color: #fff;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.0625em;
}

/* Blue category eyebrow above the H1 — mirrors .dist-eyebrow in distribution.css */
.services-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #60a5fa;
    margin: 0 0 0.5rem;
}

.services-hero-ctas {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

@media (min-width: 640px) {
    .services-hero-ctas {
        flex-direction: row;
        gap: 1rem;
    }
}

/* KeepPACE logo badge sits inside .btn-cta-secondary in place of an SVG icon.
   Match the SVG icon sizing rule in about.css so the button stays consistent. */
.btn-keeppace-logo {
    width: 1.25rem;
    height: 1.25rem;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.btn-cta-secondary:hover .btn-keeppace-logo {
    transform: scale(1.1);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Service offering cards grid - stays at 2 columns on larger screens */
.service-offerings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .service-offerings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Keep 2 columns even on larger screens for service-offering cards */
@media (min-width: 1024px) {
    .service-offerings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-offering-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.service-offering-image {
    width: 100%;
    height: 16rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #f3f4f6;
}

.service-offering-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-offering-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.service-offering-card p {
    color: #374151;
    margin-bottom: 1rem;
}

.service-offering-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-offering-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
}

.service-offering-list svg {
    width: 1rem;
    height: 1rem;
    color: #2563eb;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.service-cta-box {
    margin-top: 2rem;
    background: #eff6ff;
    border-left: 4px solid #2563eb;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.service-cta-box p {
    color: #374151;
    margin-bottom: 1rem;
}

.service-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .service-cta-buttons {
        flex-direction: row;
    }
}

.btn-service-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #2563eb;
    color: white;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
}

.btn-service-primary:hover {
    background: #1d4ed8;
    color: white;
}

.btn-service-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #2563eb;
    color: #2563eb;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
}

.btn-service-secondary:hover {
    background: #eff6ff;
}

.service-cta-section {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #111827 70%, #0f172a 100%);
    border-radius: 1rem;
    padding: 3rem 1rem 2.5rem;
    text-align: center;
    color: white;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.service-cta-section .cta-hexagons {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.service-cta-section .cta-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 70%;
    background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.service-cta-section .cta-accent {
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #2563eb, #3b82f6, #2563eb, transparent);
    border-radius: 0 0 2px 2px;
    z-index: 1;
}

.service-cta-section h2,
.service-cta-section p,
.service-cta-buttons-large {
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .service-cta-section {
        padding: 4.5rem 2rem 4rem;
    }
}

.service-cta-section h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    letter-spacing: -0.01em;
}

@media (min-width: 768px) {
    .service-cta-section h2 {
        font-size: 2.25rem;
    }
}

.service-cta-section p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

.service-cta-buttons-large {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .service-cta-buttons-large {
        flex-direction: row;
    }
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: white;
    color: #111827;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    width: auto;
}

.btn-cta-primary:hover {
    background: #f0f7ff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 20px rgba(37, 99, 235, 0.15);
    transform: translateY(-3px);
}

.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.3s;
    width: auto;
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}

.btn-cta-primary svg,
.btn-cta-secondary svg {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s;
}

.btn-cta-primary:hover svg,
.btn-cta-secondary:hover svg {
    transform: scale(1.1);
}

@media (max-width: 640px) {
    .service-cta-section {
        padding: 2rem 1rem 1.5rem;
    }
    .service-cta-section .cta-accent {
        left: 5%;
        right: 5%;
    }
}
