@charset "UTF-8";
/**
 * Video Section - Carwell Style
 */

/* ========================================
   VIDEO SECTION BASE
======================================== */

.kv-video-section {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
  background: var(--color-bg-off-white);
  position: relative;
}

.kv-video-section .container {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}

@media (max-width: 991px) {
  .kv-video-section {
    padding-top: var(--section-padding-y-tablet);
    padding-bottom: var(--section-padding-y-tablet);
  }
}

@media (max-width: 767px) {
  .kv-video-section {
    padding-top: var(--section-padding-y-mobile);
    padding-bottom: var(--section-padding-y-mobile);
  }
}

/* ========================================
   VIDEO CONTAINER
======================================== */

.kv-video-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

/* Decorative corner accents */
.kv-video-container::before,
.kv-video-container::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  border: 3px solid var(--color-primary);
  opacity: 0.3;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.3, 0.26, 0.38, 1);
}

.kv-video-container::before {
  top: -12px;
  left: -12px;
  border-right: none;
  border-bottom: none;
}

.kv-video-container::after {
  bottom: -12px;
  right: -12px;
  border-left: none;
  border-top: none;
}

.kv-video-container:hover::before,
.kv-video-container:hover::after {
  opacity: 0.6;
  width: 80px;
  height: 80px;
}

@media (max-width: 767px) {
  .kv-video-container::before,
  .kv-video-container::after {
    width: 40px;
    height: 40px;
  }

  .kv-video-container:hover::before,
  .kv-video-container:hover::after {
    width: 50px;
    height: 50px;
  }
}

/* ========================================
   VIDEO WRAPPER
======================================== */

.kv-video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(0, 0, 0, 0.05) 100%);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.12),
    inset 0 0 0 1px rgba(255, 215, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.3, 0.26, 0.38, 1);
}

/* Gold accent border on hover */
.kv-video-wrapper::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--color-primary) 0%, transparent 50%, var(--color-primary) 100%);
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.kv-video-wrapper:hover {
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.2),
    inset 0 0 0 2px rgba(255, 215, 0, 0.4);
  transform: translateY(-6px);
}

.kv-video-wrapper:hover::before {
  opacity: 1;
}

.kv-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-lg);
}

/* Play button overlay effect (decorative) */
.kv-video-wrapper::after {
  content: '\f04b';  /* Font Awesome play icon */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1;
}

/* Show play icon briefly on hover if iframe not loaded yet */
.kv-video-wrapper:hover::after {
  opacity: 0.1;
}

@media (max-width: 767px) {
  .kv-video-wrapper::after {
    font-size: 3rem;
  }
}

/* ========================================
   ACCESSIBILITY
======================================== */

/* Disable animations if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .kv-video-wrapper {
    transition: none !important;
  }

  .kv-video-wrapper:hover {
    transform: none !important;
  }
}
