/* Black & white, clean booking-app style */
:root {
  --bg: #ffffff;
  --bg-2: #f5f5f5;
  --card: #ffffff;
  --line: #e7e7e7;
  --text: #0d0d0d;
  --muted: #6b6b6b;
  --accent: #0d0d0d;
  --accent-hover: #2b2b2b;
  --on-accent: #ffffff;
  --ok: #15803d;
  --busy: #b45309;
  --danger: #dc2626;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 16px rgba(0, 0, 0, .06);
  --shadow-hover: 0 2px 4px rgba(0, 0, 0, .05), 0 12px 32px rgba(0, 0, 0, .1);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--text); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; margin: 0 0 .4em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow { color: var(--muted); font-size: .85rem; font-weight: 600; margin-bottom: .5rem; }
.section { padding: 72px 0; }
.section + .section { padding-top: 24px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head p { max-width: 520px; margin: 0; }

/* ---------- buttons, inputs, badges ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent);
  padding: 12px 22px; border-radius: 999px; font-weight: 600; cursor: pointer; transition: background .15s, transform .15s; white-space: nowrap; }
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(.98); }
.btn.ghost { background: var(--bg); color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--text); background: var(--bg); }
.btn.sm { padding: 8px 16px; font-size: .88rem; }
.btn.danger { background: var(--bg); border-color: #f3c4c4; color: var(--danger); }
.btn.danger:hover { border-color: var(--danger); }
.btn:disabled { opacity: .3; cursor: not-allowed; transform: none; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .85rem; color: var(--text); font-weight: 600; }
input, select, textarea { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--text); box-shadow: 0 0 0 3px rgba(0, 0, 0, .06); }
textarea { min-height: 90px; resize: vertical; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--bg-2); color: var(--muted); white-space: nowrap; }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.ok { color: var(--ok); background: #ecfdf3; }
.badge.busy { color: var(--busy); background: #fff7ed; }
.badge.off { color: var(--muted); }
.chip { display: inline-block; font-size: .8rem; padding: 5px 12px; border-radius: 999px; background: var(--bg-2); color: var(--text); font-weight: 500; }
.stars { color: var(--text); font-weight: 700; font-size: .9rem; }
.avatar { border-radius: 50%; object-fit: cover; flex: none; display: inline-grid; place-items: center; font-weight: 700; letter-spacing: -.02em;
  color: var(--text); background: linear-gradient(145deg, #f4f4f4, #e2e2e2); border: 1px solid var(--line); }
img.avatar { filter: grayscale(.15); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo { font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em; color: var(--text); display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 32px; height: 32px; border-radius: 10px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: .95rem; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a:not(.btn) { color: var(--text); font-weight: 500; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--muted); }
@media (max-width: 820px) { .nav a:not(.btn) { display: none; } }

/* ---------- hero ---------- */
.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 500px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.live-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.live-card .big { font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.live-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.live-row:first-of-type { border-top: 0; }
.live-row .name { font-weight: 600; flex: 1; }
.pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(21, 128, 61, .5); animation: pulse 2s infinite; margin-right: 6px; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(21, 128, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(21, 128, 61, 0); } }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 44px; } }

/* ---------- shop photos ---------- */
.hero-photo { position: relative; margin: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; max-height: 560px; width: 100%; background: var(--bg-2); box-shadow: var(--shadow); }
.hero-photo img, .hero-photo .ph-empty { width: 100%; height: 100%; object-fit: cover; }
.live-pill { position: absolute; left: 16px; bottom: 16px; right: 16px; width: fit-content; max-width: calc(100% - 32px); background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px);
  border-radius: 999px; padding: 10px 16px; font-size: .92rem; display: flex; align-items: center; box-shadow: var(--shadow); }
