/* ============================================================
   template-hero-slider.css — Theron Travels Hero Section v3.1
   DARK THEME | Scoped to #heroVideoContainer / .tt-hero-*
   NO global resets — safe to load alongside main.css & index.css
   CHANGES v3.1:
   - Lighter overlay so video shows through clearly
   - Content card: rounded corners + glassmorphism (lighter bg, more blur)
   - Gold left-border accent retained
   - CTA buttons: rounded corners added
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,600;0,700;1,600&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── SCOPED TOKENS — inherit gold from main.css when available ── */
#heroVideoContainer {
  --hero-gold:      var(--primary-gold,    #fbbf24);
  --hero-gold-glow: var(--primary-accent,  #f59e0b);
  --hero-ink:       #ffffff;
  --hero-muted:     rgba(255,255,255,0.72);
  --hero-dim:       rgba(255,255,255,0.45);
  --hero-surface:   rgba(8, 8, 18, 0.45);   /* ← lightened from 0.72 */
  --hero-surface2:  rgba(8, 8, 18, 0.65);
  --hero-border:    rgba(255,255,255,0.12);
  --hero-h:         88vh;
  --hero-easing:    cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── SECTION SHELL ── */
.tt-hero-section {
  position: relative;
  width: 100%;
  height: var(--hero-h);
  min-height: 520px;
  overflow: hidden;
  background: #07080f;
  display: flex;
  align-items: flex-end;
  opacity: 1 !important;
  transform: none !important;
}

/* ── VIDEO ── */
.tt-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  will-change: transform;
  transform: translateZ(0);
  animation: tt-hero-kb 30s ease-in-out infinite alternate;
}
@keyframes tt-hero-kb {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

.tt-hero-fallback-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── OVERLAY — lightened so video is clearly visible ── */
.tt-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to top,
      rgba(7, 8, 15, 0.72) 0%,   /* was 0.92 */
      rgba(7, 8, 15, 0.35) 38%,  /* was 0.55 */
      rgba(7, 8, 15, 0.10) 70%,  /* was 0.18 */
      rgba(7, 8, 15, 0.04) 100%  /* was 0.08 */
    ),
    linear-gradient(
      to right,
      rgba(7, 8, 15, 0.45) 0%,   /* was 0.65 */
      rgba(7, 8, 15, 0.0) 60%
    );
}

/* ── AUTOPLAY BLOCKED PROMPT ── */
.tt-hero-play-prompt {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(7,8,15,0.55);
  border: none;
  cursor: pointer;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.3s ease;
}
.tt-hero-play-prompt:hover { background: rgba(7,8,15,0.65); }
.tt-hero-play-prompt i { font-size: 4rem; color: var(--hero-gold); }
.tt-hero-play-prompt[hidden] { display: none; }

/* ── CONTENT CARD — rounded glassmorphism with gold left accent ── */
.tt-hero-content {
  position: absolute;
  bottom: 100px;
  left: 52px;
  z-index: 5;
  max-width: 540px;
  padding: 36px 40px;
  background: var(--hero-surface);              /* lighter: 0.45 opacity */
  border: 1px solid rgba(251, 191, 36, 0.20);   /* subtle gold tint border */
  border-left: 3px solid var(--hero-gold);       /* gold left accent */
  border-radius: 20px;                           /* ← rounded corners */
  backdrop-filter: blur(28px) saturate(180%);    /* heavy frosted glass */
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  /* Subtle gold inner glow at top-left corner */
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(251, 191, 36, 0.15);
  animation: tt-hero-enter 1s var(--hero-easing) 0.3s both;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
@keyframes tt-hero-enter {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Fade states for slide transitions */
.tt-hero-content.is-fading { opacity: 0; transform: translateY(12px); }

/* ── EYEBROW ── */
.tt-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hero-gold);
}
.tt-hero-eyebrow__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--hero-gold);
  flex-shrink: 0;
  animation: tt-eyebrow-pulse 2s ease-in-out infinite;
}
@keyframes tt-eyebrow-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.7); }
}

/* ── TITLE ── */
.tt-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--hero-ink);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

/* ── DESCRIPTION ── */
.tt-hero-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.97rem;
  line-height: 1.68;
  color: var(--hero-muted);
  font-weight: 300;
  margin: 0 0 26px;
  letter-spacing: 0.01em;
}

/* ── CTA BUTTONS ── */
.tt-hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.tt-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--hero-gold);
  color: #07080f;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: none;
  border-radius: 10px;                          /* ← rounded */
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--hero-easing), box-shadow 0.3s ease;
}
.tt-hero-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.55s ease;
}
.tt-hero-btn:hover {
  color: #07080f;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(251,191,36,0.45);
}
.tt-hero-btn:hover::after { left: 100%; }

