﻿*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blue-deep: #1a3a6e;
    --blue-mid: #2272b8;
    --blue-light: #5bb8f5;
    --blue-pale: #e8f5fe;
    --blue-wash: #f0faff;
    --accent: #f7c948;
    --white: #ffffff;
    --text-body: #3a5068;
    --radius-card: 20px;
    --shadow-card: 0 4px 24px rgba(26, 58, 110, 0.10);
    --transition: 0.25s cubic-bezier(.4, 0, .2, 1);
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--blue-wash);
    color: var(--text-body);
}

/* ═══════════════════════════════════════════════
                       SERVICES SECTION
═══════════════════════════════════════════════ */
.services {
    position: relative;
    padding: 96px 24px 112px;
    overflow: hidden;
}

    /* Floating bubble decorations */
    .services::after {
        content: '';
        position: absolute;
        bottom: -60px;
        right: -60px;
        width: 320px;
        height: 320px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(91,184,245,0.12) 0%, transparent 70%);
        pointer-events: none;
    }

/* ── Section header ── */
.services-header {
    text-align: center;
    margin-bottom: 56px;
    position: relative;
    z-index: 1;
}

.services-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue-mid);
    background: var(--blue-pale);
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.services-title {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--blue-deep);
    line-height: 1.15;
    margin-bottom: 16px;
}

    .services-title span {
        color: var(--blue-mid);
        position: relative;
        white-space: nowrap;
    }

        /* Wavy underline on highlight word */
        .services-title span::after {
            content: '';
            position: absolute;
            left: 0;
            right: 0;
            bottom: -4px;
            height: 4px;
            background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 8'%3E%3Cpath d='M0 4 Q7.5 0 15 4 Q22.5 8 30 4 Q37.5 0 45 4 Q52.5 8 60 4' fill='none' stroke='%235bb8f5' stroke-width='2.5'/%3E%3C/svg%3E") repeat-x center / 60px 8px;
        }

.services-subtitle {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-body);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.85;
}

/* ── Cards grid ── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ── Individual card ── */
.service-card {
    background: var(--white);
    border-radius: var(--radius-card);
    padding: 36px 28px 32px;
    box-shadow: var(--shadow-card);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    gap: 14px;
    cursor: default;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    /* Staggered reveal — set via inline style */
    opacity: 0;
    transform: translateY(28px);
}

    .service-card.visible {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.5s ease, transform 0.5s ease, box-shadow var(--transition), border-color var(--transition);
    }

    .service-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 40px rgba(26, 58, 110, 0.15);
        border-color: var(--blue-light);
    }

/* Icon bubble */
.card-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: var(--blue-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--transition), transform var(--transition);
}

.service-card:hover .card-icon {
    background: var(--blue-light);
    transform: rotate(-6deg) scale(1.08);
}

.card-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--blue-mid);
    transition: stroke var(--transition);
}

.service-card:hover .card-icon svg {
    stroke: var(--white);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--blue-deep);
    line-height: 1.25;
}

.card-desc {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-body);
    line-height: 1.65;
    opacity: 0.88;
    flex: 1;
}

/* Small "learn more" tag */
.card-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--blue-mid);
    text-decoration: none;
    margin-top: 4px;
    transition: gap var(--transition), color var(--transition);
}

    .card-tag:hover {
        gap: 9px;
        color: var(--blue-deep);
    }

    .card-tag svg {
        width: 14px;
        height: 14px;
        stroke: currentColor;
        flex-shrink: 0;
    }

/* ── Bottom CTA strip ── */
.services-cta {
    text-align: center;
    margin-top: 56px;
    position: relative;
    z-index: 1;
}

    .services-cta p {
        font-size: 1rem;
        font-weight: 700;
        color: var(--text-body);
        margin-bottom: 20px;
        opacity: 0.8;
    }

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    color: var(--blue-deep);
    background: var(--accent);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(247, 201, 72, 0.45);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

    .btn-primary:hover {
        background: #ffd84a;
        transform: translateY(-3px) scale(1.04);
        box-shadow: 0 10px 28px rgba(247, 201, 72, 0.55);
    }

    .btn-primary svg {
        width: 18px;
        height: 18px;
        stroke: currentColor;
        flex-shrink: 0;
    }

/* ── Responsive ── */
@media (max-width: 600px) {
    .services {
        padding: 72px 16px 88px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}