/* ==========================================================================
   BARBEARIA MELO — Stylesheet
   Paleta: Azul-marinho (#0D1B2E) · Azul-claro (#4A6FA5) · Branco · Cinza-azulado
   ========================================================================== */

/* ---------- Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Garante que o atributo `hidden` sempre esconda o elemento, mesmo quando a
   classe dele tambem define `display` (ex.: .summary-row, .returning-client-note
   usam display:flex) - sem isso o `display` do author sobrepoe o `display:none`
   do user-agent para [hidden], e o JS que faz `el.hidden = true` nao esconde nada. */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  /* So no html, nunca no body tambem (ver body abaixo) - com os dois
     declarando overflow-x:hidden, cada um vira um scroll container proprio
     (regra do overflow-y virar "auto" quando o outro eixo nao e' visible), e
     o body passa a ser o "container de rolagem" mais proximo dos elementos
     position:sticky da pagina (ex.: .booking-nav no mobile) em vez do
     viewport de verdade - no Safari do iPhone isso quebra o sticky (o botao
     "Continuar" some/nao acompanha a rolagem em vez de flutuar no rodape). */
  overflow-x: hidden;
}

/* As animacoes fade-left/right (AOS) dessas secoes comecam deslocadas 100px
   pro lado e alargavam a pagina no celular (390px virava 472px) - o botao do
   menu (☰) ficava fora da tela. clip (e nao hidden) pra nao criar container
   de rolagem (mesmo motivo do comentario do html acima). */
#sobre,
#contato {
  overflow-x: clip;
}

/* ---------- Variáveis ---------- */
:root {
  --black: #0d1b2e;
  --black-soft: #16243d;
  --gray-dark: #1c2e4a;
  --gray-mid: #28405f;
  --gray-text: #b7c3d9;
  --white: #ffffff;
  --gold: #4a6fa5;
  --gold-light: #7b9bc9;
  --gold-dark: #33517f;
  /* Mesmas cores em "r, g, b" pros rgba() com transparencia - a demo troca
     tudo de uma vez (ver html.is-demo no fim do arquivo). */
  --black-rgb: 13, 27, 46;
  --gray-dark-rgb: 28, 46, 74;
  --gray-text-rgb: 183, 195, 217;
  --gold-rgb: 74, 111, 165;
  --gold-light-rgb: 123, 155, 201;

  --font-heading: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;

  --transition: 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --navbar-height: 80px;
  --promo-topbar-height: 54px;
  --container-width: 1200px;
}

body {
  font-family: var(--font-body);
  background-color: var(--black);
  color: var(--white);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, select {
  font-family: inherit;
}

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

/* ---------- Utilitários ---------- */
.text-gold {
  color: var(--gold);
}

.section-tag {
  display: inline-block;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--gray-text);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

section {
  padding: 100px 0;
  position: relative;
}

/* Seções com título centralizado usam texto centralizado por padrão */
.services .container > .section-tag,
.services .container > .section-title,
.gallery .container > .section-tag,
.gallery .container > .section-title,
.team .container > .section-tag,
.team .container > .section-title,
.testimonials .container > .section-tag,
.testimonials .container > .section-title,
.booking .container > .section-tag,
.booking .container > .section-title,
.faq .container > .section-tag,
.faq .container > .section-title,
.contact .container > .section-tag,
.contact .container > .section-title {
  display: block;
  text-align: center;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: var(--transition);
  text-align: center;
  cursor: pointer;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: var(--black);
  box-shadow: 0 8px 20px rgba(var(--gold-rgb), 0.25);
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(var(--gold-rgb), 0.4);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--black);
  transform: translateY(-3px);
}

.nav-staff-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 18px;
  border-radius: 4px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: var(--gray-text);
  font-size: 0.82rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-staff-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ==========================================================================
   PRELOADER
   ========================================================================== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  margin: 0;
  background: var(--black);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  letter-spacing: 4px;
  font-weight: 700;
}

.preloader-logo img {
  height: 90px;
  width: 90px;
  border-radius: 50%;
}

.preloader-logo i {
  font-size: 2.6rem;
  color: var(--gold);
}

.preloader-bar {
  width: 160px;
  height: 2px;
  background: var(--gray-mid);
  overflow: hidden;
}

.preloader-bar span {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--gold);
  animation: loading 1.1s ease-in-out infinite;
}

@keyframes loading {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: var(--promo-topbar-height, 0px);
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  z-index: 1000;
  background: transparent;
  transition: var(--transition), top 0.3s ease;
}

.navbar.scrolled {
  top: 0;
  background: rgba(var(--black-rgb), 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  height: 70px;
}

.navbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 52px;
  width: 52px;
  border-radius: 50%;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--gold);
  letter-spacing: 0.02em;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links ul {
  display: flex;
  gap: 2rem;
}

.nav-link {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 0;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 24px;
  font-size: 0.85rem;
}

/* Botoes do topo sempre em 1 linha - com o link "Planos" (demo) o menu fica
   mais largo e eles quebravam em 2 linhas, dobrando a altura. */
.nav-cta,
.nav-staff-link {
  white-space: nowrap;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 1100;
}

.hamburger span {
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(var(--black-rgb), 0.75) 0%, rgba(var(--black-rgb), 0.55) 40%, rgba(var(--black-rgb), 0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-eyebrow {
  color: var(--gold);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--gray-text);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  font-size: 1.3rem;
  z-index: 2;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* ==========================================================================
   SERVIÇOS
   ========================================================================== */
.services {
  background: var(--black-soft);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  position: relative;
  background: var(--gray-dark);
  border: 1px solid rgba(var(--gold-rgb), 0.1);
  border-radius: 10px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--gold);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-card.featured {
  border-color: var(--gold);
  background: linear-gradient(160deg, var(--gray-dark), var(--gray-mid));
}

.badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--gold);
  color: var(--black);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.service-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(var(--gold-light-rgb), 0.4), rgba(var(--gold-rgb), 0.12));
  border: 1px solid rgba(var(--gold-light-rgb), 0.35);
  box-shadow: 0 8px 18px rgba(var(--gold-rgb), 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  color: var(--gold-light);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
  box-shadow: 0 10px 24px rgba(var(--gold-rgb), 0.5);
  transform: scale(1.08) rotateY(360deg);
}


