/* Continental redesign — component styles (section-by-section; this pass: header/hero + shared nav/skip-link) */

html {
	scroll-behavior: smooth;
	color-scheme: dark; /* dark scrollbars + form controls */
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

/* The parent theme nukes outlines globally (:focus{outline:none}) —
   restore a visible ring for keyboard users on everything interactive */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--c-accent) !important;
	outline-offset: 3px;
}

a,
button {
	touch-action: manipulation;
	-webkit-tap-highlight-color: rgba(63, 165, 120, 0.2);
}

/* Skip link — hidden until keyboard focus */
.c-skip-link {
	position: absolute;
	top: -100%;
	left: 16px;
	z-index: 100;
	background: var(--c-accent);
	color: var(--c-fg);
	padding: 12px 20px;
	font-family: var(--font-ui);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: var(--tracking-ui);
	transition: top var(--dur-fast) var(--ease-out);
}
.c-skip-link:focus {
	top: 16px;
}

/* Burger — bare staggered lines (mockup style), no box/border */
.c-burger {
	position: fixed;
	top: var(--header-inset);
	left: var(--header-inset);
	z-index: 60;
	/* same iOS Safari compositing fix as .c-map__pin / .c-edge */
	will-change: transform;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 7px;
	padding: 14px; /* generous invisible hit area */
	background: none;
	border: 0;
	cursor: pointer;
}
.c-burger span {
	display: block;
	height: 2px;
	background: var(--c-fg);
	transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out), width var(--dur-fast) var(--ease-out);
}
/* widest line (22px) matches the Instagram icon's 22x22 footprint —
   the burger only ever renders on mobile (hidden ≥1000px below), so
   this is the one place the two corner icons need to read as a pair */
.c-burger span:nth-child(1) {
	width: 22px;
}
.c-burger span:nth-child(2) {
	width: 16px;
}
.c-burger span:nth-child(3) {
	width: 19px;
}
.c-burger:hover span,
.c-burger:focus-visible span {
	width: 22px;
}
.c-burger[aria-expanded='true'] span {
	width: 22px;
}
.c-burger[aria-expanded='true'] span:nth-child(1) {
	transform: translateY(9px) rotate(45deg);
}
.c-burger[aria-expanded='true'] span:nth-child(2) {
	opacity: 0;
}
.c-burger[aria-expanded='true'] span:nth-child(3) {
	transform: translateY(-9px) rotate(-45deg);
}

/* Fixed top bar — persistent chrome over every section (rival pattern).
   One grid keeps nav / brand / socials vertically aligned. */
.c-topbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 55;
	/* same iOS Safari compositing fix as .c-map__pin / .c-edge — pins this
	   to its own GPU layer so the map iframe's filtered layer can't win
	   the compositor race and cover it */
	will-change: transform;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
	padding: var(--header-inset) 76px 22px;
	/* strong enough that scrolled section titles fade under it cleanly */
	background: linear-gradient(180deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.55) 60%, rgba(10, 10, 10, 0) 100%);
	pointer-events: none; /* the gradient shouldn't eat clicks... */
}
.c-topbar a,
.c-topbar button {
	pointer-events: auto; /* ...but its interactive children should */
}
.c-topbar__nav {
	grid-column: 1; /* explicit tracks: hiding the brand must not reflow the row */
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 22px;
}
/* muted chevrons framing the nav — a hint that the side items are
   whole pages living to the left/right of Головна */
.c-topbar__hint {
	font-family: var(--font-ui);
	font-size: 18px;
	line-height: 1;
	color: var(--c-fg-muted);
	user-select: none;
}
.c-topbar__nav a {
	font-family: var(--font-ui);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: var(--tracking-ui);
	text-transform: uppercase;
	color: var(--c-fg);
	position: relative;
	transition: color var(--dur-fast) var(--ease-out);
}
.c-topbar__nav a::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -6px;
	width: 0;
	height: 2px;
	background: var(--c-accent);
	transition: width var(--dur-fast) var(--ease-out);
}
.c-topbar__nav a:hover,
.c-topbar__nav a:focus-visible,
.c-topbar__nav a.is-active {
	color: var(--c-accent);
}
.c-topbar__nav a:hover::after,
.c-topbar__nav a:focus-visible::after {
	width: 100%;
}
.c-topbar__brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	grid-column: 2;
}
/* the barbers page is pure portraits — the whole brand block hides.
   visibility (not display) keeps reserved space, so nothing jumps. */
