/* =============================================================================
 * SPA — CATALOGUE  (spa-catalogue.css)
 *
 * Styles for the Treatments catalogue: spotlight, filters, and service blocks.
 * Refactored for a premium, aligned, and compact mobile experience.
 * Theme Update: Deep premium tones and refined accents.
 * ============================================================================= */

/* ── Spotlight Section ──────────────────────────────────────────────────── */

.spa-catalogue-spotlight {
    background: 
        radial-gradient(circle at top left, rgba(107, 143, 113, 0.1), transparent 40%),
        linear-gradient(180deg, var(--spa-cream), #f2efea);
    padding-bottom: 20px;
}

.spa-catalogue-spotlight__shell {
    max-width: var(--spa-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.spa-catalogue-spotlight__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.spa-catalogue-spotlight__title {
    font-family: var(--spa-font-serif);
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.05;
    color: var(--spa-sage); /* Premium Deep Green */
}

.spa-catalogue-spotlight__body {
    max-width: 50ch;
    font-size: var(--spa-text-base);
    line-height: var(--spa-leading-body);
    color: var(--spa-mid);
}

.spa-catalogue-spotlight__meta {
    display: flex;
    gap: 12px;
}

.spa-catalogue-spotlight__chip {
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(107, 143, 113, 0.05);
    border: 1px solid rgba(107, 143, 113, 0.15);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--spa-sage);
}

.spa-catalogue-spotlight__actions {
    display: flex;
    gap: 16px;
    margin-top: 10px;
}

.spa-catalogue-spotlight__visual {
    position: relative;
    padding-bottom: 40px;
}

.spa-catalogue-spotlight__stack {
    display: flex;
    gap: 20px;
}

/* ── Spotlight Card (Theme Update) ───────────────────────────────────── */

.spa-spotlight-card {
    position: relative;
    flex: 1;
    min-height: 400px;
    border-radius: 28px;
    overflow: hidden;
    background: #1a241c; /* Deep Dark Green base */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.spa-spotlight-card.is-active {
    flex: 1.8;
    box-shadow: 0 20px 50px rgba(26, 36, 28, 0.2);
}

.spa-spotlight-card__image {
    position: absolute;
    inset: 0;
}

.spa-spotlight-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
    transition: transform 0.8s ease, opacity 0.5s ease;
}

.spa-spotlight-card.is-active .spa-spotlight-card__image img {
    opacity: 0.75;
    transform: scale(1.08);
}

.spa-spotlight-card__info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 24px;
    background: linear-gradient(to top, rgba(26, 36, 28, 0.95), transparent);
    color: var(--spa-white);
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.spa-spotlight-card.is-active .spa-spotlight-card__info {
    transform: translateY(0);
}

.spa-spotlight-card__title {
    font-family: var(--spa-font-serif);
    font-size: 22px;
    margin: 0 0 6px;
    color: #f7f3ee;
}

.spa-spotlight-card__price {
    font-size: 14px;
    font-weight: 700;
    color: var(--spa-gold);
    letter-spacing: 0.05em;
}

.spa-spotlight-card__trigger {
    position: absolute;
    inset: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1;
}

/* ── Filter & Widgets Section (Theme Update) ───────────────────────── */

.spa-section--filter {
    padding: var(--spa-space-xl) 0;
    background: #fdfcfb;
}

.spa-filter-shell {
    max-width: var(--spa-max-width);
    margin: 0 auto;
}

.spa-filter-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 50px;
}

.spa-filter-widget {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 32px 24px;
    background: var(--spa-white);
    border: 1px solid rgba(107, 143, 113, 0.1);
    border-radius: 24px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.spa-filter-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(107, 143, 113, 0.08);
}

.spa-filter-widget__label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--spa-sage);
    opacity: 0.8;
}

.spa-filter-widget__value {
    font-family: var(--spa-font-serif);
    font-size: 42px;
    color: var(--spa-dark);
    line-height: 1;
}

.spa-filter-summary {
    text-align: center;
    margin-bottom: 40px;
}

.spa-filter-summary__title {
    font-family: var(--spa-font-serif);
    font-size: 36px;
    color: var(--spa-dark);
    letter-spacing: -0.01em;
}

.spa-filter-container {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0 -24px;
    padding: 0 24px;
}
.spa-filter-container::-webkit-scrollbar { display: none; }

.spa-filter {
    display: flex;
    justify-content: center;
    gap: 14px;
    padding-bottom: 20px;
    width: max-content;
    margin: 0 auto;
}

.spa-filter__pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 999px;
    background: var(--spa-white);
    border: 1px solid var(--spa-border);
    font-size: 13px;
    font-weight: 700;
    color: var(--spa-mid);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.spa-filter__pill:hover {
    border-color: var(--spa-sage);
    color: var(--spa-sage);
}

.spa-filter__pill.is-active {
    background: var(--spa-sage);
    color: var(--spa-white);
    border-color: var(--spa-sage);
    box-shadow: 0 10px 25px rgba(107, 143, 113, 0.25);
}

.spa-filter__pill-count {
    font-size: 11px;
    background: rgba(0,0,0,0.05);
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 4px;
}

.spa-filter__pill.is-active .spa-filter__pill-count {
    background: rgba(255,255,255,0.2);
    color: var(--spa-white);
}

/* ── Category Grid (Curated Collections) ─────────────────────────────────── */

.spa-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 32px;
    max-width: var(--spa-max-width);
    margin: 0 auto;
}

.spa-cat-card {
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.4s ease;
}

.spa-cat-card__media {
    position: relative;
    height: 260px;
    background-size: cover;
    background-position: center;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.spa-cat-card__veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26, 36, 28, 0.4) 0%, transparent 60%);
}

