/* ============================================
   ONYX. Demo case study (barbershop — dark wood, leather, aged brass)
   ============================================ */

:root {
  --bg: #14100b;
  --bg-2: #1a1109;
  --surface: #241a10;
  --surface-2: #2e2013;
  --line: rgba(224, 196, 148, 0.16);
  --line-strong: rgba(224, 196, 148, 0.3);

  --text: #f0e6d6;
  --text-soft: rgba(240, 230, 214, 0.64);
  --text-muted: rgba(240, 230, 214, 0.42);

  --accent: #b3872a;
  --accent-deep: #7a5a1a;
  --accent-bright: #d9b54c;
  --accent-soft: rgba(179, 135, 42, 0.15);
  --accent-border: rgba(179, 135, 42, 0.45);

  --paper: #e9dfc9;
  --paper-2: #ddcfaf;

  --font-display: 'Bitter', serif;
  --font-body: 'Jost', sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --wrap: min(1180px, 92vw);
  --radius: 4px;
  --radius-sm: 2px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: var(--wrap); margin: 0 auto; }

::selection { background: var(--accent); color: var(--bg); }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--accent-deep);
  border-radius: 0;
  border: 3px solid var(--bg);
}
html { scrollbar-color: var(--accent-deep) var(--bg); scrollbar-width: thin; }

:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; }

#branches, #services, #masters, #booking {
  scroll-margin-top: 96px;
}

/* ---------- Type ---------- */

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.14;
  letter-spacing: -0.005em;
  margin: 0 0 2rem;
  max-width: 18ch;
  color: var(--text);
}

p { line-height: 1.65; max-width: 60ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 6px 15px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 1.8rem;
}

.eyebrow-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke: var(--accent-bright);
  fill: none;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Buttons ---------- */

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.9em 1.9em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-deep);
  background: var(--accent);
  color: #17120a;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 160ms var(--ease-out);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
}
.btn-cta:hover { background: var(--accent-bright); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35); }
.btn-cta:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.35); }

.btn-cta-lg { font-size: 1.02rem; padding: 1em 2.2em; }

.btn-cta-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--line-strong);
  box-shadow: none;
}
.btn-cta-ghost:hover { border-color: var(--accent); color: var(--accent-bright); background: transparent; transform: none; box-shadow: none; }

/* ============================================
   Header
   ============================================ */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap { width: min(1400px, 95vw); }

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  padding: 1.3rem 0;
  min-height: 80px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: 0.05em;
  color: var(--text);
}
.wordmark::after {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--accent-bright);
  margin-left: 5px;
  vertical-align: super;
}

.nav {
  display: flex;
  gap: 2.6rem;
  margin-right: auto;
  margin-left: 4.5rem;
}

.nav-link {
  position: relative;
  font-size: 0.96rem;
  font-weight: 400;
  color: var(--text-soft);
  transition: color 180ms ease;
  padding: 0.3rem 0;
}
.nav-link:hover { color: var(--accent-bright); }

.header-actions { display: flex; align-items: center; gap: 0.9rem; flex-shrink: 0; }

.header-cta { font-size: 0.9rem; padding: 0.8em 1.5em; }

.lang-switch {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  padding: 6px 11px;
  border: none;
  border-radius: 2px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
  background: var(--accent);
  color: #17120a;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 95;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px; height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--bg);
  max-width: 100vw;
}

/* Atmospheric barber-at-work photo, dark-graded to sit in the brass/near-black palette */
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url('../img/hero/barber-hero.jpg');
  background-size: cover;
  background-position: 62% 40%;
  filter: grayscale(0.15) sepia(0.25) saturate(1.15) hue-rotate(-8deg) brightness(0.5) contrast(1.08);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(100deg, var(--bg) 0%, rgba(20, 16, 11, 0.94) 26%, rgba(20, 16, 11, 0.62) 46%, rgba(20, 16, 11, 0.22) 66%, rgba(20, 16, 11, 0.06) 82%, transparent 100%),
    linear-gradient(0deg, rgba(10, 8, 5, 0.55), transparent 45%);
}

.hero-inner {
  position: relative;
  z-index: 10;
  padding: 9rem 0 8rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 6.6vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin: 0 0 1.8rem;
  color: var(--text);
}

.reveal-line {
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  animation: shave-in 780ms var(--ease-out) forwards;
}
.reveal-line:nth-child(1) { animation-delay: 200ms; }
.reveal-line:nth-child(3) { animation-delay: 480ms; }
.reveal-accent {
  color: transparent;
  background: linear-gradient(100deg, var(--accent-bright), var(--accent));
  background-clip: text;
  -webkit-background-clip: text;
  animation-delay: 760ms;
}