body[data-page='barbers'] .c-topbar__brand {
	visibility: hidden;
}

/* on services the ENTIRE fixed topbar rides up with the page scroll
   (nav.js translates it by -scrollTop); ease nothing — it must track
   the finger/wheel 1:1 */
body[data-page='services'] .c-topbar {
	transition: none;
	will-change: transform;
}

/* services clears the full topbar height + breathing room to the title */
.c-services.c-section {
	padding-top: 192px;
}
@media (max-width: 999px) {
	.c-services.c-section {
		padding-top: 168px;
	}
}
.c-topbar__social {
	grid-column: 3;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 16px;
}
.c-topbar__social a {
	display: flex;
	align-items: center;
	opacity: 0.85;
	transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.c-topbar__social a:hover,
.c-topbar__social a:focus-visible {
	opacity: 1;
	transform: scale(1.12);
}

/* Edge arrows — fixed mid-height section jumps (desktop + mobile) */
.c-edge {
	position: fixed;
	top: 50%;
	/* translate3d + will-change: same fix as .c-map__pin — the map
	   iframe's `filter` promotes it to its own GPU layer, and on iOS
	   Safari that layer can win the compositor race over fixed-position
	   siblings regardless of z-index, flashing these then hiding them. */
	transform: translate3d(0, -50%, 0);
	will-change: transform;
	z-index: 50;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 16px 10px;
}
.c-edge--left {
	left: 10px;
}
.c-edge--right {
	right: 10px;
}
.c-edge__chevron {
	display: block;
	width: 12px;
	height: 12px;
	border-top: 2px solid var(--c-fg);
	border-left: 2px solid var(--c-fg);
	transition: border-color var(--dur-fast) var(--ease-out);
}
.c-edge--left .c-edge__chevron {
	transform: rotate(-45deg);
}
.c-edge--right .c-edge__chevron {
	transform: rotate(135deg);
}
.c-edge__label {
	font-family: var(--font-ui);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	color: var(--c-fg);
	writing-mode: vertical-rl;
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.c-edge:hover .c-edge__chevron,
.c-edge:focus-visible .c-edge__chevron {
	border-color: var(--c-accent);
}
.c-edge:hover .c-edge__label,
.c-edge:focus-visible .c-edge__label {
	opacity: 1;
	transform: translateY(0);
}

/* Nav overlay panel — 3 anchors only, per project scope */
.c-nav {
	position: fixed;
	inset: 0;
	z-index: 55;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(8, 8, 8, 0.96);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--dur-base) var(--ease-out);
}
.c-nav.is-open {
	opacity: 1;
	visibility: visible;
}
.c-nav__list {
	text-align: center;
}
.c-nav__list li:not(:last-child) {
	margin-bottom: 40px;
}
.c-nav__link {
	font-family: var(--font-ui);
	font-weight: 700;
	font-size: 32px;
	text-transform: uppercase;
	letter-spacing: var(--tracking-wide);
	color: var(--c-fg);
	position: relative;
	transition: color var(--dur-fast) var(--ease-out);
}
.c-nav__link::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: -6px;
	width: 0;
	height: 2px;
	background: var(--c-accent);
	transform: translateX(-50%);
	transition: width var(--dur-fast) var(--ease-out);
}
.c-nav__link:hover,
.c-nav__link:focus-visible {
	color: var(--c-accent);
}
.c-nav__link:hover::after,
.c-nav__link:focus-visible::after {
	width: 100%;
}
/* current page: text stays white like the rest, just a static green
   underline (nav.js already toggles .is-active via data-goto) */
.c-nav__link.is-active::after {
	width: 100%;
}
body.c-nav-open {
	overflow: hidden;
}