.service-icon svg,
.select-card-icon svg {
  width: 1.55em;
  height: auto;
  display: block;
}

/* Icones customizados (Font Awesome free nao tem sobrancelha nem barba) -
   ilustracoes proprias usadas como mascara: a imagem so fornece o contorno
   (alpha), o preenchimento vem de currentColor - assim ficam na cor da
   barbearia e acompanham o hover/selecionado, igual aos outros icones. */
.icon-img {
  width: 66%;
  height: 66%;
  display: block;
  background-color: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.icon-img.icon-img-barba {
  -webkit-mask-image: url('img/icons/barba.png');
  mask-image: url('img/icons/barba.png');
}
.icon-img.icon-img-sobrancelha {
  width: 78%;
  height: 78%;
  -webkit-mask-image: url('img/icons/sobrancelha.svg');
  mask-image: url('img/icons/sobrancelha.svg');
}
.icon-img.icon-img-nariz {
  width: 58%;
  height: 58%;
  -webkit-mask-image: url('img/icons/nariz.svg');
  mask-image: url('img/icons/nariz.svg');
}
.icon-img.icon-img-cabelo {
  width: 68%;
  height: 68%;
  -webkit-mask-image: url('img/icons/cabelo.png');
  mask-image: url('img/icons/cabelo.png');
}
.icon-img.icon-img-combo {
  width: 62%;
  height: 62%;
  -webkit-mask-image: url('img/icons/combo.svg');
  mask-image: url('img/icons/combo.svg');
}
.icon-img.icon-img-cabelo-sobrancelha {
  width: 74%;
  height: 74%;
  -webkit-mask-image: url('img/icons/cabelo-sobrancelha.png');
  mask-image: url('img/icons/cabelo-sobrancelha.png');
}
.icon-img.icon-img-combo-sobrancelha {
  width: 62%;
  height: 62%;
  -webkit-mask-image: url('img/icons/cabelo-barba-sobrancelha.png');
  mask-image: url('img/icons/cabelo-barba-sobrancelha.png');
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 0.7rem;
}

.service-card p {
  color: var(--gray-text);
  font-size: 0.9rem;
  margin-bottom: 1.3rem;
  min-height: 48px;
}

.service-price {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  font-family: var(--font-heading);
}

/* ==========================================================================
   PLANOS DE ASSINATURA (carrossel - ver renderPlans em api-content.js)
   ========================================================================== */
.plans .section-tag,
.plans .section-title {
  display: block;
  text-align: center;
}

.plans-carousel {
  position: relative;
}

.plans-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 1.5rem 0.25rem 1rem;
}
.plans-track::-webkit-scrollbar { display: none; }

/* Centraliza quando cabe, sem cortar o primeiro card quando transborda
   (justify-content: center cortaria). */
.plan-card:first-child { margin-left: auto; }
.plan-card:last-child { margin-right: auto; }

.plan-card {
  position: relative;
  flex: 0 0 290px;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  background: var(--gray-dark);
  border: 1px solid rgba(var(--gold-rgb), 0.15);
  border-radius: 10px;
  padding: 2.2rem 1.8rem;
  text-align: center;
}

.plan-card.featured {
  border-color: var(--gold);
  background: linear-gradient(160deg, var(--gray-dark), var(--gray-mid));
}

.plan-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
}

.plan-price {
  margin: 0.8rem 0 1.2rem;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}
.plan-price small {
  font-size: 0.9rem;
  color: var(--gray-text);
}

.plan-card ul {
  list-style: none;
  text-align: left;
  margin-bottom: 1.6rem;
  flex: 1;
}
.plan-card li {
  color: var(--gray-text);
  font-size: 0.92rem;
  padding: 0.35rem 0;
}
.plan-card li i {
  color: var(--gold);
  margin-right: 0.4rem;
}

.plans-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  cursor: pointer;
}
.plans-arrow[data-dir="-1"] { left: -12px; }
.plans-arrow[data-dir="1"] { right: -12px; }
.plans-carousel.overflowing .plans-arrow { display: block; }

.plan-card .btn { width: 100%; }

.plan-dialog {
  width: min(420px, calc(100vw - 32px));
  margin: auto;
  padding: 1.8rem;
  border: 1px solid rgba(var(--gold-rgb), 0.3);
  border-radius: 12px;
  background: var(--gray-dark);
  color: var(--white);
}
.plan-dialog::backdrop { background: rgba(0, 0, 0, 0.7); }
.plan-dialog h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}
.plan-dialog-hint {
  color: var(--gray-text);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}
.plan-dialog-error { color: #ff6b6b; font-size: 0.85rem; }
.plan-dialog-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.plan-dialog-actions .btn { padding: 12px 22px; }

@media (max-width: 480px) {
  .plan-card { flex-basis: 82%; }
  .plans-arrow { display: none !important; } /* no celular arrasta com o dedo */
}

/* ==========================================================================
   GALERIA
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 340px;
  gap: 1rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.gallery-item:nth-child(2),
.gallery-item:nth-child(5) {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(var(--black-rgb), 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  color: var(--gold);
  font-size: 1.6rem;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox img {
  max-width: 85%;
  max-height: 85vh;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  color: var(--white);
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--gold);
  color: var(--black);
}

.lightbox-close {
  top: 30px;
  right: 30px;
}

.lightbox-prev {
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
}

/* ==========================================================================
   SOBRE
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
  /* Sem isso, o tamanho nativo do video (bem maior que o antigo placeholder
     em SVG) vira o "min-content" deste item do grid e estoura a coluna pro
     lado, ignorando o width:100% abaixo - classico bug de replaced element
     dentro de grid/flex sem min-width:0. */
  min-width: 0;
}

