@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/poppins-latin-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/poppins-latin-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/poppins-latin-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/poppins-latin-700.woff2') format('woff2');
}

:root {
    --navy: #16336d;
    --navy-dark: #0f2550;
    --blue: #2a8fc7;
    --green: #84bd2e;
    --text: #1f2937;
    --muted: #5b6575;
    --line: #e3e8ef;
    --surface: #f4f7fb;
    --radius: 20px;
    --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 6px 18px rgba(16, 24, 40, 0.06);
    --shadow-hover: 0 14px 30px rgba(22, 51, 109, 0.16);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--surface);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

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

/* ---------- Top bar ---------- */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.brand img {
    height: 60px;
    width: auto;
}

.header-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--navy);
    text-decoration: none;
    padding: 8px 18px;
    border: 1px solid var(--navy);
    border-radius: 999px;
    transition: background 0.2s, color 0.2s;
}

.header-link:hover {
    background: var(--navy);
    color: #fff;
}

/* ---------- Services grid ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding-top: 40px;
    padding-bottom: 40px;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 28px 18px 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--text);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: #cdd8e8;
}

.service-icon {
    width: 96px;
    height: 96px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: #f1f6fc;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: background 0.2s ease;
}

.service-card:hover .service-icon {
    background: #e6f0fa;
}

.service-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 12px;
}

.service-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.35;
}

.service-desc {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.45;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.78);
    padding: 28px 0;
    font-size: 14px;
}

.footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px 24px;
}

.footer p {
    margin: 0;
}

.footer a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.footer a:hover {
    border-bottom-color: var(--green);
    color: var(--green);
}

/* ---------- Small screens ---------- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .brand img {
        height: 48px;
    }

    .header-link {
        display: none;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding-top: 24px;
    }

    .service-card {
        padding: 20px 12px 18px;
    }

    .service-icon {
        width: 80px;
        height: 80px;
    }

    .service-icon img {
        width: 50px;
        height: 50px;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-card {
        transition: none;
    }
}
