:root {
  --bg: #0c0b0a;
  --bg-2: #141210;
  --card: #1b1814;
  --line: rgba(201, 162, 39, 0.22);
  --gold: #c9a227;
  --gold-2: #e4c56a;
  --cream: #f4efe6;
  --muted: #b7aea0;
  --danger: #d45b4a;
  --ok: #3d9a6a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--cream);
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: #fff; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.skip-link {
  position: absolute; left: -999px; top: 8px;
}
.skip-link:focus { left: 8px; background: var(--gold); color: #111; padding: 8px 12px; z-index: 20; }

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(12, 11, 10, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 96px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--cream); }
.logo strong { display: block; font-family: var(--display); font-size: 1.35rem; letter-spacing: 0.04em; }
.logo small { display: block; color: var(--muted); font-size: 0.75rem; font-weight: 400; }
.logo-mark { color: var(--gold); display: grid; place-items: center; }
.logo-image {
  display: block; width: 300px; height: auto; max-height: 82px;
  object-fit: contain; object-position: left center;
}
.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav a { color: var(--cream); font-size: 0.95rem; }
.site-nav a.is-active { color: var(--gold-2); }
.language-switch {
  display: flex; align-items: center; gap: 3px; padding: 3px;
  border: 1px solid var(--line); border-radius: 999px;
}
.language-switch a { padding: 4px 7px; border-radius: 999px; font-size: .72rem; }
.language-switch a.is-active { background: var(--gold); color: #1a1408; }
.nav-toggle { display: none; background: transparent; color: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1a1408 !important; }
.btn-ghost { background: transparent; color: var(--cream); border: 1px solid var(--line); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-ok { background: var(--ok); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }

.hero {
  position: relative; overflow: hidden;
  padding: 88px 0 72px;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(201,162,39,.18), transparent 45%),
    radial-gradient(ellipse at 90% 80%, rgba(201,162,39,.08), transparent 40%),
    var(--bg);
}
.hero-media {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
.hero-media video,
.hero-clip {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.9) contrast(1.06);
}
.hero-clip {
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero-clip.is-on {
  opacity: 1;
  animation: heroKen 8s ease-out forwards;
}
@keyframes heroKen {
  from { transform: scale(1.05); }
  to { transform: scale(1.16); }
}
.hero.has-video .hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(12,11,10,.88) 0%, rgba(12,11,10,.55) 48%, rgba(12,11,10,.42) 100%),
    linear-gradient(180deg, rgba(12,11,10,.28), rgba(12,11,10,.55));
}
.hero.has-video .container { position: relative; z-index: 1; }
.hero-copy { max-width: 34rem; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--gold); letter-spacing: .18em; text-transform: uppercase; font-size: .78rem; margin: 0 0 12px; }
.hero h1, h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0 0 14px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 42ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

