/* ===== Studio Mineiros Barber — LP ===== */
:root {
  --preto: #0a0a0a;
  --preto-2: #121212;
  --preto-3: #1a1a1a;
  --ouro: #f2b705;
  --ouro-2: #ffd23f;
  --branco: #ffffff;
  --cinza: #b8b8b8;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --wrap: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--preto);
  color: var(--branco);
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ===== Botões ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border: none; cursor: pointer;
  font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: .92rem; letter-spacing: .3px;
  padding: 13px 22px; border-radius: 999px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  text-transform: uppercase;
}
.btn:active { transform: scale(.97); }
.btn--gold { background: var(--ouro); color: #111; box-shadow: 0 8px 22px rgba(242,183,5,.28); }
.btn--gold:hover { background: var(--ouro-2); box-shadow: 0 10px 26px rgba(242,183,5,.4); }
.btn--dark { background: #111; color: var(--ouro); border: 1px solid rgba(0,0,0,.2); }
.btn--dark:hover { background: #000; }
.btn--ghost { background: transparent; color: var(--branco); border: 1.5px solid rgba(255,255,255,.35); }
.btn--ghost:hover { border-color: var(--ouro); color: var(--ouro); }
.btn--lg { padding: 16px 30px; font-size: 1rem; }
.btn--block { width: 100%; }

/* ===== Header ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 0; transition: padding .4s var(--ease), background .3s, box-shadow .3s;
}
.nav.scrolled { padding: 8px 0; background: rgba(10,10,10,.92); backdrop-filter: blur(10px); box-shadow: 0 2px 20px rgba(0,0,0,.5); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.logo { height: 44px; width: auto; transition: height .4s var(--ease); }
.nav.scrolled .logo { height: 34px; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a { font-size: .9rem; font-weight: 500; color: var(--cinza); transition: color .2s; }
.nav__links a:hover { color: var(--ouro); }
.nav__cta { margin-left: 6px; }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__burger span { width: 26px; height: 3px; background: var(--branco); border-radius: 2px; transition: .3s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed; inset: 0 0 0 auto; top: 0; height: 100vh; width: min(78vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 22px;
    background: var(--preto-2); padding: 40px; transform: translateX(100%);
    transition: transform .35s var(--ease); box-shadow: -10px 0 40px rgba(0,0,0,.6);
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links a { font-size: 1.15rem; }
  .nav__cta { margin-left: 0; }
}

/* ===== Hero ===== */
.hero {
  min-height: 100svh; display: flex; align-items: center; text-align: center;
  padding: 120px 0 60px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(242,183,5,.10), transparent 60%),
    var(--preto);
}
.hero__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.coin-scene { perspective: 1000px; display: inline-block; }
.coin {
  position: relative; display: inline-block;
  transform-style: preserve-3d;
  animation: coin-spin 5.5s linear infinite;
}
.hero__logo {
  display: block; width: min(380px, 84vw); height: auto;
  filter: drop-shadow(0 16px 34px rgba(0,0,0,.6));
}
/* Feixe de luz diagonal — mascarado no formato da própria logo */
.coin__beam {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(115deg,
      transparent 44%,
      rgba(255,255,255,.35) 47%,
      rgba(255,255,255,.95) 50%,
      rgba(255,255,255,.35) 53%,
      transparent 56%);
  background-size: 300% 100%; background-repeat: no-repeat;
  -webkit-mask-image: url(images/logo-hero-shine.png);
          mask-image: url(images/logo-hero-shine.png);
  -webkit-mask-size: contain;         mask-size: contain;
  -webkit-mask-repeat: no-repeat;     mask-repeat: no-repeat;
  -webkit-mask-position: center;      mask-position: center;
  mix-blend-mode: screen;
  animation: logo-beam 5.5s linear infinite;
}
/* Giro: acelera, dá 2 voltas e freia até parar (0%–32%), depois descansa */
@keyframes coin-spin {
  0%   { transform: rotateY(0deg);   animation-timing-function: cubic-bezier(.12,.72,.15,1); }
  32%  { transform: rotateY(720deg); }
  100% { transform: rotateY(720deg); }
}
/* Feixe: só aparece DEPOIS do giro, varrendo da direita para a esquerda */
@keyframes logo-beam {
  0%, 34%  { opacity: 0; background-position: 150% 0; }
  38%      { opacity: 1; }
  50%      { opacity: 1; }
  54%      { opacity: 0; background-position: -50% 0; }
  100%     { opacity: 0; background-position: -50% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .coin { animation: none; }
  .coin__beam { animation: none; opacity: 0; }
}
.hero__title {
  font-family: 'Poppins', sans-serif; font-weight: 900; color: var(--ouro);
  font-size: clamp(2.4rem, 9vw, 4.6rem); line-height: .98; letter-spacing: -1px;
  text-shadow: 0 6px 30px rgba(242,183,5,.25);
}
.hero__sub { color: var(--cinza); max-width: 520px; font-size: 1.05rem; }

/* ===== Reels ===== */
.reels { padding: 26px 0 50px; background: var(--preto); }
.reels .eyebrow { margin-bottom: 18px; }
.reels__row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  max-width: 760px; margin: 0 auto;
}
.reel {
  width: 100%; aspect-ratio: 9/16; border-radius: 16px; overflow: hidden;
  background: #000; box-shadow: 0 16px 40px rgba(0,0,0,.5);
  border: 2px solid rgba(242,183,5,.25);
}
.reel video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== Banner Agende ===== */
.agende { background: var(--ouro); color: #111; padding: 46px 0; text-align: center; }
.agende__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.agende__title {
  font-family: 'Poppins', sans-serif; font-weight: 900; line-height: 1;
  font-size: clamp(1.7rem, 6vw, 3rem); letter-spacing: -.5px; color: #111;
}

/* ===== Seções genéricas ===== */
.section { padding: 70px 0; }
.section--dark { background: var(--preto-2); }
.eyebrow {
  font-family: 'Poppins', sans-serif; text-transform: uppercase; letter-spacing: 3px;
  font-size: .78rem; font-weight: 600; color: var(--ouro); text-align: center;
}
.h2 {
  font-family: 'Poppins', sans-serif; font-weight: 800; text-align: center;
  font-size: clamp(1.6rem, 5vw, 2.6rem); margin-top: 6px; line-height: 1.1;
}
.rule-emblem { width: 60px; height: 4px; background: var(--ouro); border-radius: 4px; margin: 16px auto 40px; }

/* ===== Carrossel (galeria + reviews) ===== */
.carousel {
  display: flex; gap: 14px; padding: 4px 20px 10px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel__item {
  flex: 0 0 auto; scroll-snap-align: center;
  width: min(300px, 74vw); aspect-ratio: 4/5; border-radius: 16px; overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
}
.carousel__item img { width: 100%; height: 100%; object-fit: cover; }

/* Reviews */
.carousel--reviews .review {
  flex: 0 0 auto; scroll-snap-align: center;
  width: min(360px, 82vw); background: var(--preto-3); border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 12px;
}
.review__head { display: flex; align-items: center; gap: 12px; }
.review__avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--ouro); color: #111;
  display: grid; place-items: center; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.1rem;
}
.review__name { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .98rem; }
.review__stars { color: var(--ouro); font-size: .9rem; letter-spacing: 2px; }
.review__text { color: var(--cinza); font-size: .95rem; }

/* ===== Unidades ===== */
.units { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 780px) { .units { grid-template-columns: repeat(3, 1fr); } }
.unit {
  background: var(--preto); border: 1px solid rgba(255,255,255,.07); border-radius: 18px;
  padding: 22px; display: flex; flex-direction: column; gap: 14px;
}
.unit__name { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.35rem; color: var(--ouro); }
.unit__addr { color: var(--cinza); font-size: .92rem; }
.unit__map { border-radius: 12px; overflow: hidden; aspect-ratio: 16/11; background: #222; }
.unit__map iframe { width: 100%; height: 100%; border: 0; }
.unit__actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.unit__actions .btn { width: 100%; }

/* ===== Trabalhe conosco ===== */
.trabalhe { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.trabalhe__txt { color: var(--cinza); max-width: 480px; }

/* ===== CTA final ===== */
.cta-final { background: var(--ouro); color: #111; text-align: center; padding: 60px 0; }
.cta-final__inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cta-final__title { font-family: 'Poppins', sans-serif; font-weight: 900; font-size: clamp(1.8rem, 6vw, 3rem); color: #111; }
.cta-final__inner p { color: #2a2205; font-weight: 500; }

/* ===== Footer ===== */
.footer { background: var(--preto-2); padding: 46px 0 30px; border-top: 1px solid rgba(255,255,255,.06); }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer__logo { width: auto; height: 64px; }
.footer__addr { color: var(--cinza); font-size: .9rem; line-height: 1.8; }
.footer__social { display: flex; gap: 14px; align-items: center; }
.footer__social a, .footer__wa { color: var(--branco); background: none; border: none; cursor: pointer; padding: 6px; transition: transform .2s, color .2s; }
.footer__social a:hover { color: var(--ouro); transform: translateY(-2px); }
.footer__copy { color: #6d6d6d; font-size: .82rem; margin-top: 6px; }

/* ===== Botão flutuante WhatsApp ===== */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
  background: #25D366; display: grid; place-items: center;
  box-shadow: 0 10px 28px rgba(37,211,102,.5); animation: wa-pulse 2.4s infinite;
}
@keyframes wa-pulse { 0%,100% { box-shadow: 0 10px 28px rgba(37,211,102,.5); } 50% { box-shadow: 0 10px 34px rgba(37,211,102,.85); } }

/* ===== Modal ===== */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(4px); }
.modal__box {
  position: relative; background: var(--preto-2); border: 1px solid rgba(242,183,5,.25);
  border-radius: 20px; padding: 30px 26px; width: 100%; max-width: 440px;
  max-height: 92vh; overflow-y: auto; box-shadow: 0 30px 80px rgba(0,0,0,.7);
  animation: pop .25s var(--ease);
}
@keyframes pop { from { transform: translateY(14px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.modal__close { position: absolute; top: 12px; right: 16px; background: none; border: none; color: var(--cinza); font-size: 1.8rem; cursor: pointer; line-height: 1; }
.modal__close:hover { color: var(--ouro); }
.modal__title { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--ouro); }
.modal__sub { color: var(--cinza); font-size: .92rem; margin: 6px 0 20px; }
.field { display: block; margin-bottom: 16px; border: none; }
.field > span, .field legend { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 7px; color: #ddd; }
.field input[type="text"], .field input[type="tel"] {
  width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14);
  background: var(--preto); color: var(--branco); font-size: 1rem; font-family: inherit;
}
.field input:focus { outline: none; border-color: var(--ouro); }
.field input.error { border-color: #ff5252; }
.radio-row { display: flex; gap: 20px; }
.radio-col { display: flex; flex-direction: column; gap: 10px; }
.radio-row label, .radio-col label { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: #ddd; cursor: pointer; }
.radio-row input, .radio-col input { accent-color: var(--ouro); }

/* ===== Popup ===== */
.popup {
  position: fixed; left: 18px; bottom: 18px; z-index: 95; width: min(320px, calc(100vw - 36px));
  background: var(--preto-2); border: 1px solid rgba(242,183,5,.3); border-radius: 16px;
  padding: 22px 20px; box-shadow: 0 20px 50px rgba(0,0,0,.6);
  transform: translateY(140%); transition: transform .4s var(--ease); display: block;
}
.popup.show { transform: translateY(0); }
.popup__close { position: absolute; top: 8px; right: 12px; background: none; border: none; color: var(--cinza); font-size: 1.4rem; cursor: pointer; }
.popup__eyebrow { font-family: 'Poppins', sans-serif; text-transform: uppercase; letter-spacing: 2px; font-size: .72rem; color: var(--ouro); font-weight: 600; }
.popup__txt { font-size: .95rem; margin: 6px 0 14px; color: #eee; }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float { animation: none; }
  html { scroll-behavior: auto; }
}
