/* =========================================
   ALED Barbershop — Services page
   Monochrome / serif system
   Scoped under .page-services to avoid leaking into other pages.
   ========================================= */

/* Respect system "reduce motion" preference.
   Overrides vendor `html { scroll-behavior: smooth }` from style.css.
   Global by design — this is a system-level accessibility preference. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

.page-services {
    --bg:        #0a0a0a;
    --bg-1:      #111111;
    --bg-2:      #161616;
    --line:      #232323;
    --line-2:    #2c2c2c;
    --fg:        #ededed;
    --fg-2:      #b9b9b9;
    --fg-3:      #7a7a7a;
    --fg-4:      #565656;
    --serif:     'Cormorant Garamond', 'Times New Roman', serif;
    --sans:      'Inter', system-ui, sans-serif;
    --mono:      'JetBrains Mono', ui-monospace, monospace;
    --max:       1440px;
    --pad-x:     clamp(20px, 5vw, 80px);

    background: var(--bg);
    color: var(--fg);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.page-services *,
.page-services *::before,
.page-services *::after { box-sizing: border-box; }

/* =====================================================
   Override vendor `main { overflow: hidden }` (style.css:356-360)
   which breaks `position: sticky` for `.cat-nav` inside <main>.
   `overflow: clip` clips overflow without creating a scroll
   container, preserving sticky positioning of descendants.
   Fallback to `visible` for browsers without `clip` support.
   ===================================================== */
body.page-services main {
    overflow: visible;
    overflow: clip;
    overflow-clip-margin: 0;
}

.page-services .services-scope img { display: block; max-width: 100%; height: auto; }
.page-services .services-scope a   { color: inherit; text-decoration: none; }
.page-services .services-scope button { font: inherit; color: inherit; cursor: pointer; }

.page-services ::selection { background: #fff; color: #000; }

/* ---------- Layout container ---------- */
.services-scope .wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
}

/* =====================================================
   Local button styles (only inside services scope)
   ===================================================== */
.services-scope .btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    border: 1px solid var(--fg);
    border-radius: 0;
    background: transparent;
    color: var(--fg);
    text-transform: uppercase;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .2em;
    text-align: left;
    vertical-align: baseline;
    box-shadow: none;
    transition: background .2s, color .2s;
}
.services-scope .btn:hover { background: var(--fg); color: #000; }
.services-scope .btn:focus-visible {
    outline: 1px solid var(--fg);
    outline-offset: 3px;
    box-shadow: none;
}
.services-scope .btn.btn--solid { background: var(--fg); color: #000; }
.services-scope .btn.btn--solid:hover { background: #fff; color: #000; }
.services-scope .btn .arrow { transition: transform .2s; }
.services-scope .btn:hover .arrow { transform: translateX(4px); }

/* =====================================================
   HERO
   ===================================================== */
.services-scope .hero {
    position: relative;
    padding: clamp(80px, 12vh, 160px) 0 clamp(60px, 8vh, 120px);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}
.services-scope .hero__inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: end;
}
@media (max-width: 1000px) {
    .services-scope .hero__inner { grid-template-columns: 1fr; gap: 36px; }
}

.services-scope .eyebrow {
    font-family: var(--mono);
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .26em;
    color: var(--fg-3);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.services-scope .eyebrow::before {
    content: "";
    display: inline-block;
    width: 32px; height: 1px;
    background: var(--fg-3);
}

.services-scope h1.hero__title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(56px, 10vw, 156px);
    line-height: .9;
    letter-spacing: -0.025em;
    margin: 0;
    text-wrap: balance;
}
.services-scope h1.hero__title em {
    font-style: italic;
    font-weight: 300;
    color: var(--fg-2);
    display: block;
}

.services-scope .hero__sub {
    font-family: var(--sans);
    font-size: clamp(15px, 1.2vw, 17px);
    line-height: 1.55;
    color: var(--fg-2);
    max-width: 44ch;
    margin: 0 0 32px;
    text-wrap: pretty;
}

.services-scope .hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 48px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: var(--fg-3);
}
.services-scope .hero__meta div span {
    display: block;
    color: var(--fg);
    font-family: var(--sans);
    font-size: 14px;
    letter-spacing: .04em;
    text-transform: none;
    margin-top: 6px;
}

/* Levels explainer card */
.services-scope .levels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin-top: 40px;
}
.services-scope .level {
    background: var(--bg);
    padding: 24px 22px;
}
.services-scope .level__tag {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--fg-3);
    margin-bottom: 14px;
}
.services-scope .level__name {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -.01em;
    margin: 0 0 6px;
}
.services-scope .level__desc {
    font-size: 13px;
    color: var(--fg-3);
    margin: 0;
    line-height: 1.4;
}
@media (max-width: 720px) {
    .services-scope .levels { grid-template-columns: 1fr; }
}

