/* =========================================================
   Barbearia BigPipito — estilos da versão Node.js
   (complementa o index.css original)
   ========================================================= */
:root {
  --gold: #c0a985;
  --gold-2: #e0c48f;
  --dark: #1c1919;
  --dark-2: #2b2626;
  --green: #14d324;
}
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
section[id] { scroll-margin-top: 90px; }
a { transition: color .2s; }

/* ---------- Preloader ---------- */
#preloader { position: fixed; inset: 0; z-index: 3000; background: var(--dark); display: flex; align-items: center; justify-content: center; transition: opacity .5s, visibility .5s; }
#preloader.hide { opacity: 0; visibility: hidden; }
#preloader .pole { width: 26px; height: 90px; border-radius: 13px; border: 3px solid #fff;
  background: repeating-linear-gradient(-45deg, #d32f2f 0 10px, #fff 10px 20px, #1565c0 20px 30px, #fff 30px 40px);
  background-size: 100% 56px; animation: pole 0.8s linear infinite; box-shadow: 0 0 25px rgba(192,169,133,.5); }
@keyframes pole { to { background-position: 0 56px; } }

/* ---------- Barra de progresso ---------- */
#scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 2000;
  background: linear-gradient(90deg, var(--gold), var(--green)); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Cabeçalho (barra superior + navbar) ---------- */
#site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1030; transition: transform .35s ease; }
.topbar { background: #111; color: #cfcfcf; font-size: .82rem; height: 36px; display: flex; align-items: center;
  border-bottom: 1px solid rgba(192,169,133,.25); transition: margin-top .35s ease; }
.topbar a, .topbar span { color: #cfcfcf; margin-right: 18px; white-space: nowrap; }
.topbar a:hover { color: var(--gold-2); text-decoration: none; }
.topbar .ti { color: var(--gold); margin-right: 6px; }
.topbar-social a { margin-right: 0; margin-left: 16px; }
#site-header.scrolled .topbar { margin-top: -36px; }
.main-nav { background-color: rgba(49,43,43,.88); box-shadow: 0 10px 30px rgba(0,0,0,.6); padding-top: .7rem; padding-bottom: .7rem;
  transition: padding .3s ease, background-color .3s ease; backdrop-filter: blur(6px); }
#site-header.scrolled .main-nav { padding-top: .25rem; padding-bottom: .25rem; background-color: rgba(28,25,25,.97); }
.main-nav .navbar-brand img { transition: height .3s; object-fit: contain; }
#site-header.scrolled .navbar-brand img { height: 38px; }
.main-nav .nav-link { position: relative; padding: .5rem .9rem !important; letter-spacing: .5px; }
.main-nav .nav-link::after { content: ''; position: absolute; left: 50%; right: 50%; bottom: 2px; height: 2px; background: var(--gold); transition: left .25s, right .25s; }
.main-nav .nav-link:hover::after, .main-nav .nav-link.active::after { left: .9rem; right: .9rem; }
nav ul li a:hover { background-color: transparent !important; border-bottom-style: none !important; }
.main-nav .nav-link.active { color: var(--gold-2) !important; font-weight: bold; }
.burger { display: inline-block; width: 28px; }
.burger span { display: block; height: 3px; margin: 5px 0; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }
.navbar-toggler[aria-expanded="true"] .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.navbar-toggler:focus { outline: none; }

.btn-book { background: linear-gradient(135deg, var(--gold), #9b8159); color: #fff !important; border: 0; font-weight: bold; letter-spacing: .5px;
  border-radius: 30px; padding-left: 1.4rem; padding-right: 1.4rem; box-shadow: 0 6px 18px rgba(192,169,133,.35); transition: transform .2s, box-shadow .2s; }
.btn-book:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(192,169,133,.55); }
.btn-glow { animation: glow 2.2s ease-in-out infinite; }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(224,196,143,.6); } 50% { box-shadow: 0 0 0 14px rgba(224,196,143,0); } }