@keyframes shave-in {
  to { clip-path: inset(0 0% 0 0); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-line { animation: none; clip-path: inset(0 0% 0 0); }
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 46ch;
  margin: 0 0 2.4rem;
  opacity: 0;
  animation: fade-up 650ms var(--ease-out) 1050ms forwards;
}

.hero-actions {
  opacity: 0;
  animation: fade-up 650ms var(--ease-out) 1150ms forwards;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-sub, .hero-actions { animation: none; opacity: 1; transform: none; }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2.6rem;
  z-index: 5;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  opacity: 0;
  animation: fade-up 650ms var(--ease-out) 1400ms forwards;
}
.scroll-cue-line {
  width: 3px; height: 8px;
  border-radius: 2px;
  background: var(--accent-bright);
  animation: cue-drop 1.8s var(--ease-in-out) infinite;
}
@keyframes cue-drop {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  71% { transform: translateY(0); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue { animation: none; opacity: 1; }
  .scroll-cue-line { animation: none; }
}

/* ============================================
   Branches + map — untouched structurally, inherits new tokens
   ============================================ */

.branches { padding: 8rem 0; background: var(--bg); position: relative; }
.branches .eyebrow { display: inline-flex; width: fit-content; }

.branches-row {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 3.5rem;
  align-items: center;
  margin-top: 3rem;
}

.branches-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }

.branch-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.6rem 0 1.6rem 1.4rem;
  border-left: 2px solid var(--line);
  cursor: pointer;
  transition: border-color 240ms ease, opacity 240ms ease;
  opacity: 0.55;
}
.branch-item.is-active { border-left-color: var(--accent); opacity: 1; }

.branch-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  color: var(--text);
}
.branch-addr { color: var(--text-soft); font-size: 0.98rem; }
.branch-hours { color: var(--accent-bright); font-size: 0.86rem; }
.branch-phone {
  margin-top: 0.4rem;
  width: fit-content;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  transition: color 180ms ease, border-color 180ms ease;
}
.branch-phone:hover { color: var(--accent-bright); border-color: var(--accent-border); }

.branches-map {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.map-svg { width: 100%; height: auto; }

.map-grid line {
  stroke: rgba(224, 196, 148, 0.08);
  stroke-width: 1;
}

.map-avenue {
  stroke: var(--accent);
  stroke-width: 2;
  fill: none;
  opacity: 0.3;
  stroke-dasharray: 2 10;
  stroke-linecap: round;
}

.map-pin { cursor: pointer; }
.map-pin-inner { transition: transform 260ms var(--ease-out); }
.map-pin-stem { stroke: rgba(224, 196, 148, 0.22); stroke-width: 1.5; transition: stroke 220ms ease; }
.map-pin-mark {
  fill: var(--surface-2);
  stroke: rgba(224, 196, 148, 0.3);
  stroke-width: 1.5;
  transition: fill 220ms ease, stroke 220ms ease;
}
.map-pin-dot { fill: rgba(224, 196, 148, 0.3); transition: fill 220ms ease; }

.map-pin.is-active .map-pin-inner { transform: translate(0, -6px); }
.map-pin.is-active .map-pin-mark { fill: var(--accent); stroke: var(--accent-bright); }
.map-pin.is-active .map-pin-stem,
.map-pin.is-active .map-pin-dot { stroke: var(--accent); fill: var(--accent); }

/* ============================================
   Catalog: services / products tabs
   ============================================ */

.catalog { padding: 8rem 0; background: var(--surface); }
.catalog .eyebrow { display: inline-flex; width: fit-content; }

.tabs {
  display: inline-flex;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px;
  gap: 4px;
  margin-bottom: 3rem;
}

.tab-btn {
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--text-soft);
  padding: 0.7em 1.6em;
  border-radius: 2px;
  cursor: pointer;
  transition: background 220ms ease, color 220ms ease;
}
.tab-btn.is-active {
  background: var(--accent);
  color: #17120a;
}
.tab-btn:not(.is-active):hover { color: var(--text); }

/* ---- Services list ---- */

.services-list { list-style: none; margin: 0; padding: 0; }

.service-item {
  padding: 1.4rem 0.2rem;
  border-bottom: 1px solid var(--line);
}
.service-item:first-child { padding-top: 0; }

.service-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.7rem;
}

.service-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  color: var(--text);
  flex-shrink: 0;
}

.service-leader {
  flex: 1;
  border-bottom: 1px dotted var(--line);
  transform: translateY(-0.4em);
  min-width: 1.5rem;
}

