/* Barbearia Santa Helena — gerado */
:root {
  --ink: #0A0908;
  --ink-2: #131110;
  --accent: #B07536;
  --accent-soft: #E0C08A;
  --paper: #F5F1E8;
  --muted: #9C9488;
  --line: rgba(176,117,54,.26);
  --wrap: 1180px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink); color: var(--paper);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-weight: 300; line-height: 1.65; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 9; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; padding: 1rem clamp(1.2rem, 5vw, 3.4rem);
  transition: background .35s ease, backdrop-filter .35s, padding .35s;
}
.nav.solid {
  background: rgba(14,14,16,.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); padding-top: .6rem; padding-bottom: .6rem;
}
.brand { display: flex; align-items: center; gap: .8rem; }
.brand-txt strong {
  display: block; font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.16rem; font-weight: 600; letter-spacing: .01em;
}
.brand-txt small { display: block; font-size: .68rem; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.links { display: flex; gap: 2rem; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.links a { color: var(--muted); transition: color .25s; position: relative; }
.links a::after {
  content: ''; position: absolute; left: 0; bottom: -.45rem; height: 1px; width: 0;
  background: var(--accent); transition: width .3s ease;
}
.links a:hover { color: var(--paper); } .links a:hover::after { width: 100%; }
.cta-mini {
  background: transparent; border: 1px solid var(--accent); color: var(--accent);
  padding: .58rem 1.35rem; border-radius: 2px; font-size: .78rem;
  letter-spacing: .13em; text-transform: uppercase; cursor: pointer;
  transition: background .25s, color .25s;
}
.cta-mini:hover { background: var(--accent); color: var(--ink); }
@media (max-width: 900px) { .links { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.06); filter: saturate(.85) brightness(.5);
}
.hero-bg:empty, .hero-bg:not([style]) {
  background: radial-gradient(ellipse at 25% 20%, #241d10 0%, var(--ink) 62%);
}
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(14,14,16,.97) 0%, rgba(14,14,16,.82) 42%, rgba(14,14,16,.35) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: var(--wrap); margin: 0 auto; padding: 9rem clamp(1.2rem,5vw,3.4rem) 6rem; width: 100%; }
.kicker {
  font-size: .72rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.2rem; display: flex; align-items: center; gap: .9rem;
}
.kicker::after { content: ''; height: 1px; width: 52px; background: var(--accent); opacity: .55; }
.hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(3rem, 8.5vw, 6.4rem); line-height: .98; font-weight: 600;
  letter-spacing: -.015em; margin-bottom: 1.6rem; max-width: 15ch;
}
.lede { font-size: clamp(1rem, 1.6vw, 1.2rem); color: #CFCBC2; max-width: 46ch; margin-bottom: 2.6rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3.6rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 2rem; border-radius: 2px; cursor: pointer; border: 1px solid transparent;
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  transition: transform .25s, background .25s, color .25s, box-shadow .25s;
}
.btn-solid { background: var(--accent); color: var(--ink); font-weight: 500; }
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -12px var(--accent); }
.btn-ghost { border-color: rgba(247,244,238,.28); color: var(--paper); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.full { width: 100%; }
.btn.big { padding: 1.15rem 2.6rem; }

.stats { display: flex; gap: 3rem; flex-wrap: wrap; padding-top: 2.4rem; border-top: 1px solid var(--line); }
.stat strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 2.4rem; color: var(--accent); line-height: 1; }
.stat span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- secoes ----------
   Ritmo vertical medido da referencia: blocos escuros longos, com respiro
   grande entre eles, e um trecho mais claro no fim para o fechamento. */
section { padding: clamp(5.5rem, 12vw, 10rem) clamp(1.2rem, 5vw, 3.4rem); max-width: var(--wrap); margin: 0 auto; }
.sec-head { margin-bottom: 3.4rem; }
.sec-head h2 {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 600; line-height: 1.08; letter-spacing: -.01em;
}
.sub { color: var(--muted); margin-top: .9rem; }

