/* ===========================================================
   Barber's Hall (Conceito Private) — Ubá/MG
   Dark Luxury Private Club · sistema descrito em DESIGN.md
   =========================================================== */

:root {
  --obsidian: #0a0a0c;
  --graphite: #121318;
  --graphite-2: #1a1b22;
  --line: rgba(245, 245, 240, .09);
  --line-strong: rgba(245, 245, 240, .17);
  --gold: #c9a24d;
  --gold-bright: #e5c158;
  --gold-dim: #8a6e33;
  --ivory: #f5f5f0;
  --muted: #9a9aa2;
  --zap: #25d366;

  --wordmark: "Cinzel", Georgia, serif;
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --r: 2px;
  --wrap: 1160px;
  --gut: 22px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--obsidian);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Grão sobre o fundo — ver DESIGN.md */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--gold); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--gold-bright); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: var(--r); }

/* ---------- Tipografia ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -.012em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.0625rem, 4.3vw, 3.375rem); line-height: 1.1; }
h2 { font-size: clamp(1.625rem, 3.6vw, 2.625rem); }
h3 { font-size: clamp(1.125rem, 1.7vw, 1.3125rem); font-weight: 500; letter-spacing: -.005em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; color: var(--ivory); }

em.gold { font-style: italic; color: var(--gold); font-weight: 400; }

.eyebrow {
  font-family: var(--sans);
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--gold);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold-dim); flex: none; }

.lede {
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  color: var(--muted);
  max-width: 58ch;
}
h2 + .lede, h2 + p { margin-top: 18px; }

/* ---------- Layout ---------- */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); position: relative; z-index: 1; }

section { padding-block: clamp(60px, 10vw, 118px); position: relative; z-index: 1; }
.band { background: var(--graphite); border-block: 1px solid var(--line); }

