/* ═══════════════════════════════════════════════════════════════
   Nagymező Barber Co. — dark classic
   near-black · warm gold · bone text · Marcellus + Jost
   ═══════════════════════════════════════════════════════════════ */

:root {
  --black:     #0B0907;
  --black-2:   #14100C;
  --panel:     rgba(255, 244, 224, 0.04);
  --bone:      #EFE6D8;
  --bone-dim:  rgba(239, 230, 216, 0.62);
  --gold:      #C9A25E;
  --gold-soft: rgba(201, 162, 94, 0.35);
  --line:      rgba(239, 230, 216, 0.12);

  --font-display: "Marcellus", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Segoe UI", Verdana, sans-serif;

  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(70rem 40rem at 80% -15%, rgba(201, 162, 94, 0.08), transparent 60%),
    var(--black);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--black); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* ─── Typography ─────────────────────────────────────────────── */

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.06; letter-spacing: 0.01em; }
h1 { font-size: clamp(3rem, 8vw, 6.2rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: 1.35rem; }
h1 span { color: var(--gold); }

.eyebrow {
  display: inline-block;
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  padding: 0.4em 1.1em;
  margin-bottom: 1.5rem;
  background: rgba(201, 162, 94, 0.06);
}

/* ─── Buttons ────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-weight: 500; font-size: 0.95rem; letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  transition: transform 0.5s var(--ease-spring), background 0.5s var(--ease-spring), border-color 0.5s var(--ease-spring), color 0.5s var(--ease-spring);
  will-change: transform;
}
.btn:active { transform: scale(0.97); }

.btn--gold {
  background: linear-gradient(140deg, #D8B26C, #B8894A);
  color: #14100C;
  padding-right: 0.55rem;
  box-shadow: 0 16px 34px -16px rgba(201, 162, 94, 0.55);
}
.btn--gold:hover { transform: translateY(-2px); }
.btn__orb {
  width: 2rem; height: 2rem; border-radius: 50%;
  background: rgba(11, 9, 7, 0.18);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.5s var(--ease-spring), background 0.5s var(--ease-spring);
}
.btn--gold:hover .btn__orb { transform: translate(2px, -2px) scale(1.06); background: rgba(11, 9, 7, 0.3); }

.btn--line { border: 1px solid var(--line); }
.btn--line:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* ─── Navigation ─────────────────────────────────────────────── */

.nav-wrap {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: center;
  padding: 1.2rem 1rem 0;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex; align-items: center; gap: 2rem;
  background: rgba(15, 12, 9, 0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(239, 230, 216, 0.09);
  border-radius: 999px;
  padding: 0.55rem 0.6rem 0.55rem 1.3rem;
  box-shadow: 0 20px 45px -22px rgba(0, 0, 0, 0.8);
}
.nav__logo { display: flex; align-items: center; gap: 0.65rem; font-family: var(--font-display); font-size: 1.02rem; letter-spacing: 0.04em; }
.nav__logo-mark {
  width: 2.1rem; height: 2.1rem; border-radius: 0.7rem;
  border: 1px solid var(--gold-soft);
  color: var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.8rem; letter-spacing: 0.05em;
}
.nav__links { display: flex; gap: 1.5rem; font-size: 0.9rem; font-weight: 400; }
.nav__links a { position: relative; padding: 0.3rem 0; color: var(--bone-dim); transition: color 0.4s var(--ease-spring); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease-spring);
}
.nav__links a:hover { color: var(--bone); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.lang {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5em 0.95em;
  color: var(--bone-dim);
  transition: border-color 0.4s var(--ease-spring), color 0.4s var(--ease-spring), transform 0.4s var(--ease-spring);
}
.lang:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }

.nav__burger {
  display: none;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; cursor: pointer;
  position: relative; z-index: 130;
}
.nav__burger span {
  position: absolute; left: 50%; top: 50%;
  width: 1.1rem; height: 1px; background: var(--bone);
  transition: transform 0.5s var(--ease-spring);
}
.nav__burger span:nth-child(1) { transform: translate(-50%, calc(-50% - 3px)); }
.nav__burger span:nth-child(2) { transform: translate(-50%, calc(-50% + 3px)); }
.nav__burger.is-open span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(11, 9, 7, 0.9);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.6s var(--ease-spring), visibility 0.6s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 1.2rem; text-align: center; }
.mobile-menu li {
  opacity: 0; transform: translateY(1.2rem);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: calc(var(--i) * 70ms);
}
.mobile-menu.is-open li { opacity: 1; transform: translateY(0); }
.mobile-menu a { font-family: var(--font-display); font-size: 2rem; }
.mobile-menu__foot { font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bone-dim); }

