/* Vitrine de barbearia da Capri. Preto quente + dourado, Outfit + Instrument Serif. */
:root {
  --bg: #0f0d0b;
  --bg-2: #171411;
  --ink: #f4efe8;
  --ink-muted: #b9afa3;
  --line: rgba(244, 239, 232, 0.14);
  --gold: #c9a15a;
  --gold-ink: #1a1408;
  --glass: rgba(255, 255, 255, 0.12);
  --glass-line: rgba(255, 255, 255, 0.22);
  --radius: 28px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.83, 0, 0.17, 1);
  --sans: "Outfit", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
i { font-family: var(--serif); font-style: italic; font-weight: 400; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

.demo-bar {
  position: relative; z-index: 60;
  text-align: center; font-size: 12.5px; letter-spacing: 0.02em;
  padding: 7px 16px; background: var(--gold); color: var(--gold-ink);
}
.demo-bar a { text-decoration: underline; font-weight: 600; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; z-index: 50; left: 50%; top: 46px; transform: translateX(-50%);
  width: min(1240px, calc(100% - 2 * var(--gutter)));
  display: flex; align-items: center; gap: 24px;
  padding: 12px 14px 12px 22px;
  border-radius: 999px;
  background: rgba(20, 17, 14, 0.35);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--glass-line);
  transition: top 0.5s var(--ease-out), background 0.4s;
}
.nav.is-scrolled { top: 12px; background: rgba(15, 13, 11, 0.72); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 18px; white-space: nowrap; }
.brand svg { width: 28px; height: 28px; color: var(--gold); }
.brand em { font-family: var(--serif); color: var(--gold); }
.nav nav { display: flex; gap: 28px; margin-left: auto; }
.nav nav a { font-size: 15px; color: var(--ink-muted); position: relative; padding: 6px 0; transition: color 0.25s; }
.nav nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease-out);
}
.nav nav a:hover { color: var(--ink); }
.nav nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.menu-btn { display: none; }

/* ---------- PILLS ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 6px 8px 6px 22px; border-radius: 999px;
  font: 500 15px var(--sans); cursor: pointer; border: 1px solid transparent;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.35s var(--ease-out);
  will-change: transform;
}
.nav > .pill { padding: 6px 22px; }
.pill__icon {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-size: 17px; transition: transform 0.45s var(--ease-out);
}
.pill:hover .pill__icon { transform: rotate(45deg); }
.pill--light { background: var(--ink); color: var(--bg); }
.pill--light .pill__icon { background: var(--bg); color: var(--ink); }
.pill--ghost { border-color: rgba(255, 255, 255, 0.6); color: var(--ink); }
.pill--ghost .pill__icon { background: var(--ink); color: var(--bg); }
.pill--ghost:hover { background: rgba(255, 255, 255, 0.08); }
.pill--gold { background: var(--gold); color: var(--gold-ink); padding: 6px 24px; justify-content: center; }
.pill--gold svg { width: 20px; height: 20px; }
.pill:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- HERO ---------- */
.hero { padding: 22px var(--gutter) 0; height: calc(100svh - 32px); min-height: 620px; }
.hero__frame {
  position: relative; height: 100%; border-radius: var(--radius); overflow: hidden;
  clip-path: inset(8% 6% 8% 6% round var(--radius));
  animation: frame-open 1.6s var(--ease-io) 0.1s forwards;
  transform-origin: 50% 0%;
}
@keyframes frame-open { to { clip-path: inset(0 0 0 0 round var(--radius)); } }
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%;
  transform: scale(1.25); animation: hero-zoom 2.4s var(--ease-out) 0.1s forwards;
}
@keyframes hero-zoom { to { transform: scale(1.04); } }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 8, 6, 0.78) 0%, rgba(10, 8, 6, 0.35) 45%, rgba(10, 8, 6, 0.05) 70%),
    linear-gradient(0deg, rgba(10, 8, 6, 0.55), transparent 40%);
}
.hero__content {
  position: absolute; left: clamp(20px, 6vw, 90px); bottom: clamp(70px, 14vh, 140px);
  max-width: 640px; padding-left: 26px;
}
.hero__content::before { /* barra vertical tracejada, como na referência */
  content: ""; position: absolute; left: 0; top: 52px; bottom: 74px; width: 4px; border-radius: 4px;
  background: repeating-linear-gradient(180deg, var(--ink) 0 46px, transparent 46px 62px);
  transform: scaleY(0); transform-origin: top; animation: bar-in 1.1s var(--ease-out) 1.4s forwards;
  opacity: 0.85;
}
@keyframes bar-in { to { transform: scaleY(1); } }
.eyebrow { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.hero .eyebrow { overflow: hidden; }
.hero .eyebrow span { display: inline-block; transform: translateY(110%); animation: rise 1s var(--ease-out) 1.1s forwards; }
.hero__title { margin: 0 0 30px; font-weight: 400; font-size: clamp(44px, 7vw, 96px); line-height: 1.02; letter-spacing: -0.02em; }
.hero__title i { color: var(--gold); }
.line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.line > span { display: inline-block; transform: translateY(105%) rotate(4deg); transform-origin: left bottom; animation: rise 1.2s var(--ease-out) forwards; }
.line:nth-child(1) > span { animation-delay: 1.15s; }
.line:nth-child(2) > span { animation-delay: 1.27s; }
.line:nth-child(3) > span { animation-delay: 1.39s; }
@keyframes rise { to { transform: translateY(0) rotate(0); } }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; opacity: 0; transform: translateY(18px); animation: fade-up 1s var(--ease-out) 1.6s forwards; }
@keyframes fade-up { to { opacity: 1; transform: none; } }