/* Screen-reader-only utility (WP convention; parent theme doesn't ship it) */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Hero — full-viewport photo, chrome at top, CTA + contacts at bottom
   (per the team mockup: no headline over the photo) */
.c-hero {
	position: relative;
	overflow: hidden;
	display: flex;
	min-height: 100vh;
	min-height: 100svh;
	background-color: var(--c-bg);
}
.c-hero__bg-wrap {
	position: absolute;
	/* bleed on every side: the parallax translate (±12px x / ±14px y +
	   scroll) must never expose the photo's edges */
	inset: -8% -3%;
	will-change: transform; /* parallax target — layers inside only fade */
}
.c-hero__bg {
	position: absolute;
	inset: 0;
	/* background-image is set inline per layer in header.php */
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	filter: grayscale(0.55) contrast(1.05) brightness(0.75);
}
.c-hero__bg--b {
	opacity: 0;
	transition: opacity 400ms var(--ease-out);
}
.c-hero__bg--m {
	display: none;
}
@media (max-width: 999px), (pointer: coarse) {
	.c-hero__bg--a,
	.c-hero__bg--b {
		display: none;
	}
	/* mobile hero: the portrait chair shot — sharp, only toned down */
	.c-hero__bg--m {
		display: block;
		filter: grayscale(0.35) brightness(0.7);
	}
}
.c-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 10, 10, 0.45) 0%, rgba(10, 10, 10, 0.25) 45%, rgba(10, 10, 10, 0.6) 100%);
}
.c-hero__frame {
	position: relative;
	z-index: 2;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	text-align: center;
	padding: 120px 76px 52px; /* top clears the fixed topbar; bottom keeps the scroll capsule off the edge */
}

/* Badge — plain letterspaced caption */
.c-badge {
	margin: 0 0 18px;
	font-family: var(--font-ui);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
}

/* Wordmark — mockup mark: open C-ring + CONTINENTAL + since 2017 */
.c-logo {
	display: inline-flex;
	align-items: center;
}
.c-mark {
	display: block;
	height: 74px;
	width: auto;
}
.c-mark__word {
	font-family: var(--font-ui);
	font-size: 30px;
	font-weight: 600;
	letter-spacing: 8px;
	fill: var(--c-fg);
}
.c-mark__since {
	font-family: var(--font-ui);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 2px;
	fill: rgba(255, 255, 255, 0.75);
}

/* Bottom cluster */
.c-hero__bottom {
	display: flex;
	flex-direction: column;
	align-items: center;
}
.c-hero__contacts {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px 64px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}
.c-hero__contacts li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	font-family: var(--font-ui);
}
.c-hero__contacts a {
	font-size: 19px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--c-fg);
	border-bottom: 1px solid transparent;
	transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.c-hero__contacts a:hover,
.c-hero__contacts a:focus-visible {
	color: var(--c-accent);
	border-color: var(--c-accent);
}
.c-hero__contacts span {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: var(--tracking-ui);
	text-transform: uppercase;
	color: var(--c-fg);
}
.c-hero__city {
	margin: 18px 0 0;
	font-family: var(--font-ui);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	color: var(--c-fg-muted);
}