/* ─── Hero ───────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; opacity: 0.55; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(11, 9, 7, 0.96) 25%, rgba(11, 9, 7, 0.55) 60%, rgba(11, 9, 7, 0.35)),
    linear-gradient(to top, var(--black) 2%, transparent 30%);
}
.hero__inner {
  max-width: 1240px; width: 100%;
  margin: 0 auto;
  padding: 8rem 2rem 6rem;
}
.hero__title { margin-bottom: 1.6rem; text-shadow: 0 10px 60px rgba(0,0,0,0.6); }
.hero__lede { max-width: 30rem; color: var(--bone-dim); font-size: 1.12rem; margin-bottom: 2.4rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__status { margin-top: 2.6rem; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-dim); display: flex; align-items: center; gap: 0.7rem; }
.status-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #67B06B; box-shadow: 0 0 12px rgba(103, 176, 107, 0.9); }
.status-dot.is-closed { background: #B0675F; box-shadow: 0 0 12px rgba(176, 103, 95, 0.9); }

.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  width: 1px; height: 3.4rem; overflow: hidden;
}
.hero__scroll span {
  position: absolute; left: 0; top: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: drip 2.2s var(--ease-out) infinite;
}
@keyframes drip { 60% { top: 100%; } 100% { top: 100%; } }

/* ─── Ribbon ─────────────────────────────────────────────────── */

.ribbon {
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 0.9rem 0;
  background: var(--black-2);
}
.ribbon__track { display: inline-flex; animation: ribbon 40s linear infinite; }
.ribbon__track span {
  font-family: var(--font-display);
  font-size: 0.95rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(239, 230, 216, 0.5);
  padding-right: 2rem;
}
@keyframes ribbon { to { transform: translateX(-50%); } }

/* ─── Sections ───────────────────────────────────────────────── */

.section { padding: clamp(6rem, 11vw, 9.5rem) 2rem; max-width: 1240px; margin: 0 auto; }
.section--edge { max-width: none; background: var(--black-2); }
.section--edge > * { max-width: 1176px; margin-left: auto; margin-right: auto; }
.section__head { max-width: 44rem; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.section__sub { color: var(--bone-dim); margin-top: 1.2rem; }

/* ─── Menu / price list ──────────────────────────────────────── */

.menu { display: flex; flex-direction: column; }
.menu__row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 1fr auto;
  align-items: end; gap: 1.5rem;
  padding: 1.7rem 1rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.5s var(--ease-spring), padding 0.5s var(--ease-spring);
}
.menu__row:first-child { border-top: 1px solid var(--line); }
.menu__row:hover { background: var(--panel); padding-left: 1.6rem; padding-right: 1.6rem; }
.menu__row h3 { margin-bottom: 0.25rem; }
.menu__row p { color: var(--bone-dim); font-size: 0.95rem; }
.menu__dots { border-bottom: 1px dotted rgba(239, 230, 216, 0.25); margin-bottom: 0.9rem; }
.menu__meta { display: flex; align-items: baseline; gap: 1.6rem; white-space: nowrap; }
.menu__time { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-dim); }
.menu__price { font-family: var(--font-display); font-size: 1.45rem; color: var(--gold); }

/* ─── Crew ───────────────────────────────────────────────────── */