/* =====================================================
   CATEGORY NAV (sticky tabs)
   Top offset 0 — global header is not sticky on this site,
   so we stick from the top of the viewport once scrolled past.
   ===================================================== */
.services-scope .cat-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(10,10,10,.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
}
.services-scope .cat-nav__inner {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.services-scope .cat-nav__inner::-webkit-scrollbar { display: none; }
.services-scope .cat-nav a {
    flex-shrink: 0;
    padding: 22px 28px 22px 0;
    margin-right: 28px;
    font-family: var(--mono);
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .22em;
    color: var(--fg-3);
    transition: color .2s;
    position: relative;
    white-space: nowrap;
}
.services-scope .cat-nav a:hover { color: var(--fg); }
.services-scope .cat-nav a.is-active { color: var(--fg); }
.services-scope .cat-nav a.is-active::after {
    content: "";
    position: absolute;
    left: 0; bottom: -1px;
    width: calc(100% - 28px);
    height: 1px;
    background: var(--fg);
}
.services-scope .cat-nav__index {
    margin-left: auto;
    padding-left: 24px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--fg-4);
    letter-spacing: .2em;
    text-transform: uppercase;
    flex-shrink: 0;
}
@media (max-width: 860px) {
    .services-scope .cat-nav__index { display: none; }
}

/* =====================================================
   CATEGORY HEADER (between sections)
   ===================================================== */
.services-scope .cat-head {
    padding: clamp(70px, 9vh, 130px) 0 clamp(30px, 4vh, 60px);
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: clamp(30px, 5vw, 80px);
    align-items: end;
}
.services-scope .cat-head__num {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--fg-3);
    letter-spacing: .26em;
    text-transform: uppercase;
    padding-bottom: 14px;
}
.services-scope .cat-head__title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(40px, 6vw, 84px);
    line-height: .95;
    letter-spacing: -.02em;
    margin: 0;
}
.services-scope .cat-head__title em {
    font-style: italic;
    color: var(--fg-2);
    font-weight: 300;
}
.services-scope .cat-head__count {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--fg-3);
    text-transform: uppercase;
    letter-spacing: .22em;
    margin-top: 16px;
}
@media (max-width: 720px) {
    .services-scope .cat-head { grid-template-columns: 1fr; gap: 14px; }
}

/* =====================================================
   SERVICE — split layout (image L / content R)
   ===================================================== */
.services-scope .svc {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: clamp(30px, 5vw, 80px);
    padding: clamp(50px, 7vh, 90px) 0;
    border-top: 1px solid var(--line);
    align-items: stretch;
}
.services-scope .svc:first-of-type { border-top: 0; }
.services-scope .svc--reverse { direction: rtl; }
.services-scope .svc--reverse > * { direction: ltr; }

.services-scope .svc__media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--bg-2);
}
.services-scope .svc__media img {
    width: 100%; height: 100%; object-fit: cover;
    filter: grayscale(1) contrast(1.02);
    transition: transform 1.4s cubic-bezier(.2,.8,.2,1);
}
.services-scope .svc:hover .svc__media img { transform: scale(1.03); }
.services-scope .svc__media-tag {
    position: absolute;
    top: 20px; left: 20px;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: #fff;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,.4);
    background: rgba(0,0,0,.4);
    backdrop-filter: blur(6px);
}

