/*
 * «دو نیمه» — terracotta against cream, split down the middle.
 * Signature: a sticky full-height panel on the start side (brand, city, hours,
 * phone, booking) while the content column runs through numbered acts that
 * alternate their tint. On phones the panel simply becomes the header.
 */
@counter-style sp-jala {
    system: numeric;
    symbols: "۰" "۱" "۲" "۳" "۴" "۵" "۶" "۷" "۸" "۹";
}

body.tpl-split {
    --ms-maxw: 1400px;
    --ms-radius: 16px;
    --ms-rhythm: clamp(44px, 5vw, 74px);
    --sp-hair: color-mix(in srgb, var(--ms-ink) 12%, transparent);
    /* height of the sticky bar in salon.css (15px padding + 44px logo + border),
       so the pinned panel rests exactly beneath it instead of under it. */
    --sp-bar: 78px;
}

/* ── chrome: a slim bar; the panel does the branding from 1024px up ─────── */
.tpl-split .public-header { background: color-mix(in srgb, var(--ms-paper) 90%, transparent); border-bottom: 1px solid var(--sp-hair); }
.tpl-split .public-brand h1 { font-family: var(--ms-head); font-size: 20px; }
.tpl-split .public-nav a { color: var(--ms-muted); }
.tpl-split .public-nav a:hover { background: var(--ms-tint); color: var(--ms-ink); }
.tpl-split .public-nav a.public-nav__cta { background: var(--ms-accent); color: #fff; }

/* ── the two halves ─────────────────────────────────────────────────────── */
.tpl-split.is-home .public-main { display: block; }
.sp { display: grid; grid-template-columns: 1fr; }
.sp-run { counter-reset: sp-act; }

.sp-pin {
    background: var(--ms-ink);
    color: color-mix(in srgb, var(--ms-paper) 88%, var(--ms-ink));
    padding: clamp(34px, 5vw, 58px) clamp(22px, 4vw, 48px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
}
.sp-pin::before {
    content: "";
    position: absolute;
    inset: auto -30% -34% auto;
    width: 74%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--ms-accent) 55%, transparent), transparent 68%);
    pointer-events: none;
}
.sp-pin__logo { height: 56px; width: auto; object-fit: contain; border-radius: 0; background: none; }
.sp-pin__kind { margin: 0; font-size: 14px; color: var(--ms-accent); }
.sp-pin__name { margin: 0; font-family: var(--ms-head); font-size: clamp(32px, 4.6vw, 54px); font-weight: 700; line-height: 1.16; color: var(--ms-paper); }
.sp-pin__tag { margin: 0; font-size: 16px; line-height: 1.95; max-width: 34ch; }
.sp-pin__plate { margin: 6px 0 0; border-radius: var(--ms-radius); overflow: hidden; }
.sp-pin__plate img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

.sp-pin__facts { margin: auto 0 0; display: grid; gap: 12px; }
.sp-pin__facts div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; border-top: 1px solid color-mix(in srgb, var(--ms-paper) 18%, transparent); padding-top: 10px; }
.sp-pin__facts dt { font-size: 13.5px; color: color-mix(in srgb, var(--ms-paper) 62%, var(--ms-ink)); margin: 0; }
.sp-pin__facts dd { margin: 0; font-size: 15.5px; }
.sp-pin__facts a { color: var(--ms-accent); text-decoration: none; }

.sp-go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 999px;
    background: var(--ms-accent);
    color: #fff;
    font-family: var(--ms-head);
    font-size: 19px;
    text-decoration: none;
    box-shadow: var(--ms-shadow-soft);
    transition: transform .32s var(--ms-ease), box-shadow .32s var(--ms-ease);
}
.sp-go:hover { transform: translateY(-3px); box-shadow: var(--ms-shadow); }
.sp-go--pin { align-self: flex-start; margin-top: 14px; }

/* ── the acts ───────────────────────────────────────────────────────────── */
.sp-act {
    position: relative;
    padding: var(--ms-rhythm) clamp(22px, 4.4vw, 68px) calc(var(--ms-rhythm) - 10px);
    border-bottom: 1px solid var(--sp-hair);
}
.sp-act:not(.sp-act--lead) { counter-increment: sp-act; }
.sp-act:not(.sp-act--lead)::before {
    content: counter(sp-act, sp-jala);
    position: absolute;
    inset-inline-end: clamp(16px, 3vw, 40px);
    top: calc(var(--ms-rhythm) - 34px);
    font-family: var(--ms-head);
    font-size: clamp(54px, 7vw, 96px);
    line-height: 1;
    color: color-mix(in srgb, var(--ms-accent) 16%, transparent);
    pointer-events: none;
}
.sp-act:nth-child(even) { background: color-mix(in srgb, var(--ms-accent) 5%, var(--ms-paper)); }

