/* ═══════════════════════════════════════════════════════════════════════
   VividHome — Front Page: Hero Section Only
   Header/nav/promo styles are in header.css (loaded on all pages)
   Uses design tokens from design-system.css (--vh-* prefix)
   ═══════════════════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────────────────────────────
   HERO SECTION
   Full-viewport carousel with Ken Burns zoom, crossfade transitions
   ───────────────────────────────────────────────────────────────────── */

.vh-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
  overflow: hidden;
  background: var(--vh-ink);
}


/* ── Individual slides ── */

.vh-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--vh-ease-smooth);
  display: flex;
  align-items: center;
}

.vh-hero__slide.is-active {
  opacity: 1;
  z-index: 1;
}

/* Ken Burns background layer */
.vh-hero__slide-bg {
  position: absolute;
  inset: -8%;
  background-size: cover;
  background-position: center;
  will-change: transform;
  animation: none;
}

.vh-hero__slide.is-active .vh-hero__slide-bg {
  animation: vh-ken-burns 7s var(--vh-ease-smooth) forwards;
}

@keyframes vh-ken-burns {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

/* Gradient overlay for text legibility */
.vh-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(26, 23, 21, 0.78) 0%,
      rgba(26, 23, 21, 0.45) 50%,
      rgba(26, 23, 21, 0.15) 100%
    );
  z-index: 1;
}


/* ── Slide content ── */

.vh-hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding-top: var(--vh-header-height);
}

.vh-hero__eyebrow {
  display: inline-block;
  font-family: var(--vh-font-body);
  font-size: var(--vh-text-xs);
  font-weight: var(--vh-weight-semibold);
  letter-spacing: var(--vh-tracking-widest);
  text-transform: uppercase;
  color: var(--vh-amber);
  margin-bottom: var(--vh-space-5);
  opacity: 0;
  transform: translateY(16px);
}

.vh-hero__slide.is-active .vh-hero__eyebrow {
  animation: vh-fade-up 0.7s var(--vh-ease-out) 0.3s forwards;
}

.vh-hero__heading {
  font-family: var(--vh-font-heading);
  font-size: clamp(2.8rem, 6vw, var(--vh-text-6xl));
  font-weight: var(--vh-weight-extrabold);
  line-height: var(--vh-leading-tight);
  letter-spacing: var(--vh-tracking-tighter);
  color: var(--vh-white);
  margin-bottom: var(--vh-space-6);
  opacity: 0;
  transform: translateY(20px);
}

.vh-hero__slide.is-active .vh-hero__heading {
  animation: vh-fade-up 0.8s var(--vh-ease-out) 0.45s forwards;
}

.vh-hero__heading em {
  font-style: normal;
  background: var(--vh-gradient-h);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.vh-hero__text {
  font-family: var(--vh-font-body);
  font-size: var(--vh-text-md);
  font-weight: var(--vh-weight-regular);
  line-height: var(--vh-leading-relaxed);
  color: rgba(255, 255, 255, 0.7);
  max-width: 520px;
  margin-bottom: var(--vh-space-10);
  opacity: 0;
  transform: translateY(16px);
}

.vh-hero__slide.is-active .vh-hero__text {
  animation: vh-fade-up 0.7s var(--vh-ease-out) 0.6s forwards;
}


/* ── CTA Buttons ── */

.vh-hero__ctas {
  display: flex;
  gap: var(--vh-space-4);
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
}

.vh-hero__slide.is-active .vh-hero__ctas {
  animation: vh-fade-up 0.7s var(--vh-ease-out) 0.75s forwards;
}

.vh-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--vh-space-2);
  padding: 15px var(--vh-btn-padding-x);
  border-radius: var(--vh-btn-radius);
  font-family: var(--vh-font-body);
  font-size: var(--vh-btn-font-size);
  font-weight: var(--vh-btn-font-weight);
  letter-spacing: var(--vh-btn-tracking);
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: all var(--vh-duration-base) var(--vh-ease-out);
}

.vh-btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--vh-duration-fast) var(--vh-ease-out);
}

.vh-btn:hover svg {
  transform: translateX(3px);
}

/* Primary CTA */
.vh-btn--primary {
  background: var(--vh-gradient-cta);
  color: var(--vh-white);
  box-shadow: var(--vh-shadow-brand);
}

.vh-btn--primary:hover {
  background: var(--vh-gradient-cta-h);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.30),
              0 6px 12px rgba(219, 39, 119, 0.18);
}

