:root {
    --teal: #0a2e4d;
    --navy: #000000;
    --deep: black;
    --muted: #f4f7fb;
    --card: #ffffff;
    --accent: #ff8a00;
    --max-width: 1100px;
    --radius: 14px;
}

body.services-page {
    margin: 0;
    font-family: "Candara", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--muted);
    color: #0b2338;
}

.hero {
    background-image: url('../components/background_service.jpg');
}

a {
    text-decoration: none;
}

.services-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* MAIN SECTION */
.services-main {
    padding: 40px 0 60px;
}

.background-black {
    background-color: rgb(0, 0, 0);
    border-radius: 15px 15px 0px 0px;
    padding: 15px 10px;
    margin-bottom: 30px;
    box-shadow: 0 6px 20px rgba(10, 30, 50, 0.08);
}

.background-black * {
    color: white;
}

.services-section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
}

.services-section-subtitle {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 30px;
}

/* CORE SERVICES GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 45px;
}

.services-image {
    width: 100%;
}

.services-image > img {
    display: block;
    width: 100%;
    border-radius: 14px 14px 0px 0px;
}

.services-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 18px 18px 16px;
    box-shadow: 0 6px 20px rgba(10, 30, 50, 0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.services-card a {
    margin-top: 4px;
    display: block;
    text-decoration: none;
    color: white;
    text-align: center;
    width: 100%;
    padding: 7px 7px;
    background: black;
    border-radius: 10px;
}

.services-pill {
    display: inline-block;
    align-self: flex-start;
    background: rgba(13, 166, 78, 0.08);
    color: var(--teal);
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.services-card h3 {
    margin: 4px 0 4px;
    font-size: 1.1rem;
    color: var(--navy);
}

.services-card p {
    margin: 0;
    font-size: 0.95rem;
    color: #33485a;
}

.services-tagline {
    font-size: 0.85rem;
    color: #667;
    margin-top: 6px;
}

.services-mode {
    font-size: 0.8rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* VALUE-ADDED SERVICES */
.services-subgrid-title {
    margin: 35px 0 12px;
    font-size: 2rem;
    color: var(--navy);
}

.services-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.services-mini-card {
    background: var(--card);
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 4px 14px rgba(10, 30, 50, 0.06);
    font-size: 0.9rem;
}

.services-mini-card strong {
    display: block;
    color: var(--teal);
    margin-bottom: 4px;
}

/* ROUTES */
.services-routes {
    margin-top: 50px;
}

.services-route-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.services-route-chips span {
    background: #fff;
    border-radius: 999px;
    padding: 7px 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
}

/* CTA SECTION */
.services-cta-section {
    margin-top: 50px;
    text-align: center;
}

.services-cta-card {
    display: inline-block;
    color: black;
    border: 1px solid black;
    border-radius: var(--radius);
    padding: 22px 20px;
    max-width: 540px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.services-cta-card h2 {
    margin-top: 0;
    margin-bottom: 8px;
}

.services-cta-card p {
    margin-top: 0;
    margin-bottom: 14px;
    color: black;
}

.services-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.services-cta-buttons a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
}

.services-cta-buttons a:hover {
    box-shadow: 0 6px 20px rgba(10, 30, 50, 0.08);
}

.services-cta-buttons .primary {
    border: 1px solid black;
    color: black;
}

.services-cta-buttons .secondary {
    border: 1px solid black;
    color: black;
}

/* FOOTER SIMPLE (or reuse your existing footer styles) */
.services-footer {
    padding: 20px 0 30px;
    text-align: center;
    font-size: 0.9rem;
    color: #6d7b8a;
}


/* ============================================
   RESPONSIVE DESIGN — TABLETS (max-width: 900px)
   ============================================ */
@media (max-width: 900px) {

    /* Services grids become 2 columns */
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Reduce spacing */
    .services-section-title {
        font-size: 1.8rem;
    }

    .services-subgrid-title {
        font-size: 1.6rem;
    }

    /* CTA card */
    .services-cta-card {
        max-width: 90%;
    }

    /* Motto text */
    .motto h1 {
        font-size: 2rem;
        text-align: center;
    }

    .motto h3 {
        font-size: 1rem;
        text-align: center;
    }

    /* Footer stacks vertically */
    footer .home {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}


/* ============================================
   RESPONSIVE DESIGN — MOBILE (max-width: 600px)
   ============================================ */
@media (max-width: 600px) {

    /* Services grid becomes single column */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-grid-4 {
        grid-template-columns: 1fr;
    }

    .services-card {
        padding: 14px;
    }

    .services-mini-card {
        padding: 10px 12px;
    }

    /* Title sizes */
    .services-section-title {
        font-size: 1.6rem;
    }

    .services-subgrid-title {
        font-size: 1.4rem;
        text-align: center;
    }

    /* Motto */
    .motto h1 {
        font-size: 1.6rem;
        padding: 0 10px;
    }

    .motto h3 {
        font-size: 0.95rem;
        padding: 0 15px;
    }

    /* CTA */
    .services-cta-card {
        width: 90%;
        padding: 18px;
    }

    .services-cta-buttons a {
        width: 100%;
        text-align: center;
    }

    /* Route chips stack better */
    .services-route-chips {
        gap: 6px;
    }

    .services-route-chips span {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    /* Prevent horizontal overflow */
    body, html {
        overflow-x: hidden;
    }
}