.ph-empty { display: grid; place-items: center; background: repeating-linear-gradient(135deg, #f3f3f3 0 12px, #ececec 12px 24px); color: var(--muted); font-size: .85rem; font-weight: 600; }
.shop-mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 210px; gap: 10px; }
.shop-mosaic > * { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 16px; }
.shop-mosaic > :first-child:nth-last-child(odd) { grid-column: 1 / -1; }
@media (max-width: 860px) { .hero-photo { aspect-ratio: 4 / 3; } .shop-mosaic { grid-auto-rows: 140px; } }

/* ---------- 3D effects ---------- */
/* hero title: each line rises and unfolds in 3D on load */
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; perspective: 600px; }
.hero h1 .line > span { display: inline-block; transform-origin: 50% 100%; }
.hero h1 .soft { color: var(--muted); }
.fx-on .hero h1 .line > span { animation: lineUp 1s cubic-bezier(.2, .8, .2, 1) both; }
.fx-on .hero h1 .line:nth-child(2) > span { animation-delay: .14s; }
.fx-on .hero .eyebrow, .fx-on .hero .lead, .fx-on .hero-cta { animation: fadeUp .8s .35s cubic-bezier(.2, .8, .2, 1) both; }
.fx-on .hero-cta { animation-delay: .5s; }
@keyframes lineUp { from { transform: translateY(105%) rotateX(-75deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeUp { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }

/* hero visual: photo + barber pole, parallax driven by --px / --py (set by fx.js) */
.hero-visual { --px: 0; --py: 0; position: relative; perspective: 1200px; }
.hero-visual .hero-photo { transform: rotateY(calc(var(--px) * 10deg)) rotateX(calc(var(--py) * -8deg)); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.fx-on .hero-visual .hero-photo { animation: photoIn 1.1s .15s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes photoIn { from { opacity: 0; translate: 0 30px; scale: .94; } }
.pole { position: absolute; left: -26px; top: 12%; z-index: 3; display: flex; flex-direction: column; align-items: center; width: 52px;
  transform: translate3d(calc(var(--px) * -28px), calc(var(--py) * -20px), 0); transition: transform .5s cubic-bezier(.2, .8, .2, 1);
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .25)); }
.fx-on .pole { animation: poleIn 1s .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes poleIn { from { opacity: 0; translate: 0 -40px; } }
.pole .cap { width: 52px; height: 26px; background: linear-gradient(90deg, #6e6e6e, #f4f4f4 38%, #ffffff 46%, #8a8a8a 80%, #4a4a4a); }
.pole .cap:first-child { border-radius: 26px 26px 8px 8px; }
.pole .cap:last-child { border-radius: 8px 8px 26px 26px; }
.pole .tube { position: relative; width: 40px; height: 190px; margin: -2px 0; overflow: hidden; border-radius: 4px;
  background: repeating-linear-gradient(-45deg, #0d0d0d 0 12px, #ffffff 12px 24px); background-size: 100% 34px; }
.fx-on .pole .tube { animation: poleSpin 1.4s linear infinite; }
@keyframes poleSpin { to { background-position: 0 34px; } }
/* cylinder shading + glass highlight make the flat stripes read as a turning 3D tube */
.pole .tube::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .05) 28%, rgba(255, 255, 255, .55) 40%, rgba(255, 255, 255, 0) 52%, rgba(0, 0, 0, .1) 72%, rgba(0, 0, 0, .6)); }
@media (max-width: 860px) { .pole { left: auto; right: 14px; top: -34px; scale: .7; transform-origin: top right; } }

/* scroll reveal: blocks tip forward from below (translate/rotate properties, so they never fight the tilt transform) */
.fx-on .reveal, .fx-on .reveal-stagger > * { opacity: 0; translate: 0 46px; rotate: x 16deg; transform-origin: 50% 100%;
  transition: opacity .8s cubic-bezier(.2, .8, .2, 1), translate .9s cubic-bezier(.2, .8, .2, 1), rotate .9s cubic-bezier(.2, .8, .2, 1), transform .5s cubic-bezier(.2, .8, .2, 1); }
.fx-on .reveal.in, .fx-on .reveal-stagger.in > * { opacity: 1; translate: 0 0; rotate: x 0deg; }
.fx-on .reveal-stagger > :nth-child(2) { transition-delay: .08s; }
.fx-on .reveal-stagger > :nth-child(3) { transition-delay: .16s; }
.fx-on .reveal-stagger > :nth-child(4) { transition-delay: .24s; }
.fx-on .reveal-stagger > :nth-child(n+5) { transition-delay: .32s; }
.fx-on .reveal-stagger.done > * { transition-delay: 0s; } /* after the entrance, hover and tilt react instantly */

/* mouse tilt with a moving light reflection */
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); will-change: transform; }
.tilt.tilting { transition: transform .08s linear !important; }
.barber-card { position: relative; overflow: hidden; }
.barber-card .foot { flex-wrap: wrap; row-gap: 10px; }
.barber-card:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-2px); }
.barber-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(0, 0, 0, .07), transparent 55%); }
.barber-card.tilting::after { opacity: 1; }