.about-image img,
.about-image video {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.about-image-badge {
  position: absolute;
  bottom: -25px;
  right: -25px;
  background: var(--gold);
  color: var(--black);
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 15px 30px rgba(var(--gold-rgb), 0.4);
}

.about-image-badge span {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}

.about-image-badge small {
  font-size: 0.7rem;
  font-weight: 600;
  max-width: 90px;
}

.about-content .section-tag,
.about-content .section-title {
  text-align: left;
}

.about-text {
  color: var(--gray-text);
  margin-bottom: 1.2rem;
}

.about-list {
  margin: 1.5rem 0 2rem;
}

.about-list li {
  margin-bottom: 0.7rem;
  color: var(--white);
}

.about-list i {
  color: var(--gold);
  margin-right: 10px;
}

/* Contadores */
.counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 6rem;
  padding-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.counter-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gold);
}

.counter-plus {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--gold);
}

.counter-item p {
  color: var(--gray-text);
  margin-top: 0.4rem;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ==========================================================================
   EQUIPE
   ========================================================================== */
.team {
  background: var(--black-soft);
}

.team-grid {
  display: grid;
  /* minmax com teto (em vez de 1fr) faz as colunas nao esticarem pra
     preencher a largura toda - assim, com menos de 3 barbeiros cadastrados,
     o justify-content centraliza o grupo em vez de ficar alinhado a
     esquerda com espaco vazio sobrando do lado direito. */
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  justify-content: center;
  gap: 2.5rem;
  margin-top: 3rem;
}

.team-card {
  text-align: center;
  background: var(--gray-dark);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.team-photo {
  overflow: hidden;
  height: 340px;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Enquadra um pouco mais pro alto (rosto), em vez de cortar bem no meio da
     foto - o padrao de retrato costuma ter mais espaco sobrando abaixo do
     que acima, e cortar no centro geometrico tende a jogar o rosto pra fora
     do quadro em fotos verticais. */
  object-position: center 25%;
  transition: transform 0.6s ease;
}

.team-photo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 35%, rgba(var(--gold-light-rgb), 0.22), rgba(var(--gray-dark-rgb), 0.9));
  color: var(--gold-light);
  font-size: 4.5rem;
}

.team-card:hover .team-photo img {
  transform: scale(1.08);
}

.team-card h3 {
  font-family: var(--font-heading);
  margin-top: 1.5rem;
  font-size: 1.3rem;
}

.team-role {
  color: var(--gold);
  font-size: 0.85rem;
  margin: 0.4rem 0 1.2rem;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding-bottom: 1.8rem;
}

.team-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(var(--gold-rgb), 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.team-social a:hover {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

/* ==========================================================================
   DEPOIMENTOS
   ========================================================================== */
.testimonial-carousel {
  max-width: 750px;
  margin: 3rem auto 0;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-slide {
  min-width: 100%;
  text-align: center;
  padding: 2rem 2.5rem;
  background: var(--gray-dark);
  border-radius: 10px;
}

.stars {
  color: var(--gold);
  font-size: 1.4rem;
  letter-spacing: 4px;
  margin-bottom: 1.2rem;
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.testimonial-name {
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 1rem;
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.testimonial-controls button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(var(--gold-rgb), 0.4);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.testimonial-controls button:hover {
  background: var(--gold);
  color: var(--black);
}

.testimonial-dots {
  display: flex;
  gap: 0.6rem;
}

.testimonial-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gray-mid);
  cursor: pointer;
  transition: var(--transition);
}

.testimonial-dots span.active {
  background: var(--gold);
  width: 24px;
  border-radius: 5px;
}

/* ==========================================================================
   BANNER DE PROMOÇÃO
   ========================================================================== */
.promo-banner {
  padding: 46px 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--gold-dark), var(--gold), var(--gold-light));
  background-size: 200% 200%;
  animation: shimmer 6s ease infinite;
  border-top: 2px solid rgba(255, 255, 255, 0.35);
  border-bottom: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 60px rgba(var(--gold-rgb), 0.55), inset 0 0 80px rgba(0, 0, 0, 0.12);
}

/* Textura sutil de diagonais para dar profundidade ao banner */
.promo-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.07) 0,
    rgba(255, 255, 255, 0.07) 2px,
    transparent 2px,
    transparent 18px
  );
  pointer-events: none;
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.promo-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.promo-text {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  color: var(--black);
}

.promo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--black);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35);
  animation: promo-pulse 1.8s ease-in-out infinite;
}

.promo-icon i {
  font-size: 1.6rem;
  color: var(--gold-light);
}

@keyframes promo-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.promo-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--black);
  background: rgba(255, 255, 255, 0.55);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}

.promo-text h3 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

.old-price {
  text-decoration: line-through;
  opacity: 0.6;
  margin-left: 6px;
  font-size: 0.9em;
}

/* "R$ 30,00 às quartas": promocao que vale pela data do atendimento */
.promo-note {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-light);
}
.promo-note i { margin-right: 4px; font-size: 0.85em; }

.promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.promo-cta i {
  transition: var(--transition);
}

.promo-cta:hover i {
  transform: translateX(4px);
}

.promo-banner .btn-gold {
  background: var(--black);
  color: var(--gold-light);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4), 0 10px 24px rgba(0, 0, 0, 0.35);
  animation: promo-cta-glow 2.4s ease-in-out infinite;
}

.promo-banner .btn-gold:hover {
  background: var(--black-soft);
  transform: translateY(-3px) scale(1.03);
}

@keyframes promo-cta-glow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4), 0 10px 24px rgba(0, 0, 0, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.55), 0 10px 30px rgba(0, 0, 0, 0.45); }
}

/* ---------- Variante fina, fixa acima da navbar ---------- */
.promo-banner--top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1001;
  padding: 16px 0;
  border-top: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
}

.promo-banner--top.topbar-hidden {
  transform: translateY(-100%);
}

/* Mesmo banner, logo abaixo da foto principal e rolando junto com a pagina -
   quando a barbearia escolhe isso (SiteSettings.promoBannerPosition = 'below-hero',
   ver applyPromoBannerPosition em api-content.js). Visual identico. */
