:root {
  --bg: #0f0f10;
  --bg-soft: #171619;
  --card: #1f1d22;
  --muted: #a8a1a1;
  --text: #f2ece4;
  --gold: #b9904f;
  --gold-soft: #8f6c3c;
  --line: #2e2a2d;
  --radius: 16px;
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 0%, #2b2520 0%, #121214 35%, #0b0b0c 100%);
  overflow-x: hidden;
}

.loader {
  position: fixed; inset: 0; display: grid; place-content: center; gap: 14px;
  background: #0c0c0d; z-index: 1100; transition: opacity .5s ease, visibility .5s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader__ring {
  width: 54px; height: 54px; border-radius: 50%; border: 3px solid #3d3530;
  border-top-color: var(--gold); animation: spin 1s linear infinite;
}
.loader__label { color: var(--muted); margin: 0; letter-spacing: .08em; font-size: .85rem; }
@keyframes spin { to { transform: rotate(360deg); } }

.scroll-progress {
  position: fixed; top: 0; left: 0; width: 0%; height: 3px;
  background: linear-gradient(90deg, #876439, #c29b5d); z-index: 1090;
}

.navbar {
  position: sticky; top: 0; z-index: 1000; display: flex; align-items: center; justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 3rem); backdrop-filter: blur(10px);
  background: rgba(10, 10, 11, 0.65); border-bottom: 1px solid transparent; transition: .3s ease;
}
.navbar.scrolled { border-bottom-color: #282427; background: rgba(8,8,9,0.85); }
.brand { color: var(--text); text-decoration: none; letter-spacing: .2em; font-family: "Cinzel", serif; }
.nav-links { display: flex; align-items: center; gap: 1rem; }
.nav-links a, .lang-switch {
  color: var(--muted); text-decoration: none; font-size: .9rem; border: 0; background: none; cursor: pointer;
  transition: color .25s ease, transform .25s ease;
}
.nav-links a:hover, .lang-switch:hover { color: var(--gold); transform: translateY(-2px); }
.lang-switch {
  border: 1px solid #3b3127; border-radius: 999px; padding: .35rem .7rem;
}
.nav-toggle {
  display: none; border: 1px solid #3b3127; background: transparent; color: var(--text); border-radius: 8px; padding: .3rem .5rem;
}

.hero {
  position: relative; min-height: 100vh; display: grid; place-items: center; text-align: center;
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,12,.5), rgba(7,7,8,.85));
}
.hero__content {
  position: relative; z-index: 2; max-width: 760px; padding: 1rem;
}
.eyebrow { text-transform: uppercase; letter-spacing: .2em; color: var(--gold); font-size: .78rem; }
h1, h2, h3 { margin: .4rem 0; }
h1 { font-family: "Cinzel", serif; font-size: clamp(2.1rem, 6vw, 4rem); }
.hero p { color: #d8d0c7; }

.section { padding: clamp(4rem, 8vw, 7rem) 1rem; }
.section__inner { max-width: 1120px; margin: 0 auto; }
.section-title h2 { font-size: clamp(1.5rem, 4vw, 2.4rem); font-family: "Cinzel", serif; }
.about__story { max-width: 780px; color: #c9c1b8; line-height: 1.8; }

.service-grid {
  margin-top: 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem;
}
.service-card {
  background: linear-gradient(160deg, #1f1b1f, #171519); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem; transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.service-card:hover { transform: translateY(-8px); border-color: #59452a; box-shadow: var(--shadow); }
.service-card p { color: #bdb5ab; }
.service-card span { color: var(--gold); font-weight: 700; }

.barber-grid {
  margin-top: 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem;
}
.barber-card { perspective: 1000px; min-height: 320px; }
.barber-card__inner {
  position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s ease;
}
.barber-card:hover .barber-card__inner { transform: rotateY(180deg); }
.barber-card__front, .barber-card__back {
  position: absolute; inset: 0; border-radius: var(--radius); backface-visibility: hidden;
  border: 1px solid var(--line); overflow: hidden; background: var(--card);
}
.barber-card__front img { width: 100%; height: 78%; object-fit: cover; }
.barber-card__front h3 { padding: .7rem 1rem; }
.barber-card__back {
  transform: rotateY(180deg); display: grid; place-content: center; text-align: center; padding: 1rem;
}
.barber-card__back p { color: #c9c1b8; }

.gallery-grid {
  margin-top: 2rem;
  columns: 3 280px;
  column-gap: 1rem;
}
.gallery-item { break-inside: avoid; margin: 0 0 1rem; border-radius: 14px; overflow: hidden; border: 1px solid #2d282c; }
.gallery-item img {
  width: 100%; display: block; transition: transform .5s ease, filter .5s ease; filter: brightness(.86);
}
.gallery-item:hover img { transform: scale(1.08); filter: brightness(1); }

.booking-form {
  margin-top: 1.5rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  background: rgba(19,18,20,.78); border: 1px solid #2e292d; border-radius: var(--radius); padding: 1.2rem;
}
.booking-form label { display: grid; gap: .45rem; color: #d7d0c7; font-size: .9rem; }
.booking-form input, .booking-form select {
  width: 100%; padding: .75rem .85rem; color: var(--text); background: #111114; border: 1px solid #302b2e;
  border-radius: 10px; outline: none; transition: border-color .25s ease, box-shadow .25s ease;
}
.booking-form input:focus, .booking-form select:focus {
  border-color: #7a5b33; box-shadow: 0 0 0 3px rgba(142, 109, 58, .25);
}
.form-message { margin: 0; align-self: end; color: #b5deab; }

.btn {
  display: inline-flex; justify-content: center; align-items: center; border: 0; cursor: pointer;
  border-radius: 999px; padding: .8rem 1.3rem; text-decoration: none; font-weight: 600;
}
.btn-primary {
  background: linear-gradient(120deg, #8c6636, #b9904f); color: #120f0b;
  transition: transform .3s ease, box-shadow .3s ease;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(145, 108, 56, .35); }
.glow-on-hover { position: relative; overflow: hidden; }
.glow-on-hover::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-130%);
  background: linear-gradient(105deg, transparent 25%, rgba(255,255,255,.4), transparent 75%);
}
.glow-on-hover:hover::after { animation: sheen .9s ease; }
@keyframes sheen { to { transform: translateX(130%); } }

.footer { background: #0a0a0b; border-top: 1px solid #222; text-align: center; }
.footer h2 { font-family: "Cinzel", serif; }
.footer p { color: #b3aba1; margin: .25rem 0; }
.socials { margin-top: .6rem; display: flex; gap: 1rem; justify-content: center; }
.socials a { color: #ccbea8; text-decoration: none; transition: color .3s ease; }
.socials a:hover { color: var(--gold); }

.reveal {
  opacity: 0; transform: translateY(30px) scale(.98);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0) scale(1); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 72px; right: 1rem; flex-direction: column; align-items: stretch;
    background: rgba(12,12,13,.97); border: 1px solid #2d282b; border-radius: 12px; padding: .7rem; min-width: 180px;
    transform: scale(.97); opacity: 0; pointer-events: none; transition: .2s ease;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