.service-price {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--accent-bright);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.service-price small { font-weight: 400; opacity: 0.7; font-size: 0.72em; color: var(--text-soft); }
.price-prefix { font-weight: 400; font-size: 0.78em; color: var(--text-soft); margin-right: 0.1em; }

.service-note {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 52ch;
}

/* ---- Products grid ---- */

.products-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.1rem 1.1rem 1.3rem;
  background: var(--bg);
  border: 1px solid var(--line);
  transition: border-color 220ms ease;
}
.product-card:hover { border-color: var(--accent-border); }

.product-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background: linear-gradient(155deg, var(--paper), var(--paper-2));
  overflow: hidden;
}

.product-photo {
  width: 82%;
  height: 82%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.product-brand {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.product-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  line-height: 1.3;
}

.product-price {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--accent-bright);
  font-variant-numeric: tabular-nums;
}
.product-price small { font-weight: 400; opacity: 0.7; font-size: 0.75em; color: var(--text-soft); }

/* ============================================
   Team / masters
   ============================================ */

.team { padding: 8rem 0; background: var(--bg); }
.team .eyebrow { display: inline-flex; width: fit-content; }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; margin-bottom: 3rem; }

.branch-pills,
.specialty-pills {
  display: inline-flex;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px;
  gap: 4px;
}

.pill-btn,
.chip-btn {
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.86rem;
  color: var(--text-soft);
  padding: 0.65em 1.3em;
  border-radius: 2px;
  cursor: pointer;
  transition: background 220ms ease, color 220ms ease;
  white-space: nowrap;
}
.pill-btn.is-active,
.chip-btn.is-active {
  background: var(--accent);
  color: #17120a;
}
.pill-btn:not(.is-active):hover,
.chip-btn:not(.is-active):hover { color: var(--text); }

.sort-select {
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.65em 1rem;
  cursor: pointer;
  color-scheme: dark;
}
.sort-select option { background: var(--surface); }

.masters-grid[hidden] { display: none; }
.masters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.masters-empty {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--line-strong);
  font-size: 0.98rem;
}

.master-card {
  all: unset;
  cursor: pointer;
  perspective: 900px;
  box-sizing: border-box;
}
.master-card[hidden] { display: none; }

.master-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 220ms ease, transform 260ms var(--ease-out);
  transform-style: preserve-3d;
  will-change: transform;
}
.master-card.is-selected .master-frame { border-color: var(--accent); }

/* corner brackets — vintage cabinet-card framing instead of a soft glow */
.master-frame::before,
.master-frame::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 14px; height: 14px;
  border-top: 1.5px solid var(--accent-border);
  opacity: 0;
  transition: opacity 220ms ease;
}
.master-frame::before { left: 8px; border-left: 1.5px solid var(--accent-border); }
.master-frame::after { right: 8px; border-right: 1.5px solid var(--accent-border); }
.master-card.is-selected .master-frame::before,
.master-card.is-selected .master-frame::after { opacity: 1; }

.master-portrait {
  position: relative;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 100% at 50% 20%, rgba(217, 181, 76, 0.14), transparent 62%),
    var(--bg);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.master-monogram {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 11vw, 3.4rem);
  letter-spacing: 0.02em;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  background: linear-gradient(155deg, var(--av-a, var(--accent-bright)), var(--av-b, var(--accent-deep)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.master-selected-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 9px;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent);
  color: #17120a;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 200ms ease, transform 200ms ease;
}
.master-card.is-selected .master-selected-tag { opacity: 1; transform: translateY(0); }

.master-body {
  padding: 1.1rem 1.2rem 1.3rem;
  text-align: left;
}

.master-name-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
}

.master-name { font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; color: var(--text); }

.master-rating {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-bright);
  font-variant-numeric: tabular-nums;
}
.master-rating svg { width: 12px; height: 12px; fill: var(--accent-bright); }