/* walk-in ticket flips over like a card when it is issued */
.ticket.flip-in { animation: flipIn .9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes flipIn { from { transform: perspective(900px) rotateY(-110deg) scale(.9); opacity: 0; } 60% { opacity: 1; } to { transform: none; } }

/* booking steps turn like pages */
.step-body.fwd { animation: stepFwd .55s cubic-bezier(.2, .8, .2, 1) both; }
.step-body.back { animation: stepBack .55s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes stepFwd { from { opacity: 0; transform: perspective(1000px) translateX(60px) rotateY(-28deg); } }
@keyframes stepBack { from { opacity: 0; transform: perspective(1000px) translateX(-60px) rotateY(28deg); } }

@media (prefers-reduced-motion: reduce) {
  .pole .tube, .ticket.flip-in, .step-body { animation: none !important; }
  .hero-visual .hero-photo, .pole { transform: none !important; }
}

/* ---------- 3D coverflow ---------- */
.coverflow { position: relative; perspective: 1100px; outline: none; overflow: hidden; padding: 20px 0 10px; }
.cf-stage { position: relative; height: calc(clamp(190px, 56vw, 290px) * 4 / 3 + 90px); transform-style: preserve-3d; touch-action: pan-y; user-select: none; }
.cf-item { position: absolute; left: 50%; top: 0; width: clamp(190px, 56vw, 290px); aspect-ratio: 3 / 4; border-radius: 18px; cursor: pointer;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .4s; will-change: transform;
  -webkit-box-reflect: below 6px linear-gradient(transparent 72%, rgba(0, 0, 0, .18)); }
.cf-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; box-shadow: 0 18px 40px rgba(0, 0, 0, .18); pointer-events: none; filter: brightness(.82) grayscale(.25); transition: filter .4s; }
.cf-item.active img { filter: none; }
.coverflow:focus-visible .cf-item.active img { outline: 3px solid var(--text); outline-offset: 3px; }
.cf-nav { position: absolute; top: calc(50% - 40px); z-index: 200; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .95);
  font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); padding-bottom: 3px; }
.cf-nav:hover { border-color: var(--text); }
.cf-nav.prev { left: max(16px, calc(50% - 560px)); }
.cf-nav.next { right: max(16px, calc(50% - 560px)); }
.cf-caption { text-align: center; font-size: 1.05rem; min-height: 1.6em; }
.cf-caption a { text-decoration: underline; }
.cf-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.cf-dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; background: #d4d4d4; cursor: pointer; transition: width .3s, background .3s; }
.cf-dots button[aria-current="true"] { width: 24px; background: var(--text); }
.cf-dots button { position: relative; }
.cf-dots button::after { content: ''; position: absolute; inset: -12px -3px; } /* about 14 x 32 px to tap, the dot stays small */
@media (max-width: 600px) { .cf-nav { display: none; } }
@media (prefers-reduced-motion: reduce) { .cf-item { transition: none; } }

/* ---------- booking: barber names ---------- */
.name-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.name-picks .pick { padding: 10px 20px; border-radius: 999px; font-weight: 600; display: inline-block; }
.name-picks .pick.sel { background: var(--accent); color: var(--on-accent); }

/* ---------- barbers ---------- */
.barbers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.barber-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 12px;
  transition: box-shadow .2s, transform .2s; color: var(--text); box-shadow: var(--shadow); }
.barber-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.barber-card .top { display: flex; gap: 14px; align-items: center; }
.barber-card h3 { margin: 0; }
.barber-card .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.barber-card .foot > span:last-child { white-space: nowrap; }
.barber-card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }

/* ---------- services ---------- */
.services-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0 40px; }
.service-row { display: flex; align-items: center; gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.service-row .dots { flex: 1; }
.service-row .price { font-weight: 700; font-size: 1.05rem; }
.price { white-space: nowrap; }
@media (max-width: 400px) { .services-list { grid-template-columns: 1fr; } }

/* ---------- walk-in + booking panels ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.two-col > * { min-width: 0; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.queue-list { display: grid; gap: 8px; margin-bottom: 18px; }
.queue-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg-2); }
.queue-item .info { flex: 1; min-width: 0; }
.queue-item .info small { display: block; color: var(--muted); }
.ticket { text-align: center; padding: 26px; background: var(--bg-2); border-radius: var(--radius); margin-bottom: 14px; }
.ticket .num { font-size: 4.4rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; }

.steps { display: flex; gap: 6px; margin-bottom: 22px; }
.steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.steps span.on { background: var(--accent); }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.pick { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px 10px; cursor: pointer; text-align: center; display: grid; justify-items: center; gap: 6px; transition: border-color .15s; }
.pick:hover { border-color: #b5b5b5; }
.pick.sel { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.pick:disabled { opacity: .35; cursor: not-allowed; }
.pick small { color: var(--muted); font-size: .8rem; }
.service-pick { display: flex; justify-content: space-between; text-align: left; align-items: center; width: 100%; padding: 16px; }
.dates { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.dates .pick { min-width: 70px; padding: 10px 6px; }
.dates .pick b { font-size: 1.35rem; font-weight: 700; line-height: 1; }
.dates .pick.sel { background: var(--accent); color: var(--on-accent); }
.dates .pick.sel small { color: #cfcfcf; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.slots .pick { padding: 11px 4px; font-weight: 600; }
.slots .pick.taken { opacity: 1; background: #f1f1ef; border-color: #e3e3e0; color: #767676; box-shadow: none; }
.slots .pick.taken s { text-decoration: line-through; text-decoration-thickness: 2px; }
.slots-hint { font-size: .88rem; margin: 12px 0 0; }
.slots .pick.sel { background: var(--accent); color: var(--on-accent); }
.step-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }
.summary { background: var(--bg-2); border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; display: grid; gap: 6px; }
.summary div { display: flex; justify-content: space-between; gap: 10px; }
.empty { color: var(--muted); padding: 16px; text-align: center; background: var(--bg-2); border-radius: 14px; }

/* ---------- profile page ---------- */
.profile-hero { padding: 56px 0 32px; }
.profile-hero .wrap { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; }
.profile-hero h1 { font-size: clamp(2.6rem, 7vw, 4rem); margin: 0; }
.profile-meta { display: flex; gap: 28px; flex-wrap: wrap; margin: 14px 0 20px; color: var(--muted); font-size: .9rem; }
.profile-meta b { color: var(--text); font-size: 1.4rem; font-weight: 700; display: block; line-height: 1.1; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours-table td:last-child { text-align: right; }
.hours-table tr.today td { font-weight: 700; }
@media (max-width: 640px) { .profile-hero .wrap { grid-template-columns: 1fr; justify-items: start; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: .92rem; margin-top: 40px; }
.site-footer b { color: var(--text); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer a { text-decoration: underline; }

/* ---------- toast + modal ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120px); background: var(--accent); color: var(--on-accent); font-weight: 600;
  padding: 12px 20px; border-radius: 999px; transition: transform .3s; z-index: 100; max-width: calc(100% - 32px); text-align: center; box-shadow: var(--shadow-hover); }
.toast.show { transform: translateX(-50%) translateY(0); }
dialog { background: var(--card); color: var(--text); border: 0; border-radius: 20px; padding: 0; width: min(560px, calc(100% - 32px)); box-shadow: 0 24px 64px rgba(0, 0, 0, .2); }
dialog::backdrop { background: rgba(0, 0, 0, .45); }
dialog .dlg-body { padding: 24px; max-height: 80vh; overflow: auto; }
dialog .dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); }
dialog .dlg-head h3 { margin: 0; }
.x { background: var(--bg-2); border: 0; color: var(--text); font-size: 1.3rem; cursor: pointer; line-height: 1; width: 34px; height: 34px; border-radius: 50%; }

/* ---------- the shop: photo grid + full screen viewer ---------- */
.salon-side { display: grid; gap: 12px; justify-items: start; max-width: 520px; }
.salon-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 10px; }
.salon-ph { display: block; width: 100%; height: 100%; padding: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--bg-2); cursor: zoom-in; color: inherit; font: inherit; }
div.salon-ph { cursor: default; }
.salon-ph > img, .salon-ph > .ph-empty { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .4s, transform .5s; }
.salon-ph:hover > img, .salon-ph:focus-visible > img { filter: none; transform: scale(1.03); }
@media (hover: none) { .salon-ph > img { filter: none; } } /* phones and tablets: no hover, so the photos stay in colour */
.salon-ph:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.salon-ph { grid-column: span var(--c4, 1); grid-row: span var(--r4, 1); }
@media (max-width: 860px) { .salon-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; } .salon-ph { grid-column: span var(--c2, 1); } }
dialog.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: rgba(0, 0, 0, .94); color: #fff; overflow: hidden; touch-action: pan-y; }
dialog.lightbox[open] { display: grid; place-items: center; }
dialog.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100dvh - 130px); object-fit: contain; border-radius: 12px; user-select: none; -webkit-user-select: none; }
.lb-btn { position: absolute; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; width: 48px; height: 48px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover, .lb-btn:focus-visible { background: rgba(0, 0, 0, .85); }
.lb-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lb-x { top: 14px; right: 14px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
[dir="rtl"] .lb-x { right: auto; left: 14px; }
[dir="rtl"] .lb-prev { left: auto; right: 14px; }
[dir="rtl"] .lb-next { right: auto; left: 14px; }
[dir="rtl"] .lb-nav span { display: inline-block; transform: scaleX(-1); }
.lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); font: 600 .85rem var(--mono); color: rgba(255, 255, 255, .8); }
.lightbox.single .lb-nav, .lightbox.single .lb-count { display: none; }
@media (max-width: 600px) { .lb-nav { top: auto; bottom: 10px; transform: none; } .lb-count { bottom: 24px; } }

/* Instagram link in the footer */
.site-footer a.ig-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 7px 14px 7px 10px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--text); font-weight: 600; text-decoration: none; transition: border-color .15s; }
.site-footer a.ig-link:hover, .site-footer a.ig-link:focus-visible { border-color: var(--text); }
.ig-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ig-link .ig-dot { fill: currentColor; stroke: none; }
[dir="rtl"] .site-footer a.ig-link { padding: 7px 10px 7px 14px; }
.ig-link[hidden] { display: none !important; }