/* Scroll-down indicator (mouse capsule) — leads to the map section */
.c-hero__scroll {
	display: inline-flex;
	justify-content: center;
	width: 26px;
	height: 42px;
	margin-top: 16px;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-radius: 14px;
	transition: border-color var(--dur-fast) var(--ease-out);
}
.c-hero__scroll:hover,
.c-hero__scroll:focus-visible {
	border-color: var(--c-accent);
}
.c-hero__scroll-dot {
	width: 4px;
	height: 8px;
	margin-top: 7px;
	border-radius: 2px;
	background: var(--c-fg);
	animation: c-scroll-dot 1.8s var(--ease-out) infinite;
}
@keyframes c-scroll-dot {
	0% { transform: translateY(0); opacity: 1; }
	70% { transform: translateY(14px); opacity: 0; }
	100% { transform: translateY(0); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.c-hero__scroll-dot {
		animation: none;
	}
}

/* Full-screen dark map (rival's home -> scroll -> map pattern) */
.c-map {
	position: relative;
	height: 100vh;
	height: 100svh;
	background: var(--c-bg);
	overflow: hidden;
}
.c-map__frame {
	width: 100%;
	/* crop the top strip where the embed pins its white place card */
	height: calc(100% + 150px);
	margin-top: -150px;
	border: 0;
	display: block;
	/* pure black-and-white dark map; the red pin is our own overlay */
	filter: invert(0.9) grayscale(1) contrast(0.9) brightness(0.9);
	/* inert until deliberately clicked — no scroll hijack, no Ctrl+scroll nag */
	pointer-events: none;
}
.c-map.is-interactive .c-map__frame {
	pointer-events: auto;
}
.c-map__pin {
	position: absolute;
	left: 50%;
	/* the iframe is top-cropped by 150px, so its optical centre sits 75px
	   above the container centre; the pin tip must touch that point */
	top: calc(50% - 75px);
	/* translate3d (not translate) + will-change: the sibling iframe's own
	   `filter` promotes it to its own GPU layer; on iOS Safari that layer
	   can briefly re-composite above this one once the embed finishes
	   loading, flashing the pin then hiding it despite z-index being
	   correct. Forcing the pin onto its own persistent compositing layer
	   avoids the race. */
	transform: translate3d(-50%, -100%, 0);
	will-change: transform;
	z-index: 2;
	pointer-events: none;
	filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.55));
}
/* Horizontal page deck: Головна | Послуги | Барбери (JS adds body.js-pages;
   without it the sections stack vertically as a normal one-pager). */
html.js-pages {
	overflow: hidden;
	height: 100%;
}
body.js-pages {
	overflow: hidden;
	height: 100vh;
	height: 100dvh;
}
body.js-pages .c-pages {
	display: flex;
	/* percentages, not vw: vw includes the scrollbar gutter and skewed
	   every panel a few px left; 100%/3 of the deck == exact viewport */
	width: 300%;
	height: 100vh;
	height: 100dvh;
	transition: transform 600ms var(--ease-out);
	will-change: transform;
}
body.js-pages .c-page {
	width: calc(100% / 3);
	height: 100%;
	overflow-y: auto;
	overflow-x: hidden;
	/* -webkit-overflow-scrolling: touch was here, but it's a long-known
	   trigger for iOS Safari flickering/hiding absolutely-positioned
	   siblings next to a touch-momentum-scrolling container (exactly what
	   the map pin/chrome are, inside this very panel) — modern iOS scrolls
	   with momentum natively without it, so it's dropped rather than
	   patched around. */
	overscroll-behavior: contain;
	touch-action: pan-y; /* vertical scroll native; horizontal handled by our swipe */
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
	/* inactive panels hide AFTER the slide settles (matching delay), so
	   pinch-zooming out never reveals the neighbouring pages */
	visibility: hidden;
	transition: visibility 0s linear 650ms;
}
body.js-pages .c-page.is-active {
	visibility: visible;
	transition-delay: 0s;
}
body.js-pages .c-page::-webkit-scrollbar {
	width: 6px;
	background: transparent;
}
body.js-pages .c-page::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.3);
	border-radius: 3px;
}
body.js-pages .c-page::-webkit-scrollbar-track {
	background: transparent;
}
@media (prefers-reduced-motion: reduce) {
	body.js-pages .c-pages {
		transition: none;
	}
}

/* Section pages — top inset clears only the fixed nav row now (the
   services mark scrolls inside the page itself) */
.c-section {
	min-height: 100%;
	padding: 92px 76px 40px;
	background: var(--c-bg);
	color: var(--c-fg);
}
@media (max-width: 999px) {
	.c-section {
		padding-top: 104px;
	}
}
.c-section__head {
	text-align: center;
	margin-bottom: 38px;
}
.c-section__eyebrow {
	margin: 0 0 6px;
	font-family: var(--font-ui);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	color: var(--c-accent);
}
.c-section__title {
	margin: 0;
	font-family: var(--font-ui);
	font-weight: 700;
	font-size: clamp(22px, 2.4vw, 32px);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--c-fg);
	text-wrap: balance;
}
.c-section__cta {
	text-align: center;
	margin-top: 34px;
}