.glass-card {
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: 22px;
  backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
}
.hero__card {
  background: rgba(20, 16, 12, 0.42);
  position: absolute; right: clamp(16px, 4vw, 60px); top: 52%; width: 250px; padding: 18px 20px;
  opacity: 0; transform: translateY(30px) scale(0.96); animation: card-in 1.1s var(--ease-out) 1.9s forwards;
}
@keyframes card-in { to { opacity: 1; transform: none; } }
.live { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.glass-card__big { font-size: 24px; margin: 6px 0 12px; font-weight: 500; }
.glass-card__big span { font-family: var(--serif); font-style: italic; font-size: 34px; color: var(--gold); }
.slots { display: flex; gap: 8px; }
.slots span { font-size: 13px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--glass-line); }

.scroll-badge {
  position: absolute; left: 50%; bottom: 22px; width: 112px; height: 112px; margin-left: -56px;
  display: grid; place-items: center; opacity: 0; animation: fade-up 1s var(--ease-out) 2.1s forwards;
}
.scroll-badge svg { position: absolute; inset: 0; animation: spin 14s linear infinite; }
.scroll-badge text { fill: var(--ink); font-size: 11px; text-transform: lowercase; }
.scroll-badge__arrow { font-size: 22px; animation: bob 1.8s var(--ease-io) infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 50% { transform: translateY(6px); } }

/* ---------- MARQUEE ---------- */
.marquee { overflow: hidden; padding: clamp(40px, 7vw, 80px) 0; border-bottom: 1px solid var(--line); }
.marquee__track {
  display: flex; gap: 34px; width: max-content; align-items: center;
  font-size: clamp(36px, 6vw, 84px); font-weight: 300; letter-spacing: -0.02em; white-space: nowrap;
  will-change: transform;
}
.marquee__track span:nth-child(4n + 1) { font-family: var(--serif); font-style: italic; color: var(--gold); }
.marquee__track b { font-size: 0.4em; color: var(--gold); font-weight: 400; }

/* ---------- SECTIONS ---------- */
section { position: relative; }
.section-head { padding: 0 var(--gutter); max-width: 1240px; margin: 0 auto 48px; }
h2 { font-weight: 400; font-size: clamp(34px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.02em; margin: 0; max-width: 16ch; }
h2 i { color: var(--gold); }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 45ms); }
.split.in .w > span { transform: none; }
.muted { color: var(--ink-muted); }

