:root {
  color-scheme: dark;
  --page-bg: #06110a;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
  --line: rgba(255, 255, 255, 0.2);
  --gold: #ffd35c;
  --gold-dark: #b87516;
  --green: #0f7f35;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page-bg);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background-color: var(--page-bg);
  background-image: url("img/bg2-fallback.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

@supports (background-image: image-set(url("img/bg2.webp") type("image/webp"))) {
  body {
    background-image: image-set(
      url("img/bg2.webp") type("image/webp"),
      url("img/bg2-fallback.jpg") type("image/jpeg")
    );
  }
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(115deg, rgba(3, 12, 6, 0.82) 0%, rgba(3, 12, 6, 0.6) 45%, rgba(3, 12, 6, 0.44) 100%),
    radial-gradient(circle at 50% 45%, rgba(0, 0, 0, 0.16), transparent 34%),
    radial-gradient(circle at 84% 64%, rgba(23, 132, 61, 0.18), transparent 36%);
  animation: overlayIn 1200ms ease-out both;
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 520px);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  width: min(1160px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 56px) 0;
}

.hero-copy > *,
.flyer-frame {
  animation: softReveal 760ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.event-kicker {
  animation-delay: 160ms;
}

.hero-copy h1 {
  animation-delay: 280ms;
}

.event-text {
  animation-delay: 420ms;
}

.event-details {
  animation-delay: 540ms;
}

.event-address {
  animation-delay: 620ms;
}

.cta-group {
  animation-delay: 740ms;
}

.flyer-frame {
  transform-origin: center;
  animation-name: flyerReveal;
  animation-delay: 500ms;
  animation-duration: 900ms;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.event-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin: 0 0 18px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.9;
  font-weight: 900;
  text-wrap: balance;
}

.event-text {
  max-width: 600px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.65;
}

.event-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
}

.event-details span,
.event-details a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.event-details a {
  border-color: rgba(255, 211, 92, 0.44);
  background: rgba(255, 211, 92, 0.14);
  color: var(--gold);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.event-details a:hover,
.event-details a:focus-visible {
  border-color: rgba(255, 211, 92, 0.72);
  background: rgba(255, 211, 92, 0.22);
  transform: translateY(-1px);
}

.event-details a:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.72);
  outline-offset: 3px;
}

.event-address {
  max-width: 560px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
  font-style: normal;
  line-height: 1.5;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.ticket-button,
.schedule-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 58px;
  padding: 0 30px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
  font-family: inherit;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.ticket-button {
  background: linear-gradient(135deg, var(--gold), #ffb629 52%, var(--gold-dark));
  box-shadow: 0 16px 38px rgba(255, 181, 41, 0.25);
  color: #1b1003;
}

.schedule-button {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
  color: #ffffff;
}

.ticket-button:hover,
.ticket-button:focus-visible,
.schedule-button:hover,
.schedule-button:focus-visible {
  box-shadow: 0 20px 46px rgba(255, 181, 41, 0.34);
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.schedule-button:hover,
.schedule-button:focus-visible {
  border-color: rgba(255, 211, 92, 0.58);
  background: rgba(255, 255, 255, 0.16);
}

.ticket-button:focus-visible,
.schedule-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.8);
  outline-offset: 4px;
}

.schedule-modal {
  width: min(920px, calc(100% - 32px));
  max-height: min(760px, calc(100vh - 32px));
  padding: 0;
  border: 1px solid rgba(255, 211, 92, 0.32);
  border-radius: 18px;
  background: rgba(6, 17, 10, 0.98);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
  color: #ffffff;
}

.schedule-modal:not([open]) {
  display: none;
}

.schedule-modal[open] {
  display: block;
}

.schedule-modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
}

.schedule-modal-panel {
  position: relative;
  max-height: inherit;
  overflow: auto;
  padding: clamp(24px, 4vw, 42px);
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: -8px -8px 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.modal-close:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.78);
  outline-offset: 3px;
}

