/* ══════════════════════════════════════════════════════════
   STUDIO — Lava Reveal Hero  ·  v2
   Ultra-smooth · Premium · Minimal
   ══════════════════════════════════════════════════════════ */

/* ─── Fonts ─────────────────────────────────────────────── */
@font-face {
  font-family: 'CoFo Sans';
  src: url('static/fonts/CoFoSans-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'CoFo Sans';
  src: url('static/fonts/CoFoSans-Medium.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}



/* ─── Reset ─────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'CoFo Sans';
  background: #002D50;
  color: #f0f0f5;
  overflow-x: hidden;
  min-height: 100vh;
}

body.revealed {
  background: #002D50;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

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

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #001F3A 0%, #002D50 50%, #00243F 100%);
  isolation: isolate;
}

.hero.revealed {
  background: linear-gradient(135deg, #001F3A 0%, #002D50 50%, #00243F 100%);
}

/* Ambient centre glow — appears after reveal */
.hero.revealed::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 40% at 50% 42%,
      rgba(14, 11, 32, 0.22) 0%,
      transparent 100%);
  animation: ambient-glow 10s ease-in-out 0.8s infinite alternate;
  z-index: 0;
  pointer-events: none;
}

/* Bottom shadow gradient — makes lower text readable */
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 45, 80, 0.95) 0%, rgba(0, 45, 80, 0.65) 45%, transparent 100%);
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero.show-gradient::after {
  opacity: 1;
}