.sec-head { max-width: 64ch; margin-bottom: clamp(38px, 5.5vw, 62px); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }
.sec-head--center .lede { margin-inline: auto; }

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  max-width: 100%;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--zap { background: var(--zap); color: #05130a; }
.btn--zap:hover { background: #1fbf5b; color: #05130a; }

.btn--gold { background: var(--gold); color: #17110a; }
.btn--gold:hover { background: var(--gold-bright); color: #17110a; }

.btn--ghost { border-color: var(--line-strong); color: var(--ivory); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn--sm { min-height: 44px; padding-inline: 20px; font-size: .875rem; }
.btn--full { width: 100%; }
/* Para botões de texto longo: deixa quebrar em vez de estourar a tela do celular. */
.btn--wrap { white-space: normal; padding-block: 12px; line-height: 1.35; }

/* ---------- Header ---------- */

.hdr {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10, 10, 12, .74);
  backdrop-filter: saturate(170%) blur(14px);
  -webkit-backdrop-filter: saturate(170%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.hdr.is-stuck { border-bottom-color: var(--line); background: rgba(10, 10, 12, .94); }
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 76px; }

.mark { display: flex; flex-direction: column; line-height: 1; }
.mark__name {
  font-family: var(--wordmark);
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  font-weight: 700;
  letter-spacing: .09em;
  white-space: nowrap;
  background: linear-gradient(100deg, var(--gold-bright), var(--gold) 55%, var(--gold-dim));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mark__sub {
  font-size: .5rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .3em; color: var(--muted); margin-top: 6px;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: .875rem; font-weight: 500; color: var(--muted); padding-block: 6px; }
.nav a:hover { color: var(--ivory); }

/* O menu some antes do que parece necessário de propósito: entre ~1000px e ~1140px
   o wordmark + 7 links + botão não cabem e empurram o botão para fora da tela. */
@media (max-width: 1140px) { .nav { display: none; } }

/* Celular estreito: o wordmark e o botão disputam a mesma linha.
   O botão perde o ícone e vira só "Agendar". */
/* Telas muito estreitas (iPhone SE e afins): margem menor para o cabeçalho caber. */
@media (max-width: 360px) {
  :root { --gut: 16px; }
  .mark__sub { letter-spacing: .18em; }
}

@media (max-width: 480px) {
  .hdr__in { min-height: 66px; gap: 12px; }
  .hdr .btn { padding-inline: 16px; font-size: .8125rem; }
  .hdr .btn svg, .hdr__cta-word { display: none; }
  .mark__name { font-size: .9375rem; letter-spacing: .07em; }
  .mark__sub { font-size: .4375rem; letter-spacing: .24em; }
}

/* ---------- Hero ---------- */

.hero { padding-block: clamp(60px, 11vw, 132px) clamp(56px, 8vw, 92px); overflow: hidden; }
.hero::after {
  content: "";
  position: absolute; top: -26%; left: 50%;
  width: min(960px, 130%); aspect-ratio: 1; translate: -50% 0;
  background: radial-gradient(circle, rgba(201, 162, 77, .13), transparent 62%);
  pointer-events: none; z-index: 0;
}
.hero__grid {
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: clamp(36px, 5.5vw, 76px); align-items: center;
  position: relative; z-index: 1;
}
@media (max-width: 940px) { .hero__grid { grid-template-columns: 1fr; } }

.hero .lede { margin-top: 24px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.hero__note { margin-top: 20px; font-size: .8125rem; color: var(--muted); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.pills li {
  font-size: .75rem; font-weight: 500; color: var(--ivory);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 14px;
}

/* ---------- Faixa de confiança ---------- */

.trust { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); list-style: none; margin: 0; padding: 0; }
.trust__i { padding: 26px 22px; border-left: 1px solid var(--line); }
.trust__i:first-child { border-left: 0; }
.trust__k { font-family: var(--display); font-size: 1.5rem; color: var(--gold); line-height: 1.2; }
.trust__v { font-size: .8125rem; color: var(--muted); margin-top: 5px; }

@media (max-width: 860px) { .trust { grid-template-columns: repeat(2, 1fr); } .trust__i:nth-child(3) { border-left: 0; } .trust__i:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 460px) { .trust { grid-template-columns: 1fr; } .trust__i { border-left: 0; border-top: 1px solid var(--line); } .trust__i:first-child { border-top: 0; } }

/* ---------- Placeholder / foto ---------- */

.ph {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(150deg, var(--graphite-2), var(--graphite) 55%, #0d0d11);
  display: grid; place-items: center; min-height: 150px;
}
.ph::after {
  content: attr(data-label);
  font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .18em;
  color: rgba(201, 162, 77, .5); text-align: center; padding: 16px; max-width: 86%;
}
.ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.ph--portrait { aspect-ratio: 4 / 5; }
.ph--square { aspect-ratio: 1; }
.ph--wide { aspect-ratio: 16 / 10; }

/* ---------- Conceito Private ---------- */

.xp { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); }
.xp__i { background: var(--obsidian); padding: clamp(26px, 3.2vw, 38px); transition: background .2s ease; }
.xp__i:hover { background: var(--graphite); }
.xp__n { font-family: var(--display); font-size: .9375rem; color: var(--gold-dim); letter-spacing: .08em; margin-bottom: 18px; }
.xp__i h3 { margin-bottom: 11px; }
.xp__i p { color: var(--muted); font-size: .9375rem; }

/* ---------- Serviços ---------- */

.svc { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); }
.svc__i { background: var(--obsidian); padding: clamp(26px, 3vw, 34px); display: flex; flex-direction: column; transition: background .2s ease; }
.svc__i:hover { background: var(--graphite); }
.svc__top { display: flex; align-items: baseline; gap: 14px; margin-bottom: 13px; }
.svc__n { font-family: var(--display); font-size: .875rem; color: var(--gold-dim); flex: none; }
.svc__i p { color: var(--muted); font-size: .9375rem; flex: 1; margin-bottom: 22px; }
.svc__i .btn { align-self: flex-start; }

.note {
  margin-top: 30px; font-size: .875rem; color: var(--muted);
  border-left: 2px solid var(--gold-dim); padding-left: 16px; max-width: 70ch;
}

/* ---------- Agendamento rápido ---------- */

.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.quick__a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--obsidian); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px 24px; color: var(--ivory);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.quick__a:hover { border-color: var(--gold); background: var(--graphite-2); color: var(--ivory); transform: translateY(-2px); }
/* display:block é obrigatório — são <span>, e inline não empilha */
.quick__t { display: block; font-family: var(--display); font-size: 1.1875rem; line-height: 1.25; }
.quick__s { display: block; font-size: .75rem; line-height: 1.5; color: var(--muted); margin-top: 6px; }
.quick__a svg { width: 20px; height: 20px; flex: none; color: var(--zap); }

/* ---------- Bar de cortesia ---------- */

.bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); }
.bar__i { background: var(--obsidian); padding: 30px 18px; text-align: center; }
.bar__e { font-size: 1.75rem; line-height: 1; margin-bottom: 12px; }
.bar__l { font-family: var(--display); font-size: 1.0625rem; }
@media (max-width: 560px) { .bar { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Produtos ---------- */

.prod { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.prod__i { border: 1px solid var(--line); border-radius: var(--r); background: var(--obsidian); padding: 24px 22px; display: flex; flex-direction: column; gap: 12px; }
.prod__i h3 { font-size: 1.0625rem; }
.prod__i p { font-size: .875rem; color: var(--muted); flex: 1; margin: 0 0 4px; }

/* Par de fotos lado a lado (bar de cortesia) */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }

/* ---------- Galeria ---------- */

.gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.gal > *:nth-child(1) { grid-column: span 2; grid-row: span 2; }
@media (max-width: 860px) { .gal { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Sobre o Diego ---------- */

.about { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(34px, 5vw, 70px); align-items: center; }
@media (max-width: 880px) { .about { grid-template-columns: 1fr; } }

.quote {
  font-family: var(--display); font-size: clamp(1.25rem, 2.3vw, 1.75rem);
  font-weight: 400; font-style: italic; line-height: 1.42; color: var(--ivory);
  margin: 0 0 24px; padding-left: 22px; border-left: 2px solid var(--gold);
}

.creds { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); }
.creds li { background: var(--obsidian); padding: 18px 22px; font-size: .9375rem; display: flex; gap: 14px; }
.creds b { color: var(--gold); font-family: var(--display); font-weight: 400; flex: none; }
.creds span { color: var(--muted); }

/* ---------- FAQ ---------- */

.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 4px; cursor: pointer; list-style: none;
  font-size: 1.0625rem; font-weight: 600; color: var(--ivory); transition: color .18s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold); }
.faq summary::after {
  content: ""; width: 11px; height: 11px; flex: none;
  border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold);
  rotate: 45deg; transition: rotate .22s var(--ease);
}
.faq details[open] summary::after { rotate: -135deg; }
.faq__a { padding: 0 4px 26px; color: var(--muted); font-size: .9375rem; max-width: 72ch; }
.faq__a a { font-weight: 600; }

/* ---------- Localização ---------- */

.local { display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(34px, 4.5vw, 60px); align-items: start; }
@media (max-width: 880px) { .local { grid-template-columns: 1fr; } }

.dl { margin: 0; }
.dl > div { padding: 19px 0; border-bottom: 1px solid var(--line); }
.dl > div:first-child { border-top: 1px solid var(--line); }
.dl dt { font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; color: var(--gold); margin-bottom: 7px; }
.dl dd { margin: 0; font-size: .9375rem; color: var(--ivory); }
.dl dd span { color: var(--muted); display: block; font-size: .875rem; margin-top: 3px; }

.map { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--graphite); aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.45) contrast(1.06); }
.map__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

.areas { margin: 24px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.areas li { font-size: .8125rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }

/* ---------- CTA final ---------- */

.final { text-align: center; }
.final .btn { margin-top: 30px; }

/* ---------- Footer ---------- */

.ftr { padding-block: 54px 92px; font-size: .875rem; color: var(--muted); border-top: 1px solid var(--line); }
.ftr__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 32px; }
.ftr h3 { font-family: var(--sans); font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; color: var(--gold); margin-bottom: 14px; }
.ftr a { color: var(--muted); }
.ftr a:hover { color: var(--gold); }
.ftr__legal { font-size: .75rem; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); color: #6c6b72; }

/* ---------- WhatsApp flutuante ---------- */

.float { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: flex; align-items: center; gap: 12px; }
.float__badge {
  background: rgba(10, 10, 12, .92);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 9px 16px; font-size: .75rem; font-weight: 600; color: var(--ivory);
  white-space: nowrap; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .5);
}
.float__badge b { color: var(--gold); font-weight: 600; }
.float__btn {
  width: 60px; height: 60px; border-radius: 999px;
  background: var(--zap); color: #05130a;
  display: grid; place-items: center; flex: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .55);
  transition: transform .18s ease, background .18s ease;
}
.float__btn:hover { background: #1fbf5b; color: #05130a; transform: scale(1.06); }
.float__btn svg { width: 29px; height: 29px; }
/* No desktop o botão é um círculo: o rótulo fica só para leitores de tela */
.float__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 900px) {
  .float { left: 12px; right: 12px; bottom: 12px; flex-direction: column; align-items: stretch; gap: 6px; }
  .float__badge { text-align: center; padding: 6px 14px; font-size: .6875rem; }
  .float__btn {
    width: 100%; height: 54px; border-radius: 999px;
    font-size: .9375rem; font-weight: 600; gap: 10px;
    grid-auto-flow: column; place-content: center;
  }
  .float__btn svg { width: 22px; height: 22px; }
  /* No celular vira barra larga: o rótulo aparece ao lado do ícone */
  .float__label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .ftr { padding-bottom: 150px; }
}

/* ---------- Animação de entrada ---------- */

.rise { opacity: 0; transform: translateY(18px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.rise.is-in { opacity: 1; transform: none; }

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

/* ---------- Utilitários ---------- */

.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.center { text-align: center; }
