/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #d4af37 #111;
  font-family: Arial, Helvetica, sans-serif;
}
body {
  font-family: Georgia, serif;
  background: #111;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}
body.modal-opened {
  overflow: hidden;
}

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

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #111;
}
::-webkit-scrollbar-thumb {
  background: #d4af37;
  border-radius: 4px;
  border: 2px solid #111;
}
::-webkit-scrollbar-thumb:hover {
  background: #b8962e;
}

/* Header */
header {
  background: #000;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  width: 100vw;
  z-index: 10;
}
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.logo {
  height: 60px;
  width: 60px;
  border-radius: 20%;
}
.name {
  height: 100%;
  font-size: 1.8rem;
  background: linear-gradient(90deg,
    #d4af37 0%,
    #fff 20%,
    #d4af37 40%,
    #fff 60%,
    #d4af37 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 4s ease-in-out infinite;
}
@keyframes shine {
  to { background-position: -100% center; }
}

/* Navigation */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-weight: bold;
  transition: color .3s;
}
.nav-links a:hover {
  color: #d4af37;
}

/* Main Layout */
main {
  padding: 0 2rem;
  max-width: 1200px;
  margin: auto;
}

/* Hero */
.hero {
  background: url('./assets/barbearia-background.png') center/cover no-repeat #111;
  height: calc(100vh - 80px);
  min-height: 400px;
  max-height: 660px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 1130px) {
  .hero { max-height: none; }
}
@media (max-width: 768px) {
  .hero {
    background: url('./assets/barbearia-background-mobile.png') top/cover no-repeat;
    height: 100vh;
    min-height: 500px;
  }
}

/* WhatsApp Button */
.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  border-radius: 50px;
  padding: .7rem;
  box-shadow: 0 0 10px #000;
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 54px;
  overflow: hidden;
  transition: width .4s, padding .4s;
  animation: slideIn .8s ease-out;
}
.whatsapp-btn:hover {
  width: 230px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.whatsapp-btn::after {
  content: "Entrar em contato";
  color: #fff;
  font-weight: bold;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: opacity .3s, transform .3s, visibility .3s;
}
.whatsapp-btn:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.whatsapp-btn img {
  width: 32px;
  height: 32px;
}
@keyframes slideIn {
  from { opacity:0; transform:translateY(50px); }
  to   { opacity:1; transform:translateY(0); }
}

/* Cortes */
.catalogo {
  padding: 4rem 2rem 2rem;
  background: #1a1a1a;
  text-align: center;
}
.catalogo h3 {
  color: #d4af37;
  font-size: 2rem;
  margin-bottom: 2rem;
}
.cortes-slider {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px,1fr));
  gap: 1rem;
}
.corte-item {
  background: #222;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.corte-item img {
  width: 100%;
  border-radius: 6px;
}
.corte-item p {
  margin: .5rem 0;
  font-weight: bold;
}
.corte-item span {
  color: #d4af37;
}

/* Sobre */
.sobre {
  padding: 4rem 2rem;
}
.about-label {
  font-size: 2rem;
  color: #fff;
  text-align: flex-start;
}
.sobre-header h3 {
  color: #d4af37;
  text-align: flex-start;
  width: fit-content;
  border-bottom: solid 2px #d4af37;
}
.sobre-container {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}
.sobre-conteudo {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.sobre-container img {
  min-width: 400px;
  width: 100%;
  border-radius: 10px;
}
.destaques {
  list-style: none;
  text-align: start;
}
.destaques li::before {
  content: "✓ ";
  color: #d4af37;
}

/* Avaliações */
.avaliacoes-verticais {
  padding: 2rem 1rem;
  background: #111;
  text-align: center;
}
.avaliacoes-verticais h3 {
  color: #d4af37;
  margin: 2rem 0;
}
.avaliacoes-verticais > div{
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.avaliacoes-verticais > div > div{
  width: 50%;
}
#avaliacoes-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
  height: calc(3 * 120px + 2rem);
  width: 100%;
}
.avaliacao {
  background: #222;
  border-left: 4px solid #d4af37;
  border-radius: 6px;
  padding: 1rem;
  max-width: 1100px;
  width: 100%;
  margin: 0;
}
.avaliacao p { font-style: italic; }
.stars    { color: #d4af37; margin-top:.3rem; }

/* Paginação */
.paginacao {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}
.paginacao button {
  background: #d4af37;
  color: #111;
  border: none;
  padding: .5rem 1rem;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background .3s;
}
.paginacao button:hover {
  background: #b8962e;
}

/* Feedback Form (Opiniões) */
#feedback-form.opinion-form {
  background: #2b2b2b;
  padding: 1.5rem;
  border-radius: 8px;
}

#feedback-form.opinion-form h4 {
  color: #d4af37;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

#feedback-form.opinion-form label {
  color: #fff;
  margin-bottom: .25rem;
  display: block;
  font-size: .95rem;
}

