﻿:root {
    --sampangan-navy: #233A67;
    --sampangan-navy-dark: #1A2C4F;
    --sampangan-yellow: #FAD12C;
    --sampangan-text-muted: #5C6B82;
    --sampangan-card-border: #E4E8F0;
    --sampangan-page-bg: #F6F7FB;
    --sampangan-white: #FFFFFF;
}

.page-content {
    background: var(--sampangan-page-bg);
    min-height: 100vh;
}

.services-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}

.services-intro {
    max-width: 720px;
    margin: 0 auto 64px;
    text-align: center;
}

.services-intro h2 {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--sampangan-navy);
}

/* Yellow accent bar (below heading) */
.services-intro h2::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    margin: 18px auto 24px;
    border-radius: 2px;
    background: var(--sampangan-yellow);
}

.services-intro p {
    margin: 0 auto 16px;
    max-width: 68ch;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--sampangan-text-muted);
}

.services-intro .lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #3D4E6E;
}

.services-intro .text-highlight {
    font-weight: 600;
    color: var(--sampangan-navy);
    background: linear-gradient(transparent 62%, rgba(250, 209, 44, 0.45) 62%);
    padding: 0 1px;
}

/* Cards as a Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* Actual Cards */
.service-card {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid var(--sampangan-card-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(35, 58, 103, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(35, 58, 103, 0.12);
}

.service-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #E9EDF5;
    position: relative;
}

.service-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: rgba(26, 44, 79, 0.85);
    backdrop-filter: blur(6px);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #FFFFFF;
    text-transform: uppercase;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-card h3 {
    margin: 20px 24px 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--sampangan-navy);
    text-align: center;
}

.service-card p {
    flex: 1 0 auto;
    margin: 0 24px 20px;
    font-size: 0.92rem;
    line-height: 1.55;
    text-align: center;
    color: var(--sampangan-text-muted);
}

.service-card .learn-more {
    display: inline-block;
    align-self: stretch;
    text-align: center;
    margin: 0 24px 24px;
    padding: 9px 54px;
    border: 1.5px solid var(--sampangan-navy);
    border-radius: 999px;
    background: transparent;
    color: var(--sampangan-navy);
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.service-card .learn-more:hover,
.service-card .learn-more:focus-visible {
    background: var(--sampangan-navy);
    color: #FFFFFF;
}

/* Ending Strip */
.cta-card {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: stretch;
    gap: 40px;
    padding: 0;
    background: var(--sampangan-navy);
    border-color: var(--sampangan-navy);
}

.cta-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(35, 58, 103, 0.25);
}

.cta-card .service-image {
    width: calc((100% - 56px) / 3);
    flex-shrink: 0;
    aspect-ratio: auto;
    border-radius: 0;
}

.cta-card .cta-content {
    flex: 1;
    padding: 36px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-card h3 {
    margin: 0 0 10px;
    color: #FFFFFF;
    font-size: 1.5rem;
}

.cta-card p {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.98rem;
}

.cta-card .learn-more {
    align-self: center;
    border-color: var(--sampangan-white);
    background: var(--sampangan-white);
    color: var(--sampangan-navy);
}

.cta-card .learn-more:hover,
.cta-card .learn-more:focus-visible {
    background: var(--sampangan-yellow);
    border-color: var(--sampangan-yellow);
    color: var(--sampangan-navy);
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-card {
        gap: 28px;
    }

    .cta-card .service-image {
        width: calc((100% - 28px) / 2);
    }

    .cta-card .cta-content {
        padding: 32px 36px;
    }
}

@media (max-width: 900px) {
    .services-section {
        padding-top: 56px;
    }
}

@media (max-width: 640px) {
    .services-section {
        padding: 40px 16px 56px;
    }

    .services-intro {
        margin-bottom: 40px;
    }

    .services-intro h2 {
        font-size: 1.6rem;
    }

    .services-intro .lead {
        font-size: 1.05rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cta-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 0;
    }

    .cta-card .service-image {
        width: 100%;
        aspect-ratio: 4 / 3;
    }

    .cta-card .cta-content {
        padding: 28px 24px;
    }

    .cta-card .learn-more {
        align-self: center;
    }
}
