/* ==========================================================
   BLACK GOLD BARBER CLUB — estilos
   PERSONALIZE: cores e fontes ficam nas variáveis abaixo.
   ========================================================== */
:root {
  --ink: #0c0c0d;        /* fundo principal */
  --graphite: #17171a;   /* seções alternadas */
  --panel: #1e1e22;      /* cards */
  --line: #2f2f35;
  --gold: #c9a45c;
  --gold-soft: #e2c98f;
  --bone: #f4f0e8;
  --muted: #a8a49b;
  --danger: #ff8a7a;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 3px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; background: var(--ink); color: var(--bone); font: 400 1rem/1.65 var(--font-body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }
.container { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink); padding: .6rem 1rem; z-index: 200; }
.skip-link:focus { left: 0; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.5rem; border: 1px solid transparent; border-radius: var(--radius); font: 700 .9rem var(--font-body); cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s; }
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-soft); }
.btn--outline { border-color: var(--gold); color: var(--gold-soft); background: transparent; }
.btn--outline:hover { background: var(--gold); color: var(--ink); }
.btn--ghost { border-color: rgba(244,240,232,.45); color: var(--bone); background: rgba(12,12,13,.35); }
.btn--ghost:hover { border-color: var(--bone); background: rgba(244,240,232,.12); }
.btn--text { background: none; color: var(--muted); text-decoration: underline; padding-inline: .5rem; }
.btn--text:hover { color: var(--bone); }

/* Cabeçalho */
.header { position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 100; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.header.is-scrolled, .header.is-open { background: rgba(12,12,13,.94); backdrop-filter: blur(8px); border-color: var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo__mark { font: 700 1.55rem var(--font-display); letter-spacing: .14em; color: var(--gold); margin: 0; }
.logo__sub { font: 500 .78rem var(--font-body); letter-spacing: .32em; color: var(--muted); margin: .25rem 0 0; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; gap: 1.6rem; }
.nav__list a { font-size: .92rem; color: var(--bone); padding: .4rem 0; border-bottom: 1px solid transparent; transition: border-color .25s, color .25s; }
.nav__list a:hover { color: var(--gold-soft); border-color: var(--gold); }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.burger span { width: 24px; height: 2px; background: var(--bone); transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 3rem) 0 4rem; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12,12,13,.94) 15%, rgba(12,12,13,.55) 60%, rgba(12,12,13,.35)), linear-gradient(0deg, var(--ink), transparent 30%); }
.hero__content { max-width: 1160px; }
.hero__kicker { font-weight: 500; color: var(--gold-soft); letter-spacing: .08em; margin-bottom: 1.2rem; display: flex; align-items: center; gap: .9rem; }
.hero__kicker::before { content: ""; width: 48px; height: 1px; background: var(--gold); }
.hero h1 { font-size: clamp(2.9rem, 7.5vw, 6.2rem); letter-spacing: -.01em; }
.hero__text { max-width: 46ch; color: #d8d3c8; font-size: 1.1rem; margin: 1.5rem 0 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 3rem; }
.hero__facts { display: flex; flex-wrap: wrap; gap: .8rem 2rem; color: var(--muted); font-size: .92rem; }
.hero__facts li { display: flex; align-items: center; gap: .5rem; }
.hero__facts svg { color: var(--gold); width: 18px; height: 18px; }
/* Entrada do hero (único momento animado ao carregar) */
.hero__content > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hero__content > *:nth-child(2) { animation-delay: .1s; }
.hero__content > *:nth-child(3) { animation-delay: .2s; }
.hero__content > *:nth-child(4) { animation-delay: .3s; }
.hero__content > *:nth-child(5) { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* Seções */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--alt { background: var(--graphite); }
.section__head { max-width: 60ch; margin-bottom: 3rem; }
.section__head p { color: var(--muted); margin: .8rem 0 0; }

/* Serviços */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.25rem; }
.card { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.5rem 1.5rem; transition: border-color .3s, transform .3s; }
.card:hover { border-color: var(--gold); transform: translateY(-3px); }
.card p { color: var(--muted); font-size: .95rem; }
.card h3 { margin-bottom: .7rem; }
.card__price { margin-top: auto !important; padding-top: .5rem; font: 600 1.6rem var(--font-display); color: var(--gold-soft) !important; }
.card .btn { width: 100%; margin-top: .4rem; }
.card--popular { border-color: rgba(201,164,92,.55); }
.badge { position: absolute; top: -.7rem; left: 1.5rem; background: var(--gold); color: var(--ink); font: 700 .72rem var(--font-body); padding: .2rem .7rem; border-radius: var(--radius); }

/* Tabela de preços */
.prices { max-width: 820px; }
.price-list li { display: flex; align-items: baseline; gap: 1rem; min-width: 0; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.price-list__name { font: 600 1.35rem var(--font-display); }
.price-list__dots { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-4px); }
.price-list__price { color: var(--gold-soft); font-weight: 700; text-align: right; }

/* Equipe */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.barber img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1.2rem; filter: grayscale(.35); transition: filter .4s; }
.barber:hover img { filter: grayscale(0); }
.barber__role { color: var(--gold); font-weight: 700; font-size: .9rem; margin: .3rem 0 .6rem; }
.barber p:last-child { color: var(--muted); }