.promo-banner--top.promo-banner--below-hero {
  position: relative;
  top: auto;
  left: auto;
  z-index: auto;
  transition: none;
}

.promo-banner--top.promo-banner--below-hero.topbar-hidden {
  transform: none;
}

.promo-banner--top .promo-inner {
  flex-wrap: nowrap;
  gap: 1rem;
}

.promo-banner--top .promo-text {
  gap: 0.6rem;
}

.promo-banner--top .promo-text > div {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.promo-banner--top .promo-icon {
  width: 38px;
  height: 38px;
  animation: promo-pulse 1.8s ease-in-out infinite;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.55);
}

.promo-banner--top .promo-icon i {
  font-size: 1.05rem;
}

.promo-banner--top .promo-tag {
  font-size: 0.62rem;
  line-height: 1;
  padding: 3px 8px;
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.85);
}

.promo-banner--top .promo-text h3 {
  font-size: 1.02rem;
  line-height: 1.15;
  margin-bottom: 0;
  white-space: nowrap;
}

.promo-banner--top .promo-text p {
  font-size: 0.8rem;
  line-height: 1.15;
  margin: 0;
  opacity: 0.85;
}

.promo-banner--top .promo-cta {
  padding: 9px 18px;
  font-size: 0.85rem;
  white-space: nowrap;
  animation: promo-cta-glow 2.4s ease-in-out infinite;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4), 0 6px 16px rgba(0, 0, 0, 0.3);
}

.promo-banner--top .promo-cta:hover {
  transform: none;
}

@media (max-width: 768px) {
  .promo-banner--top {
    padding: 12px 0;
  }

  /* Adaptativo de verdade: a largura natural do bloco de texto depende do
     que tiver mais caracteres entre badge/titulo/preco. Quando cabe do
     lado do botao no espaco disponivel (ex: titulo/preco curtos tipo
     "teste"), fica lado a lado. Quando o texto e' largo demais mesmo
     depois de encolher ate' o piso (min-width, mais ou menos a largura
     minima legivel da badge), o botao quebra pra linha de baixo. */
  .promo-banner--top .promo-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    text-align: left;
    row-gap: 14px;
  }

  .promo-banner--top .promo-text {
    flex: 1 1 100%;
    flex-direction: row;
    align-items: center;
    text-align: left;
    min-width: 0;
  }

  /* align-items:flex-start faria cada linha (badge, titulo) assumir sua
     propria largura de conteudo e "vazar" pra fora do container encolhido -
     width:100% forca as duas linhas a respeitarem o espaço disponivel de
     verdade, pra quebrar linha em vez de estourar. */
  .promo-banner--top .promo-text > div {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 3px;
    min-width: 0;
    width: 100%;
  }

  .promo-banner--top .promo-icon {
    width: 34px;
    height: 34px;
  }

  .promo-banner--top .promo-icon i {
    font-size: 0.95rem;
  }

  /* Titulo e descricao longos quebram pra linha de baixo em vez de cortar
     com "..." - a altura da barra acompanha (syncTopbarHeight em script.js). */
  .promo-banner--top .promo-text p {
    display: block;
    font-size: 0.8rem;
    max-width: 100%;
  }

  .promo-banner--top .promo-tag {
    display: block;
    width: fit-content;
    max-width: 100%;
    font-size: 0.6rem;
    padding: 2px 7px;
    margin-bottom: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .promo-banner--top .promo-text h3 {
    font-size: 1.05rem;
    font-weight: 800;
    max-width: 100%;
    white-space: normal;
  }

  .promo-banner--top .promo-text p {
    font-weight: 600;
    opacity: 0.9;
  }

  .promo-banner--top .promo-cta {
    flex-shrink: 0;
    padding: 11px 20px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.5), 0 8px 20px rgba(0, 0, 0, 0.35);
    margin-right: 77px;
  }
}

@media (max-width: 480px) {
  .promo-banner--top .promo-icon {
    width: 26px;
    height: 26px;
  }

  .promo-banner--top .promo-icon i {
    font-size: 0.75rem;
  }

  .promo-banner--top .promo-tag {
    font-size: 0.56rem;
  }

  .promo-banner--top .promo-text h3 {
    font-size: 0.92rem;
  }

  .promo-banner--top .promo-text p {
    font-size: 0.78rem;
  }

  .promo-banner--top .promo-cta {
    padding: 7px 12px;
    font-size: 0.75rem;
  }
}

/* ==========================================================================
   AGENDAMENTO — Assistente por etapas (estilo Booksy)
   ========================================================================== */
.booking-wizard {
  max-width: 1000px;
  margin: 0 auto;
}

/* ---------- Stepper de etapas ---------- */
.booking-stepper {
  display: flex;
  justify-content: center;
  margin-bottom: 2.8rem;
  list-style: none;
}

.booking-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  max-width: 170px;
}

.booking-step:not(:first-child)::before {
  content: '';
  position: absolute;
  top: 23px;
  right: 50%;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: var(--gray-mid);
  z-index: 0;
}

.booking-step:not(:first-child)::after {
  content: '';
  position: absolute;
  top: 23px;
  right: 50%;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 0;
}

.booking-step.active:not(:first-child)::after,
.booking-step.completed:not(:first-child)::after {
  transform: scaleX(1);
}

.step-circle {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black-soft);
  border: 2px solid var(--gray-mid);
  color: var(--gray-text);
  font-size: 1rem;
  transition: var(--transition), transform 0.35s ease, box-shadow 0.35s ease;
}

.step-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-text);
  text-align: center;
  transition: var(--transition);
}

.booking-step.active .step-circle {
  border-color: var(--gold);
  color: var(--gold);
  transform: scale(1.12);
  box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.18), 0 6px 16px rgba(0, 0, 0, 0.25);
}

.booking-step.completed .step-circle {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-color: var(--gold);
  color: var(--black);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

.booking-step.active .step-label {
  color: var(--gold-light);
  font-weight: 600;
}

.booking-step.completed .step-label {
  color: var(--white);
}

/* ---------- Corpo do wizard: painéis + resumo ---------- */
.booking-wizard-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}