.sp-act__title {
    margin: 0 0 clamp(18px, 2.4vw, 30px);
    font-family: var(--ms-head);
    font-size: clamp(24px, 3.2vw, 38px);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 14px;
}
.sp-act__title::before { content: ""; width: 34px; height: 3px; background: var(--ms-accent); border-radius: 3px; }
.sp-act__no { margin: 0 0 10px; font-family: var(--ms-head); font-size: 15px; color: var(--ms-accent); }

/* the opening act */
.sp-act--lead { background: var(--ms-tint); padding-block: clamp(48px, 7vw, 96px); }
.sp-lead__tag { margin: 0 0 12px; font-size: 15px; color: var(--ms-accent); }
.sp-lead__name { margin: 0 0 22px; font-family: var(--ms-head); font-size: clamp(36px, 7vw, 82px); font-weight: 700; line-height: 1.08; }
.sp-lead__actions { margin: 0; }

.sp-body { margin: 0; font-size: 17.5px; line-height: 2.1; max-width: 62ch; text-align: justify; color: color-mix(in srgb, var(--ms-ink) 84%, var(--ms-paper)); }

/* services: one act, a tall two-column index with leaders */
.tpl-split .svc-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 clamp(26px, 4vw, 54px); }
.tpl-split .svc { padding: 14px 0; }
.tpl-split .svc__no { display: none; }
.tpl-split .svc__name { font-family: var(--ms-head); font-size: 19px; }
.tpl-split .svc__price { font-size: 18px; }
.tpl-split .svc__desc { font-size: 14px; }

/* crew: two columns of portraits with a ring */
.tpl-split .crew { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.tpl-split .crew__item { gap: 16px; padding: 16px; background: var(--ms-card); border: 1px solid var(--sp-hair); border-radius: var(--ms-radius); transition: transform .35s var(--ms-ease), box-shadow .35s var(--ms-ease); }
.tpl-split .crew__item:hover { transform: translateY(-4px); box-shadow: var(--ms-shadow-soft); }
.tpl-split .crew__badge { width: 58px; height: 58px; font-size: 24px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ms-accent) 30%, transparent); }
.tpl-split .crew__name { font-family: var(--ms-head); font-size: 19px; }

/* gallery: a mosaic with one tall lead frame */
.tpl-split .shots { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); grid-auto-rows: minmax(180px, auto); gap: 14px; }
.tpl-split .shot--1 { grid-column: span 2; grid-row: span 2; }
.tpl-split .shot--1 img { aspect-ratio: auto; height: 100%; }
.tpl-split .shot img { aspect-ratio: 1 / 1; }

/* visit */
.tpl-split .visit { gap: 16px; }
.tpl-split .visit__row { border-bottom: 1px solid var(--sp-hair); padding-bottom: 12px; }
.tpl-split .visit__key { font-family: var(--ms-head); font-size: 16px; }
.tpl-split .visit__map { border-radius: var(--ms-radius); }
.tpl-split .visit__route { background: var(--ms-ink); color: var(--ms-paper); }
.tpl-split .visit__route:hover { background: var(--ms-accent); color: #fff; }

/* ── the pinned half, from 1024px ───────────────────────────────────────── */
@media (min-width: 1024px) {
    .sp { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: start; }
    .sp-pin {
        position: sticky;
        top: var(--sp-bar);
        min-height: calc(100vh - var(--sp-bar));
        padding: clamp(40px, 4vw, 66px) clamp(30px, 3.2vw, 52px);
    }
    .sp-run { min-height: 100vh; }
    .sp-act { padding-inline: clamp(40px, 4.6vw, 84px); }
    .sp-act--lead { padding-block: clamp(74px, 9vw, 130px); }
}

@media (max-width: 1023px) {
    .sp-pin { gap: 12px; }
    .sp-pin__facts { margin-top: 8px; }
    .sp-pin__name { font-size: clamp(30px, 8vw, 44px); }
}
