/* ==========================================================
   Barbearia Camarote do Corte — landing page
   Mobile-first · iOS Safari / Chrome / Android
   ========================================================== */

:root {
  --bg: #0b0b0c;
  --bg-2: #131315;
  --line: #26262a;
  --text: #f2efe9;
  --muted: #9b978e;
  --gold: #d9b25c;
  --gold-2: #f3d58a;
  --red: #c8102e;
  --blue: #1f4fa3;
  --radius: 18px;
  --pad: clamp(20px, 5vw, 48px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --script: "Mr Dafoe", "Brush Script MT", cursive;
  --display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

main { overflow: hidden; width: 100%; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }

.gold { color: var(--gold); }
.muted { color: var(--muted); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .02em;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
  -webkit-user-select: none;
  user-select: none;
}
.btn:active { transform: scale(.97); }
.btn .i { width: 20px; height: 20px; fill: currentColor; }
.btn-gold {
  background: var(--gold);
  color: #1a1407;
}
.btn-ghost { border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { min-height: 60px; font-size: 17px; }
.btn-block { display: flex; width: 100%; }

/* ---------- Topbar ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(10px + var(--safe-t)) var(--pad) 10px;
  background: rgba(11, 11, 12, .72);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand span {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1;
  display: flex;
  flex-direction: column;
}
.brand em {
  font-style: normal;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .32em;
  color: var(--gold);
  margin-top: 3px;
}
.nav { display: none; gap: 28px; font-size: 14px; color: var(--muted); }
.nav a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  gap: 40px;
  padding: calc(100px + var(--safe-t)) var(--pad) 56px;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-word {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%) rotate(-90deg);
  font-family: var(--display);
  font-size: 32vh;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.05);
  white-space: nowrap;
  pointer-events: none;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--muted);
}
.pole {
  width: 10px;
  height: 26px;
  border-radius: 6px;
  background: repeating-linear-gradient(135deg, var(--red) 0 5px, #fff 5px 10px, var(--blue) 10px 15px, #fff 15px 20px);
  background-size: 100% 28px;
  animation: pole 1.4s linear infinite;
  box-shadow: 0 0 0 2px #222, 0 0 0 3px var(--gold);
}
@keyframes pole { to { background-position: 0 28px; } }

.hero h1 {
  margin-top: 18px;
  font-family: var(--display);
  font-size: clamp(54px, 15vw, 128px);
  line-height: .92;
  text-transform: uppercase;
  letter-spacing: -.005em;
}
.lead {
  margin-top: 20px;
  max-width: 34ch;
  font-size: 17px;
  color: #cfcbc2;
}
.lead strong { color: var(--text); }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.cta-row .btn { flex: 1 1 auto; }
.rating-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.rating-chip strong { color: var(--text); }
.stars { color: var(--gold); letter-spacing: 2px; }

.hero-media {
  position: relative;
  margin: 0;
  justify-self: center;
  width: min(100%, 380px);
}
.frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 9 / 13;
  border: 1px solid rgba(217,178,92,.35);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.9);
  transform: rotate(2deg);
}
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.frame figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(11,11,12,.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}
.frame figcaption span { display: block; font-weight: 800; color: var(--text); font-size: 15px; }

.clipper {
  position: absolute;
  width: 92px;
  left: -8px;
  top: 16%;
  transform: rotate(-18deg);
  filter: drop-shadow(0 24px 22px rgba(0,0,0,.7));
  cursor: pointer;
  will-change: transform;
}
.clipper .led { animation: led 2.4s ease-in-out infinite; }
@keyframes led { 50% { opacity: .35; } }
.clipper.buzzing { animation: buzz .07s linear 10; }
@keyframes buzz {
  0%   { transform: rotate(-18deg) translate(0, 0); }
  25%  { transform: rotate(-18deg) translate(1.5px, -1px); }
  50%  { transform: rotate(-18deg) translate(-1.5px, 1px); }
  75%  { transform: rotate(-18deg) translate(1px, 1px); }
  100% { transform: rotate(-18deg) translate(0, 0); }
}

/* ---------- Seções ---------- */
.section { padding: 88px var(--pad); }
.section-head { margin-bottom: 36px; max-width: 640px; }
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section h2 {
  font-family: var(--display);
  font-size: clamp(40px, 11vw, 80px);
  line-height: .95;
  text-transform: uppercase;
}
.section-head .muted { margin-top: 16px; }

.link-arrow {
  display: inline-block;
  margin-top: 26px;
  font-weight: 600;
  color: var(--gold);
  border-bottom: 1px solid rgba(217,178,92,.4);
  padding-bottom: 2px;
}

/* ---------- Script (letreiro) ---------- */
.script {
  font-family: var(--script);
  font-weight: 400;
  text-transform: none;
  color: var(--gold);
  letter-spacing: 0;
  display: inline-block;
  line-height: .9;
  font-size: 1.15em;
  transform: rotate(-4deg);
  transform-origin: left center;
  padding-right: .15em;
}
.h1-script {
  display: block;
  font-size: .62em;
  margin-top: .05em;
  margin-left: 1.2em;
  color: var(--text);
  opacity: .9;
}
.frame figcaption .script { display: block; font-size: 30px; color: var(--gold); transform: rotate(-3deg); line-height: 1; margin-bottom: 2px; }
.motto-script { font-size: 1.5em; margin-top: -.1em; transform: rotate(-6deg); }

/* ---------- O barbeiro ---------- */
.barber { position: relative; overflow: hidden; }
.big-script { font-size: 1.6em; }
.barber-text { display: grid; gap: 18px; margin-top: 32px; max-width: 680px; }
.quote {
  font-size: clamp(20px, 5.4vw, 30px);
  line-height: 1.35;
  font-weight: 600;
  border-left: 3px solid var(--gold);
  padding-left: 18px;
}
.stats {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.stats li { padding: 18px 8px 0 0; display: grid; gap: 4px; align-content: start; }
.stats b { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 8vw, 48px); line-height: 1; color: var(--gold); }
.stats span { font-size: 12px; color: var(--muted); line-height: 1.35; }
.signature {
  display: block;
  margin-top: 36px;
  font-size: clamp(56px, 16vw, 120px);
  color: rgba(217,178,92,.85);
  transform: rotate(-5deg);
}

/* ---------- Galeria ---------- */
.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 68%;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin: 0 calc(var(--pad) * -1);
  padding: 4px var(--pad) 16px;
  scroll-padding-inline: var(--pad);
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.shot {
  position: relative;
  display: block;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 9 / 14;
  background: var(--bg-2);
  border: 1px solid var(--line);
  text-align: left;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.shot span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(11,11,12,.75);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 600;
}

/* ---------- Serviços ---------- */
.services-sec { background: var(--bg-2); }
.services { list-style: none; margin: 0 0 36px; padding: 0; display: grid; gap: 14px; }
.service {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
  padding: 18px 18px 20px;
  border-radius: var(--radius);
  position: relative;
  padding-top: 34px;
  background: var(--bg);
  border: 1px solid var(--line);
  overflow: hidden;
}
/* dentes do pente */
.service::before {
  content: "";
  position: absolute;
  top: 0; left: 18px; right: 18px;
  height: 12px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 3px, transparent 3px 9px);
  opacity: .55;
}
.guard {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 11px;
  line-height: 1;
  color: var(--gold);
}
@media (min-width: 600px) {
  .services { grid-template-columns: 1fr 1fr; }
}
.service h3 {
  font-family: var(--display);
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: .01em;
  margin-bottom: 6px;
}
.service p { color: var(--muted); font-size: 15px; }

/* ---------- Diferenciais ---------- */
.perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.perk {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px var(--pad);
  background: var(--bg);
  font-size: 14px;
  color: #d4d0c7;
}
.perk b { font-size: 22px; color: var(--gold); font-weight: 400; }

/* ---------- Lema ---------- */
.motto {
  padding: 96px var(--pad);
  text-align: center;
}
.motto p {
  font-family: var(--display);
  font-size: clamp(48px, 14vw, 120px);
  line-height: 1;
  text-transform: uppercase;
}
.motto small { display: block; margin: 18px auto 0; max-width: 34ch; color: var(--muted); font-size: 15px; }

/* ---------- Avaliações ---------- */
.score {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.score-num {
  font-family: var(--display);
  font-size: 96px;
  line-height: .9;
  color: var(--gold);
}
.stars.big { font-size: 26px; }
.reviews { display: grid; gap: 14px; }
.review {
  margin: 0;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.review p { font-size: 17px; line-height: 1.5; }
.review footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 18px;
  font-weight: 600;
  font-size: 14px;
}
.review footer small { width: 100%; padding-left: 46px; margin-top: -6px; color: var(--muted); font-weight: 400; }
.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: #1a1407;
  font-weight: 800;
}

/* ---------- Local / final ---------- */
.final { background: var(--bg-2); border-top: 1px solid var(--line); }
.final h2 { margin-bottom: 36px; }
.info { display: grid; gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; border: 1px solid var(--line); }
.info-item { padding: 22px; background: var(--bg); }
.info-item small { display: block; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.info-item p { font-size: 17px; font-weight: 600; }
.info-item a { display: inline-block; margin-top: 10px; color: var(--gold); font-weight: 600; font-size: 14px; }

/* ---------- Footer ---------- */
.foot {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 48px var(--pad) calc(110px + var(--safe-b));
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.foot-mark { width: 48px; height: 48px; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: calc(18px + var(--safe-b));
  z-index: 60;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.6);
  transition: transform .2s ease;
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.wa-float:active { transform: scale(.94); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: calc(24px + var(--safe-t)) 16px calc(24px + var(--safe-b));
  background: rgba(0,0,0,.92);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 100%; width: auto; max-width: 100%; border-radius: 16px; }
.lb-close {
  position: absolute;
  top: calc(12px + var(--safe-t));
  right: 16px;
  width: 48px;
  height: 48px;
  font-size: 34px;
  line-height: 1;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
}

/* ---------- Reveal ao rolar ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================
   Telas maiores
   ========================================================== */
@media (min-width: 600px) {
  .gallery { grid-auto-columns: 40%; }
  .perks { grid-template-columns: repeat(4, 1fr); }
  .reviews { grid-template-columns: 1fr 1fr; }
  .info { grid-template-columns: repeat(3, 1fr); }
  .cta-row .btn { flex: 0 0 auto; }
}

@media (min-width: 960px) {
  .nav { display: flex; }
  .hero {
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    gap: 64px;
    padding-top: 120px;
  }
  .hero-word { font-size: 46vh; top: 50%; }
  .hero-media { width: 100%; max-width: 420px; }
  .clipper { width: 120px; left: -64px; }
  .section { padding: 128px var(--pad); }
  .section, .motto, .hero { max-width: 1280px; margin-inline: auto; }
  .gallery {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-columns: auto;
    overflow: visible;
    margin: 0;
    padding: 0;
  }
  .shot:nth-child(3n+2) { transform: translateY(40px); }
  .gallery { padding-bottom: 40px; }
  .final > *, .services-sec > *, .barber > * { max-width: 1120px; margin-inline: auto; }
  .services-sec, .barber { max-width: none; }
  .services { grid-template-columns: repeat(3, 1fr); }
  .final { max-width: none; }
  .btn-block { max-width: 420px; }
  .final .btn-block, .services-sec .btn-block { margin-left: auto; margin-right: auto; }
}

@media (hover: hover) {
  .btn-gold:hover { background: var(--gold-2); }
  .shot:hover img { transform: scale(1.05); }
  .wa-float:hover { transform: scale(1.06); }
}

/* Acessibilidade: menos movimento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