.booking-panels {
  background: var(--gray-dark);
  border: 1px solid rgba(var(--gold-rgb), 0.1);
  border-radius: 12px;
  padding: 2.2rem;
  min-height: 360px;
  min-width: 0; /* impede que conteudo interno force a coluna do grid a crescer */
}

.booking-panel {
  display: none;
}

.booking-panel.active {
  display: block;
  animation: panelIn 0.4s ease;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

.panel-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 1.3rem;
}

.panel-title + .panel-subtitle {
  margin-top: -1rem;
}

.panel-subtitle {
  color: var(--gray-text);
  font-size: 0.9rem;
  margin-bottom: 1.3rem;
}

.panel-title-spaced {
  margin-top: 2.2rem;
}

.returning-client-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  background: rgba(var(--gold-rgb), 0.12);
  border: 1px solid rgba(var(--gold-rgb), 0.3);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-bottom: 1.3rem;
  font-size: 0.85rem;
  color: var(--white);
}

.returning-client-note i {
  color: var(--gold);
}

.returning-client-note #notYouBtn {
  margin-left: auto;
  color: var(--gray-text);
  text-decoration: underline;
  font-size: 0.8rem;
}

.returning-client-note #notYouBtn:hover {
  color: var(--gold-light);
}

/* ---------- Varias pessoas no mesmo envio (servico tocado mais de uma vez) ---------- */
.booking-people {
  margin-bottom: 1rem;
}

.booking-people-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-text);
  margin-bottom: 0.2rem;
}

.booking-people-hint {
  font-size: 0.78rem;
  color: var(--gray-text);
  margin-bottom: 0.6rem;
}

.booking-people-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.booking-person {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--black-soft);
  border: 1px solid var(--gray-mid);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
}

.booking-person-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
  font-size: 0.82rem;
  color: var(--gray-text);
}

.booking-person-info strong {
  color: var(--white);
  font-size: 0.92rem;
}

.booking-person-price {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.booking-person-name {
  background: var(--black);
  border: 1px solid var(--gray-mid);
  color: var(--white);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.booking-person-name:focus {
  outline: none;
  border-color: var(--gold);
}

/* Passo 3 com varias pessoas: um bloco por pessoa, so o ativo com as pilulas
   abertas (ver renderTimePickers em script.js). */
.person-time-block {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background: var(--black-soft);
  border: 1px solid var(--gray-mid);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.person-time-block.active {
  border-color: rgba(var(--gold-rgb), 0.6);
  box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.1);
}

.person-time-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--gray-text);
}

.person-time-label strong {
  color: var(--white);
}

.person-time-number {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--gray-mid);
  color: var(--white);
}

.person-time-block.active .person-time-number,
.person-time-block.done .person-time-number {
  background: var(--gold);
  color: var(--black);
}

.person-time-open {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
}

.person-time-chosen {
  color: var(--white);
}

.person-time-chosen i {
  color: var(--gold);
}

.person-time-chosen span {
  color: var(--gold);
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.person-time-open:hover,
.person-time-chosen:hover span {
  color: var(--gold-light);
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
  margin-bottom: 1.3rem;
}

.form-group label {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: var(--gray-text);
}

.form-group input {
  background: var(--black-soft);
  border: 1px solid var(--gray-mid);
  color: var(--white);
  padding: 13px 15px;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.15);
}

.form-group.invalid input {
  border-color: #e05252;
}

.error-message {
  color: #e05252;
  font-size: 0.78rem;
  margin-top: 0.4rem;
  min-height: 1em;
}

/* ---------- Cards de seleção (serviço / profissional) ---------- */
.service-select-grid,
.barber-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  border-radius: 8px;
  transition: var(--transition);
}

.service-select-grid.invalid,
/* Varias pessoas: um bloco por pessoa ocupando a linha inteira da grade (ver renderBarberCards) */
.barber-person-block {
  grid-column: 1 / -1;
}

.barber-person-block + .barber-person-block {
  margin-top: 0.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--gray-mid);
}

.barber-person-label {
  font-size: 0.9rem;
  color: var(--gray-text);
  margin-bottom: 0.7rem;
}

.barber-person-label strong {
  color: var(--white);
}

.barber-select-grid.invalid {
  outline: 2px solid #e05252;
  outline-offset: 6px;
  border-radius: 10px;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.select-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  background: var(--black-soft);
  border: 1px solid var(--gray-mid);
  border-radius: 10px;
  padding: 1.3rem 1rem 1.1rem;
  color: var(--white);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease, background 0.3s ease;
}

.select-card:hover {
  border-color: var(--gold-light);
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.select-card:active {
  transform: translateY(-1px) scale(1.01);
}

.select-card.selected {
  border-color: var(--gold);
  background: rgba(var(--gold-rgb), 0.14);
  box-shadow: 0 0 0 1px var(--gold), 0 0 18px rgba(var(--gold-rgb), 0.55);
  animation: selectGlow 0.5s ease;
}

@keyframes selectGlow {
  0% { box-shadow: 0 0 0 1px var(--gold), 0 0 0 rgba(var(--gold-rgb), 0); }
  50% { box-shadow: 0 0 0 1px var(--gold), 0 0 26px rgba(var(--gold-rgb), 0.75); }
  100% { box-shadow: 0 0 0 1px var(--gold), 0 0 18px rgba(var(--gold-rgb), 0.55); }
}

.select-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 32% 28%, rgba(var(--gold-light-rgb), 0.4), rgba(var(--gold-rgb), 0.15));
  border: 1px solid rgba(var(--gold-light-rgb), 0.35);
  box-shadow: 0 6px 14px rgba(var(--gold-rgb), 0.18);
  color: var(--gold-light);
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
  transition: var(--transition);
}

.select-card:hover .select-card-icon {
  border-color: var(--gold);
  box-shadow: 0 8px 18px rgba(var(--gold-rgb), 0.35);
}

.select-card.selected .select-card-icon {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
  box-shadow: 0 8px 20px rgba(var(--gold-rgb), 0.5);
}

