/* ============================================================
   Hero Video Module — module.css
   HubSpot Custom Module
   ============================================================ */

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

/* ── Outer Section ──────────────────────────────────────────── */
.hero-video-module {
  display: block;
  width: 100%;
}

/* ── Video Wrapper (full screen) ────────────────────────────── */
.hero__video-wrapper {
  position: relative;
  width: 100%;
  height: 100svh;        /* svh = small viewport height, accounts for mobile browser chrome */
  min-height: 500px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Fallback for browsers without svh support */
@supports not (height: 100svh) {
  .hero__video-wrapper {
    height: 100vh;
  }
}

/* ── Video Element ──────────────────────────────────────────── */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* ── Dark Overlay ───────────────────────────────────────────── */
.hero__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, var(--overlay-opacity, 0.45));
  z-index: 1;
  pointer-events: none;
}

/* ── Centered Rich Text ─────────────────────────────────────── */
.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 clamp(1.25rem, 5vw, 5rem);
  text-align: center;
  flex: 1;                /* pushes button to bottom */
}

.hero__rich-text {
  max-width: 860px;
  width: 100%;
  color: #ffffff;
}

/* Fluid typography — editors can override in HubSpot's style manager */
.hero__rich-text h1 {
  font-size: clamp(2rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
}

.hero__rich-text h2 {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
}

.hero__rich-text h3 {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: clamp(0.5rem, 1.5vw, 1rem);
}

.hero__rich-text p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.hero__rich-text p:last-child {
  margin-bottom: 0;
}

.hero__rich-text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero__rich-text strong { font-weight: 700; }
.hero__rich-text em     { font-style: italic; }

/* ── Button Wrapper ─────────────────────────────────────────── */
.hero__button-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: clamp(7rem, 4vh, 2.5rem) clamp(1.25rem, 5vw, 2rem);
  padding-top: 0;
}

/* ── Club Button ────────────────────────────────────────────── */
.hero__club-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.5rem 1.4rem 0.5rem 0.5rem;

  /*
   * Warm cream (#fbf7f2) at ~20% opacity as the glass tint.
   * backdrop-filter does the heavy lifting; this shifts the
   * blur toward warm/cream rather than sterile white.
   */
  background: rgba(251, 247, 242, 0.20);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);

  border-radius: 12px;
  /* Dark warm text — legible on both light and dark video frames */
  color: var(--btn-color, #1a1714);
  text-decoration: none;
  cursor: pointer;
  max-width: calc(100% - 2.5rem);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.hero__club-btn:focus-visible {
  outline: 2px solid rgba(251, 247, 242, 0.9);
  outline-offset: 3px;
}

.hero__club-btn:active {
  transform: translateY(0);
  background: rgba(251, 247, 242, 0.15);
  box-shadow:
    inset 0 1px 0 rgba(251, 247, 242, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Thumbnail on left side of button — square with soft corners */
.hero__btn-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background-color: rgba(255, 255, 255, 0.1);
}

.hero__btn-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.hero__club-btn,
.hero__club-btn:visited,
.hero__club-btn:hover,
.hero__club-btn:active {
  color: var(--btn-color, #1a1714);
  text-decoration: none;
}

/* Button label text */
.hero__btn-label {
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: inherit;
}

/* Arrow */
.hero__btn-arrow {
  font-size: 1.1rem;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.hero__club-btn:hover .hero__btn-arrow {
  transform: translateX(3px);
}

/* ── Responsive Adjustments ─────────────────────────────────── */
@media (max-width: 768px) {
  .hero__btn-label {
    font-size: 0.7rem;
  }

  .hero__btn-thumb {
    width: 38px;
    height: 38px;
  }

  .hero__club-btn {
    gap: 0.65rem;
    padding: 0.4rem 1rem 0.4rem 0.4rem;
  }
}

@media (max-width: 480px) {
  .hero__rich-text {
    text-align: center;
  }
}

/* ── Reduced Motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero__video {
    animation: none;
  }

  .hero__club-btn,
  .hero__club-btn:hover,
  .hero__btn-arrow {
    transition: none;
    transform: none;
  }
}