/* Serviços: lista estilo cardápio com prévia da foto que segue o mouse */
.services { padding: clamp(80px, 12vw, 150px) 0; }
.menu-list { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: 1240px; }
.menu-item {
  display: grid; grid-template-columns: 56px 1fr auto auto; align-items: center; gap: 24px;
  padding: 28px 8px; border-top: 1px solid var(--line); cursor: default; position: relative;
  transition: padding 0.5s var(--ease-out);
}
.menu-item:last-child { border-bottom: 1px solid var(--line); }
.menu-item::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(201, 161, 90, 0.12), transparent 70%);
  transform: scaleY(0); transform-origin: bottom; transition: transform 0.5s var(--ease-out); z-index: -1;
}
.menu-item:hover::before { transform: scaleY(1); }
.menu-item:hover { padding-left: 24px; }
.menu-item__n { font-size: 13px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.menu-item h3 { margin: 0 0 4px; font-weight: 400; font-size: clamp(22px, 2.6vw, 34px); letter-spacing: -0.01em; }
.menu-item p { margin: 0; color: var(--ink-muted); font-size: 15px; }
.menu-item__time { color: var(--ink-muted); font-size: 14px; }
.menu-item__price { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 3vw, 38px); color: var(--gold); min-width: 3.4em; text-align: right; }
.menu-preview {
  position: fixed; left: 0; top: 0; width: 260px; height: 330px; border-radius: 18px; overflow: hidden;
  pointer-events: none; z-index: 40; opacity: 0; transform: translate(-50%, -50%) scale(0.6) rotate(-6deg);
  transition: opacity 0.35s var(--ease-out), transform 0.5s var(--ease-out);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
.menu-preview.on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(var(--rot, 0deg)); }
.menu-preview img { width: 100%; height: 100%; object-fit: cover; }

/* Espaço: trilha horizontal presa durante a rolagem */
.space { height: 320vh; }
.space__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 32px; padding-top: 70px; }
.space__head { padding: 0 var(--gutter); max-width: 1240px; width: 100%; margin: 0 auto; }
.space__track { display: flex; gap: 24px; padding: 0 var(--gutter); width: max-content; will-change: transform; align-items: center; }
.space__card { margin: 0; width: clamp(260px, 32vw, 460px); height: clamp(260px, 42vh, 420px); border-radius: 24px; overflow: hidden; position: relative; flex: none; }
.space__card--tall { height: clamp(320px, 54vh, 540px); }
.space__card img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1.2s var(--ease-out); }
.space__card:hover img { transform: scale(1.05); }
.space__card figcaption {
  position: absolute; left: 14px; bottom: 14px; padding: 8px 14px; border-radius: 999px; font-size: 14px;
  background: rgba(15, 13, 11, 0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--glass-line);
}

/* Equipe */
.team { padding: clamp(80px, 12vw, 150px) 0; }
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 0 var(--gutter); max-width: 1240px; margin: 0 auto; perspective: 1000px; }
.barber { transform-style: preserve-3d; transition: transform 0.6s var(--ease-out); }
.barber__img { border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; margin-bottom: 16px; }
.barber__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter 0.7s var(--ease-out), transform 1s var(--ease-out); }
.barber:hover .barber__img img { filter: none; transform: scale(1.04); }
.barber h3 { margin: 0; font-weight: 400; font-size: 28px; }
.barber p { margin: 2px 0 0; color: var(--ink-muted); }

/* Agendar */
.booking { padding: 0 var(--gutter); }
.booking__inner {
  max-width: 1240px; margin: 0 auto; padding: clamp(32px, 6vw, 80px); border-radius: var(--radius);
  background: radial-gradient(120% 140% at 0% 0%, #2a2118 0%, var(--bg-2) 55%); border: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px);
}
.booking__intro .muted { max-width: 38ch; margin-top: 20px; }
.booker fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.booker legend { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  color: var(--ink); font: 400 15px var(--sans); cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
  transition: color 0.35s, border-color 0.35s, transform 0.3s var(--ease-out);
}
.chip::before { content: ""; position: absolute; inset: 0; background: var(--gold); border-radius: inherit; transform: scale(0); transition: transform 0.45s var(--ease-out); z-index: -1; }
.chip:hover { border-color: var(--gold); }
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { color: var(--gold-ink); border-color: var(--gold); }
.chip[aria-pressed="true"]::before { transform: scale(1); }
.chip small { display: block; font-size: 11px; opacity: 0.75; }
.booker__summary { margin: 8px 0 18px; color: var(--ink-muted); min-height: 1.5em; }
.booker__summary strong { color: var(--ink); font-weight: 500; }
.booker__send { width: 100%; }

/* Visite */
.visit { padding: clamp(80px, 12vw, 150px) var(--gutter); max-width: 1240px; margin: 0 auto; }
.visit__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; }
address { font-style: normal; font-size: 20px; color: var(--ink-muted); margin: 24px 0 28px; }
.hours { margin: 0; }
.hours div { display: flex; justify-content: space-between; padding: 16px 0; border-top: 1px solid var(--line); }
.hours dt { color: var(--ink-muted); }
.hours dd { margin: 0; }
.faq { margin-top: 64px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font-size: 20px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 26px; line-height: 1; transition: transform 0.4s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 22px; color: var(--ink-muted); max-width: 60ch; }