.select-card-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 0.3rem;
  border: 2px solid var(--gray-mid);
  transition: var(--transition);
}

.select-card.selected .select-card-avatar {
  border-color: var(--gold);
}

.select-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.select-card-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.select-card-meta {
  font-size: 0.75rem;
  color: var(--gray-text);
  line-height: 1.35;
}

.select-card-price {
  margin-top: 0.2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--gold-light);
}

.select-card-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  opacity: 0;
  transform: scale(0.5);
  box-shadow: 0 0 0 rgba(var(--gold-rgb), 0);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease, box-shadow 0.3s ease;
}

.select-card.selected .select-card-check {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 0 10px rgba(var(--gold-rgb), 0.8);
}

/* Servico tocado mais de uma vez = mais pessoas (ver setServiceCardCount em script.js) */
.select-card-qty {
  position: absolute;
  top: 8px;
  right: 36px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--gold);
  color: var(--black);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.select-card-qty:empty {
  display: none;
}

.select-card-minus {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(var(--gold-rgb), 0.5);
  color: var(--gold);
  font-size: 0.7rem;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.select-card.selected.multi .select-card-minus {
  display: flex;
}

/* "Mais alguém": unico jeito de por mais uma pessoa no servico (o toque no card so liga/desliga) */
.select-card-add {
  display: none;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--gold-rgb), 0.5);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease;
}

.select-card.selected:not(.maxed) .select-card-add {
  display: inline-flex;
}

.select-card-add:hover,
.select-card-add:focus-visible {
  background: rgba(var(--gold-rgb), 0.15);
}

.select-card-minus:hover {
  background: rgba(var(--gold-rgb), 0.15);
}

.select-card.no-preference .select-card-icon {
  background: rgba(var(--gray-text-rgb), 0.12);
  color: var(--gray-text);
}

/* Barra do mes acima da tira de dias */
.date-month-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.date-month-label {
  min-width: 0;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-light);
}

.date-month-nav {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--gray-mid);
  color: var(--white);
  flex-shrink: 0;
  font-size: 0.75rem;
  transition: 0.3s ease;
}

.date-month-nav:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold-light);
}

.date-month-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Tira horizontal de dias (uma linha) */
.date-strip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: outline 0.2s ease;
}

.date-strip-row {
  flex: 1;
  display: flex;
  gap: 0.6rem;
  min-width: 0;
}

.date-strip-nav {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--gray-mid);
  color: var(--white);
  flex-shrink: 0;
  transition: 0.3s ease;
}

.date-strip-nav:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold-light);
  transform: scale(1.08);
}

.date-strip-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.date-chip {
  flex: 1;
  min-width: 0;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--black-soft);
  border: 1px solid var(--gray-mid);
  border-radius: 10px;
  color: var(--white);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Dia com promocao pros servicos escolhidos */
.date-chip.has-promo { position: relative; border-color: var(--gold-light); }
.date-chip.has-promo::before {
  content: '%';
  position: absolute;
  top: -7px;
  right: -5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold-light);
  color: #111;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

.date-chip .date-chip-weekday {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--gray-text);
  letter-spacing: 0.5px;
}

.date-chip .date-chip-day {
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

/* Barrinha indicando o quao cheia esta a agenda do barbeiro nesse dia */
.date-chip-load {
  display: block;
  width: 20px;
  height: 4px;
  border-radius: 3px;
  background: transparent;
  transition: background 0.3s ease;
}

.date-chip.load-low .date-chip-load { background: #22c55e; }
.date-chip.load-mid .date-chip-load { background: #eab308; }
.date-chip.load-high .date-chip-load { background: #ef4444; }

.date-chip.is-today:not(.selected) {
  border-color: var(--gold-light);
}

.date-chip:hover:not(:disabled) {
  border-color: var(--gold);
  transform: translateY(-2px) scale(1.05);
}

.date-chip.selected {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 14px rgba(var(--gold-rgb), 0.7);
}
.date-chip.selected .date-chip-day {
  color: var(--black);
}
.date-chip.selected .date-chip-weekday {
  color: rgba(17, 17, 17, 0.7);
}

.date-chip:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.date-strip.invalid {
  outline: 2px solid #e05252;
  outline-offset: 6px;
  border-radius: 14px;
  animation: shake 0.4s ease;
}

/* Seletor de horário agrupado por período */
.time-periods {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-height: 46px;
}

.time-grid-hint {
  color: var(--gray-text);
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

.time-period-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gold-light);
  margin-bottom: 0.6rem;
}

.time-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.time-chip {
  padding: 9px 16px;
  border-radius: 20px;
  background: var(--black-soft);
  border: 1px solid var(--gray-mid);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.time-chip:hover:not(:disabled) {
  border-color: var(--gold);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.time-chip.selected {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
  box-shadow: 0 0 14px rgba(var(--gold-rgb), 0.7);
}

.time-periods.invalid {
  outline: 2px solid #e05252;
  outline-offset: 6px;
  border-radius: 10px;
  animation: shake 0.4s ease;
}

/* ---------- Resumo lateral ---------- */
.booking-summary {
  position: sticky;
  top: calc(var(--navbar-height) + 20px);
  background: var(--gray-dark);
  border: 1px solid rgba(var(--gold-rgb), 0.15);
  border-radius: 12px;
  padding: 1.5rem;
}

.booking-summary h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
}

.summary-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--gray-mid);
  color: var(--white);
  text-align: left;
  font-size: 0.85rem;
  transition: var(--transition);
}

.summary-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(var(--gold-rgb), 0.15);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: background 0.3s ease, color 0.3s ease;
}

.summary-row.filled .summary-icon {
  background: var(--gold);
  color: var(--black);
}

.summary-row-static {
  padding-top: 0.6rem;
}

.summary-text {
  flex: 1;
}

.summary-empty {
  color: var(--gray-text);
  font-style: italic;
}

.summary-edit {
  opacity: 0;
  font-size: 0.72rem;
  color: var(--gray-text);
  transition: var(--transition);
}

.summary-row:hover .summary-edit {
  opacity: 1;
}

.summary-row.filled:hover {
  color: var(--gold-light);
}

.summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  font-size: 0.95rem;
  opacity: 0.55;
  transition: var(--transition);
}