section[id] { scroll-margin-top: 90px; }
.section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 32px; }
.muted { color: var(--muted); }
.grid-3, .grid-2 { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.card h3 { font-size: 1.6rem; }
.price { color: var(--gold-2); font-weight: 600; }
.steps { counter-reset: step; }
.steps li { counter-increment: step; list-style: none; }
.steps li::before {
  content: counter(step); display: inline-grid; place-items: center;
  width: 28px; height: 28px; margin-right: 10px; border-radius: 50%;
  background: var(--gold); color: #1a1408; font-weight: 700; font-size: .85rem;
}
.cta-band {
  margin: 20px 0 80px; padding: 42px; border-radius: 28px;
  background: linear-gradient(120deg, #1c170d, #2a2112 50%, #141210);
  border: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; align-items: center;
}

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  display: inline-flex; align-items: center; gap: 10px;
  min-width: 58px; min-height: 58px; padding: 0 18px 0 16px;
  border-radius: 999px;
  background: #25d366; color: #fff !important;
  box-shadow: 0 10px 28px rgba(37, 211, 102, .38);
  font-weight: 600; font-size: .92rem;
}
.wa-float:hover { color: #fff !important; background: #1ebe5d; transform: translateY(-2px); }
.wa-float svg { flex-shrink: 0; }
@media (max-width: 640px) {
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .wa-float { width: 58px; height: 58px; padding: 0; justify-content: center; }
}
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 24px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer-brand { font-family: var(--display); font-size: 1.8rem; margin: 0 0 8px; }
.site-footer h2 { font-size: 1.1rem; color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 28px; color: var(--muted); font-size: .9rem; }

.page-hero { padding: 48px 0 12px; }
.form { display: grid; gap: 14px; }
.booking-group {
  display: grid; gap: 14px; padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.booking-group:first-of-type { padding-top: 4px; }
.booking-step {
  display: flex; align-items: center; gap: 10px; margin: 0 !important;
  font-family: var(--font) !important; font-size: 1rem !important; font-weight: 600 !important;
}
.booking-step span {
  display: inline-grid; place-items: center; width: 28px; height: 28px;
  border-radius: 50%; background: var(--gold); color: #1a1408; font-size: .82rem;
}
.booking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.booking-label { font-size: .92rem; margin-top: 2px; }
label { display: grid; gap: 6px; font-size: .92rem; }
input, select, textarea {
  width: 100%; background: #12100e; color: var(--cream); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; font: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(201,162,39,.45); }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.slot {
  border: 1px solid var(--line); background: transparent; color: var(--cream);
  border-radius: 12px; padding: 10px 8px; cursor: pointer; font: inherit;
}
.slot.is-selected, .slot:hover { background: var(--gold); color: #1a1408; }
.slot:disabled { opacity: .35; cursor: not-allowed; }
.day-grid {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 9px;
  padding: 3px 2px 10px;
}
.day-chip {
  border: 1px solid var(--line); background: #12100e; color: var(--cream);
  border-radius: 14px; padding: 12px 8px; cursor: pointer; font: inherit; text-align: center;
  display: grid; gap: 2px;
}
.day-chip strong { font-size: .78rem; color: var(--gold-2); letter-spacing: .04em; }
.day-chip span { font-weight: 600; }
.day-chip small { color: var(--muted); font-size: .72rem; }
.day-chip.is-selected, .day-chip:hover:not(:disabled) { background: var(--gold); color: #1a1408; }
.day-chip.is-selected strong, .day-chip.is-selected small,
.day-chip:hover:not(:disabled) strong, .day-chip:hover:not(:disabled) small { color: #1a1408; }
.day-chip.is-closed { opacity: .4; cursor: not-allowed; }
.day-navigation {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 10px; margin-bottom: 3px;
}
.day-navigation > span { text-align: center; font-size: .85rem; }
.day-navigation button:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.notice { padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; }
.notice.ok { background: rgba(61,154,106,.15); color: #b6e3c9; }
.notice.err { background: rgba(212,91,74,.15); color: #ffc7bf; }
.notice.warn { background: rgba(201,162,39,.12); color: var(--gold-2); }
.appointment-summary {
  margin: 18px 0; padding: 14px 16px; border: 1px solid var(--line);
  border-radius: 14px; background: #12100e;
}
.appointment-summary p { margin: 5px 0; }

.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 240px 1fr; }
.admin-side { background: #100e0c; border-right: 1px solid var(--line); padding: 22px; }
.admin-side a { display: block; color: var(--cream); padding: 10px 12px; border-radius: 10px; margin: 4px 0; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table .btn { margin: 0 6px 6px 0; }
.admin-main { padding: 28px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .92rem; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: .75rem; }
.badge.pending { background: rgba(201,162,39,.18); color: var(--gold-2); }
.badge.approved { background: rgba(61,154,106,.18); color: #9ee0bd; }
.badge.cancelled { background: rgba(212,91,74,.18); color: #ffb4aa; }
.slot.closed { background: rgba(212,91,74,.2); color: #ffc7bf; }
.slot.booked { background: rgba(255,255,255,.08); cursor: default; }
.login-box { max-width: 420px; margin: 12vh auto; }
.logo-preview {
  display: flex; align-items: center; gap: 16px; padding: 14px;
  border: 1px solid var(--line); border-radius: 14px; background: #12100e;
}
.logo-preview img { width: 96px; height: 96px; object-fit: contain; border-radius: 12px; }
.inline-check { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 8px; }
.inline-check input { width: auto; }
.content-languages { display: grid; gap: 10px; }
.content-language {
  border: 1px solid var(--line); border-radius: 14px; background: #12100e;
}
.content-language summary {
  padding: 14px 16px; cursor: pointer; color: var(--gold-2); font-weight: 600;
}
.content-language-fields {
  display: grid; gap: 14px; padding: 4px 16px 18px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.barber-fieldset { border: 0; padding: 0; margin: 0; }
.barber-fieldset legend { font-size: .92rem; margin-bottom: 8px; }
.barber-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.barber-pick label { cursor: pointer; }
.barber-pick input { position: absolute; opacity: 0; pointer-events: none; }
.barber-pick span {
  display: block; text-align: center; padding: 14px 10px; border-radius: 14px;
  border: 1px solid var(--line); background: #12100e;
}
.barber-pick input:checked + span { background: var(--gold); color: #1a1408; font-weight: 600; }
.barber-pick input:focus-visible + span { outline: 2px solid rgba(201,162,39,.6); }
.contact-map { margin-top: 18px; }
.contact-map .map-frame {
  margin-top: 12px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #12100e;
  position: relative;
  width: 100%;
  height: 380px;
}
.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
}
.contact-map .map-open { margin: 12px 0 0; }
.gallery-preview { max-width: 420px; }
.gallery-thumbs {
  display: flex; gap: 10px; overflow-x: auto; margin: 18px 0 8px;
  padding-bottom: 6px;
}
.gallery-thumb {
  flex: 0 0 72px; height: 96px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-all {
  display: flex; gap: 14px; overflow-x: auto;
  padding: 4px 2px 14px; scroll-snap-type: x mandatory;
}
.gallery-all .ba-card {
  flex: 0 0 min(250px, 78vw);
  scroll-snap-align: start;
}
.gallery-page .section-head { max-width: none; }
.ba-card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.ba-slider {
  position: relative; overflow: hidden; border-radius: 18px;
  border: 1px solid var(--line); aspect-ratio: 3 / 4; background: #12100e;
  user-select: none;
}
.ba-slider img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none; max-width: none;
}
.ba-before {
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}
.ba-before-wrap {
  position: absolute; inset: 0 auto 0 0; width: 50%;
  overflow: hidden; border-right: 2px solid #fff;
}
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
  background: #fff; transform: translateX(-50%); pointer-events: none;
}
.ba-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid #fff; background: rgba(12,11,10,.55);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(0,0,0,.2);
}
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: ew-resize; z-index: 2;
}
.ba-label {
  position: absolute; bottom: 12px; z-index: 3;
  background: rgba(12,11,10,.72); color: #fff;
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 999px; pointer-events: none;
}
.ba-label-before { left: 12px; }
.ba-label-after { right: 12px; }
.gallery-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.gallery-admin-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.gallery-admin-thumbs img { width: 100%; height: 140px; object-fit: cover; border-radius: 10px; }
.gallery-admin-thumbs figcaption { font-size: .78rem; color: var(--muted); }

@media (max-width: 860px) {
  .hero-grid, .grid-3, .grid-2, .footer-grid, .cta-band, .admin-shell, .gallery-grid { grid-template-columns: 1fr; }
  .booking-grid { grid-template-columns: 1fr; }
  .day-grid {
    display: flex; overflow-x: auto; scroll-snap-type: x proximity;
    scrollbar-color: var(--gold) #12100e;
  }
  .day-chip { flex: 0 0 94px; scroll-snap-align: start; }
  .day-navigation { grid-template-columns: 1fr 1fr; }
  .day-navigation > span { grid-column: 1 / -1; grid-row: 1; }
  .nav-toggle { display: inline-flex; }
  .logo-image { width: min(210px, 62vw); height: auto; max-height: 58px; }
  .site-nav { display: none; position: absolute; inset: 96px 16px auto; background: #161310; border: 1px solid var(--line); border-radius: 16px; padding: 14px; flex-direction: column; align-items: stretch; }
  .site-nav.is-open { display: flex; }
  .language-switch { justify-content: center; }
  .cta-band { text-align: left; }
}