/* Agendamento */
.booking { max-width: 880px; }
.demo-note { display: flex; gap: .8rem; align-items: flex-start; border: 1px dashed var(--gold); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 2rem; color: var(--gold-soft); font-size: .92rem; }
.demo-note p { margin: 0; }
.demo-note svg { flex: none; width: 20px; height: 20px; margin-top: .15rem; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.field { display: flex; flex-direction: column; gap: .45rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field--full { grid-column: 1 / -1; }
label, legend { font-weight: 700; font-size: .9rem; padding: 0; }
.optional { color: var(--muted); font-weight: 400; }
input, select, textarea { width: 100%; background: var(--ink); color: var(--bone); border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem 1rem; font: inherit; transition: border-color .25s; color-scheme: dark; }
input:hover, select:hover, textarea:hover { border-color: #55555e; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 1px; border-color: var(--gold); }
.field.has-error input, .field.has-error select { border-color: var(--danger); }
.field__error { min-height: 0; margin: 0; color: var(--danger); font-size: .85rem; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.slots__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .6rem; margin-top: .4rem; }
.slots__hint { color: var(--muted); grid-column: 1 / -1; margin: 0; font-size: .92rem; }
.slot { padding: .65rem 0; background: var(--ink); color: var(--bone); border: 1px solid var(--line); border-radius: var(--radius); font: 500 .92rem var(--font-body); cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.slot:hover:not(:disabled) { border-color: var(--gold); }
.slot[aria-checked="true"] { background: var(--gold); color: var(--ink); border-color: var(--gold); font-weight: 700; }
.slot:disabled { color: #5d5d64; text-decoration: line-through; cursor: not-allowed; background: transparent; }

.summary { background: var(--panel); border: 1px solid var(--gold); border-radius: var(--radius); padding: 2rem; }
.summary:focus { outline: none; }
.summary__note { color: var(--muted); }
.summary__list { display: grid; grid-template-columns: max-content 1fr; gap: .6rem 1.5rem; margin: 1.5rem 0 2rem; }
.summary__list dt { color: var(--muted); }
.summary__list dd { margin: 0; font-weight: 700; }
.summary[hidden], .form[hidden] { display: none; }

/* Galeria */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; gap: 1rem; }
.gallery__item { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: linear-gradient(135deg, var(--panel), var(--graphite)); }
.gallery__item--tall { grid-row: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item figcaption { position: absolute; inset: auto 0 0 0; padding: 2rem 1rem .9rem; background: linear-gradient(0deg, rgba(12,12,13,.85), transparent); font: 600 1.15rem var(--font-display); opacity: 0; transition: opacity .3s; }
.gallery__item:hover figcaption, .gallery__item:focus-within figcaption { opacity: 1; }
img.is-broken { visibility: hidden; }

/* Sobre */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.about__text h2 { margin-bottom: 1.5rem; }
.about__text p { color: #cfcabf; max-width: 52ch; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.values li { background: var(--graphite); padding: 1.6rem 1.4rem; }
.values svg { color: var(--gold); margin-bottom: .8rem; }
.values h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.values p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Depoimentos */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
blockquote { margin: 0; padding: 1.6rem; background: var(--panel); border-left: 2px solid var(--gold); border-radius: var(--radius); }
blockquote p { font: 500 1.25rem/1.4 var(--font-display); }
blockquote footer { color: var(--muted); font-size: .88rem; }

/* Contato */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: stretch; }
.contact h2 { margin-bottom: 1.5rem; }
.contact__list { display: grid; gap: 1.1rem; margin-bottom: 2rem; }
.contact__list li { display: flex; gap: .9rem; }
.contact__list svg { flex: none; color: var(--gold); width: 20px; height: 20px; margin-top: .25rem; }
.contact__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.map { min-height: 300px; display: grid; place-content: center; text-align: center; gap: .5rem; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); background: var(--ink); }
.map svg { margin-inline: auto; color: var(--gold); width: 32px; height: 32px; }

/* Rodapé */
.footer { border-top: 1px solid var(--line); padding-top: 4rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.footer h3 { font: 700 .95rem var(--font-body); margin-bottom: 1rem; }
.footer li { margin-bottom: .5rem; color: var(--muted); font-size: .92rem; }
.footer a:hover { color: var(--gold-soft); }
.footer__small { color: var(--muted); margin-top: 1rem; }
.footer__demo { text-align: center; color: var(--muted); font-size: .82rem; border-top: 1px solid var(--line); margin: 3rem 0 0; padding: 1.2rem 1rem; }

/* WhatsApp flutuante */
.wa-float { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: #25d366; color: #0c0c0d; box-shadow: 0 6px 20px rgba(0,0,0,.45); transition: transform .25s; }
.wa-float:hover { transform: scale(1.08); }

/* Entrada ao rolar: usa a propriedade "translate" para não brigar com o hover (transform) */
.js .reveal { opacity: 0; translate: 0 22px; transition: opacity .8s cubic-bezier(.2,.7,.2,1), translate .8s cubic-bezier(.2,.7,.2,1), transform .3s, border-color .3s; transition-delay: var(--d, 0s), var(--d, 0s), 0s, 0s; }
.js .reveal.is-visible { opacity: 1; translate: 0 0; }
/* Linha dourada que se desenha sob os títulos de seção */
.section__head::after { content: ""; display: block; width: 56px; height: 1px; margin-top: 1.4rem; background: var(--gold); transform-origin: left; }
.js .section__head.reveal::after { transform: scaleX(0); transition: transform .9s .3s cubic-bezier(.2,.7,.2,1); }
.js .section__head.reveal.is-visible::after { transform: scaleX(1); }

/* Microinterações */
.hero__bg { animation: heroZoom 2.4s cubic-bezier(.2,.6,.2,1) both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.btn { position: relative; overflow: hidden; }
.btn--gold::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s ease; pointer-events: none; }
.btn--gold:hover::after { transform: translateX(120%); }
.nav__list a { position: relative; border-bottom: 0; }
.nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.nav__list a:hover::after, .nav__list a:focus-visible::after { transform: scaleX(1); }
.card { transition: border-color .3s, transform .3s, box-shadow .3s; }
.card:hover { box-shadow: 0 14px 34px rgba(0,0,0,.45), 0 0 0 1px rgba(201,164,92,.15); }
.slot { animation: fadeIn .35s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.summary:not([hidden]) { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
.wa-float { animation: rise .8s 1.2s cubic-bezier(.2,.7,.2,1) both; }

/* Responsivo */
@media (max-width: 960px) {
  .burger { display: flex; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 1.2rem; padding: 1.5rem 1.25rem 2rem; background: rgba(12,12,13,.98); border-bottom: 1px solid var(--line); transform: translateY(-120%); visibility: hidden; transition: transform .35s ease, visibility .35s; }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__list a::after { display: none; }
  .about, .contact { grid-template-columns: 1fr; gap: 2.5rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .price-list li { flex-wrap: wrap; gap: .2rem 1rem; }
  .price-list__name { font-size: 1.2rem; }
  .price-list__dots { display: none; }
  .price-list__price { margin-left: auto; }
  .form { grid-template-columns: 1fr; }
  .gallery { grid-auto-rows: 180px; }
  .values { grid-template-columns: 1fr; }
  .hero__actions .btn, .form__actions .btn--gold { width: 100%; }
  .summary__list { grid-template-columns: 1fr; gap: .1rem; }
  .summary__list dd { margin-bottom: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; translate: 0 0; }
  .js .section__head.reveal::after { transform: none; }
}
