/* ============================================================
   VC Hero Slider — hero.css
   Vilamoura Chauffeurs homepage hero redesign
   Scoped inside .tp-banner.vc-hero (reuses existing tp-banner
   wrapper for position/height, so trust-bar + booking bar
   remain in their original positions).
   ============================================================ */

/* ── Custom properties ──────────────────────────────────── */
:root {
  --hero-navy:     #1B2A4A;
  --hero-gold:     #C9A96E;
  --hero-ivory:    #FAFAF5;
  --hero-panel-bg: rgba(27, 42, 74, 0.75);
}

/* ════════════════════════════════════════════
   SLIDES
   ════════════════════════════════════════════ */

.vc-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity 800ms ease-in-out;
  pointer-events: none;
}

.vc-slide.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

/* Ensure trust bar + booking bar sit above the slides */
.tp-banner.vc-hero .trust-bar {
  z-index: 6 !important;
}
.tp-banner.vc-hero .sdl-booking {
  z-index: 6 !important;
}
.tp-banner.vc-hero .calendar,
.tp-banner.vc-hero .time-open {
  z-index: 7 !important;
}

/* Slide background */
.vc-slide__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Fallback colours per slide */
.vc-slide[data-slide="0"] .vc-slide__bg { background-color: #1C3A5E; }
.vc-slide[data-slide="1"] .vc-slide__bg { background-color: #1E3D2F; }
.vc-slide[data-slide="2"] .vc-slide__bg { background-color: #2C2535; }
.vc-slide[data-slide="3"] .vc-slide__bg { background-color: #3D2B1A; }

/* Subtle noise texture */
.vc-slide__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 300px 300px;
  opacity: 0.06;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* Gradient overlay */
.vc-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(27, 42, 74, 0.92) 0%,
    rgba(27, 42, 74, 0.70) 40%,
    rgba(27, 42, 74, 0.30) 70%,
    transparent 100%
  );
  z-index: 1;
}

/* ════════════════════════════════════════════
   CONTENT PANEL
   ════════════════════════════════════════════ */

.vc-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 5%;
}

.vc-slide__left {
  max-width: 620px;
  padding-top: 80px;   /* below header */
  padding-bottom: 180px; /* above trust-bar + booking bar */
}

.vc-slide__kicker {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--hero-gold);
  margin: 0 0 16px;
}

.vc-slide__h2 {
  font-family: 'Noto Serif', serif;
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 18px;
}

.vc-slide__sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 28px;
  max-width: 520px;
}

/* ════════════════════════════════════════════
   CTAs
   ════════════════════════════════════════════ */

.vc-slide__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.vc-cta {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  padding: 14px 28px;
  transition: all 0.25s ease;
  display: inline-block;
}

.vc-cta--primary {
  background: var(--hero-gold);
  color: #1a1a1a;
}

.vc-cta--primary:hover {
  background: #d4a94d;
  transform: translateY(-1px);
}

.vc-cta--secondary {
  background: transparent;
  color: var(--hero-gold);
  border: 1px solid var(--hero-gold);
}

.vc-cta--secondary:hover {
  background: rgba(201, 169, 110, 0.12);
}

/* ════════════════════════════════════════════
   BULLET FEATURES
   ════════════════════════════════════════════ */

.vc-slide__bullets {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vc-bullet {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  padding: 5px 0 5px 22px;
  position: relative;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.vc-bullet.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.vc-bullet::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--hero-gold);
  font-weight: 700;
}

/* ════════════════════════════════════════════
   FEATURE BADGES (2×2 inline grid)
   ════════════════════════════════════════════ */

.vc-slide__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  margin-top: 24px;
}

.vc-feat {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-radius: 6px;
  padding: 0 12px;
  min-height: 48px;
  line-height: 1.2;
}

.vc-feat i {
  color: var(--hero-gold);
  font-size: 14px;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

/* ════════════════════════════════════════════
   NAVIGATION ARROWS
   ════════════════════════════════════════════ */

.vc-hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  transition: background 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.vc-hero__arrow:hover {
  background: rgba(0, 0, 0, 0.5);
}

.vc-hero__arrow--prev { left: 20px; }
.vc-hero__arrow--next { right: 20px; }

/* ════════════════════════════════════════════
   DOT NAVIGATION
   ════════════════════════════════════════════ */

.vc-hero__dots {
  position: absolute;
  bottom: 180px;  /* above trust-bar + booking bar */
  left: 5%;
  z-index: 4;
  display: flex;
  gap: 10px;
}

.vc-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
}

