/* The Tox — studio page (location + booking in one)
 * Styled after The Tox Figma (store locator + studio mobile frames):
 * black studio panel, Bebas Neue Pro display type, "[ ]" and "/" eyebrows,
 * white sharp buttons, 1px black-bordered cards, progress-bar carousels.
 * Layout: studio panel left (gallery + facts) and booking column right (≥1024px);
 * phones stack gallery → facts → booking → treatments → testimonials.
 * NOTE: the Systemia files are TRIAL fonts missing $ – — & @ / ( ) : + ? ! #,
 * so phone numbers and anything with those glyphs are set in Bebas (.num). */

/* ── Fonts ── */
@font-face { font-family: 'Bebas Neue Pro'; src: url('../fonts/BebasNeuePro-Light.ttf') format('truetype');   font-weight: 300; font-display: swap; }
@font-face { font-family: 'Bebas Neue Pro'; src: url('../fonts/BebasNeuePro-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Bebas Neue Pro'; src: url('../fonts/BebasNeuePro-Bold.ttf') format('truetype');    font-weight: 700; font-display: swap; }
@font-face { font-family: 'Systemia'; src: url('../fonts/Systemia-Light.woff') format('woff');    font-weight: 300; font-display: swap; }
@font-face { font-family: 'Systemia'; src: url('../fonts/Systemia-Regular.woff') format('woff');  font-weight: 400; font-display: swap; }
@font-face { font-family: 'Systemia'; src: url('../fonts/Systemia-Semibold.woff') format('woff'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Systemia'; src: url('../fonts/Systemia-Bold.woff') format('woff');     font-weight: 700; font-display: swap; }

/* ── Tokens ── */
:root {
	--black: #000;
	--ink:   #0c0c0c;
	--white: #fff;
	--text:  #555;
	--char:  #494949;
	--g-50:  #f5f5f5;
	--g-100: #ececec;
	--g-200: #e1e1e1;
	--line:   rgba(0, 0, 0, .14);
	--line-w: rgba(255, 255, 255, .16);
	--w-80:  rgba(255, 255, 255, .8);
	--w-60:  rgba(255, 255, 255, .6);
	--yelp:  #d32323;

	--display: 'Bebas Neue Pro', 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
	--sans:    'Systemia', 'Helvetica Neue', Helvetica, Arial, sans-serif;

	--gut:  clamp(16px, 3.4vw, 48px);
	--hd-h: 72px;
	--ease: cubic-bezier(.22, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--hd-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.5;
	color: var(--black);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
img, video, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.skip { position: absolute; left: 16px; top: -100px; z-index: 999; padding: 10px 16px; background: var(--white); color: var(--black); font: 700 16px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gut); }
.num { font-family: var(--display); font-weight: 400; letter-spacing: .03em; }

/* ── Type atoms ── */
.slash {
	font: 400 22px/1 var(--display);
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--char);
}
.sec__title, .bk__title {
	margin-top: 14px;
	font: 700 clamp(40px, 4.6vw, 64px)/.95 var(--display);
	letter-spacing: .005em;
	text-transform: uppercase;
}

/* ── Buttons — sharp, Bebas, uppercase ── */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 0 24px;
	border: 1px solid currentColor;
	font: 700 19px/1 var(--display);
	letter-spacing: .05em;
	text-transform: uppercase;
	transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn svg { width: 12px; height: 12px; }
.btn--white { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--white:hover { background: var(--g-100); border-color: var(--g-100); }
.btn--black { background: var(--black); color: var(--white); border-color: var(--black); }
.btn--black:hover { background: var(--char); border-color: var(--char); }
.btn--line { background: transparent; color: var(--black); border-color: var(--black); }
.btn--line:hover { background: var(--black); color: var(--white); }
.btn--block { display: flex; width: 100%; min-height: 56px; font-size: 21px; }
.btn--sm { min-height: 34px; padding: 0 14px; font-size: 16px; gap: 8px; }

/* ═════════ Header ═════════ */
.hd {
	position: sticky; top: 0; z-index: 50;
	height: var(--hd-h);
	display: flex; align-items: center; gap: 28px;
	padding: 0 var(--gut);
	background: var(--black); color: var(--white);
}
.hd__mark { font: 700 34px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.hd__nav { display: flex; gap: 26px; margin-left: auto; }
.hd__nav a {
	position: relative; padding: 6px 0;
	font: 700 16px/1 var(--display); letter-spacing: .04em; text-transform: uppercase;
	color: var(--w-80); transition: color .2s;
}
.hd__nav a:hover, .hd__nav a[aria-current] { color: var(--white); }
.hd__nav a[aria-current]::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; }
.hd__cta {
	display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px;
	background: var(--white); color: var(--black);
	font: 700 17px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
	transition: background .2s;
}
.hd__cta:hover { background: var(--g-100); }
.hd__cta-short { display: none; }
.hd__burger { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.hd__burger span { width: 24px; height: 2px; background: var(--white); transition: transform .3s var(--ease), opacity .2s; }
.hd__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hd__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hd__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═════════ Studio + booking ═════════ */
.st { display: grid; grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); align-items: start; }

/* Left — studio panel. JS sets --stick so a panel taller than the viewport
   scrolls to its end and then sticks (bottom-sticky). */
.st__info { position: sticky; top: var(--stick, var(--hd-h)); background: var(--ink); color: var(--white); }

/* Gallery */
.gal { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #1a1a1a; }
.gal__track, .gal__map { position: absolute; inset: 0; }
.gal__slide {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
	opacity: 0; transition: opacity .6s var(--ease);
}
.gal__slide.is-on { opacity: 1; }
.gal__map { opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s .4s; }
.gal__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.9) contrast(.92); }
.gal[data-view="map"] .gal__map { opacity: 1; visibility: visible; transition-delay: 0s; }
.gal[data-view="map"] .gal__arrow, .gal[data-view="map"] .gal__count { opacity: 0; pointer-events: none; }

.gal__arrow {
	position: absolute; top: 50%; z-index: 2;
	width: 40px; height: 40px; margin-top: -20px;
	display: grid; place-items: center;
	border-radius: 50%; background: var(--white); color: var(--black);
	box-shadow: 0 2px 10px rgba(0,0,0,.25);
	transition: transform .25s var(--ease), opacity .25s;
}
.gal__arrow:hover { transform: scale(1.08); }
.gal__arrow svg { width: 15px; height: 15px; }
.gal__arrow--prev { left: 16px; }
.gal__arrow--next { right: 16px; }

.gal__toggle {
	position: absolute; left: 50%; bottom: 16px; z-index: 2; transform: translateX(-50%);
	display: inline-flex; align-items: center; gap: 10px;
	min-height: 40px; padding: 0 16px;
	background: rgba(0, 0, 0, .62); color: var(--white);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	font: 600 14px/1 var(--sans);
	transition: background .2s;
}
.gal__toggle:hover { background: rgba(0, 0, 0, .82); }
.gal__toggle svg { width: 17px; height: 17px; }
.gal__count {
	position: absolute; right: 16px; bottom: 22px; z-index: 2;
	font: 400 16px/1 var(--display); letter-spacing: .06em; color: var(--w-80);
	transition: opacity .25s;
}
.gal__count b { color: var(--white); font-weight: 700; }

/* Studio facts */
.st__body { padding: clamp(28px, 3vw, 44px) var(--gut) clamp(36px, 4vw, 56px); }
.crumb {
	display: inline-flex; align-items: center; gap: 6px;
	font: 400 18px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; color: var(--w-80);
	transition: color .2s;
}
.crumb svg { width: 11px; height: 11px; }
.crumb:hover { color: var(--white); }
.st__tag { margin-top: 26px; font: 700 15px/1.3 var(--sans); letter-spacing: .02em; text-transform: uppercase; }
.st__title {
	margin: 10px 0 16px;
	font: 700 clamp(52px, 5.4vw, 84px)/.9 var(--display);
	letter-spacing: .005em;
	text-transform: uppercase;
}
.st__lede { max-width: 520px; font-size: 16px; line-height: 1.55; color: var(--w-80); }
.st__book-btn { margin-top: 26px; display: none; }

.facts { margin-top: 30px; display: grid; gap: 24px; }
.facts dt { display: flex; align-items: center; gap: 12px; font: 400 19px/1 var(--sans); margin-bottom: 10px; }
.facts dt svg { width: 22px; height: 22px; flex: none; }
.facts dd { font-size: 16px; color: var(--w-80); }
.facts__link {
	display: table; margin-top: 8px;
	font: 700 16px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--white);
	border-bottom: 1px solid var(--w-60); padding-bottom: 3px;
}
.facts__link:hover { border-color: var(--white); }
.facts__phone { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.facts__phone .num { font-size: 22px; color: var(--white); }
.facts__item--parking { padding-top: 22px; border-top: 1px solid var(--line-w); }
.facts__caps { font: 700 15px/1.3 var(--sans) !important; letter-spacing: .02em; text-transform: uppercase; }

/* Right — booking */
.st__book {
	min-height: calc(100svh - var(--hd-h));
	padding: clamp(28px, 3vw, 48px) var(--gut) clamp(32px, 4vw, 56px);
	outline: none;
}
.bk__head { padding-bottom: 22px; border-bottom: 1px solid var(--black); }
.bk__title { margin: 12px 0 14px; }
.bk__sub { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text); }
.bk__live { width: 8px; height: 8px; border-radius: 50%; background: #1d9e4b; box-shadow: 0 0 0 0 rgba(29,158,75,.5); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgba(29,158,75,0); } 100% { box-shadow: 0 0 0 0 rgba(29,158,75,0); } }

.bk__widget { position: relative; min-height: 560px; padding-top: 12px; }
.bk__mount { position: relative; z-index: 1; margin: 0 -16px; }
.bk__mount iframe { width: 100% !important; border: 0; }

.bk__skeleton, .bk__loading { display: none; }
.bk__widget[data-state="loading"] .bk__skeleton { display: grid; gap: 12px; padding-top: 12px; }
.bk__widget[data-state="loading"] .bk__loading { display: block; margin-top: 18px; font: 400 18px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; color: var(--text); }
.bk__skeleton span {
	height: 104px; border: 1px solid var(--g-100);
	background: linear-gradient(90deg, var(--g-50) 0%, var(--white) 40%, var(--g-50) 80%) 0 0 / 300% 100%;
	animation: shimmer 1.6s linear infinite;
}
.bk__skeleton span:first-child { height: 44px; width: 55%; }
@keyframes shimmer { to { background-position: -300% 0; } }
@media (prefers-reduced-motion: reduce) { .bk__skeleton span, .bk__live { animation: none; } }

.bk__panel { margin-top: 12px; padding: 32px; border: 1px solid var(--black); }
.bk__panel-title { font: 700 32px/1 var(--display); text-transform: uppercase; margin-bottom: 10px; }
.bk__panel p:not(.bk__panel-title) { color: var(--text); max-width: 440px; margin-bottom: 22px; }
.bk__acts { display: flex; flex-wrap: wrap; gap: 10px; }

.bk__help { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text); }
.bk__help a { color: var(--black); border-bottom: 1px solid var(--black); }
.bk__help .num { font-size: 17px; }

/* ═════════ Sections ═════════ */
.sec { padding: clamp(64px, 8vw, 112px) 0; }
.sec--line { border-top: 1px solid var(--line); }
.st + .sec { border-top: 1px solid var(--black); }

/* Carousel rail with progress bar */
.rail { margin-top: 28px; }
.rail__bar { display: flex; align-items: center; gap: 20px; }
.rail__track { position: relative; flex: 1; height: 2px; background: var(--g-200); overflow: hidden; }
.rail__thumb { position: absolute; left: 0; top: 0; height: 100%; width: 20%; background: var(--black); transition: transform .2s linear; will-change: transform; }
.rail__btns { display: flex; gap: 6px; }
.rail__btns button { width: 32px; height: 32px; display: grid; place-items: center; transition: opacity .2s; }
.rail__btns button:disabled { opacity: .25; cursor: default; }
.rail__btns svg { width: 16px; height: 16px; }
.rail__list {
	display: grid; grid-auto-flow: column;
	grid-auto-columns: calc((100% - 3 * 20px) / 4);
	gap: 20px;
	margin-top: 26px;
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.rail__list::-webkit-scrollbar { display: none; }
.rail--reviews .rail__list { margin: 0 0 30px; }
.rail--reviews .rail__list { grid-auto-columns: calc((100% - 2 * 20px) / 3); }

/* Treatment card */
.tcard {
	scroll-snap-align: start;
	display: flex; flex-direction: column; align-items: flex-start;
	padding: 20px 20px 0;
	border: 1px solid var(--black);
}
.tcard h3 { font: 700 34px/.95 var(--display); text-transform: uppercase; }
.tcard .chip { margin: 14px 0 12px; padding: 6px 10px; background: var(--g-100); font: 400 16px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--char); }
.tcard > p:not(.chip) { font-size: 15px; color: var(--text); margin-bottom: 16px; }
.tcard figure { align-self: stretch; margin-top: auto; padding-top: 20px; }
.tcard figure img { width: 100%; aspect-ratio: 1 / 1.1; object-fit: cover; filter: grayscale(1); transition: filter .5s var(--ease); }
.tcard:hover figure img { filter: grayscale(.2); }
.tcard figure { padding-bottom: 20px; }

/* Review card */
.rcard {
	scroll-snap-align: start;
	display: flex; flex-direction: column;
	padding: 24px;
	border: 1px solid var(--black);
	min-height: 300px;
}
.rcard__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.rcard__stars { font-size: 20px; letter-spacing: .08em; line-height: 1; }
.rcard__src { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.rcard__src i {
	width: 15px; height: 15px; border-radius: 50%; background: var(--yelp);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E");
}
.rcard h3 { font: 600 19px/1.3 var(--sans); margin-bottom: 12px; }
.rcard > p { font-size: 15px; color: var(--text); }
.rcard footer { margin-top: auto; padding-top: 24px; display: flex; align-items: center; gap: 14px; }
.rcard__av { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--g-100); font: 700 17px/1 var(--display); letter-spacing: .04em; }
.rcard footer b { display: block; font-size: 16px; font-weight: 600; }
.rcard footer span:last-child { font-size: 13px; color: var(--text); }

/* ═════════ Footer ═════════ */
.ft { padding: clamp(56px, 7vw, 96px) 0 28px; background: var(--black); color: var(--white); }
.ft__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 48px; }
.ft__mark { font: 700 clamp(56px, 7vw, 104px)/.85 var(--display); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.ft__brand p:not(.ft__mark) { color: var(--w-80); margin-bottom: 6px; }
.ft__brand a { border-bottom: 1px solid var(--w-60); }
.ft nav { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.ft nav a { color: var(--w-80); }
.ft nav a:hover { color: var(--white); }
.ft__h { font: 400 20px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--white); margin-bottom: 6px; }
.ft__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line-w); font-size: 12px; color: var(--w-60); }
.ft__legal span:last-child { display: flex; gap: 20px; }
.ft__legal a:hover { color: var(--white); }