/* servicos */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(288px, 1fr)); gap: 1px; background: var(--line); }
.svc { background: var(--ink); padding: 2.1rem 1.9rem; transition: background .3s; }
.svc:hover { background: #161413; }
.svc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; }
.svc h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.42rem; font-weight: 600; }
.svc-price { color: var(--accent); font-size: 1.02rem; font-weight: 500; white-space: nowrap; }
.svc p { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; min-height: 2.7em; }
.svc-book {
  background: none; border: none; color: var(--accent); cursor: pointer;
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  display: inline-flex; gap: .5rem; padding: 0; transition: gap .25s;
}
.svc-book:hover { gap: .95rem; }

/* casa */
.casa { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.casa-txt h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.9rem,3.6vw,2.9rem); font-weight: 600; line-height: 1.12; margin-bottom: 1.4rem; }
.casa-txt p { color: #C6C2BA; margin-bottom: 1.1rem; }
.selos { list-style: none; margin-top: 1.9rem; display: grid; gap: .75rem; }
.selos li { position: relative; padding-left: 1.6rem; font-size: .92rem; color: #D4D0C8; }
.selos li::before { content: ''; position: absolute; left: 0; top: .58em; width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); }
.barber { border-left: 2px solid var(--accent); padding-left: 1.1rem; color: #D4D0C8; font-size: .95rem; }
.barber strong { color: var(--accent); font-weight: 500; }
.casa-foto img { border: 1px solid var(--line); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
@media (max-width: 860px) { .casa { grid-template-columns: 1fr; } }

/* horarios */
.hor-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem,5vw,4rem); }
.hor-list { list-style: none; border-top: 1px solid var(--line); }
.hor-list li { display: flex; justify-content: space-between; padding: 1.05rem .2rem; border-bottom: 1px solid var(--line); font-size: .94rem; }
.hor-list li span:first-child { color: var(--muted); letter-spacing: .05em; }
.hor-list li.closed span:last-child { color: #6B6760; }
.hor-cta { background: #161413; border: 1px solid var(--line); padding: 2.3rem; }
.hor-cta h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; font-weight: 600; margin-bottom: .8rem; }
.hor-cta p { color: var(--muted); font-size: .92rem; margin-bottom: 1.6rem; }
.micro { font-size: .76rem !important; color: #6B6760 !important; margin: 1rem 0 0 !important; text-align: center; }
@media (max-width: 860px) { .hor-grid { grid-template-columns: 1fr; } }

/* galeria */
.gal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.gal-grid .tile { margin: 0; overflow: hidden; background: var(--ink); position: relative; }
.gal-grid .tile img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s; filter: saturate(.9) brightness(.92); }
.gal-grid .tile:hover img { transform: scale(1.05); filter: saturate(1) brightness(1); }
.gal-grid .tile:first-child { grid-column: span 2; grid-row: span 2; }
.gal-grid .tile:first-child img { aspect-ratio: 8/6; }
@media (max-width: 760px) {
  .gal-grid { grid-template-columns: 1fr 1fr; }
  .gal-grid .tile:first-child { grid-column: span 2; grid-row: auto; }
}

/* ============ MOVIMENTO: parallax + scroll ============ */

/* camadas de parallax: cada uma se move numa velocidade diferente.
   transform puro = composicao na GPU, sem reflow. */
[data-px] { will-change: transform; }

.hero-bg { transform: scale(1.14) translate3d(0,0,0); }
.hero-veil { transform: translate3d(0,0,0); }
.hero-inner { transform: translate3d(0,0,0); }

/* ornamento de fundo no hero: circulo dourado que deriva */
.hero-orb {
  position: absolute; z-index: 1; pointer-events: none;
  width: 46vw; height: 46vw; max-width: 620px; max-height: 620px;
  right: -8vw; top: 12%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(176,117,54,.20) 0%, rgba(224,192,138,.06) 42%, transparent 70%);
  filter: blur(2px);
  transform: translate3d(0,0,0);
}

/* linhas verticais que acompanham o scroll */
.rails {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  display: flex; justify-content: space-between;
  padding: 0 clamp(1.2rem, 5vw, 3.4rem);
}
.rails span {
  width: 1px; height: 100%;
  background: linear-gradient(180deg, transparent, rgba(176,117,54,.14) 22%, rgba(176,117,54,.14) 78%, transparent);
  transform: scaleY(0); transform-origin: top;
  transition: transform 1.5s cubic-bezier(.16,.84,.28,1);
}
.rails.on span { transform: scaleY(1); }
.rails span:nth-child(2) { transition-delay: .18s; }
.rails span:nth-child(3) { transition-delay: .36s; }
@media (max-width: 900px) { .rails { display: none; } }

/* reveal: mascara por clip + deslocamento, mais caro que opacity so */
.reveal { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity .9s cubic-bezier(.16,.84,.28,1), transform .9s cubic-bezier(.16,.84,.28,1); }
.reveal.in { opacity: 1; transform: translate3d(0,0,0); }

/* variantes de direcao */
.reveal[data-from="left"]  { transform: translate3d(-44px, 0, 0); }
.reveal[data-from="right"] { transform: translate3d(44px, 0, 0); }
.reveal[data-from="scale"] { transform: scale(.94); }
.reveal[data-from="left"].in,
.reveal[data-from="right"].in,
.reveal[data-from="scale"].in { transform: none; }

/* cartoes de servico: entrada escalonada por coluna */
.svc-grid .svc { opacity: 0; transform: translate3d(0, 30px, 0); transition: opacity .7s ease, transform .7s cubic-bezier(.16,.84,.28,1), background .3s; }
.svc-grid.on .svc { opacity: 1; transform: none; }
.svc-grid.on .svc:nth-child(1) { transition-delay: .00s; }
.svc-grid.on .svc:nth-child(2) { transition-delay: .07s; }
.svc-grid.on .svc:nth-child(3) { transition-delay: .14s; }
.svc-grid.on .svc:nth-child(4) { transition-delay: .21s; }
.svc-grid.on .svc:nth-child(5) { transition-delay: .28s; }
.svc-grid.on .svc:nth-child(6) { transition-delay: .35s; }

/* galeria: paralax escalonado entre colunas */
.gal-grid .tile { transform: translate3d(0,0,0); }

/* numeros que contam */
.stat strong { display: block; font-variant-numeric: tabular-nums; }

/* barra de progresso de leitura */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; z-index: 50;
  width: 0%; background: linear-gradient(90deg, var(--accent), #E0C08A);
  transition: width .1s linear;
  box-shadow: 0 0 12px rgba(176,117,54,.60);
}

/* titulo com brilho que segue o scroll */
.hero h1 { text-shadow: 0 0 60px rgba(176,117,54,0); transition: text-shadow .6s ease; }
.hero h1.lit { text-shadow: 0 0 70px rgba(176,117,54,.20); }

/* botao magnetico: leve deslocamento na direcao do cursor */
.btn-magnet { transition: transform .2s cubic-bezier(.16,.84,.28,1), box-shadow .3s, background .25s, color .25s; }

/* divisor que se desenha no scroll */
.rule {
  height: 1px; background: var(--accent); opacity: .3;
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.3s cubic-bezier(.16,.84,.28,1);
}
.rule.on { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  [data-px], .hero-bg, .hero-inner, .hero-orb { transform: none !important; }
  .reveal, .svc-grid .svc { opacity: 1 !important; transform: none !important; transition: none !important; }
  .progress { display: none; }
  .rails { display: none; }
}

/* depoimentos */
.depo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(272px,1fr)); gap: 1.6rem; }
.depo-grid blockquote { border: 1px solid var(--line); padding: 2rem 1.8rem; background: #151312; }
.depo-grid p { font-family: 'Cormorant Garamond', serif; font-size: 1.16rem; line-height: 1.5; color: #E2DED6; margin-bottom: 1.2rem; }
.depo-grid cite { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-style: normal; }

/* onde */
.onde { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.onde-info h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.9rem,3.6vw,2.8rem); font-weight: 600; margin-bottom: 1.6rem; }
.addr, .tel { display: flex; align-items: center; gap: .75rem; color: #C6C2BA; margin-bottom: 1rem; font-size: .96rem; }
.tel a:hover { color: var(--accent); }
.onde .btn { margin-top: 1.4rem; }
.mapa iframe { width: 100%; height: 400px; border: 1px solid var(--line); filter: grayscale(.4) contrast(1.05); }
@media (max-width: 860px) { .onde { grid-template-columns: 1fr; } .mapa iframe { height: 300px; } }

/* final — bloco mais claro, como o fechamento da referencia */
.final {
  text-align: center; border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink) 0%, #1A1512 55%, #221A14 100%);
  max-width: none; width: 100%;
}
.final h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem,4.4vw,3.2rem); font-weight: 600; margin-bottom: 1rem; }
.final p { color: var(--muted); margin-bottom: 2.4rem; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 3rem clamp(1.2rem,5vw,3.4rem); text-align: center; display: grid; gap: .6rem; justify-items: center; }
.foot p { font-size: .84rem; color: var(--muted); }
.foot .din { font-size: .74rem; color: #55524C; }

/* float */
.wa-float {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 45;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #062E14; display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.6);
  transition: transform .25s;
}
.wa-float:hover { transform: scale(1.09); }

/* modal */
.modal {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center;
  background: rgba(6,6,8,.86); backdrop-filter: blur(7px);
  opacity: 0; pointer-events: none; transition: opacity .3s; padding: 1.2rem;
}
.modal.on { opacity: 1; pointer-events: auto; }
.modal-card {
  background: #161413; border: 1px solid var(--line); width: min(520px, 100%);
  padding: 2.4rem; position: relative; transform: translateY(14px); transition: transform .3s;
  max-height: 92svh; overflow-y: auto;
}
.modal.on .modal-card { transform: translateY(0); }
.modal-x { position: absolute; top: .9rem; right: 1.1rem; background: none; border: none;
  font-size: 1.9rem; line-height: 1; color: var(--muted); cursor: pointer; }
.modal-x:hover { color: var(--accent); }
.modal-head { margin-bottom: 1.8rem; }
.modal-head h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.72rem; font-weight: 600; }
.modal-sub { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.picks { display: grid; gap: .6rem; }
.pick {
  display: flex; justify-content: space-between; align-items: center;
  background: #121010; border: 1px solid var(--line); padding: 1rem 1.2rem;
  cursor: pointer; text-align: left; transition: border-color .22s, background .22s;
}
.pick:hover { border-color: var(--accent); background: #1A1716; }
.pick em { color: var(--accent); font-style: normal; font-weight: 500; }
.chosen { background: #121010; border-left: 2px solid var(--accent); padding: .9rem 1.1rem;
  margin-bottom: 1.5rem; font-size: .92rem; }
.field { display: block; margin-bottom: 1.15rem; }
.field span { display: block; font-size: .74rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .5rem; }
.field input {
  width: 100%; background: #121010; border: 1px solid var(--line);
  padding: .85rem 1rem; outline: none; transition: border-color .22s;
}
.field input:focus { border-color: var(--accent); }
.hidden { display: none !important; }
.link-back { background: none; border: none; color: var(--muted); font-size: .8rem;
  cursor: pointer; margin-top: 1rem; width: 100%; }
.link-back:hover { color: var(--accent); }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .75s ease, transform .75s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