.spa-cat-card__topline {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
}

.spa-cat-card__eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--spa-white);
    opacity: 0.9;
}

.spa-cat-card__count {
    font-size: 10px;
    font-weight: 700;
    color: var(--spa-white);
    background: var(--spa-sage);
    padding: 5px 12px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.spa-card__body.spa-cat-card__body {
    padding: 28px;
}

.spa-cat-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--spa-border);
}

.spa-cat-card__hint {
    font-size: 11px;
    color: var(--spa-mid);
    font-style: italic;
}

/* ── Service Blocks (Treatments List) ─────────────────────────────────── */

.spa-catalogue-services {
    max-width: var(--spa-max-width);
    margin: 0 auto;
    padding: var(--spa-space-2xl) 0;
}

.spa-services-block {
    margin-bottom: 48px; /* Reduced from 80px */
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease, display 0.5s allow-discrete;
}

.spa-services-block[hidden] {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.spa-services-block:last-child {
    margin-bottom: 0;
}

.spa-services-block__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    padding-bottom: 0; /* Removed padding */
    border-bottom: none; /* Removed border bottom line */
}

.spa-services-block__title {
    font-family: var(--spa-font-serif);
    font-size: clamp(28px, 4vw, 42px);
    color: var(--spa-sage);
    margin: 0;
    line-height: 1.1;
}

.spa-services-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
    gap: 32px;
}

/* ── Service Row (Treatment Card) ────────────────────────────────────── */

.spa-service-row {
    background: var(--spa-white);
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--spa-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.spa-service-row:hover {
    transform: translateY(-8px);
    border-color: rgba(107, 143, 113, 0.3);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

.spa-service-row__visual {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: var(--spa-cream);
}

.spa-service-row__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.spa-service-row:hover .spa-service-row__img {
    transform: scale(1.08);
}

.spa-service-row__meta--overlay {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-between;
    z-index: 2;
}

.spa-service-row__price,
.spa-service-row__duration {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: var(--spa-sage);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.spa-service-row__body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.spa-service-row__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.spa-service-row__title {
    font-family: var(--spa-font-serif);
    font-size: 22px;
    color: var(--spa-dark);
    margin: 0;
    line-height: 1.2;
}

.spa-service-row__badge {
    background: rgba(201, 169, 110, 0.1);
    color: var(--spa-gold);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 12px;
    border-radius: 999px;
    flex-shrink: 0;
}

.spa-service-row__desc {
    font-size: 14px;
    color: var(--spa-mid);
    line-height: 1.6;
    margin: 0 0 24px;
    flex-grow: 1;
}

.spa-service-row__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid rgba(0,0,0,0.04);
}

.spa-service-row__microcopy {
    font-size: 11px;
    color: var(--spa-mid);
    font-style: italic;
}

.spa-service-row__cta {
    padding: 10px 24px;
    font-size: 11px;
}

.spa-service-addons {
    margin: 20px 0;
    padding: 20px;
    background: rgba(107, 143, 113, 0.04);
    border-radius: 16px;
    border: 1px dashed rgba(107, 143, 113, 0.2);
}

.spa-service-addons__title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--spa-sage);
    margin: 0 0 14px;
}

.spa-service-addons__list {
    display: grid;
    gap: 10px;
}

.spa-service-addon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--spa-dark);
}

.spa-service-addon__dot {
    flex-grow: 1;
    border-bottom: 1px dotted rgba(0,0,0,0.1);
    margin: 0 10px;
    transform: translateY(-3px);
}

.spa-service-addon__price {
    font-weight: 700;
    color: var(--spa-gold);
}

/* ── Overhauled Mobile Toggle ────────────────────────────────────────── */

.spa-services-block__toggle {
    display: none; /* Desktop hidden */
    appearance: none;
    background: var(--spa-white);
    border: 1px solid var(--spa-border);
    padding: 8px 16px 8px 20px;
    border-radius: 999px;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.spa-services-block__toggle:hover {
    border-color: var(--spa-sage);
    transform: translateY(-2px);
}

.spa-services-block__toggle-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--spa-sage);
}

.spa-services-block__toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--spa-cream);
    color: var(--spa-sage);
    border-radius: 50%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
}

.spa-services-block.is-open .spa-services-block__toggle {
    background: var(--spa-sage);
    border-color: var(--spa-sage);
}

.spa-services-block.is-open .spa-services-block__toggle-label {
    color: var(--spa-white);
}

.spa-services-block.is-open .spa-services-block__toggle-icon {
    transform: rotate(180deg);
    background: rgba(255,255,255,0.2);
    color: var(--spa-white);
}

@media (max-width: 768px) {
    .spa-catalogue-spotlight__shell {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .spa-catalogue-spotlight__content {
        align-items: center;
    }

    .spa-catalogue-spotlight__actions {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }

    .spa-catalogue-spotlight__stack {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 0 24px 20px;
        margin: 0 -24px;
        scrollbar-width: none;
    }

    .spa-spotlight-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        min-height: 380px;
        border-radius: 24px;
    }

    .spa-filter-widgets {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
        margin-bottom: 32px;
    }

    .spa-filter-widget {
        padding: 20px 10px;
        border-radius: 20px;
    }

    .spa-filter-widget__value {
        font-size: 28px;
    }

    .spa-filter-summary__title {
        font-size: 28px;
    }

    .spa-filter {
        justify-content: flex-start;
        margin: 0;
        padding-bottom: 10px;
    }

    .spa-services-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .spa-services-block__header {
        margin-bottom: 20px;
    }

    .spa-services-block__title {
        font-size: 24px;
    }
}