.margem { min-height: 80px; }
@media (min-width: 768px) { .margem { min-height: 110px; } }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; min-height: 620px; display: flex; align-items: center; color: #fff; background-attachment: scroll; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(0,0,0,.78), rgba(0,0,0,.35) 60%, rgba(0,0,0,.6)); }
.hero-content { position: relative; z-index: 1; padding-top: 80px; }
.hero-kicker { color: var(--gold-2); letter-spacing: 4px; text-transform: uppercase; }
.hero .cover-heading { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: bold; text-shadow: 0 4px 20px rgba(0,0,0,.5); }
.hero-typed { color: var(--gold-2); min-height: 1.5em; font-size: clamp(1.3rem, 3vw, 2rem); }
.typed-cursor { animation: blink .8s step-end infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.scroll-down { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); width: 30px; height: 50px; border: 2px solid #fff; border-radius: 20px; z-index: 1; }
.scroll-down span { position: absolute; top: 8px; left: 50%; width: 6px; height: 6px; margin-left: -3px; background: #fff; border-radius: 50%; animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(22px); } }

.animated.delay-2s { animation-delay: 2s; }
@keyframes zoomIn { from { opacity: 0; transform: scale3d(.3,.3,.3); } 50% { opacity: 1; } }
.zoomIn { animation-name: zoomIn; }

/* ---------- Números ---------- */
.stats-strip { background: linear-gradient(90deg, #191515, #2b2626, #191515); color: #fff; border-top: 2px solid var(--gold); border-bottom: 2px solid var(--gold); }
.stat-num { font-size: 2.4rem; color: var(--gold-2); font-weight: bold; line-height: 1.1; }
.stat-label { font-size: .9rem; color: #ddd; }

/* ---------- Secções ---------- */
.section-title { position: relative; padding-bottom: 14px; }
.section-title::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 70px; height: 3px; margin-left: -35px; background: var(--gold); border-radius: 3px; }
.img-zoom { overflow: hidden; }
.img-zoom img { transition: transform .6s ease; }
.img-zoom:hover img { transform: scale(1.07); }

.pro-card { transition: transform .3s, box-shadow .3s; overflow: hidden; }
.pro-card:hover { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(0,0,0,.35) !important; }
.pro-photo-wrap { position: relative; overflow: hidden; }
.pro-photo { height: 240px; object-fit: cover; transition: transform .5s; }
.pro-card:hover .pro-photo { transform: scale(1.06); }
.pro-book { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px; text-align: center; color: #fff; font-weight: bold;
  background: rgba(155,129,89,.92); transform: translateY(100%); transition: transform .3s; }
.pro-card:hover .pro-book, .pro-book:focus { transform: translateY(0); color: #fff; text-decoration: none; }
.card-title, .card-text, .pricing-card-title { overflow-wrap: anywhere; }

.service-card { position: relative; transition: transform .3s, box-shadow .3s; overflow: hidden; }
.service-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 18px 40px rgba(0,0,0,.5) !important; }
.service-card.featured { border: 2px solid var(--gold); }
.service-card .ribbon { position: absolute; top: 14px; right: -34px; transform: rotate(45deg); background: var(--gold); color: #fff; font-size: .7rem; font-weight: bold; padding: 3px 40px; }
.pricing-card-title { font-size: 1.9rem; white-space: nowrap; }

.cta-band { position: relative; overflow: hidden; background: #1c1919; }
.pole-stripes { position: absolute; inset: 0; opacity: .14;
  background: repeating-linear-gradient(-45deg, #d32f2f 0 30px, #fff 30px 60px, #1565c0 60px 90px, #fff 90px 120px);
  background-size: 170px 170px; animation: stripes 6s linear infinite; }
@keyframes stripes { to { background-position: 170px 0; } }

.gallery-item { display: block; position: relative; overflow: hidden; border-radius: 10px; aspect-ratio: 1 / 1; background: #111; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease, filter .45s; }
.gallery-item:hover img { transform: scale(1.1) rotate(1deg); filter: brightness(.75); }
.gallery-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 10px; font-size: .85rem; background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #fff; }

.lightbox { position: fixed; inset: 0; z-index: 2100; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; text-align: center; max-width: 90vw; }
.lightbox img { max-width: 90vw; max-height: 80vh; border-radius: 8px; transform: scale(.9); transition: transform .3s; }
.lightbox.open img { transform: scale(1); }
.lightbox figcaption { color: #ddd; margin-top: 10px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 3rem; line-height: 1; cursor: pointer; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 15px; right: 25px; }
.lb-prev { left: 15px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 15px; top: 50%; transform: translateY(-50%); }

/* ---------- Voltar ao topo + WhatsApp ---------- */
#back-to-top { position: fixed; right: 22px; bottom: 90px; z-index: 1050; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: #1c1919; color: #fff; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: opacity .3s, transform .3s, visibility .3s; box-shadow: 0 6px 20px rgba(0,0,0,.45); padding: 0; }
#back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { background: #2b2626; }
#back-to-top:focus { outline: none; }
#back-to-top .ring { position: absolute; inset: 2px; width: 44px; height: 44px; transform: rotate(-90deg); }
#back-to-top .ring circle { fill: none; stroke: rgba(255,255,255,.15); stroke-width: 3; }
#back-to-top .ring .ring-fill { stroke: var(--gold); transition: stroke-dashoffset .1s linear; }
#back-to-top .arrow { position: relative; font-size: 1.3rem; font-weight: bold; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 1050; border-radius: 50%; box-shadow: 0 6px 20px rgba(0,0,0,.45); transition: transform .2s; animation: bob 3s ease-in-out infinite; }
.wa-float:hover { transform: scale(1.08); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.section6 a { color: #fff; }
#contacto .alert { margin-bottom: 1rem; }

/* ---------- Reservas ---------- */
.booking-wrap { min-height: 70vh; color: #eee; }
.steps { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; padding: 0; margin: 0 0 2rem; gap: 8px; }
.steps li { display: flex; align-items: center; color: #999; padding: 6px 14px; border-radius: 30px; background: #2b2626; font-size: .9rem; cursor: default; transition: background .3s, color .3s; }
.steps li span { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; background: #444; color: #fff; margin-right: 8px; font-size: .8rem; transition: background .3s; }
.steps li.active { background: var(--gold); color: #fff; }
.steps li.active span { background: #1c1919; }
.steps li.done { color: #ddd; cursor: pointer; }
.steps li.done span { background: #28a745; }
.step-panel { display: none; }
.step-panel.active { display: block; animation: panelIn .4s ease; }
@keyframes panelIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }

.pick-card { width: 100%; height: 100%; text-align: left; background: #2b2626; border: 2px solid transparent; border-radius: 14px; padding: 16px; color: #eee;
  display: flex; flex-direction: column; cursor: pointer; transition: transform .2s, border-color .2s, background .2s; }
.pick-card:hover { transform: translateY(-3px); border-color: rgba(192,169,133,.6); }
.pick-card:focus { outline: none; border-color: var(--gold); }
.pick-card.selected { border-color: var(--gold); background: #3a3131; box-shadow: 0 0 0 4px rgba(192,169,133,.2); }
.pick-title { font-weight: bold; font-size: 1.1rem; }
.pick-price { font-size: 1.4rem; color: var(--gold-2); margin: 4px 0; }
.pick-meta { font-size: .82rem; color: #aaa; }
.pro-avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; border: 3px solid var(--gold); }
.pro-avatar.any { display: flex; align-items: center; justify-content: center; font-size: 2rem; background: #1c1919; color: var(--gold-2); }
.pro-pick { align-items: center; }

.days-scroller { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x mandatory; }
.day-chip { flex: 0 0 auto; width: 70px; padding: 10px 0; border-radius: 12px; background: #2b2626; border: 2px solid transparent; color: #eee;
  display: flex; flex-direction: column; align-items: center; scroll-snap-align: start; cursor: pointer; transition: transform .2s, border-color .2s; }
.day-chip:hover { transform: translateY(-3px); }
.day-chip .dw { font-size: .75rem; color: #aaa; text-transform: uppercase; }
.day-chip .dd { font-size: 1.5rem; font-weight: bold; }
.day-chip .dm { font-size: .75rem; color: var(--gold-2); }
.day-chip.selected { border-color: var(--gold); background: #3a3131; }
.day-chip.closed { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.slot { padding: 10px 0; border-radius: 10px; border: 2px solid #444; background: #1c1919; color: #fff; font-weight: bold; cursor: pointer;
  opacity: 0; animation: slotIn .3s ease forwards; transition: border-color .2s, background .2s; }
.slot:hover { border-color: var(--gold); }
.slot.selected { background: var(--gold); border-color: var(--gold); }
@keyframes slotIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.slots-loading { display: flex; gap: 8px; padding: 20px 0; }
.slots-loading span { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); animation: bounceDot 1s infinite ease-in-out; }
.slots-loading span:nth-child(2) { animation-delay: .15s; }
.slots-loading span:nth-child(3) { animation-delay: .3s; }
@keyframes bounceDot { 0%, 80%, 100% { transform: scale(.4); opacity: .5; } 40% { transform: scale(1); opacity: 1; } }

.pay-methods { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-opt { margin: 0; cursor: pointer; }
.pay-opt input { position: absolute; opacity: 0; }
.pay-opt span { display: inline-block; padding: 8px 16px; border-radius: 20px; border: 2px solid #555; transition: all .2s; }
.pay-opt input:checked + span { border-color: var(--gold); background: var(--gold); color: #fff; }
.pay-opt input:focus + span { box-shadow: 0 0 0 3px rgba(192,169,133,.35); }
.policy-box { background: #2b2626; border-left: 4px solid var(--gold); border-radius: 8px; padding: 14px 16px; }
.shake { animation: shake .5s; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

.summary-card { top: 120px; background: linear-gradient(160deg, #2b2626, #1c1919); border: 1px solid rgba(192,169,133,.35); border-radius: 16px; padding: 20px; color: #eee; }
.summary-card dt { font-weight: normal; color: #999; font-size: .8rem; text-transform: uppercase; }
.summary-card dd { font-size: 1.05rem; margin-bottom: .7rem; overflow-wrap: anywhere; }
.flash-in { animation: flashIn .5s; }
@keyframes flashIn { from { color: var(--gold-2); transform: translateX(6px); } to { transform: none; } }

.ticket { background: #fff; color: #222; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.ticket-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; color: #fff;
  background: linear-gradient(135deg, #312b2b, #9b8159); }
.ticket-code { font-size: 1.8rem; letter-spacing: 4px; font-weight: bold; }
.ticket-body { padding: 22px 24px; border-top: 3px dashed #ddd; }
.ticket-body small { color: #888; text-transform: uppercase; font-size: .72rem; }
.ticket-body .tv { font-weight: bold; font-size: 1.05rem; overflow-wrap: anywhere; }
.info-card { background: #2b2626; border-radius: 14px; padding: 20px 22px; color: #eee; }
.info-card a { color: var(--gold-2); }

@media (max-width: 767.98px) {
  .hero { height: auto; min-height: 100vh; padding: 120px 0 80px; }
  .hero-content { padding-top: 0; }
  .centralizar { position: static; margin-top: 110px !important; }
  .fundoBg { background-attachment: scroll; }
  .pricing-card-title { font-size: 1.6rem; }
  .stat-num { font-size: 1.8rem; }
  #back-to-top { right: 24px; bottom: 86px; }
  .summary-card { position: static !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}