#feedback-form.opinion-form input,
#feedback-form.opinion-form textarea,
#feedback-form.opinion-form select {
  width: 100%;
  padding: .75rem;
  margin-bottom: 1rem;
  border: none;
  border-radius: 4px;
  background: #222;
  color: #fff;
  font-size: 1rem;
  outline: none;
  resize: vertical;
}

#feedback-form.opinion-form textarea {
  min-height: 100px;
}

#feedback-form.opinion-form button[type="submit"] {
  display: inline-block;
  padding: .75rem 1.5rem;
  background: #d4af37;
  color: #111;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background .3s;
  margin-top: 1rem;
}

#feedback-form.opinion-form button[type="submit"]:hover {
  background: #b8962e;
}

#opinionMessage {
  color: #d4af37;
  margin-top: .5rem;
  min-height: 1em;
  font-size: .95rem;
}


/* Footer */
footer {
  background: #000;
  padding: 2rem;
  text-align: center;
}

#see-in-map {
  color: #00D500;
}
#see-in-map:hover {
  color: #fff;
  text-decoration: underline;
}
.contato-icons img {
  width: 32px;
  margin: 1rem;
  transition: transform .3s;
}
.contato-icons img:hover {
  transform: scale(1.2);
}

/* Modal & Wizard */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.75);
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
  z-index: 1000;
}
.modal-overlay.modal-open {
  opacity: 1; pointer-events: auto;
}
.modal {
  position: fixed; top:50%; left:50%;
  transform: translate(-50%,-50%) scale(.9);
  background: #1e1e1e;
  padding: 1rem; border-radius:12px;
  width:90%; max-width:420px; overflow:hidden;
  opacity:0; pointer-events:none;
  transition: transform .3s, opacity .3s;
  z-index:1001;
}
.modal.modal-open {
  transform: translate(-50%,-50%) scale(1);
  opacity:1; pointer-events:auto;
}
.modal-close {
  position:absolute; top:.5rem; right:.5rem;
  background:none; border:none; color:#fff;
  font-size:1.4rem; cursor:pointer;
  transition: color .2s;
}
.modal-close:hover {
  color: #d4af37;
}
.booking-step {
  display:none;
  overflow: hidden;
  flex-direction: column;
  top: 3rem;     /* baixa abaixo do título */
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;   /* bloqueia clique quando invisível */
}
.booking-step.active {
  display:flex;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto; 
}
.booking-step h4 {
  color:#d4af37;
  margin-bottom:1rem;
  flex-shrink:0;
}

/* Calendar & Times & Form */
#calendar {
  display: grid;
  grid-template-columns: repeat(7,1fr);
  gap:6px;
  overflow-y: auto;
  flex-grow:1;
}
#calendar > div{
  display: flex;
  align-items: center;
  justify-content: center;
}
#calendar .day {
  padding:.6rem 0;
  background: #2b2b2b;
  text-align:center;
  border-radius:6px;
  font-weight:500;
}
#calendar .day.highlight {
  background: #25D366; color:#000; cursor:pointer;
}
#calendar .day.highlight:hover {
  background:#d4af37; color:#111;
}
#calendar .day.selected {
  background:#d4af37; color:#fff;
}
#horarios-disponiveis,
#booking-form {
  background:#2b2b2b;
  padding:.5rem;
  border-radius:6px;
  overflow-y:auto;
  flex:1;
}
#horarios-disponiveis {
  margin-top:.5rem;
}
#horarios-disponiveis h4,
#booking-form h4 {
  color:#d4af37;
  position:sticky; top:0;
  background:#2b2b2b; padding-top:.5rem;
  z-index:1;
}
#horarios-disponiveis ul {
  list-style:none;
  padding:0;
  max-height:40vh;
  overflow-y:auto;
}
#horarios-disponiveis li {
  padding:.6rem .8rem;
  border-radius:6px;
  margin-bottom:.4rem;
  transition: background .2s, color .2s;
}
#horarios-disponiveis li.available {
  background:#25D366; color:#000; cursor:pointer;
}
#horarios-disponiveis li.available:hover {
  background:#d4af37; color:#111;
}
#horarios-disponiveis li.unavailable {
  background:#444; color:#777; cursor:not-allowed;
}
#horarios-disponiveis li.pending {
  background:#d4af37; color:#111; opacity:.9; cursor:help;
}
#booking-form {
  display:flex;
  flex-direction:column;
  gap:1rem;
}
.inputPrimary {
  padding:.75rem;
  border:none;
  border-radius:4px;
  background:#222;
  color:#fff;
  outline:none;
}
#booking-form button {
  padding:.75rem;
  border:none;
  border-radius:4px;
  background:#d4af37;
  color:#111;
  font-weight:bold;
  cursor:pointer;
  transition:background .3s;
}
#booking-form button:hover {
  background:#b8962e;
}
#mensagemResultado {
  color:#d4af37;
  font-weight:bold;
  min-height:1.2em;
}