.crew { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.crew__card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1.8rem;
  padding: 0.45rem;
  transition: transform 0.65s var(--ease-spring), border-color 0.65s var(--ease-spring);
}
.crew__card:hover { transform: translateY(-6px); border-color: var(--gold-soft); }
.crew__card figure { overflow: hidden; border-radius: 1.45rem; }
.crew__card img {
  width: 100%; aspect-ratio: 4 / 4.5; object-fit: cover;
  filter: saturate(0.85);
  transition: transform 1.2s var(--ease-spring);
}
.crew__card:hover img { transform: scale(1.04); }
.crew__body { padding: 1.4rem 1.2rem 1.2rem; }
.crew__role { color: var(--gold); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; margin: 0.3rem 0 0.7rem; }
.crew__body p:last-child { color: var(--bone-dim); font-size: 0.95rem; }

/* ─── Mosaic gallery ─────────────────────────────────────────── */

.mosaic { columns: 3; column-gap: 1rem; }
.mosaic__item {
  overflow: hidden; border-radius: 1.3rem; border: 1px solid var(--line);
  break-inside: avoid; margin-bottom: 1rem;
}
.mosaic__item img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  filter: saturate(0.9);
  transition: transform 1.2s var(--ease-spring), filter 1.2s var(--ease-spring);
}
.mosaic__item:hover img { transform: scale(1.05); filter: saturate(1.05); }
.mosaic__item--wide img { aspect-ratio: 16 / 10; }
.mosaic__item--tall img { aspect-ratio: 3 / 4; }

/* ─── Visit ──────────────────────────────────────────────────── */

.visit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.visit__copy p { color: var(--bone-dim); max-width: 28rem; }
.visit__copy h2 { margin-bottom: 1.2rem; }
.visit__copy .hero__actions { margin-top: 2rem; }

.visit__panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1.8rem;
  padding: 0.45rem;
  display: grid; grid-template-columns: 1fr 1fr;
}
.visit__block { padding: 2rem 1.8rem; }
.visit__block + .visit__block { border-left: 1px solid var(--line); }
.visit__block h3 { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.22em; text-transform: uppercase; font-family: var(--font-body); font-weight: 500; margin-bottom: 1rem; }
.visit__block p { font-size: 0.98rem; }
.visit__block strong { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; }
.visit__hint { margin-top: 1rem; color: var(--bone-dim); font-size: 0.85rem !important; }

.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px dotted rgba(239, 230, 216, 0.15); font-size: 0.95rem; }
.hours div:last-child { border-bottom: none; }
.hours dt { color: var(--bone-dim); }
.hours div.is-today dt, .hours div.is-today dd { color: var(--gold); }

/* ─── Footer ─────────────────────────────────────────────────── */

.footer {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.6rem;
  max-width: 1240px; margin: 0 auto;
  padding: 2.2rem 2rem 2.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem; color: var(--bone-dim);
}
.footer__credit strong { color: var(--bone); }

/* ─── Reveal animations ──────────────────────────────────────── */

.reveal, .reveal-img {
  opacity: 0;
  transform: translateY(2.2rem);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out);
}
.reveal.is-in, .reveal-img.is-in { opacity: 1; transform: translateY(0); filter: blur(0); }
.d1 { transition-delay: 90ms; }
.d2 { transition-delay: 180ms; }
.d3 { transition-delay: 270ms; }
.d4 { transition-delay: 360ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal, .reveal-img { opacity: 1; transform: none; filter: none; }
}

/* ─── Responsive ─────────────────────────────────────────────── */

@media (max-width: 1000px) {
  .crew { grid-template-columns: 1fr; max-width: 26rem; margin: 0 auto; }
  .mosaic { columns: 2; }
  .visit { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav__links, .nav__cta, .nav > .lang { display: none; }
  .nav__burger { display: block; }
  .nav { gap: 1rem; padding: 0.5rem 0.5rem 0.5rem 1.1rem; }
  .nav__logo-text { font-size: 0.9rem; }

  .section { padding-left: 1.2rem; padding-right: 1.2rem; }

  .menu__row { grid-template-columns: 1fr; gap: 0.6rem; align-items: start; }
  .menu__dots { display: none; }
  .menu__meta { justify-content: space-between; width: 100%; }

  .visit__panel { grid-template-columns: 1fr; }
  .visit__block + .visit__block { border-left: none; border-top: 1px solid var(--line); }

  .footer { flex-direction: column; text-align: center; }
}