.services-scope .svc__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px 0;
}
.services-scope .svc__num {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--fg-3);
    letter-spacing: .26em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.services-scope .svc__name {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(34px, 4.4vw, 56px);
    line-height: 1;
    letter-spacing: -.018em;
    margin: 0 0 24px;
    text-wrap: balance;
}
.services-scope .svc__name em {
    font-style: italic;
    color: var(--fg-2);
    font-weight: 400;
}
.services-scope .svc__name small {
    display: block;
    font-family: var(--sans);
    font-size: 11.5px;
    font-weight: 500;
    color: var(--fg-3);
    text-transform: uppercase;
    letter-spacing: .24em;
    margin-top: 14px;
}
.services-scope .svc__desc {
    font-size: 15px;
    line-height: 1.65;
    color: var(--fg-2);
    margin: 0 0 28px;
    max-width: 56ch;
    text-wrap: pretty;
}

/* Pricing matrix */
.services-scope .prices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
}
.services-scope .price {
    padding: 22px 18px;
    border-right: 1px solid var(--line);
    text-align: center;
}
.services-scope .price:last-child { border-right: 0; }
.services-scope .price__lvl {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--fg-3);
    margin-bottom: 10px;
}
.services-scope .price__amt {
    font-family: var(--serif);
    font-size: 32px;
    line-height: 1;
    font-weight: 500;
    letter-spacing: -.01em;
    color: var(--fg);
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: 'lnum' 1, 'tnum' 1;
}
.services-scope .price__amt .price__currency {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--fg-3);
    font-weight: 400;
    letter-spacing: 0;
    vertical-align: baseline;
    margin-left: 4px;
}

.services-scope .svc__cta { margin-top: 28px; }

/* iPad portrait band (901-1024px): give .svc breathing room
   without dropping to single-column layout. */
@media (max-width: 1024px) and (min-width: 901px) {
    .services-scope .svc { gap: 32px; }
    .services-scope .svc__name { font-size: clamp(30px, 4.2vw, 44px); }
}

@media (max-width: 900px) {
    .services-scope .svc { grid-template-columns: 1fr; }
    .services-scope .svc--reverse { direction: ltr; }
    .services-scope .svc__media { aspect-ratio: 4/5; max-height: 70vh; }
    .services-scope .svc__name { font-size: clamp(30px, 8vw, 44px); }
}
@media (max-width: 480px) {
    .services-scope .prices { grid-template-columns: 1fr; }
    .services-scope .price {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 16px 0;
        display: flex;
        justify-content: space-between;
        align-items: baseline;
    }
    .services-scope .price:last-child { border-bottom: 0; }
    .services-scope .price__lvl { margin-bottom: 0; }
}

/* =====================================================
   SERVICE — list layout (compact rows)
   ===================================================== */
.services-scope .svc-list { border-top: 1px solid var(--line); }
.services-scope .svc-row {
    display: grid;
    grid-template-columns: 80px 1.4fr 2fr 1fr;
    gap: clamp(20px, 3vw, 60px);
    padding: 36px 0;
    border-bottom: 1px solid var(--line);
    align-items: center;
    transition: background .25s;
    position: relative;
}
.services-scope .svc-row:hover { background: var(--bg-1); }
.services-scope .svc-row::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 0;
    background: var(--fg);
    transition: width .3s;
}
.services-scope .svc-row:hover::before { width: 3px; }