.tt-hero-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: transparent;
  color: var(--hero-ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid var(--hero-border);
  border-radius: 10px;                          /* ← rounded */
  transition: transform 0.3s var(--hero-easing), background 0.3s ease, border-color 0.3s ease;
}
.tt-hero-btn-ghost:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.26);
  color: var(--hero-ink);
}

/* ── BOTTOM BAR ── */
.tt-hero-bar {
  position: absolute;
  bottom: 28px;
  left: 0; right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 0 32px;
}

/* ── SLIDE DOTS ── */
.tt-hero-dots {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(7,8,15,0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--hero-border);
  padding: 10px 18px;
  border-radius: 999px;
}

.tt-hero-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.3);
  border: 1px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: width 0.4s var(--hero-easing), background 0.4s ease, border-color 0.3s ease;
  flex-shrink: 0;
}
.tt-hero-dot:hover { background: rgba(255,255,255,0.6); }
.tt-hero-dot.active {
  width: 26px;
  background: var(--hero-gold);
  border-color: rgba(251,191,36,0.4);
}

/* ── VIDEO CONTROLS ── */
.tt-hero-controls {
  display: flex;
  gap: 10px;
}
.tt-hero-ctrl {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(7,8,15,0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--hero-border);
  color: var(--hero-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.05rem;
  transition: background 0.3s ease, transform 0.25s ease, border-color 0.3s ease;
}
.tt-hero-ctrl:hover {
  background: var(--hero-gold);
  color: #07080f;
  border-color: transparent;
  transform: scale(1.1);
}
.tt-hero-ctrl:active { transform: scale(0.95); }
.tt-hero-ctrl:disabled { opacity: 0.35; cursor: default; pointer-events: none; }

/* ── SCROLL HINT ── */
.tt-hero-scroll {
  position: absolute;
  right: 32px;
  bottom: 48px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.55;
  transition: opacity 0.5s ease;
}
.tt-hero-scroll.is-hidden { opacity: 0; }
.tt-hero-scroll__line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.7));
  animation: tt-scroll-line 1.8s ease-in-out infinite;
}
@keyframes tt-scroll-line {
  0%,100% { transform: scaleY(1); opacity: 0.55; }
  50%      { transform: scaleY(0.6); opacity: 1; }
}
.tt-hero-scroll__text {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  writing-mode: vertical-rl;
}

/* ── LIGHT THEME ── */
body.light-theme .tt-hero-section {
  --hero-surface:  rgba(245,244,240,0.65);
  --hero-surface2: rgba(245,244,240,0.85);
  --hero-border:   rgba(0,0,0,0.10);
  --hero-ink:      rgba(10,10,20,0.92);
  --hero-muted:    rgba(10,10,20,0.65);
  --hero-dim:      rgba(10,10,20,0.42);
}
body.light-theme .tt-hero-overlay {
  background:
    linear-gradient(to top, rgba(245,244,240,0.70) 0%, rgba(245,244,240,0.30) 38%, transparent 70%),
    linear-gradient(to right, rgba(245,244,240,0.40) 0%, transparent 60%);
}
body.light-theme .tt-hero-content {
  border: 1px solid rgba(180, 140, 30, 0.25);
  border-left: 3px solid var(--hero-gold);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(251, 191, 36, 0.20);
}
body.light-theme .tt-hero-btn-ghost { color: rgba(10,10,20,0.88); }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .tt-hero-video        { animation: none; }
  .tt-hero-content      { animation: none; transition: opacity 0.2s ease; }
  .tt-hero-scroll__line { animation: none; }
  .tt-hero-eyebrow__dot { animation: none; }
  .tt-hero-btn,
  .tt-hero-btn-ghost,
  .tt-hero-dot,
  .tt-hero-ctrl         { transition: none; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1199.98px) {
  #heroVideoContainer { --hero-h: 85vh; }
  .tt-hero-content { max-width: 480px; left: 36px; }
}
@media (max-width: 991.98px) {
  #heroVideoContainer { --hero-h: 80vh; }
  .tt-hero-content { left: 28px; bottom: 90px; padding: 28px 30px; max-width: 430px; }
  .tt-hero-title { font-size: 2rem; }
}
@media (max-width: 767.98px) {
  #heroVideoContainer { --hero-h: 75vh; }
  .tt-hero-content {
    left: 16px; right: 16px;
    bottom: 80px;
    max-width: none;
    padding: 22px 22px;
    border-radius: 16px;
  }
  .tt-hero-cta { flex-direction: column; }
  .tt-hero-btn,
  .tt-hero-btn-ghost { justify-content: center; }
  .tt-hero-scroll { display: none; }
}
@media (max-width: 575.98px) {
  #heroVideoContainer { --hero-h: 92vh; min-height: 580px; }
  .tt-hero-title { font-size: 1.75rem; }
  .tt-hero-desc { font-size: 0.9rem; }
  .tt-hero-bar { flex-direction: column; gap: 14px; bottom: 18px; }
  .tt-hero-content { border-radius: 14px; }
  .tt-hero-scroll { display: none; }
}