/* ==========================================================
   SERVICES LISTING PAGE
   Extends service.css with the services-grid layout
========================================================== */

/* --- Narrower, more compact services page overrides --- */
.services-page .container {
    width: min(1040px, 90%);
}

.services-page .service-hero {
    min-height: 62vh;
}

.services-page .service-hero .container {
    padding: 100px 0 80px;
}

.services-page .service-hero h1 {
    max-width: 820px;
    font-size: clamp(34px, 4.2vw, 56px);
    line-height: 1.08;
    margin: 22px 0 18px;
}

.services-page .service-lead {
    max-width: 560px;
    font-size: clamp(15px, 1.35vw, 17px);
    line-height: 1.75;
}

.services-page .service-actions {
    margin-top: 32px;
}

.services-page .service-stats {
    margin-top: 54px;
}

.services-page .service-stat {
    padding: 22px 18px;
}

.services-page .service-stat strong {
    font-size: clamp(22px, 2vw, 30px);
}

.services-page .service-stat span {
    font-size: 11px;
    letter-spacing: .14em;
}

.services-page .service-title {
    font-size: clamp(26px, 3vw, 38px);
    margin: 0 0 44px;
}

.services-page .service-title::after {
    width: 40px;
    margin: 16px auto 0;
}

.services-page .service-intro {
    padding: 90px 0;
}

.services-page .service-intro h2 {
    font-size: clamp(26px, 3vw, 38px);
    margin: 0 0 24px;
    padding-bottom: 18px;
}

.services-page .service-intro h2::after {
    width: 40px;
}

.services-page .service-intro p {
    font-size: 16px;
    line-height: 1.75;
    margin: 0 0 18px;
}

.services-page .service-features {
    padding: 90px 0;
}

.services-page .service-why {
    padding: 90px 0;
}

.services-page .service-why-item {
    padding: 32px 28px;
}

.services-page .service-why-content h3 {
    font-size: 19px;
}

.services-page .service-why-content p {
    font-size: 14px;
    line-height: 1.7;
}

.services-page .services-grid-section {
    background: var(--light);
}

.services-page .services-card-body {
    padding: 28px 24px 24px;
    gap: 12px;
}

.services-page .services-card-icon {
    width: 46px;
    height: 46px;
    top: -22px;
    right: 20px;
}

.services-page .services-card-body h3 {
    font-size: 20px;
}

.services-page .services-card-body p {
    font-size: 14px;
    line-height: 1.65;
}

.services-page .services-card-badges {
    gap: 6px;
}

.services-page .services-card-badge {
    padding: 5px 10px;
    font-size: 11px;
}

.services-page .services-card-link {
    padding-top: 14px;
    font-size: 12px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
}

.services-card {
    position: relative;

    display: flex;
    flex-direction: column;

    background: #fff;

    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 8px;

    overflow: hidden;
    text-decoration: none;
    color: inherit;

    transition:
        transform .4s,
        border-color .4s,
        box-shadow .4s;
}

.services-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 3px;
    background: var(--gold);
    transition: width .45s;
    z-index: 3;
}

.services-card:hover {
    transform: translateY(-6px);
    border-color: var(--line-strong);
    box-shadow:
        0 28px 60px rgba(0, 0, 0, .10),
        0 10px 28px rgba(201, 168, 76, .18);
}

.services-card:hover::before {
    width: 100%;
}

/* ---------- Image ---------- */

.services-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #f0ece2;
}

.services-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0) 40%,
            rgba(0, 0, 0, .35) 100%);
}

.services-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s ease;
}

.services-card:hover .services-card-image img {
    transform: scale(1.06);
}

.services-card-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;

    padding: 6px 14px;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;

    color: var(--ink);
    background: var(--gold);
    border-radius: 999px;
}

/* ---------- Body ---------- */

.services-card-body {
    position: relative;
    padding: 32px 30px 30px;

    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.services-card-icon {
    position: absolute;
    top: -26px;
    right: 24px;

    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: var(--ink);
    color: var(--gold);

    border: 3px solid #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}

.services-card-body h3 {
    margin: 0;

    font-size: 22px;
    font-weight: 600;
    letter-spacing: -.01em;

    color: var(--ink);
}

.services-card-body p {
    margin: 0;

    font-size: 15px;
    line-height: 1.75;

    color: #666;
}

/* ---------- Badges ---------- */

.services-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 4px;
}

.services-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 6px 12px;

    font-size: 12px;
    font-weight: 500;

    color: #4a4a4a;
    background: rgba(201, 168, 76, .08);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.services-card-badge svg {
    color: var(--gold);
}

/* ---------- Link ---------- */

.services-card-link {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 0, 0, .05);

    display: flex;
    align-items: center;
    justify-content: space-between;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;

    color: var(--gold);
}

.services-card-link span {
    transition: transform .3s;
}

.services-card:hover .services-card-link span {
    transform: translateX(6px);
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 768px) {

    .services-page .service-hero {
        min-height: auto;
        padding: 80px 0 60px;
    }

    .services-page .service-hero .container {
        padding: 0;
    }

    .services-page .service-hero h1 {
        font-size: clamp(30px, 9vw, 44px);
        max-width: 100%;
    }

    .services-page .service-stats {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 40px;
    }

    .services-page .service-stat {
        padding: 18px 14px;
        border-bottom: 1px solid var(--line);
    }

    .services-page .service-stat:nth-child(2) {
        border-right: none;
    }

    .services-page .service-stat:nth-child(3),
    .services-page .service-stat:nth-child(4) {
        border-bottom: none;
    }

    .services-page .service-intro,
    .services-page .service-features,
    .services-page .service-why {
        padding: 64px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .services-card-body {
        padding: 28px 22px 24px;
    }

    .services-card-icon {
        width: 46px;
        height: 46px;
        top: -22px;
        right: 20px;
    }

}