/* Послуги — bordered cards over a blurred B&W interior photo (rival-style) */
.c-services {
	position: relative;
	overflow: hidden;
	/* flex column so the CTA pins to the bottom, matching the home page */
	display: flex;
	flex-direction: column;
}
.c-services .c-section__cta {
	margin-top: auto;
	padding-top: 34px;
}
/* bottom inset mirrors the home hero's stack below its CTA
   (frame pad 52 + capsule 58 + city 31 + contacts 76 ≈ 216), so the
   ЗАПИСАТИСЬ buttons sit at the same level on both pages */
.c-services.c-section {
	padding-bottom: 216px;
}
@media (max-width: 639px) {
	.c-services.c-section {
		padding-bottom: 206px;
	}
}
.c-services::before {
	content: '';
	position: absolute;
	inset: -24px; /* hide the blur's soft edges */
	background: url('../img/hero-bg-1.jpg') center / cover no-repeat;
	filter: blur(16px) grayscale(1) brightness(0.3);
}
.c-services > * {
	position: relative;
	z-index: 1;
}
.c-services__price {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
}
.c-services__list {
	margin: 0;
	padding: 0;
	list-style: none;
	/* two columns halve the height so the whole page fits one viewport */
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 14px;
	align-content: start;
}
.c-services__list li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 15px 20px;
	border: 1px solid var(--c-line);
	background: rgba(12, 12, 12, 0.72);
	transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.c-services__list li:hover {
	border-color: var(--c-accent-dim);
	transform: translateY(-2px);
}
.c-services__item {
	font-family: var(--font-ui);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--c-fg);
}
.c-services__cost {
	font-family: var(--font-ui);
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
	color: var(--c-fg);
	font-variant-numeric: tabular-nums;
}
@media (max-width: 1199px) {
	.c-services__list {
		grid-template-columns: 1fr;
	}
}

