/* ================= ROOT ================= */
:root {
    --primary: #1e3a8a;
    --secondary: #0284c7;
    --gold: #d4943a;
    --bg-light: #f8fafc;
    --text-muted: #64748b;
    --text-light: #fff;
}

/* ================= HERO ================= */
.services-hero {
    min-height: 45vh;
    position: relative;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,.12);
}

.services-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-overlay {
    min-height: inherit;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 20px;
    color: var(--text-light);
    position: relative;
    z-index: 2;
    background: linear-gradient(rgba(30, 58, 138, .4), rgba(2, 132, 199, .4));
}

.hero-overlay h1 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    text-shadow: 0 4px 15px rgba(0,0,0,.3);
}

.hero-overlay p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 720px;
    line-height: 1.6;
}

/* ================= SERVICES ================= */
.services-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.services-section h2 {
    text-align: center;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--primary);
    margin-bottom: 60px;
    position: relative;
}

.services-section h2::after {
    content: '';
    width: 60px;
    height: 4px;
    background: var(--gold);
    display: block;
    margin: 12px auto 0;
    border-radius: 2px;
}

/* ================= GRID ================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

/* ================= CARD ================= */
.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    transition: transform .35s ease, box-shadow .35s ease;
    border: 1px solid rgba(0,0,0,.03);
    will-change: transform;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(30,58,138,.15);
    cursor: pointer;
}

/* ================= ICONS ================= */
.icon {
    font-size: 42px;
    margin-bottom: 25px;
    transition: transform .3s ease;
}

.service-card:hover .icon {
    transform: scale(1.15);
}

.blue { color: var(--primary); }
.gold { color: var(--gold); }

/* ================= TEXT ================= */
.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--primary);
}

.gold-text {
    color: var(--gold);
}

.service-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ================= ACCESSIBILITY ================= */
.service-card:focus-within {
    outline: 3px solid var(--secondary);
    outline-offset: 4px;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
    .services-section {
        padding: 50px 0;
    }

    .service-card {
        padding: 30px 22px;
    }

    .hero-overlay h1 {
        font-size: 2rem;
    }

    .hero-overlay p {
        font-size: 1rem;
    }
}