/* Rodapé */
.footer { padding: 40px var(--gutter) 28px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__big { margin: 0; font-size: clamp(64px, 15vw, 220px); line-height: 0.9; letter-spacing: -0.04em; font-weight: 300; white-space: nowrap; }
.footer__big i { color: var(--gold); }
.footer__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 24px; color: var(--ink-muted); font-size: 14px; }
.footer__row a { color: var(--gold); }

/* Botão flutuante, toast e cursor */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 45; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transform: scale(0); transition: transform 0.5s var(--ease-out);
}
.wa-float.show { transform: scale(1); }
.wa-float svg { width: 28px; height: 28px; }
.toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 70; transform: translate(-50%, 20px); opacity: 0;
  max-width: min(520px, calc(100% - 32px)); padding: 14px 20px; border-radius: 16px; font-size: 15px;
  background: var(--ink); color: var(--bg); transition: opacity 0.4s, transform 0.5s var(--ease-out);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.cursor {
  position: fixed; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--gold); pointer-events: none; z-index: 80; mix-blend-mode: difference; opacity: 0;
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), margin 0.35s var(--ease-out), opacity 0.3s;
}
.cursor.big { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
@media (hover: hover) and (pointer: fine) { .cursor { opacity: 1; } }

/* Revelação genérica ao rolar */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- RESPONSIVO ---------- */
@media (max-width: 900px) {
  .nav nav, .nav > .pill { display: none; }
  .menu-btn {
    display: grid; gap: 6px; margin-left: auto; width: 44px; height: 44px; place-content: center;
    background: var(--ink); border: 0; border-radius: 50%; cursor: pointer;
  }
  .menu-btn span { display: block; width: 18px; height: 2px; background: var(--bg); transition: transform 0.4s var(--ease-out); }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .menu-mobile {
    position: fixed; inset: 0; z-index: 49; background: rgba(15, 13, 11, 0.96); backdrop-filter: blur(10px);
    display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 0 28px; font-size: 34px;
  }
  .menu-mobile[hidden] { display: none; }
  .menu-mobile .pill { font-size: 17px; align-self: flex-start; margin-top: 12px; }
  .hero { height: calc(100svh - 50px); min-height: 560px; }
  .hero__content { left: 18px; right: 18px; bottom: 150px; padding-left: 18px; }
  .hero__card { top: auto; bottom: 22px; left: 18px; right: auto; width: auto; padding: 12px 16px; }
  .hero__card .slots { display: none; }
  .glass-card__big { margin: 2px 0 0; font-size: 18px; }
  .glass-card__big span { font-size: 26px; }
  .scroll-badge { left: auto; right: 14px; margin: 0; bottom: 12px; width: 92px; height: 92px; }
  .menu-item { grid-template-columns: 1fr auto; gap: 6px 16px; padding: 22px 4px; }
  .menu-item__n, .menu-item__time { display: none; }
  .menu-item:hover { padding-left: 4px; }
  .space { height: auto; }
  .space__sticky { position: static; height: auto; padding: 80px 0; }
  .space__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; transform: none !important; }
  .space__card, .space__card--tall { width: 78vw; height: 58vh; scroll-snap-align: center; }
  .team__grid { grid-template-columns: 1fr; }
  .barber__img img { filter: none; }
  .booking__inner, .visit__grid { grid-template-columns: 1fr; }
  .menu-preview { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
  .hero__frame { clip-path: none; }
  .hero__media img { transform: none; }
  .space { height: auto; }
  .space__sticky { position: static; height: auto; padding: 80px 0; }
  .space__track { width: auto; overflow-x: auto; }
}