/* Outline / secondary CTA */
.vh-btn--outline {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: var(--vh-white);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.vh-btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}


/* ── Slide indicators / dots ── */

.vh-hero__indicators {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.vh-hero__dot {
  width: 32px;
  height: 3px;
  border-radius: var(--vh-radius-full);
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  border: none;
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: background var(--vh-duration-base) var(--vh-ease-out);
}

.vh-hero__dot:hover {
  background: rgba(255, 255, 255, 0.35);
}

.vh-hero__dot-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: var(--vh-white);
  border-radius: inherit;
}

.vh-hero__dot.is-active .vh-hero__dot-fill {
  animation: vh-dot-progress 5s linear forwards;
}

@keyframes vh-dot-progress {
  from { width: 0; }
  to   { width: 100%; }
}


/* ── Trust bar at hero bottom ── */

.vh-hero__trust {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--vh-space-8);
  padding: var(--vh-space-5) var(--vh-space-6);
  background: rgba(26, 23, 21, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.vh-hero__trust-item {
  display: flex;
  align-items: center;
  gap: var(--vh-space-3);
}

.vh-hero__trust-item svg {
  width: 20px;
  height: 20px;
  stroke: var(--vh-amber);
  flex-shrink: 0;
  opacity: 0.9;
}

.vh-hero__trust-item span {
  font-family: var(--vh-font-body);
  font-size: var(--vh-text-sm);
  font-weight: var(--vh-weight-medium);
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

.vh-hero__trust-sep {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.15);
}


/* ── Content reveal animation ── */

@keyframes vh-fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ─────────────────────────────────────────────────────────────────────
   RESPONSIVE — Hero-specific
   ───────────────────────────────────────────────────────────────────── */

@media (max-width: 1023px) {
  .vh-hero__content {
    max-width: 520px;
  }

  .vh-hero__trust {
    gap: var(--vh-space-5);
    padding: var(--vh-space-4) var(--vh-space-4);
  }

  .vh-hero__trust-item span {
    font-size: var(--vh-text-xs);
  }

  .vh-hero__indicators {
    bottom: 80px;
  }
}

@media (max-width: 767px) {
  .vh-hero {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .vh-hero__content {
    max-width: 100%;
    padding-top: calc(var(--vh-header-height) + var(--vh-space-8));
    padding-bottom: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .vh-hero__eyebrow {
    font-size: 0.65rem;
    margin-bottom: var(--vh-space-4);
  }

  .vh-hero__heading {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
    margin-bottom: var(--vh-space-4);
  }

  .vh-hero__text {
    font-size: var(--vh-text-base);
    margin-bottom: var(--vh-space-8);
    max-width: 100%;
  }

  .vh-hero__ctas .vh-btn--outline {
    display: none;
  }

  .vh-btn {
    width: 100%;
    justify-content: center;
    padding: 16px var(--vh-space-6);
  }

  .vh-hero__trust {
    flex-wrap: wrap;
    gap: var(--vh-space-3) var(--vh-space-5);
    padding: var(--vh-space-4) var(--vh-space-4);
    justify-content: center;
  }

  .vh-hero__trust-sep {
    display: none;
  }

  .vh-hero__trust-item {
    flex: 0 0 calc(50% - var(--vh-space-3));
    justify-content: center;
  }

  .vh-hero__trust-item svg {
    width: 16px;
    height: 16px;
  }

  .vh-hero__trust-item span {
    font-size: 0.72rem;
  }

  .vh-hero__indicators {
    bottom: 72px;
  }

  .vh-hero__dot {
    width: 24px;
    height: 2px;
  }
}

@media (max-width: 374px) {
  .vh-hero__heading {
    font-size: 2rem;
  }

  .vh-hero__text {
    font-size: var(--vh-text-sm);
  }
}

@media (min-width: 1440px) {
  .vh-hero__content {
    max-width: 750px;
  }

  .vh-hero__heading {
    font-size: var(--vh-text-7xl);
  }
}

/* ── Hero carousel text — desktop -30% (per user request 2026-05-16) ── */
@media (min-width: 1024px) {
  .vh-hero__eyebrow { font-size: calc(var(--vh-text-xs) * 0.7); }
  .vh-hero__heading { font-size: clamp(1.96rem, 4.2vw, calc(var(--vh-text-6xl) * 0.7)); }
  .vh-hero__text    { font-size: calc(var(--vh-text-md) * 0.7); }
}
@media (min-width: 1440px) {
  .vh-hero__heading { font-size: calc(var(--vh-text-7xl) * 0.7); }
}
