/* ============================================================
   Services — public listing (/services)
   ============================================================ */

.services-listing {
    padding: clamp(2.5rem, 4vw, 4rem) 0 clamp(4rem, 6vw, 6rem);
    background: var(--bg-soft);
}

/* ── Breadcrumb (hero) ── */
.services-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.services-breadcrumb--hero {
    justify-content: center;
    color: rgba(var(--on-dark-rgb), 0.6);
}

.services-breadcrumb--hero a {
    color: var(--main);
    font-weight: 600;
    text-decoration: none;
}

.services-breadcrumb--hero a:hover {
    color: var(--on-dark);
}

.services-breadcrumb--hero span[aria-current] {
    color: rgba(var(--on-dark-rgb), 0.85);
}

/* ── Answer-first intro panel ── */
.services-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(1.75rem, 3vw, 3rem);
    align-items: center;
    padding: clamp(1.75rem, 3vw, 2.75rem);
    margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 12px 40px rgba(var(--panel-rgb), 0.07);
}

.services-intro-copy h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 2.8vw, 2.3rem);
    line-height: 1.15;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.services-intro-copy h2 em {
    font-style: italic;
    color: var(--main);
}

.services-intro-copy p {
    color: var(--ink);
    font-size: 1.03rem;
    line-height: 1.8;
}

.services-facts {
    list-style: none;
    display: grid;
    gap: 0.85rem;
}

.services-facts li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--ink);
}

.services-facts i {
    color: var(--main);
    font-size: 1.05rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.services-facts strong {
    display: block;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 0.1rem;
}

.services-bento {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}

.service-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 6px 26px rgba(var(--panel-rgb), 0.07);
    transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.4s cubic-bezier(0.2, 0, 0, 1), border-color 0.4s;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--main-rgb), 0.4);
    box-shadow:
        0 24px 56px rgba(var(--panel-rgb), 0.16),
        0 0 0 1px rgba(var(--main-rgb), 0.15);
}

.service-card-link {
    display: block;
    height: 100%;
    color: inherit;
}

.service-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--border);
}

.service-card-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0, 0, 1);
}

.service-card:hover .service-card-media img {
    transform: scale(1.06);
}

/* Bottom wash keeps overlaid chips legible. */
.service-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(var(--panel-rgb), 0.28) 0%, transparent 35%, transparent 62%, rgba(var(--panel-rgb), 0.42) 100%);
    pointer-events: none;
}

.service-card-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    color: var(--main);
    background: linear-gradient(135deg, var(--border), #fff);
}

.service-flag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.95rem;
    border-radius: 99px;
    color: var(--secondary);
    background: linear-gradient(135deg, var(--extra), var(--main));
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    box-shadow: 0 6px 18px rgba(var(--panel-rgb), 0.28);
}

.service-card-body {
    padding: 1.6rem 1.7rem 1.8rem;
    position: relative;
}

/* Angular accent clipped into the top-right of the body. */
.service-card-body::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, transparent 50%, rgba(var(--main-rgb), 0.12) 50%);
    clip-path: polygon(100% 0, 100% 100%, 0 0);
    transition: opacity 0.4s;
    opacity: 0.9;
    pointer-events: none;
}

.service-card:hover .service-card-body::before {
    opacity: 1;
    background: linear-gradient(135deg, transparent 50%, rgba(var(--main-rgb), 0.22) 50%);
}

.service-card-body h2 {
    font-family: var(--font-heading);
    font-size: 1.32rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--secondary);
    margin-bottom: 0.55rem;
    transition: color 0.3s;
}

.service-card:hover .service-card-body h2 {
    color: var(--main);
}