.vc-dot.is-active {
  background: var(--hero-gold);
  border-color: var(--hero-gold);
  transform: scale(1.15);
}

.vc-dot:hover:not(.is-active) {
  border-color: #fff;
}

/* ════════════════════════════════════════════
   STICKY CTA (Book Now + WhatsApp)
   ════════════════════════════════════════════ */

.vc-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  gap: 0;
  transition: transform 0.3s;
}

.vc-sticky-cta.is-hidden {
  transform: translateY(100%);
}

.vc-sticky-cta__book {
  flex: 1;
  background: var(--hero-gold);
  color: #1a1a1a;
  text-align: center;
  padding: 14px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.vc-sticky-cta__whatsapp {
  background: #25D366;
  color: #fff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */

@media (max-width: 991px) {
  /* Tablet: keep full-viewport hero with bars anchored to bottom */
  .tp-banner.vc-hero {
    height: 100vh !important;
    min-height: 600px !important;
    overflow: hidden !important;
  }
  .tp-banner.vc-hero .trust-bar {
    position: absolute !important;
    bottom: 120px !important;
    width: 100% !important;
  }
  .tp-banner.vc-hero .sdl-booking {
    position: absolute !important;
    bottom: 0 !important;
    width: 100% !important;
  }
  .vc-slide__left {
    padding-bottom: 230px;
  }
  .vc-hero__dots {
    bottom: 230px;
  }
  .vc-hero__arrow {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
}

@media (max-width: 767px) {
  /* Mobile: hero fills viewport, booking bar scrolls below */
  .tp-banner.vc-hero {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  /* Active slide: position:relative so it contributes natural height */
  .vc-slide.is-active {
    position: relative !important;
    height: 100svh;
    min-height: 580px;
  }

  /* Inactive slides: keep absolute so they overlap for cross-fade */
  .vc-slide:not(.is-active) {
    position: absolute !important;
    height: 100svh;
    min-height: 580px;
  }

  /* Dots: anchor to bottom of the viewport-height area */
  .vc-hero__dots {
    bottom: auto;
    top: calc(100svh - 65px);
  }

  /* Trust bar: restore to normal flow below the hero */
  .tp-banner.vc-hero .trust-bar {
    position: relative !important;
    bottom: auto !important;
    width: 100% !important;
    display: block !important;
  }

  /* Booking bar: restore to normal flow below trust bar */
  .tp-banner.vc-hero .sdl-booking {
    position: relative !important;
    bottom: auto !important;
    width: 100% !important;
  }

  /* Show top of image — avoids cropping subject in landscape photos */
  .vc-slide__bg {
    background-position: center top;
  }

  /* Content: less bottom padding since booking bar no longer overlaps */
  .vc-slide__left {
    padding-top: 75px;
    padding-bottom: 100px;
  }

  .vc-slide__h2 {
    font-size: 26px;
  }
  .vc-slide__sub {
    font-size: 14px;
  }
  /* Feature badges: compact on mobile */
  .vc-slide__features {
    gap: 8px 12px;
    margin-top: 18px;
  }
  .vc-feat {
    font-size: 12px;
    padding: 0 10px;
    min-height: 48px;
    line-height: 1.2;
    gap: 7px;
  }
  .vc-cta {
    padding: 12px 20px;
    font-size: 13px;
    width: 100%;
    text-align: center;
  }
  .vc-hero__arrow {
    display: none;
  }
}

@media (max-width: 480px) {
  .vc-slide__ctas {
    flex-direction: column;
  }
  .vc-cta {
    text-align: center;
  }
}

/* ── Booking bar pulse — triggered by Slide 1 CTA click ── */
@keyframes bookingPulse {
  0%   { box-shadow: 0 0 0 0    rgba(201, 169, 110, 0.00); }
  30%  { box-shadow: 0 0 0 10px rgba(201, 169, 110, 0.55); }
  60%  { box-shadow: 0 0 0 20px rgba(201, 169, 110, 0.20); }
  100% { box-shadow: 0 0 0 0    rgba(201, 169, 110, 0.00); }
}
.booking-pulse {
  animation: bookingPulse 0.6s ease-out 3;
  border-radius: 4px;
}