/* Барбери — rival-style full-height portrait carousel */
.c-team-wrap {
	position: relative;
	height: 100%;
	background: var(--c-bg);
}
.c-team {
	display: flex;
	height: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	touch-action: pan-x; /* horizontal touch scrolls the strip, not the deck */
	/* visible, subtle horizontal scrollbar (light gray ~30%) */
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}
.c-team::-webkit-scrollbar {
	height: 6px;
	background: transparent;
}
.c-team::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.3);
	border-radius: 3px;
}
.c-team::-webkit-scrollbar-track {
	background: transparent;
}
.c-team__card {
	position: relative;
	flex: 0 0 25%;
	min-width: 280px;
	height: 100%;
	scroll-snap-align: start;
	overflow: hidden;
	background: var(--c-bg-alt);
}
.c-team__card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	filter: grayscale(1) contrast(1.06);
	transform: scale(1.001);
	transition: transform var(--dur-base) var(--ease-out);
}
.c-team__card:hover img,
.c-team__card:focus-visible img {
	transform: scale(1.04);
}
/* hover dim, so the centered name reads over any photo */
.c-team__veil {
	position: absolute;
	inset: 0;
	background: rgba(10, 10, 10, 0.5);
	opacity: 0;
	transition: opacity var(--dur-fast) var(--ease-out);
}
.c-team__name {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px;
	text-align: center;
	font-family: var(--font-ui);
	text-transform: uppercase;
	color: var(--c-fg);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.c-team__role {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: var(--tracking-wide);
	color: rgba(255, 255, 255, 0.75);
}
.c-team__person {
	margin-top: 16px; /* clear air between the role and the name */
	font-size: 24px;
	font-weight: 700;
	letter-spacing: 0.08em;
}
.c-team__location {
	margin-top: 10px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: var(--tracking-wide);
	color: rgba(255, 255, 255, 0.6);
	text-transform: none;
}
.c-team__book {
	margin-top: 18px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: var(--tracking-wide);
	color: var(--c-accent);
}
.c-team__card:hover .c-team__veil,
.c-team__card:focus-visible .c-team__veil,
.c-team__card:hover .c-team__name,
.c-team__card:focus-visible .c-team__name {
	opacity: 1;
	transform: translateY(0);
}
/* no hover on touch — names stay visible */
@media (pointer: coarse) {
	.c-team__veil {
		opacity: 0.25;
	}
	.c-team__name {
		opacity: 1;
		transform: none;
		justify-content: flex-end;
		padding-bottom: 120px;
	}
}
/* mouse-scroll hint, rival-style, bottom centre over the strip */
.c-team__hint {
	position: absolute;
	left: 50%;
	bottom: 52px;
	transform: translateX(-50%);
	z-index: 3;
	pointer-events: none;
}
.c-team__hint-capsule {
	display: inline-flex;
	justify-content: center;
	width: 26px;
	height: 42px;
	border: 2px solid rgba(255, 255, 255, 0.6);
	border-radius: 14px;
	background: rgba(10, 10, 10, 0.35);
}
.c-team__hint-dot {
	width: 4px;
	height: 8px;
	margin-top: 7px;
	border-radius: 2px;
	background: var(--c-fg);
	animation: c-scroll-dot 1.8s var(--ease-out) infinite;
}
@media (prefers-reduced-motion: reduce) {
	.c-team__hint-dot {
		animation: none;
	}
}
.c-barbers__empty {
	max-width: 560px;
	margin: 0 auto;
	padding: 180px 24px 0;
	text-align: center;
	font-family: var(--font-ui);
	font-size: 16px;
	line-height: 1.6;
	color: var(--c-fg-muted);
}
.c-barbers__empty a {
	color: var(--c-accent);
	border-bottom: 1px solid var(--c-accent);
}
/* location tabs + route links: centred single-column cluster with
   uniform chip sizes */
.c-map__chrome {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 44px;
	z-index: 2;
	/* same iOS Safari compositing fix as .c-map__pin — this sits over the
	   same filtered iframe and was never actually covered by that earlier
	   fix (only the pin itself was) */
	transform: translate3d(0, 0, 0);
	will-change: transform;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	pointer-events: none;
}
.c-map__chrome a,
.c-map__chrome button {
	pointer-events: auto;
}
.c-map__switch {
	display: flex;
	gap: 10px;
}
.c-map__tab {
	min-width: 200px;
	padding: 11px 18px;
	text-align: center;
	background: rgba(10, 10, 10, 0.7);
	border: 1px solid var(--c-line);
	color: var(--c-fg);
	font-family: var(--font-ui);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: var(--tracking-ui);
	text-transform: uppercase;
	cursor: pointer;
	transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.c-map__tab:hover,
.c-map__tab:focus-visible {
	border-color: var(--c-accent);
}
.c-map__tab.is-active {
	border-color: var(--c-accent);
	color: var(--c-accent);
}
.c-map__routes {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}
.c-map__routes a {
	min-width: 200px;
	padding: 11px 18px;
	text-align: center;
	background: rgba(10, 10, 10, 0.7);
	border: 1px solid transparent;
	font-family: var(--font-ui);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: var(--tracking-ui);
	text-transform: uppercase;
	color: var(--c-fg-muted);
	transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.c-map__routes a:hover,
.c-map__routes a:focus-visible {
	color: var(--c-fg);
	border-color: var(--c-accent);
}

/* CTA button — shared by hero + services + barbers.
   width:auto beats the parent's `.call-me.ms_booking { width:100% }`. */
/* CTA — the active-location-tab look everywhere (client direction):
   dark chip, GREEN border + GREEN caps; hover fills deep green */
.c-btn {
	display: inline-block;
	width: auto;
	min-width: 200px;
	padding: 11px 18px;
	background: rgba(10, 10, 10, 0.7);
	color: var(--c-accent);
	font-family: var(--font-ui);
	font-weight: 600;
	font-size: 11px;
	letter-spacing: var(--tracking-ui);
	text-transform: uppercase;
	text-align: center;
	border: 1px solid var(--c-accent);
	border-radius: 0;
	cursor: pointer;
	transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.c-btn:hover,
.c-btn:focus-visible {
	background: var(--c-accent-btn);
	color: var(--c-fg);
}
/* the parent's `.call-me.ms_booking { width:100%; margin-top:40px;
   background:#e01a1a; transition:all }` outranks .c-btn (two classes vs
   one) — re-pin EVERY themed property at the winning specificity */
.c-btn.call-me.ms_booking {
	width: auto;
	min-width: 200px;
	margin-top: 0;
	padding: 11px 18px;
	background: rgba(10, 10, 10, 0.7);
	color: var(--c-accent);
	font-size: 11px;
	box-shadow: none;
	transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.c-btn.call-me.ms_booking:hover {
	background: var(--c-accent-btn);
	color: var(--c-fg);
	box-shadow: none;
}

/* --- Responsive split: desktop (rival-style bar) vs mobile (team mockup) ---
   Kept at the very end of the file: these override base component rules of
   equal specificity (e.g. .c-btn's display), so source order matters. */

@media (min-width: 1000px) {
	/* desktop: inline nav top-left replaces the burger */
	.c-burger {
		display: none;
	}
	/* the Instagram SVG ships with width/height="22" in header.php; this
	   overrides those presentation attributes for a slightly larger mark
	   on desktop only (mobile keeps 22px to match the burger 1:1) */
	.c-topbar__social svg {
		width: 26px;
		height: 26px;
	}
}

@media (max-width: 999px) {
	/* mobile: fixed burger + overlay handle nav; edge arrows stay (swipe + taps) */
	.c-topbar__nav {
		display: none;
	}
	.c-topbar {
		/* equal small insets keep the brand truly centred while the IG
		   icon hugs the edge like the mockup; the burger is fixed anyway */
		padding-left: 24px;
		padding-right: 24px;
		/* align chrome to the badge row (mockup): icons level with the
		   first text line, logo hangs below */
		align-items: flex-start;
	}
	.c-topbar__social {
		margin-top: 2px;
	}
	.c-hero__frame {
		padding-top: 140px;
	}
	.c-map__chrome {
		bottom: 36px;
	}
	/* mobile: draw the same dark chip used everywhere else (.c-btn,
	   .c-map__tab) around the arrows so they read as a control, not just
	   a mark floating on the photo */
	.c-edge {
		padding: 14px 8px;
		background: rgba(10, 10, 10, 0.6);
		border: 1px solid var(--c-line);
		border-radius: var(--radius);
	}
	.c-edge--left {
		left: 6px;
	}
	.c-edge--right {
		right: 6px;
	}
	.c-edge__chevron {
		width: 11.5px;
		height: 11.5px;
	}
	/* no hover on touch — the target-page labels stay visible */
	.c-edge__label {
		opacity: 1;
		transform: none;
		font-size: 13.8px;
		color: var(--c-fg-muted);
	}
	/* the always-on edge chips (above) now sit ~50px deep at each side;
	   keep the price list clear of them instead of overlapping the text */
	.c-services__list {
		padding-left: 22px;
		padding-right: 22px;
	}
}

@media (max-width: 999px) {
	.c-section {
		padding-left: 24px;
		padding-right: 24px;
	}
	.c-team__card {
		flex-basis: 55%;
		min-width: 240px;
	}
}

@media (max-width: 639px) {
	.c-hero__frame {
		padding-bottom: 44px;
	}
	.c-section {
		padding-bottom: 48px;
	}
	.c-team__card {
		flex-basis: 78%;
	}
}

/* Logged-in WP admin bar overlaps fixed chrome — push it down */
body.admin-bar .c-topbar {
	top: 32px;
}
body.admin-bar .c-burger {
	top: calc(var(--header-inset) + 32px);
}
@media (max-width: 782px) {
	body.admin-bar .c-topbar {
		top: 46px;
	}
	body.admin-bar .c-burger {
		top: calc(var(--header-inset) + 46px);
	}
}

@media (max-width: 639px) {
	.c-hero__frame {
		padding-left: 24px;
		padding-right: 24px;
	}
	.c-badge {
		font-size: 11px;
		margin-bottom: 18px;
	}
	.c-hero__contacts {
		gap: 14px 40px;
	}
	.c-hero__contacts a {
		font-size: 17px;
	}
	.c-btn {
		min-width: 200px;
	}
}