/* ═════════ Responsive ═════════ */
@media (max-width: 1280px) {
	.hd__nav { gap: 18px; }
	.hd__nav a:first-child { display: none; }
	.rail__list { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
}

@media (max-width: 1100px) {
	.hd__nav { display: none; }
	.hd__cta { margin-left: auto; }
	.hd__burger { display: flex; }
	.hd__nav.is-open {
		display: flex; flex-direction: column; gap: 0;
		position: fixed; inset: var(--hd-h) 0 0; z-index: 49;
		padding: 12px var(--gut) 40px;
		background: var(--black);
		overflow-y: auto;
	}
	.hd__nav.is-open a { padding: 18px 0; font-size: 30px; border-bottom: 1px solid var(--line-w); color: var(--white); }
	.hd__nav.is-open a:first-child { display: block; }
	.hd__nav.is-open a[aria-current]::after { display: none; }
}

@media (max-width: 1023px) {
	:root { --hd-h: 64px; }
	.hd__mark { font-size: 30px; }
	.hd__cta-long { display: none; }
	.hd__cta-short { display: inline; }

	.st { display: block; }
	.st__info { position: relative; top: 0; }
	.gal { aspect-ratio: auto; height: clamp(240px, 56vw, 460px); }
	.st__book-btn { display: flex; }
	.st__book { min-height: 0; }
	.rail__list, .rail--reviews .rail__list { grid-auto-columns: calc((100% - 20px) / 2.2); }
	.ft__grid { grid-template-columns: 1fr 1fr; }
	.ft__brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
	:root { --hd-h: 60px; }
	.hd { gap: 12px; }
	.hd__mark { font-size: 30px; letter-spacing: .08em; }
	.hd__cta { min-height: 36px; padding: 0 12px; font-size: 16px; }
	.gal { height: 240px; }
	.gal__arrow { width: 32px; height: 32px; margin-top: -16px; }
	.gal__arrow--prev { left: 12px; }
	.gal__arrow--next { right: 12px; }
	.gal__count { display: none; }
	.st__body { padding-top: 24px; }
	.crumb { font-size: 16px; }
	.st__tag { margin-top: 20px; }
	.st__title { font-size: clamp(44px, 13vw, 56px); }
	.facts { margin-top: 28px; gap: 22px; }
	.bk__widget { min-height: 480px; }
	.bk__mount { margin: 0 -12px; }
	.bk__panel { padding: 24px 20px; }
	.sec__title { font-size: clamp(36px, 10vw, 44px); }
	.rail__list, .rail--reviews .rail__list { grid-auto-columns: 86%; gap: 12px; margin-right: calc(-1 * var(--gut)); padding-right: var(--gut); scroll-padding-left: 0; }
	.tcard h3 { font-size: 30px; }
	.ft__legal { flex-direction: column; }
}