.summary-total.show {
  opacity: 1;
}

.summary-total strong {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--gold-light);
}

/* ---------- Navegação entre etapas ---------- */
.booking-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.8rem;
}

.booking-back,
.booking-next,
.booking-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
}

.booking-back {
  background: transparent;
  border: 1px solid var(--gray-mid);
}

.booking-next,
.booking-submit {
  margin-left: auto;
}

.booking-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.booking-success {
  display: none;
  max-width: 850px;
  margin: 2rem auto 0;
  text-align: center;
  background: var(--gray-dark);
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 2.5rem;
}

.booking-success.show {
  display: block;
  animation: fadeInUp 0.5s ease;
}

.booking-success h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successPop {
  0% { opacity: 0; transform: translateY(-8px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.success-details {
  max-width: 360px;
  margin: 0 auto 1.5rem;
  background: var(--black-soft);
  border: 1px solid rgba(var(--gold-rgb), 0.25);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  text-align: left;
}

.success-detail-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.success-detail-row:not(:last-child) {
  border-bottom: 1px solid var(--gray-mid);
}

.success-detail-row i {
  color: var(--gold);
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.success-guests {
  max-width: 360px;
  margin: -0.5rem auto 1.5rem;
  text-align: left;
  font-size: 0.88rem;
}

.success-guests-title {
  color: var(--gray-text);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.success-guests ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.success-note {
  color: var(--gray-text);
  font-size: 0.88rem;
  margin-bottom: 1.8rem;
}

.success-note i {
  color: #25d366;
  margin-right: 0.3rem;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
  background: var(--black-soft);
}

.faq-list {
  max-width: 800px;
  margin: 3rem auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--gray-mid);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  text-align: left;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--gold);
}

.faq-question i {
  color: var(--gold);
  transition: transform 0.35s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer p {
  color: var(--gray-text);
  padding: 0 0.5rem 1.4rem;
  font-size: 0.92rem;
}

/* ==========================================================================
   CONTATO
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  margin-top: 3rem;
}

.contact-item {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.contact-item i {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 50%;
  background: rgba(var(--gold-rgb), 0.1);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-item h4 {
  font-family: var(--font-heading);
  margin-bottom: 0.3rem;
  font-size: 1.05rem;
}

.contact-item p {
  color: var(--gray-text);
  font-size: 0.92rem;
}

.contact-item a:hover {
  color: var(--gold);
}

.contact-map {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  min-height: 380px;
  border: 1px solid rgba(var(--gold-rgb), 0.1);
  filter: grayscale(0.3) contrast(1.1);
}

/* Link de reserva sobre o mapa - garante que o endereco continua acessivel
   mesmo se o iframe do Google (sem chave de API) falhar em carregar. */
.contact-map-fallback {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: background 0.2s ease, transform 0.2s ease;
}
.contact-map-fallback:hover { background: rgba(15, 23, 42, 1); transform: translateY(-1px); }

/* ==========================================================================
   RODAPÉ
   ========================================================================== */
.footer {
  background: var(--black-soft);
  padding-top: 80px;
  border-top: 1px solid rgba(var(--gold-rgb), 0.15);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-brand p {
  color: var(--gray-text);
  font-size: 0.9rem;
  margin: 1rem 0 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.8rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(var(--gold-rgb), 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--black);
}

.footer-links h4,
.footer-newsletter h4 {
  font-family: var(--font-heading);
  margin-bottom: 1.2rem;
  color: var(--gold);
  font-size: 1rem;
}

.footer-links li {
  margin-bottom: 0.7rem;
}

.footer-links a {
  color: var(--gray-text);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.footer-newsletter p {
  color: var(--gray-text);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
  text-align: center;
  color: var(--gray-text);
  font-size: 0.85rem;
}

.admin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.6rem;
  color: var(--gray-text);
  font-size: 0.78rem;
  opacity: 0.6;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.admin-link:hover {
  opacity: 1;
  color: var(--gold);
}

/* ==========================================================================
   EXTRAS FLUTUANTES
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.8rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 900;
  animation: pulse 2.5s infinite;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 50px;
  height: 50px;
  background: var(--gold);
  color: var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: var(--transition);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold-light);
  transform: translateY(-4px);
}

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */
@media (max-width: 992px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    max-width: 500px;
    margin: 0 auto;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .booking-wizard-body {
    grid-template-columns: 1fr;
  }

  .booking-summary {
    position: static;
  }

  /* Só faz sentido "flutuar" o botão quando o layout empilha em coluna única
     (senão a barra fica esticada por baixo das duas colunas, com um vão vazio
     enorme ao lado do botão). Sticky no rodapé da viewport: com listas longas
     (ex.: grade de serviços) o usuário teria que rolar até o fim da página
     pra achar o botão. Fixando ele visível durante a rolagem, o clique fica
     acessível a qualquer momento. O bottom de 90px (em vez de rente ao rodapé)
     dá folga acima dos botões flutuantes de WhatsApp e voltar-ao-topo, que
     também ficam fixos perto do rodapé da tela em toda essa faixa (≤992px). */
  .booking-nav {
    position: sticky;
    bottom: 90px;
    z-index: 950;
    background: var(--gray-dark);
    border: 1px solid rgba(var(--gold-rgb), 0.3);
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  }
}

/* Menu vira gaveta (☰) abaixo de 1280px, nao so no celular: entre ~800 e
   1280px os links + os 2 botoes nao cabem numa linha e "Área da Equipe"
   saia pra fora da tela. */
@media (max-width: 1279px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 78%;
    max-width: 340px;
    height: 100vh;
    background: var(--black-soft);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
    gap: 2.5rem;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    transition: right 0.4s ease;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links ul {
    flex-direction: column;
    gap: 1.6rem;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 768px) {
  .hero-bg {
    background-attachment: scroll;
  }

  /* Centraliza o conteudo no espaco ABAIXO da barra de promocao + navbar
     (as duas fixas por cima) - senao, em celular mais baixo ou com promocao
     de 2 linhas, o "Barbearia Premium" ia parar atras do menu. height:auto
     deixa o hero crescer em vez de cortar o conteudo em tela bem baixa. */
  .hero {
    height: auto;
    min-height: 100vh;
    padding: calc(var(--promo-topbar-height, 0px) + var(--navbar-height) + 16px) 0 56px;
  }

  .about-image-badge {
    width: 90px;
    height: 90px;
    bottom: -15px;
    right: -15px;
  }

  .about-image-badge span {
    font-size: 1.5rem;
  }

  .about-image-badge small {
    font-size: 0.6rem;
    max-width: 65px;
  }

  .counters {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    /* No desktop o respiro grande antes dos contadores fica elegante, mas no
       celular ele sozinho ocupa quase uma tela inteira de rolagem vazia. */
    margin-top: 3rem;
    padding-top: 2rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  /* Cards de serviço: no desktop o respiro grande fica elegante, mas no
     celular (1 card por linha) sobra espaço vazio e obriga a rolar demais
     para ver todos os serviços. */
  .services-grid {
    gap: 1.2rem;
    margin-top: 2rem;
  }

  .service-card {
    padding: 1.6rem 1.4rem;
  }

  .service-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 1rem;
    font-size: 1.5rem;
  }

  .service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
  }

  .service-card p {
    font-size: 0.85rem;
    min-height: 0;
    margin-bottom: 0.9rem;
  }

  .service-price {
    font-size: 1.2rem;
  }

  .booking-panels {
    padding: 1.5rem 1.2rem;
  }

  /* Tira de datas: em vez de espremer os 7 dias numa linha (o que os deixa
     minúsculos e difíceis de tocar), fixa uma largura confortável por chip
     e deixa a linha rolar horizontalmente, como um seletor de data nativo. */
  .date-strip-nav {
    flex-shrink: 0;
  }

  .date-strip-row {
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    /* overflow-x: auto tambem corta na vertical - sem esse respiro o selo "%"
       (.date-chip.has-promo::before, que sai pra fora do dia) fica cortado. */
    padding: 8px 6px 4px 0;
  }

  .date-strip-row::-webkit-scrollbar {
    display: none;
  }

  .date-chip {
    flex: 0 0 auto;
    width: 60px;
    scroll-snap-align: start;
  }

  .time-chip {
    padding: 11px 16px;
  }

  .step-circle {
    width: 34px;
    height: 34px;
    font-size: 0.8rem;
  }

  .booking-step:not(:first-child)::before,
  .booking-step:not(:first-child)::after {
    top: 17px;
  }

  .step-label {
    font-size: 0.62rem;
    letter-spacing: 0.2px;
  }

  .service-select-grid,
  .barber-select-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.7rem;
  }

  /* Nos cards de servico/profissional o icone (56px) fica desproporcional
     assim que o card encolhe pra caber na tela do celular - reduz junto. */
  .select-card-icon,
  .select-card-avatar {
    width: 44px;
    height: 44px;
  }

  .select-card-icon {
    font-size: 1.15rem;
  }

  .booking-nav {
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .booking-back,
  .booking-next,
  .booking-submit {
    flex: 1;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .promo-inner {
    flex-direction: column;
    text-align: center;
  }

  .promo-text {
    flex-direction: column;
  }

  section {
    padding: 70px 0;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  /* Em telas bem estreitas o rótulo "Profissional" chega a encostar na borda
     da coluna (0px de folga) e "Data & Hora" já quebra em duas linhas,
     desalinhando a barra de etapas — reduz fonte/espaçamento pra caber
     numa linha só com folga em qualquer aparelho. */
  .step-label {
    font-size: 0.54rem;
    letter-spacing: 0;
  }

  .step-circle {
    width: 30px;
    height: 30px;
    font-size: 0.72rem;
  }

  .booking-step:not(:first-child)::before,
  .booking-step:not(:first-child)::after {
    top: 15px;
  }

  .booking-panels {
    padding: 1.3rem 0.9rem;
  }

  .date-chip {
    width: 52px;
  }

  .service-select-grid,
  .barber-select-grid {
    grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
    gap: 0.6rem;
  }

  .select-card-icon,
  .select-card-avatar {
    width: 38px;
    height: 38px;
  }

  .select-card-icon {
    font-size: 1rem;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
  }

  .whatsapp-float {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
    left: 16px;
    /* env(safe-area-inset-bottom) da folga da barra/indicador de home dos
       celulares com "notch" (ex.: iPhone) - nos demais, o fallback 0px
       mantém o mesmo bottom:16px de sempre. */
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  /* Botão de voltar ao topo some no mobile - o WhatsApp flutuante já ocupa
     esse canto da tela e o usuário pediu pra tirar. */
  .back-to-top {
    display: none;
  }

  /* Mesmo motivo do .booking-nav acima: no fim da página, a última linha do
     rodapé (copyright) fica exatamente atrás dos botões flutuantes. */
  .footer-bottom {
    padding-bottom: 74px;
  }
}

/* ==========================================================================
   BARBEARIA DEMO (demo.classbarber.com.br) - paleta preto e dourado, pra nao
   parecer a Barbearia Melo. A classe vem de public/api-content.js, so no
   subdominio demo; as outras empresas nunca a recebem.
   ========================================================================== */
html.is-demo {
  --black: #121212;
  --black-soft: #1a1815;
  --gray-dark: #24211c;
  --gray-mid: #3a342b;
  --gray-text: #c9c0b1;
  --gold: #c8a15a;
  --gold-light: #e0c48a;
  --gold-dark: #9a7a3e;
  --black-rgb: 18, 18, 18;
  --gray-dark-rgb: 36, 33, 28;
  --gray-text-rgb: 201, 192, 177;
  --gold-rgb: 200, 161, 90;
  --gold-light-rgb: 224, 196, 138;
}