.services-scope .svc-row__num {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--fg-3);
    letter-spacing: .22em;
}
.services-scope .svc-row__name {
    font-family: var(--serif);
    font-size: clamp(22px, 2.2vw, 30px);
    line-height: 1.05;
    font-weight: 500;
    letter-spacing: -.01em;
    margin: 0;
}
.services-scope .svc-row__name small {
    display: block;
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 400;
    letter-spacing: .22em;
    color: var(--fg-3);
    text-transform: uppercase;
    margin-top: 8px;
}
.services-scope .svc-row__desc {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--fg-3);
    margin: 0;
}
.services-scope .svc-row__prices {
    display: flex;
    gap: 18px;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.services-scope .svc-row__prices .price {
    border: 0;
    padding: 0;
    text-align: right;
}
.services-scope .svc-row__prices .price__amt { font-size: 20px; }

@media (max-width: 900px) {
    .services-scope .svc-row { grid-template-columns: 50px 1fr; gap: 12px 16px; padding: 28px 0; }
    .services-scope .svc-row__desc { grid-column: 2; }
    .services-scope .svc-row__prices {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-top: 6px;
        gap: 22px;
    }
}

/* =====================================================
   FINAL CTA
   ===================================================== */
.services-scope .cta-block {
    position: relative;
    padding: clamp(100px, 18vh, 220px) 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: center;
    overflow: hidden;
}
.services-scope .cta-block__deco {
    position: absolute;
    left: -10%; right: -10%;
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(120px, 22vw, 280px);
    line-height: 1;
    color: var(--bg-2);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 1;
}
.services-scope .cta-block__deco--top    { top: -40px; }
.services-scope .cta-block__deco--bottom { bottom: -40px; }

.services-scope .cta-block__inner { position: relative; z-index: 2; }
.services-scope .cta-block .eyebrow { justify-content: center; }
.services-scope .cta-block .eyebrow::before { display: none; }
.services-scope .cta-block h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(48px, 8vw, 120px);
    line-height: .95;
    letter-spacing: -.025em;
    margin: 0 0 28px;
    text-wrap: balance;
}
.services-scope .cta-block h2 em {
    font-style: italic;
    color: var(--fg-2);
    font-weight: 300;
}
.services-scope .cta-block p {
    font-size: 15px;
    color: var(--fg-2);
    max-width: 48ch;
    margin: 0 auto 40px;
    line-height: 1.55;
}
.services-scope .cta-block .btn { font-size: 13px; padding: 18px 32px; }

/* =====================================================
   FOCUS-VISIBLE — keyboard accessibility
   ===================================================== */
.services-scope .cat-nav a:focus-visible {
    outline: 1px solid var(--fg);
    outline-offset: 4px;
    color: var(--fg);
}
.services-scope .svc-row:focus-within { background: var(--bg-1); }
.services-scope .svc-row:focus-within::before { width: 3px; }

/* =====================================================
   RELATED LINKS — cross-page navigation block
   ===================================================== */
.services-scope .related-links {
    padding-top: clamp(70px, 9vh, 120px);
    padding-bottom: clamp(20px, 3vh, 40px);
}
.services-scope .related-links__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.services-scope .related-link {
    display: block;
    background: var(--bg);
    padding: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 44px);
    transition: background .25s, color .25s;
    position: relative;
}
.services-scope .related-link:hover,
.services-scope .related-link:focus-visible {
    background: var(--bg-1);
    outline: none;
}
.services-scope .related-link:focus-visible {
    box-shadow: inset 0 0 0 1px var(--fg);
}
.services-scope .related-link__label {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--fg-3);
    letter-spacing: .26em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.services-scope .related-link__title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.05;
    letter-spacing: -.015em;
    color: var(--fg);
    margin-bottom: 14px;
    text-wrap: balance;
}
.services-scope .related-link__arrow {
    display: inline-block;
    transition: transform .25s ease;
    color: var(--fg-2);
}
.services-scope .related-link:hover .related-link__arrow,
.services-scope .related-link:focus-visible .related-link__arrow {
    transform: translateX(6px);
    color: var(--fg);
}
.services-scope .related-link p {
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.55;
    color: var(--fg-3);
    margin: 0;
    max-width: 44ch;
    text-wrap: pretty;
}

@media (max-width: 720px) {
    .services-scope .related-links__grid { grid-template-columns: 1fr; }
}
