html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Ancora as seções abaixo do header fixo ao navegar pelo menu */
section[id] {
  scroll-margin-top: 76px;
}

::selection {
  background: #8a6bb0;
  color: #fff;
}

/* Scrollbar discreta, no tom da marca */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #0c1418;
}
::-webkit-scrollbar-thumb {
  background: #4a3766;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #5c4480;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 3px;
}

/* Leve sombra atrás do header pra manter o logo/menu legíveis sobre qualquer foto */
header {
  background: linear-gradient(to bottom, rgba(6, 10, 13, 0.55) 0%, rgba(6, 10, 13, 0) 100%);
  padding-bottom: 2.5rem;
  margin-bottom: -2.5rem;
}
header a,
header button {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}

/* Overlay escuro sobre a foto do hero */
.hero-gradient {
  background: linear-gradient(
    to bottom,
    rgba(12, 20, 24, 0.55) 0%,
    rgba(12, 20, 24, 0.35) 35%,
    rgba(12, 20, 24, 0.85) 85%,
    rgba(12, 20, 24, 1) 100%
  );
}

.hero-photo {
  animation: heroZoom 20s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

/* Fade da foto na seção Sobre: só a base dissolve no fundo; laterais quase sem vinheta */
.sobre-photo {
  object-position: 50% 58%;
  filter: brightness(1.12);
}
.sobre-fade {
  background:
    linear-gradient(to bottom, rgba(12, 20, 24, 0) 0%, rgba(12, 20, 24, 0) 72%, rgba(12, 20, 24, 0.55) 90%, rgba(12, 20, 24, 1) 100%),
    linear-gradient(to right, rgba(12, 20, 24, 0.25) 0%, rgba(12, 20, 24, 0) 12%, rgba(12, 20, 24, 0) 88%, rgba(12, 20, 24, 0.25) 100%);
}

.social-icon {
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.social-icon:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.mobile-link {
  opacity: 0.9;
  transition: opacity 0.2s ease;
}
.mobile-link:hover {
  opacity: 1;
}

#mobileMenu.flex {
  display: flex;
}

.tour-row {
  transition: background-color 0.2s ease, padding-left 0.2s ease;
}
.tour-row:hover {
  background: rgba(255, 255, 255, 0.04);
  padding-left: 0.5rem;
}

.tour-date {
  color: #d4af6a;
}

.btn-outline {
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
}
.btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Cartões de mídia (vídeos e player) — moldura consistente com leve elevação no hover */
.media-card {
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.18);
}

.photo-frame {
  border-radius: 0.5rem;
  overflow: hidden;
}

.contact-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

/* Reveal suave ao rolar a página */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-photo {
    animation: none;
  }
}

/* Datas que já passaram: esmaecidas, com tag e botão desativado */
.tour-row-past .tour-date {
  opacity: 0.45;
}
.tour-row-past > span:not(.tour-date):not(.btn-disabled) {
  color: rgba(255, 255, 255, 0.45);
}
.tag-past {
  display: inline-block;
  margin-left: 0.6rem;
  padding: 0.1rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 9999px;
  font-family: Inter, sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  vertical-align: middle;
  color: rgba(255, 255, 255, 0.75);
}
.btn-disabled {
  opacity: 0.3;
  cursor: not-allowed;
  text-decoration: line-through;
  pointer-events: none;
}