@keyframes ambient-glow {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ─── Lava Wrapper (metaball filter) ────────────────────── */
.lava-wrap {
  position: absolute;
  inset: -40px;
  z-index: 1;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

#lava-canvas {
  display: block;
  position: absolute;
  top: 40px;
  left: 40px;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

/* ─── Hero Background Image Mask Group ─────────────────── */
.masked-image-group {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero.revealed .masked-image-group {
  z-index: 0;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('static/img/bg.png');
  background-size: cover;
  background-position: center;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
}

.hero.revealed .hero-bg-image {
  opacity: 1;
}

/* ─── Center Rich Brand Logo ───────────────────────────── */
.hero-logo-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  /* Positioned behind the masked-image-group (z-index: 1) to allow overlay */
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease;
  will-change: opacity;
}

.hero-logo-wrap svg {
  width: 85vw;
  /* Massive viewport-relative sizing */
  max-width: 1400px;
  height: auto;
  opacity: 0.92;
}

/* logo fade handled by JS during wave */

/* ─── Hero Overlay (all content) ───────────────────────── */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: stretch;
  pointer-events: none;
}

.hero.revealed .hero-overlay {
  pointer-events: auto;
}

/* ─── Wrapper ──────────────────────────────────────────── */
.wrapper {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ─── Top Bar ──────────────────────────────────────────── */
.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.prize-text {
  color: #FFF;
  font-family: 'CoFo Sans';
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.prize-text.visible {
  opacity: 1;
  transform: translateY(0);
}

.cocktails-logo {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.cocktails-logo.visible {
  opacity: 1;
  transform: translateY(0);
}

.cocktails-logo-img {
  width: 250.54px;
  height: 131.118px;
  display: block;
}

.rich-logo-top {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.rich-logo-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.rich-logo-top svg {
  width: 120px;
  height: auto;
}

/* ─── Hero Main Content ────────────────────────────────── */
.hero-main {
  padding-left: 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-main.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-heading {
  display: flex;
  align-items: flex-end;
  gap: 0.2em;
  max-width: 50%;
  font-family: 'CoFo Sans';
  font-size: 64px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.6rem;
}

.heading-text {
  text-align: right;
}

.heading-logo {
  display: block;
  width: auto;
  height: 230px;
  flex-shrink: 0;
}

.hero-cta-btn {
  display: inline-block;
  padding: 1.1rem 3rem;
  color: #FF8E0D;
  text-align: center;
  font-family: 'CoFo Sans';
  font-size: 32px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  background: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  pointer-events: auto;
  transition: opacity 0.35s ease;
}

.hero-cta-btn:hover {
  opacity: 0.75;
}

.hero-cta-btn:active {
  opacity: 0.6;
}

.hero-date {
  color: #FFF;
  font-family: 'CoFo Sans';
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%;
  margin-bottom: 0.9rem;
}

/* ─── Bottom Info ──────────────────────────────────────── */
.hero-bottom {
  display: flex;
  justify-content: flex-end;
  gap: 3rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-bottom.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-bottom-block p {
  color: #FFF;
  font-family: 'CoFo Sans';
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%;
}

/* ─── Age Gate Popup ───────────────────────────────────── */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.age-gate.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.age-gate__card {
  width: 90%;
  max-width: 460px;
  background: #003A66;
  border-radius: 16px;
  padding: 3rem 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.6rem;
}

.age-gate__logo svg {
  width: 120px;
  height: auto;
}

.age-gate__title {
  font-family: 'CoFo Sans';
  font-size: 1.35rem;
  font-weight: 400;
  color: #fff;
  margin: 0;
}

.age-gate__buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 300px;
}

.age-gate__btn {
  display: block;
  width: 100%;
  padding: 0.9rem 1.5rem;
  font-family: 'CoFo Sans';
  font-size: 1.05rem;
  font-weight: 400;
  border-radius: 50px;
  cursor: pointer;
  border: none;
  transition: opacity 0.25s ease;
}

.age-gate__btn:hover {
  opacity: 0.85;
}

.age-gate__btn--yes {
  background: #FDC500;
  color: #fff;
}

.age-gate__btn--no {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.age-gate__disclaimer {
  font-size: 0.72rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 0.8rem;
  max-width: 380px;
}

/* ─── Responsive ────────────────────────────────────────── */

/* Tablet */
@media (max-width: 768px) {
  .wrapper {
    padding: 1.5rem 1.25rem;
  }

  .hero-bg-image {
    background-image: url('static/img/mbg.png');
  }

  .hero-top {
    align-items: center;
    gap: 0.8rem;
  }

  .prize-text {
    font-size: 0.55rem;
  }

  .cocktails-logo-img {
    height: 40px;
  }

  .rich-logo-top svg {
    width: 80px;
  }

  .hero-main {
    text-align: center;
  }

  .hero-heading {
    font-size: clamp(1.6rem, 7vw, 2.8rem);
    line-height: 1.1;
    margin-bottom: 1.2rem;
  }

  .hero-cta-btn {
    font-size: 0.95rem;
    padding: 0.9rem 2rem;
  }

  .hero-date {
    font-size: 0.85rem;
  }

  .hero-bottom {
    justify-content: center;
    gap: 2rem;
  }

  .hero-bottom-block p {
    font-size: 0.85rem;
  }

  .hero::after {
    height: 60%;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .wrapper {
    padding: 1.2rem 1rem;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-top {
    gap: 0.4rem;
  }

  .cocktails-logo-img {
    height: 36px;
  }

  .rich-logo-top svg {
    width: 72px;
  }

  .prize-text {
    font-size: 0.48rem;
    letter-spacing: 0.03em;
  }

  .hero-heading {
    font-size: clamp(1.4rem, 8vw, 2.2rem);
    line-height: 1.08;
    margin-bottom: 1rem;
  }

  .hero-cta-btn {
    display: block;
    text-align: center;
    font-size: 0.9rem;
    padding: 0.85rem 1.5rem;
    border-radius: 10px;
  }

  .hero-date {
    font-size: 0.8rem;
    margin-top: 0.7rem;
  }

  .hero-bottom-block p {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .hero::after {
    height: 65%;
  }

  /* Age Gate mobile */
  .age-gate__card {
    padding: 2rem 1.5rem 1.5rem;
    gap: 1.2rem;
    border-radius: 14px;
  }

  .age-gate__logo svg {
    width: 90px;
  }

  .age-gate__title {
    font-size: 1.15rem;
  }

  .age-gate__btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
  }

  .age-gate__disclaimer {
    font-size: 0.65rem;
  }
}

/* Small phones */
@media (max-width: 360px) {
  .wrapper {
    padding: 1rem 0.8rem;
  }

  .hero-heading {
    font-size: 1.4rem;
  }

  .hero-cta-btn {
    font-size: 0.82rem;
    padding: 0.75rem 1.2rem;
  }

  .cocktails-logo-img {
    height: 30px;
  }

  .rich-logo-top svg {
    width: 60px;
  }

  .age-gate__card {
    padding: 1.5rem 1.2rem 1.2rem;
  }

  .age-gate__title {
    font-size: 1rem;
  }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .wrapper {
    padding: 0.8rem 1.5rem;
  }

  .hero-heading {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
  }

  .hero-cta-btn {
    padding: 0.6rem 1.8rem;
    font-size: 0.85rem;
  }

  .hero-date {
    margin-top: 0.4rem;
    font-size: 0.75rem;
  }

  .hero-bottom {
    gap: 1.5rem;
  }

  .hero-bottom-block p {
    font-size: 0.75rem;
  }

  .cocktails-logo-img {
    height: 32px;
  }

  .rich-logo-top svg {
    width: 70px;
  }

  .age-gate__card {
    padding: 1rem 2rem;
    gap: 0.8rem;
    flex-direction: column;
  }

  .age-gate__logo svg {
    width: 80px;
  }

  .age-gate__title {
    font-size: 1rem;
  }
}