/* Wizard Navigation */
.wizard-nav {
  display:flex;
  justify-content:flex-end;
  gap:1rem;
  flex-shrink:0;
}
.wizard-prev,
.wizard-next,
.wizard-finish {
  background:none;
  border:none;
  font-size:1rem;
  color:#d4af37;
  margin: 1rem 0;
  cursor:pointer;
  transition: color .2s;
}
.wizard-finish {
  border: solid 2px #008000;
  color:#008000;
  padding: 0.5rem 1rem ;
  border-radius: 12px;
}
.wizard-prev:hover,
.wizard-next:hover {
  color:#fff;
}
.wizard-finish:hover {
  color:#fff;
  border: solid 2px #fff;
}

wizard-next:not(:disabled):hover,
.wizard-prev:not(:disabled):hover,
.wizard-finish:not(:disabled):hover {
  color: #fff;
}

.wizard-next:disabled,
.wizard-prev:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  color: #777;  /* suaviza cor do ícone/texto */
}

/* Button Agendar */
.btn-agendar {
  display:block;
  width:100%;
  max-width:400px;
  margin:2rem auto 0;
  padding:1rem;
  background:#00d500;
  color:#fff;
  font-size:1.1rem;
  font-weight:bold;
  border:none;
  border-radius:4px;
  cursor:pointer;
  overflow:hidden;
  transition:transform .2s;
  animation:pulse 2s infinite;
}
.btn-agendar:hover {
  transform:scale(1.03);
}
.btn-agendar-button {
  margin: 2rem auto;
}
@keyframes pulse {
  50% { box-shadow:0 0 0 12px rgba(212,175,55,0); }
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #d4af37;
  cursor: pointer;
  z-index: 20;
}

/* Time slot selecionado */
#horarios-disponiveis li.selected {
  background-color: #d4af37;
  color: #111;
}

.preview {
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  background: #2b2b2b;
  border-radius: 4px;
  color: #d4af37;
  font-size: 0.95rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.hidden { display: none; }

.skeleton-calendar,
.skeleton-timeslots {
  background: #333;
  border-radius: 4px;
  animation: pulse 1.5s infinite ease-in-out;
}
.skeleton-calendar { height: 200px; margin: 1rem 0; }
.skeleton-timeslots { height: 100px; margin: 1rem 0; }

.skeleton-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin: 1rem 0;
}
.skeleton-calendar-grid .skeleton-day {
  height: 2.4rem;
  background: #333;
  border-radius: 4px;
  animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.skeleton-day {
  height: 40px;
  background: #333;
  border-radius: 4px;
  animation: pulse 1.5s infinite ease-in-out;
}

#btnConfirmar {
  margin-top: 12px;
}


@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}

/* Seção “Meus Agendamentos” */
#minha-agenda-section {
  padding: 2rem;
  background: #1a1a1a;
  border-radius: 8px;
  margin-top: 2rem;
}
#minha-agenda-section h3 {
  color: #d4af37;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Container de itens */
#minha-agenda {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Cada agendamento */
#minha-agenda .meu-agendamento-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #222;
  padding: 0.75rem 1rem;
  border-radius: 6px;
}

/* Texto do agendamento */
#minha-agenda .meu-agendamento-item span {
  color: #fff;
  font-size: 0.9rem;
}

/* Botão “Cancelar” */
#btnCancelar, .cancel-btn {
  background: #d9534f;
  color: #fff;
  border: none;
  padding: 0.4rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}
#btnCancelar:hover, .cancel-btn:hover {
  background: #c9302c;
}

.btn-secondary {
  display: block;
  margin: 1rem auto 0;
  padding: 0.75rem 1.5rem;
  background: #444;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background .3s;
}
.btn-secondary:hover {
  background: #555;
}

.scrollable-list {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 0.5rem; /* espaço pro scrollbar */
}


/* Responsive */
@media (max-width: 768px) {
  main { padding: 0 1rem; }
  .nav-links { display:none; position:absolute; top:80px; right:0; background:#000; flex-direction:column; width:100%; padding:1rem; }
  .nav-links.active { display:flex; }
  .name { font-size:1.4rem; }
  .cortes-slider { grid-template-columns: repeat(auto-fill,minmax(100%,1fr)); }
  .sobre-container { flex-direction:column; text-align:center; }
  .booking-step { height: auto; }
    /* Botão hambúrguer sempre acima do menu */
  .hamburger {
    position: relative;
    z-index: 1001;
    display: block;
  }
  

  /* Menu lateral oculto */
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 80%;           /* ocupa 80% da largura */
    max-width: 280px;     /* limite máximo */
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    transform: translateX(100%);   /* fora da tela */
    transition: transform 0.3s ease-in-out;
  }

  /* Ao abrir */
  .nav-links.active {
    transform: translateX(0);
  }

  /* Cada link maior, fácil de tocar */
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1.4rem;
    text-align: center;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
  }
  .nav-links a:hover {
    background: rgba(212,175,55,0.2);
    color: #d4af37;
  }

  /* Transformação do hambúrguer em “X” estilizado */
  .hamburger {
    font-size: 1.8rem;
    color: #d4af37;
    transition: transform 0.3s ease, color 0.3s ease;
  }
  .hamburger.active {
    transform: rotate(90deg);
    color: #fff;
  }
    .sobre-header h3 {
  text-align: center;
  width: 100%;
}
}