.service-card-body p {
    color: var(--ink);
    font-size: 0.97rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.service-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.service-price,
.service-duration {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.8rem;
    border-radius: 99px;
    font-size: 0.82rem;
    font-weight: 600;
}

.service-price {
    color: var(--main);
    background: rgba(var(--main-rgb), 0.1);
}

.service-duration {
    color: var(--extra);
    background: rgba(var(--extra-rgb), 0.12);
}

.service-duration i {
    margin-right: 0.15rem;
}

.service-card-meta .link-line {
    margin-left: auto;
}

/* Signature treatment spans the full row as an editorial feature. */
@media (min-width: 900px) {
    .service-card.is-feature {
        grid-column: 1 / -1;
        border-radius: 26px;
    }

    .service-card.is-feature .service-card-link {
        display: grid;
        grid-template-columns: 1.05fr 1fr;
        align-items: stretch;
    }

    .service-card.is-feature .service-card-media {
        aspect-ratio: auto;
        min-height: 380px;
    }

    .service-card.is-feature .service-card-media::after {
        background: linear-gradient(90deg, transparent 55%, rgba(var(--panel-rgb), 0.5) 100%);
    }

    .service-card.is-feature .service-card-body {
        align-self: center;
        padding: clamp(2rem, 4vw, 3.5rem);
    }

    .service-card.is-feature .service-card-body::before {
        width: 90px;
        height: 90px;
    }

    .service-card.is-feature .service-card-body h2 {
        font-size: clamp(1.7rem, 2.6vw, 2.2rem);
    }

    .service-card.is-feature .service-card-body p {
        font-size: 1.06rem;
        max-width: 46ch;
    }
}

.services-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.services-empty i {
    font-size: 3rem;
    color: var(--main);
    opacity: 0.4;
    display: block;
    margin-bottom: 1rem;
}

.services-empty h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.services-empty p {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

/* ---------- Call to action ---------- */
.services-cta {
    padding: clamp(3rem, 5vw, 5rem) 0;
    background: var(--bg-soft);
}

.services-cta-panel {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    background:
        radial-gradient(ellipse 50% 80% at 100% 0%, rgba(var(--main-rgb), 0.25), transparent 60%),
        linear-gradient(135deg, var(--panel-2) 0%, var(--secondary) 100%);
    color: var(--on-dark);
    box-shadow: 0 24px 60px rgba(var(--secondary-rgb), 0.22);
}

.services-cta-panel h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    margin-bottom: 0.75rem;
}

.services-cta-panel h2 em {
    font-style: italic;
    color: var(--main);
}

.services-cta-panel p {
    max-width: 560px;
    margin: 0 auto 1.75rem;
    opacity: 0.82;
}

.services-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    justify-content: center;
}

.services-cta-actions .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}

.services-cta-actions .btn-outline:hover {
    background: #fff;
    color: var(--secondary);
}

@media (max-width: 900px) {
    .services-intro {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .services-bento {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .service-card-meta .link-line {
        margin-left: 0;
    }
}

/* ── Larger type on desktop, extra layer on ultrawide ── */
@media (min-width: 1440px) {
    .services-intro-copy h2 {
        font-size: 2.5rem;
    }

    .services-bento {
        grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    }
}

@media (min-width: 1800px) {
    .services-bento {
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
        gap: 2rem;
    }
}

/* ============================================================
   Category groups
   The menu is arranged into labelled groups, so it reads as a
   few short lists instead of one wall of cards.
   ============================================================ */

.services-group {
    margin-top: clamp(2.5rem, 5vw, 4rem);
}

/* A rule separates each group from the next; the first follows the intro. */
.services-group + .services-group {
    padding-top: clamp(2.25rem, 4vw, 3.25rem);
    border-top: 1px solid var(--border);
}

.services-group:first-of-type {
    margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

.services-group-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    margin-bottom: clamp(1.1rem, 2vw, 1.6rem);
}

.services-group-head h2 {
    margin: 0 0 0.4rem;
    font-family: var(--font-heading);
    font-size: clamp(1.45rem, 2.8vw, 2rem);
    line-height: 1.2;
    color: var(--secondary);
}

.services-group-head p {
    margin: 0;
    max-width: 62ch;
    color: var(--muted);
    line-height: 1.65;
}

/* A real count of the treatments in the group. */
.services-group-count {
    flex: 0 0 auto;
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 99px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
}

@media (max-width: 640px) {
    .services-group-head {
        align-items: flex-start;
    }

    .services-group-head h2 {
        font-size: clamp(1.35rem, 6vw, 1.7rem);
    }
}
