/* CrownStore — Video Hero Banner */

/* ─── Section ─────────────────────────────────────────────────────────────── */
.tc-video-hero {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tc-video-hero--small      { height: 360px; }
.tc-video-hero--medium     { height: 520px; }
.tc-video-hero--large      { height: 700px; }
.tc-video-hero--fullscreen { height: 120vh; min-height: 640px; }

/* ─── Video layer ─────────────────────────────────────────────────────────── */
.tc-video-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform: translateZ(0);
}

.tc-video-hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Strip any browser-injected or GrapesJS-added controls */
.tc-video-hero-video::-webkit-media-controls,
.tc-video-hero-video::-webkit-media-controls-enclosure,
.tc-video-hero-video::-webkit-media-controls-panel {
  display: none !important;
}

/* ─── Builder placeholder ─────────────────────────────────────────────────── */
.tc-video-hero-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  background: #120e0a;
  color: rgba(220, 210, 190, 0.45);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.tc-video-hero-placeholder-icon {
  font-size: 42px;
  opacity: 0.3;
}

/* ─── Overlay ─────────────────────────────────────────────────────────────── */
.tc-video-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.tc-video-hero-overlay--dark {
  background:
    radial-gradient(ellipse 100% 60% at 50% 50%, rgba(18, 14, 10, 0.45) 0%, transparent 70%),
    linear-gradient(
      to bottom,
      rgba(18, 14, 10, 0.42) 0%,
      rgba(18, 14, 10, 0.38) 40%,
      rgba(18, 14, 10, 0.72) 100%
    );
}

.tc-video-hero-overlay--light {
  background:
    radial-gradient(ellipse 100% 60% at 50% 50%, rgba(248, 244, 238, 0.35) 0%, transparent 70%),
    linear-gradient(
      to bottom,
      rgba(248, 244, 238, 0.28) 0%,
      rgba(248, 244, 238, 0.22) 40%,
      rgba(248, 244, 238, 0.55) 100%
    );
}

/* ─── Content ─────────────────────────────────────────────────────────────── */
.tc-video-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 820px;
  padding: 78px var(--theme-gutter, 48px) 0;
}

/* ─── Title ───────────────────────────────────────────────────────────────── */
.tc-video-hero-title {
  font-family: var(--theme-font-display, 'Playfair Display', Georgia, serif);
  font-size: clamp(3.2rem, 6.5vw, 7.4rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--theme-text-inverse);
  margin: 0 0 32px;
  text-shadow: 0 2px 32px rgba(0, 0, 0, 0.55), 0 1px 4px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(28px);
  animation: tcHeroFade 1.1s var(--ease, cubic-bezier(0.25, 0.46, 0.45, 0.94)) 0.3s forwards;
}

/* em inside title renders as italic gold accent line */
.tc-video-hero-title em {
  font-style: italic;
  color: var(--theme-accent, #b8945a);
  display: block;
}

/* ─── Subtitle ────────────────────────────────────────────────────────────── */
.tc-video-hero-subtitle {
  font-family: var(--theme-font-display, 'Playfair Display', Georgia, serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3.2rem, 6.5vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--theme-accent, #b8945a);
  text-shadow: 0 2px 32px rgba(0, 0, 0, 0.55), 0 1px 4px rgba(0, 0, 0, 0.3);
  margin: 0 0 36px;
  opacity: 0;
  transform: translateY(16px);
  animation: tcHeroFade 1s var(--ease, cubic-bezier(0.25, 0.46, 0.45, 0.94)) 0.85s forwards;
}

/* Light overlay variant — invert text colours */
.tc-video-hero-overlay--light ~ .tc-video-hero-content .tc-video-hero-title {
  color: #2a2118;
  text-shadow: none;
}

.tc-video-hero-overlay--light ~ .tc-video-hero-content .tc-video-hero-subtitle {
  color: rgba(42, 33, 24, 0.75);
}

/* ─── Actions ─────────────────────────────────────────────────────────────── */
.tc-video-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  opacity: 0;
  transform: translateY(12px);
  animation: tcHeroFade 1s var(--ease, cubic-bezier(0.25, 0.46, 0.45, 0.94)) 0.65s forwards;
}

/* ─── Button ──────────────────────────────────────────────────────────────── */
.tc-video-hero-btn {
  display: inline-block;
  font-family: var(--theme-font-family, 'Jost', sans-serif);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 18px 52px;
  background: var(--theme-text-inverse);
  color: #2a2118;
  border: 1px solid var(--theme-text-inverse);
  transition:
    background 0.4s var(--ease, cubic-bezier(0.25, 0.46, 0.45, 0.94)),
    color      0.4s var(--ease, cubic-bezier(0.25, 0.46, 0.45, 0.94)),
    border-color 0.4s var(--ease, cubic-bezier(0.25, 0.46, 0.45, 0.94));
}

.tc-video-hero-btn:hover {
  background: transparent;
  color: var(--theme-text-inverse);
  border-color: rgba(248, 244, 238, 0.45);
}

/* ─── Scroll pulse ────────────────────────────────────────────────────────── */
.tc-video-hero-scroll {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 1px;
  height: 64px;
  overflow: hidden;
  opacity: 0;
  animation: tcHeroFade 0.8s var(--ease, cubic-bezier(0.25, 0.46, 0.45, 0.94)) 1.8s forwards;
}

.tc-video-hero-scroll::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(196, 184, 160, 0.7),
    transparent
  );
  animation: tcScrollPulse 2.2s ease-in-out 2.5s infinite;
}

/* ─── Animations ──────────────────────────────────────────────────────────── */
@keyframes tcHeroFade {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes tcScrollPulse {
  0%   { transform: translateY(-100%); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(200%); opacity: 0; }
}

/* ─── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .tc-video-hero--large      { height: 520px; }
  .tc-video-hero--fullscreen { height: 100svh; }

  .tc-video-hero-content {
    padding-top: 48px;
  }

  .tc-video-hero-btn {
    padding: 16px 36px;
  }
}