.master-role {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.master-meta {
  margin-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.master-spec { font-size: 0.88rem; color: var(--text-soft); }
.master-sub { font-size: 0.78rem; color: var(--text-muted); }

/* ============================================
   Booking
   ============================================ */

.booking { padding: 8rem 0; background: var(--surface); }

.booking-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.booking-intro p { color: var(--text-soft); font-size: 1.02rem; }

.booking-panel {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.6rem;
  min-height: 480px;
}

.booking-form[hidden] { display: none; }
.booking-form { display: flex; flex-direction: column; gap: 1.3rem; }

.booking-selection {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.selection-chip {
  flex: 1 1 160px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.8rem 1rem;
  border: 1px dashed var(--accent-border);
  border-radius: var(--radius-sm);
}
.selection-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.selection-value { font-size: 0.94rem; font-weight: 600; color: var(--text); font-family: var(--font-display); }

.field { display: flex; flex-direction: column; gap: 0.5rem; }

.field label {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.field input, .field select {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--line);
  padding: 0.6rem 0.1rem;
  transition: border-color 200ms ease;
}
.field select { color-scheme: dark; }
.field select option { background: var(--bg); color: var(--text); }
.field input::placeholder { color: var(--text-muted); }
.field input:focus, .field select:focus { outline: none; border-bottom-color: var(--accent-bright); }

.booking-form .btn-cta { margin-top: 0.6rem; }

.booking-success[hidden] { display: none; }
.booking-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  padding: 3rem 0;
  color: var(--text);
}
.success-check { width: 68px; height: 68px; margin-bottom: 0.6rem; }
.success-circle { stroke-dasharray: 252; stroke-dashoffset: 252; animation: draw 550ms var(--ease-out) forwards; }
.success-tick { stroke-dasharray: 50; stroke-dashoffset: 50; animation: draw 350ms var(--ease-out) 480ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.booking-success h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; margin: 0; }
.booking-success p { color: var(--text-soft); max-width: 34ch; }
.booking-success .btn-cta-ghost { margin-top: 1rem; }

/* ============================================
   Demo notice band
   ============================================ */

.demo-band { background: var(--accent); padding: 2.4rem 0; }
.demo-band-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.demo-band-row p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: #17120a;
  margin: 0;
  max-width: 42ch;
  line-height: 1.3;
}
.demo-band-link {
  font-weight: 600;
  font-size: 0.94rem;
  color: #17120a;
  border-bottom: 2px solid #17120a;
  padding-bottom: 2px;
  white-space: nowrap;
  transition: opacity 180ms ease;
}
.demo-band-link:hover { opacity: 0.65; }

/* ============================================
   Footer
   ============================================ */

.site-footer { background: var(--bg-2); color: var(--text-muted); padding: 3.5rem 0 1.6rem; }

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid var(--line);
}
.wordmark-footer { display: block; margin-bottom: 0.6rem; color: var(--text); }
.footer-brand p { margin: 0; font-size: 0.95rem; }
.footer-contact { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-end; }
.footer-contact a { font-weight: 600; color: var(--text); transition: color 180ms ease; }
.footer-contact a:hover { color: var(--accent-bright); }
.footer-meta { padding-top: 1.4rem; font-size: 0.8rem; }

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
  .hero-inner { padding: 8rem 0 7rem; }
  .hero-photo { background-position: 68% 40%; }
  .hero-gradient {
    background:
      linear-gradient(100deg, var(--bg) 0%, rgba(20, 16, 11, 0.96) 40%, rgba(20, 16, 11, 0.5) 70%, rgba(20, 16, 11, 0.2) 100%),
      linear-gradient(0deg, rgba(10, 8, 5, 0.6), transparent 50%);
  }
  .branches-row { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .masters-grid { grid-template-columns: repeat(2, 1fr); }
  .booking-row { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 760px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .header-row { gap: 0.8rem; }
  .lang-switch { padding: 2px; gap: 1px; }
  .lang-btn { padding: 5px 8px; font-size: 0.62rem; }

  .nav {
    display: flex;
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--surface);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1.8rem;
    padding: 2rem 2.5rem;
    margin: 0;
    clip-path: inset(0 0 0 100%);
    transition: clip-path 320ms var(--ease-out);
    z-index: 90;
  }
  .nav.is-open { clip-path: inset(0 0 0 0%); }
  .nav-link { font-size: 1.2rem; color: var(--text); opacity: 0.85; }

  .footer-row { align-items: flex-start; }
  .footer-contact { align-items: flex-start; }

  .branches { padding: 5rem 0; }
  .catalog { padding: 5rem 0; }
  .service-head { gap: 0.5rem; }
  .service-leader { display: none; }

  .demo-band-row { text-align: center; justify-content: center; }
}

@media (max-width: 560px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .tab-btn { padding: 0.65em 1.1em; font-size: 0.84rem; }
  .masters-grid { grid-template-columns: 1fr; }
  .team { padding: 5rem 0; }
  .booking { padding: 5rem 0; }
  .booking-panel { padding: 1.8rem; }
  .filters { flex-direction: column; align-items: stretch; }
  .sort-select { width: 100%; }
}

@media (max-width: 480px) {
  .wordmark { font-size: 1.4rem; }
  .header-row { min-height: 68px; }
}