.schedule-modal h2 {
  margin: 0 48px 24px 0;
  color: var(--gold);
  font-size: clamp(1.35rem, 2.35vw, 1.85rem);
  line-height: 1.1;
  text-transform: uppercase;
}

.schedule-list {
  display: grid;
  gap: 0;
}

.schedule-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 22px;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.schedule-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.schedule-item time {
  color: var(--gold);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.45;
}

.schedule-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.98rem, 1.6vw, 1.12rem);
  line-height: 1.5;
}

.schedule-item strong {
  color: #ffffff;
  font-weight: 900;
  text-transform: uppercase;
}

.schedule-item em {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.social-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-float-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  color: #ffffff;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.social-float-button[data-tooltip]::before {
  position: absolute;
  top: 50%;
  right: calc(100% + 12px);
  width: max-content;
  max-width: min(260px, calc(100vw - 110px));
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(5, 10, 7, 0.94);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  color: #ffffff;
  content: attr(data-tooltip);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translate(8px, -50%);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
  white-space: nowrap;
}

.social-float-button[data-tooltip]:hover::before,
.social-float-button[data-tooltip]:focus-visible::before {
  opacity: 1;
  transform: translate(0, -50%);
}

.social-float-button svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.social-float-button:hover,
.social-float-button:focus-visible {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
  filter: brightness(1.05);
  transform: translateY(-2px);
}

.social-float-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.8);
  outline-offset: 4px;
}

.instagram-float {
  background: linear-gradient(135deg, #833ab4, #fd1d1d 54%, #fcb045);
}

.whatsapp-float {
  background: #25d366;
}

.flyer-frame {
  position: relative;
  justify-self: end;
  width: min(100%, 500px);
}

.flyer-frame picture {
  display: block;
}

.flyer-frame::before {
  position: absolute;
  inset: -12px;
  z-index: -1;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow);
}

.flyer {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 70px);
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
}

@keyframes overlayIn {
  from {
    opacity: 1;
    backdrop-filter: blur(8px);
  }

  to {
    opacity: 1;
    backdrop-filter: blur(0);
  }
}

@keyframes softReveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes flyerReveal {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.965);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
    width: min(560px, calc(100% - 28px));
    min-height: auto;
    padding: 28px 0 42px;
  }

  .hero-copy {
    align-items: center;
    text-align: center;
  }

  .event-kicker {
    margin-bottom: 14px;
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 4.8rem);
  }

  .event-text {
    margin-top: 18px;
  }

  .event-details {
    justify-content: center;
    margin-top: 22px;
  }

  .cta-group {
    width: min(100%, 360px);
    margin-top: 26px;
  }

  .ticket-button,
  .schedule-button {
    width: 100%;
  }

  .flyer-frame {
    justify-self: center;
    width: min(100%, 430px);
  }

  .flyer {
    max-height: none;
  }

  .social-float {
    right: 16px;
    bottom: 16px;
    gap: 10px;
  }

  .social-float-button {
    width: 56px;
    height: 56px;
  }

  .social-float-button svg {
    width: 31px;
    height: 31px;
  }
}

@media (max-width: 420px) {
  .hero {
    width: min(100% - 22px, 560px);
  }

  .event-kicker {
    max-width: 100%;
    border-radius: 12px;
    text-align: center;
  }

  .event-details {
    width: 100%;
  }

  .event-details span {
    justify-content: center;
    width: 100%;
  }

  .flyer-frame::before {
    inset: -7px;
    border-radius: 20px;
  }

  .flyer {
    border-radius: 15px;
  }

  .schedule-modal {
    width: calc(100% - 22px);
    max-height: calc(100vh - 22px);
    border-radius: 14px;
  }

  .schedule-modal-panel {
    padding: 22px 18px;
  }

  .schedule-modal h2 {
    margin-bottom: 18px;
    font-size: 1.22rem;
  }

  .schedule-item {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 13px 0;
  }
}
