/* ─────────────────────────────────────────────
   BARBERSHOP AVNI — "the sign at night"
   Pure black night, white + amber neon, chrome pole.
   ───────────────────────────────────────────── */

:root {
  --night: #060606;
  --panel: #0d0d0d;
  --line: #1e1e1e;
  --ink: #f3efe6;
  --ink-dim: #9a958a;
  --amber: #ffc426;
  --amber-deep: #e0a400;
  --neon-white: #fffdf5;
  --red: #d92b2b;
  --font-display: "Big Shoulders Display", sans-serif;
  --font-body: "Archivo", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--night);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  /* `clip` — never `hidden`: overflow-x:hidden on body computes overflow-y to
     `auto`, turning body into the scroll container and breaking page scroll. */
  overflow-x: clip;
}

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

::selection { background: var(--amber); color: #000; }

/* ── ambient night ─────────────────────────── */
.night { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.night__glow {
  position: absolute; top: -20vh; left: 50%; transform: translateX(-50%);
  width: 140vw; height: 90vh;
  background: radial-gradient(ellipse at center, rgba(255, 196, 38, 0.07), transparent 60%);
}
.night__lights {
  position: absolute; top: 0; bottom: 0; width: 90px; opacity: 0.5;
  background-image:
    radial-gradient(circle 2px at 30% 12%, #ffdf8e 40%, transparent 60%),
    radial-gradient(circle 2px at 70% 26%, #ffd257 40%, transparent 60%),
    radial-gradient(circle 1.6px at 42% 38%, #fff2c9 40%, transparent 60%),
    radial-gradient(circle 2px at 62% 55%, #ffdf8e 40%, transparent 60%),
    radial-gradient(circle 1.6px at 34% 68%, #ffd257 40%, transparent 60%),
    radial-gradient(circle 2px at 68% 82%, #fff2c9 40%, transparent 60%),
    radial-gradient(circle 1.6px at 45% 93%, #ffdf8e 40%, transparent 60%);
  background-size: 100% 340px;
  animation: twinkle 4s ease-in-out infinite alternate;
}
.night__lights--left { left: 0; }
.night__lights--right { right: 0; animation-delay: 2s; }
@keyframes twinkle { from { opacity: 0.28; } to { opacity: 0.6; } }
.night__grain {
  position: absolute; inset: 0; opacity: 0.5; mix-blend-mode: overlay;
  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%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── nav ───────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.7rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(6, 6, 6, 0.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__brand { display: flex; align-items: center; gap: 0.55rem; }
.nav__brand img { mix-blend-mode: screen; }
.nav__brand span {
  font-family: var(--font-display); font-weight: 800; font-size: 1.35rem;
  letter-spacing: 0.14em; color: var(--amber);
}
.nav__links { display: flex; gap: clamp(0.75rem, 3vw, 1.8rem); font-size: 0.86rem; color: var(--ink-dim); }
.nav__links a { transition: color 0.2s; letter-spacing: 0.04em; white-space: nowrap; }
.nav__links a:hover { color: var(--amber); }
/* Keep the section links on phones — this is a one-pager, they're the only
   way to jump around. Shrink instead of hiding. */
@media (max-width: 560px) {
  .nav { padding-inline: 0.75rem; gap: 0.5rem; }
  .nav__brand span { font-size: 1.1rem; }
  .nav__links { font-size: 0.76rem; gap: 0.7rem; }
  .nav__cta { padding: 0.45rem 0.7rem; font-size: 0.8rem; }
  .nav__cta svg { display: none; }
}
@media (max-width: 380px) { .nav__links a:nth-child(3) { display: none; } }

/* ── buttons ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; font-size: 1rem;
  padding: 0.72rem 1.5rem; border-radius: 3px;
  transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.2s, color 0.2s;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--primary {
  background: var(--amber); color: #131109;
  box-shadow: 0 0 22px rgba(255, 196, 38, 0.35);
}
.btn--primary:hover { box-shadow: 0 0 42px rgba(255, 196, 38, 0.6); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); background: rgba(255,255,255,0.02); }
.btn--ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn--whatsapp { background: #1faa53; color: #04150a; font-size: 0.9rem; padding: 0.5rem 1rem; }
.btn--whatsapp:hover { box-shadow: 0 0 26px rgba(31, 170, 83, 0.5); }

/* ── neon type ─────────────────────────────── */
.neon-white {
  color: var(--neon-white);
  text-shadow:
    0 0 6px rgba(255, 253, 245, 0.9),
    0 0 18px rgba(255, 253, 245, 0.55),
    0 0 42px rgba(255, 253, 245, 0.3);
}
.neon-yellow {
  color: var(--amber);
  text-shadow:
    0 0 8px rgba(255, 196, 38, 0.95),
    0 0 24px rgba(255, 196, 38, 0.6),
    0 0 64px rgba(255, 170, 0, 0.4);
}

@keyframes flicker-on {
  0% { opacity: 0; }  6% { opacity: 1; }  8% { opacity: 0.2; }
  10% { opacity: 1; } 18% { opacity: 0.4; } 22% { opacity: 1; }
  40% { opacity: 0.85; } 44% { opacity: 1; } 100% { opacity: 1; }
}
.flicker { animation: flicker-on 2.2s ease-in both; }
.flicker-late { animation: flicker-on 2.8s ease-in 0.35s both; }
.flicker-slow { animation: flicker-on 3.4s ease-in 0.15s both; }

/* ── hero ──────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100svh - 58px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr) auto;
  align-items: center;
  gap: clamp(0.5rem, 3vw, 2rem);
  padding: 2rem clamp(1rem, 4vw, 3rem) 4rem;
  max-width: 1200px; margin: 0 auto;
}
.hero__mascot img {
  width: min(38vw, 400px);
  mix-blend-mode: screen;             /* melts the black glow into the night */
  filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.12));
  animation: mascot-breathe 5s ease-in-out infinite alternate;
}
@keyframes mascot-breathe {
  from { filter: drop-shadow(0 0 24px rgba(255,255,255,0.10)); }
  to   { filter: drop-shadow(0 0 44px rgba(255,244,200,0.22)); }
}

.hero__sign { text-align: center; }
.hero__kicker {
  font-family: var(--font-display); font-weight: 500;
  letter-spacing: 0.55em; font-size: clamp(0.7rem, 1.6vw, 0.95rem);
  margin-bottom: 0.8rem;
}
.hero__title { display: flex; flex-direction: column; line-height: 0.92; }
.hero__barbershop {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.6rem, 8vw, 5.4rem); letter-spacing: 0.08em;
}
.hero__avni {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(4.2rem, 14vw, 9.5rem); letter-spacing: 0.22em;
  margin-right: -0.22em; /* optical: compensate tracking */
}
.hero__bars { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 0.9rem; }
.bar {
  height: 7px; flex: 1; max-width: 180px; border-radius: 4px;
  background: var(--amber);
  box-shadow: 0 0 14px rgba(255, 196, 38, 0.9), 0 0 40px rgba(255, 170, 0, 0.5);
  animation: flicker-on 3s ease-in 0.6s both;
}
.hero__tag { margin-top: 1.6rem; color: var(--ink-dim); font-size: clamp(0.95rem, 2vw, 1.1rem); }
.hero__tag em { color: var(--ink); font-style: normal; border-bottom: 1px solid var(--amber-deep); }
.hero__actions { margin-top: 2rem; display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; bottom: 1.1rem; left: 50%; transform: translateX(-50%);
  color: var(--amber); font-size: 0.8rem; opacity: 0.7;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }

/* barber pole */
.pole { display: flex; flex-direction: column; align-items: center; }
.pole__cap {
  width: 34px; height: 16px; border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #e8e8e8, #6d6d6d 60%, #2c2c2c);
}
.pole__cap--btm { border-radius: 3px 3px 8px 8px; transform: scaleY(-1); }
.pole__tube {
  width: 26px; height: clamp(180px, 34vh, 300px); overflow: hidden;
  border-radius: 13px; border: 2px solid #3a3a3a;
  box-shadow: inset 6px 0 10px rgba(255,255,255,0.25), inset -6px 0 12px rgba(0,0,0,0.55),
              0 0 24px rgba(255,255,255,0.08);
  background: #f4f1ea;
}
.pole__stripes {
  width: 100%; height: 200%;
  background: repeating-linear-gradient(
    -55deg,
    var(--red) 0 14px, #f4f1ea 14px 28px, #274b9f 28px 42px, #f4f1ea 42px 56px
  );
  animation: pole-spin 2.6s linear infinite;
}
@keyframes pole-spin { from { transform: translateY(-50%); } to { transform: translateY(0); } }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 1rem; }
  .hero__mascot { order: -1; display: flex; justify-content: center; }
  .hero__mascot img { width: min(58vw, 300px); }
  .pole { display: none; }
}

/* ── marquee ───────────────────────────────── */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--amber); overflow: hidden; white-space: nowrap;
  transform: rotate(-0.6deg) scale(1.01);
}
.marquee__track { display: inline-flex; animation: marquee 26s linear infinite; }
.marquee__track span {
  font-family: var(--font-display); font-weight: 800; letter-spacing: 0.2em;
  font-size: 1.05rem; color: #171204; padding: 0.55rem 0;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── sections ──────────────────────────────── */
.section {
  max-width: 880px; margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 6rem) clamp(1rem, 4vw, 2rem) 0;
  scroll-margin-top: 72px; /* clears the sticky header on anchor jumps */
}
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem 1rem; margin-bottom: 2.2rem; }
.section__no {
  font-family: var(--font-display); font-weight: 500; color: var(--amber);
  font-size: 1rem; letter-spacing: 0.2em;
}
.section__head h2 {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2rem, 6vw, 3.2rem); letter-spacing: 0.06em;
}
.section__note { margin-top: 1.4rem; color: var(--ink-dim); font-size: 0.88rem; }

/* prices */
.prices { display: grid; gap: 0.4rem; }
.price {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.05rem 1.1rem; border: 1px solid transparent; border-radius: 4px;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.price:hover {
  border-color: rgba(255, 196, 38, 0.35); background: rgba(255, 196, 38, 0.03);
  box-shadow: 0 0 30px rgba(255, 196, 38, 0.07) inset;
}
.price h3 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 1.35rem;
}
.price__dots { flex: 1; border-bottom: 2px dotted #333; transform: translateY(-0.3rem); }
.price__amt {
  font-family: var(--font-display); font-weight: 800; font-size: 1.9rem;
  color: var(--amber);
  text-shadow: 0 0 16px rgba(255, 196, 38, 0.45);
}

/* hours */
.hours { display: grid; gap: 0.9rem; max-width: 560px; }
.hours li { display: flex; align-items: baseline; gap: 0.9rem; font-size: 1.02rem; }
.hours__dots { flex: 1; border-bottom: 2px dotted #333; }
.hours li span:last-child { font-weight: 600; letter-spacing: 0.03em; }
.hours--closed { color: var(--ink-dim); }
.hours--closed span:last-child { color: var(--red); font-weight: 600; }
.open-badge {
  margin-left: auto; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  padding: 0.3rem 0.7rem; border-radius: 999px; text-transform: uppercase;
}
.open-badge--open { background: rgba(31, 170, 83, 0.14); color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.4); }
.open-badge--closed { background: rgba(217, 43, 43, 0.12); color: #f87171; border: 1px solid rgba(248, 113, 113, 0.35); }

/* location */
.location { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.2rem; align-items: center; }
.location__addr {
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 700;
  letter-spacing: 0.05em; line-height: 1.25;
}
.location__actions { display: flex; gap: 0.8rem; margin-top: 1.6rem; flex-wrap: wrap; }
.location__photo img {
  border-radius: 6px; border: 1px solid var(--line);
  filter: saturate(1.1); box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transform: rotate(1.2deg);
}
@media (max-width: 720px) { .location { grid-template-columns: 1fr; } }

/* footer */
.footer {
  margin-top: clamp(4rem, 10vw, 7rem); padding: 3rem 1rem 3.5rem;
  border-top: 1px solid var(--line); text-align: center;
  display: grid; justify-items: center; gap: 0.6rem;
}
.footer img { mix-blend-mode: screen; opacity: 0.9; }
.footer__name {
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.3em;
  font-size: 0.95rem; color: var(--ink-dim);
}
.footer__name span { color: var(--amber); }
.footer__small { color: #55514a; font-size: 0.78rem; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ── phones ────────────────────────────────── */
@media (max-width: 560px) {
  .hero { padding-bottom: 3rem; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 100%; padding-block: 0.9rem; }  /* thumb-sized */
  .hero__tag { font-size: 0.95rem; }

  /* Dotted leaders don't survive narrow columns — drop them and let the row breathe. */
  .price { gap: 0.8rem; padding: 0.85rem 0.6rem; }
  .price h3 { font-size: 1.15rem; }
  .price__dots { display: none; }
  .price__amt { font-size: 1.5rem; margin-left: auto; }

  .hours li { font-size: 0.95rem; }
  .hours__dots { min-width: 1.5rem; }

  .location__addr { font-size: 1.35rem; }
  .location__actions .btn { flex: 1 1 100%; }
  .location__photo figcaption { text-align: left; }

  .section__note { font-size: 0.82rem; }
}

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