/*=================================
   Hero — Rodriguez Luxury Cars
   Video-backed hero.

   assets/video/video.mp4 plays muted and looping behind the copy and the
   booking card, with a graded scrim over it for legibility. The poster
   frame (assets/video/video-poster.jpg) covers first paint, phones, and
   anyone who has asked for reduced motion.
==================================*/

.hero-with-booking {
  --hero-ink:    #07080B;
  --hero-ink-2:  #10131A;
  --hero-gold:   #C0A062;
  --hero-photo:  none;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--hero-ink);
  background-image: var(--hero-photo);
  background-size: cover;
  background-position: center center;
}

/* Kill the grey placeholder if the theme script ever re-applies it */
.hero-with-booking.background-image {
  background-image: var(--hero-photo) !important;
}

/*------------------- Video background -------------------*/
.hero-fx {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-image: url("../video/video-poster.jpg");
  background-size: cover;
  background-position: center;
}

.hero-fx > span { position: absolute; display: block; }

.hero-fx__video {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* The subjects' heads sit near the top of this 1124x820 source, and `cover`
     crops the frame vertically. The wider the viewport, the thinner the
     visible band (71% at 1440px, 53% at 1920px, 40% at 2560px), so the focal
     point has to ride upward with it or the VIP is decapitated as he steps
     out of the car. Measured against the actual footage. */
  object-position: center 10%;
  display: block;
  /* Safari needs an explicit background or it flashes white before first frame */
  background: #07080B;
}

/* Wider viewports crop harder, so raise the focal point to keep heads in. */
@media (min-width: 1600px) {
  .hero-fx__video { object-position: center 4%; }
}

@media (min-width: 2000px) {
  .hero-fx__video { object-position: center 0%; }
}

/* Give the hero more height on very wide screens: a taller box means a taller
   slice of the source survives the crop, which buys back headroom. */
@media (min-width: 1600px) {
  .hero-with-booking .hero-item { padding: 70px 0; }
}

@media (min-width: 2000px) {
  .hero-with-booking .hero-item { padding: 90px 0; }
}

/*------------------- Legibility scrim -------------------*/
/* Video alone does not give the headline or the booking card enough contrast.
   This grades the frame: heaviest under the copy on the left, lighter through
   the middle, and warm gold behind the card on the right. */
.hero-fx__scrim {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(6, 7, 10, 0.93) 0%,
      rgba(6, 7, 10, 0.82) 34%,
      rgba(6, 7, 10, 0.46) 58%,
      rgba(6, 7, 10, 0.74) 100%),
    radial-gradient(58% 70% at 78% 44%, rgba(192, 160, 98, 0.18) 0%, transparent 70%),
    linear-gradient(to top, rgba(5, 6, 8, 0.85) 0%, transparent 42%);
}

/* Fine grain so the graded video never bands on wide screens */
.hero-fx__grain {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  opacity: 0.28;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* Vignette, so the eye lands on the headline and the booking card */
.hero-with-booking::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(135% 110% at 46% 44%, transparent 52%, rgba(0, 0, 0, 0.5) 100%);
}

.hero-with-booking > .container {
  position: relative;
  z-index: 2;
}

/* Phones and short/landscape viewports: don't spend 1.4MB of someone's
   cellular data on decoration. The poster still shows via .hero-fx's
   background-image. The inline gate in index.html also prevents the fetch;
   these rules are the belt-and-braces if scripting is unavailable. */
@media (max-width: 767px) {
  .hero-fx__video { display: none; }
}

@media (max-height: 500px) {
  .hero-fx__video { display: none; }
}

/* Data Saver */
@media (prefers-reduced-data: reduce) {
  .hero-fx__video { display: none; }
}

/*------------------- Typography -------------------*/
/* The theme wrapped the copy in a heavy 10px gold bracket. Replaced with a
   single thin rule that fades out — quieter, and lets the type carry it. */
.hero-with-booking .hero-content {
  border-left: 0;
  padding: 8px 0 8px 26px;
}

.hero-with-booking .hero-content::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 2px;
  height: auto;
  border-radius: 2px;
  background: linear-gradient(to bottom,
    var(--hero-gold) 0%,
    rgba(192, 160, 98, 0.55) 45%,
    transparent 100%);
}

.hero-with-booking .hero-content::after { display: none; }

.hero-with-booking .hero-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  margin-bottom: 16px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--hero-gold);
}

.hero-with-booking .hero-subtitle::before {
  content: "";
  position: static;
  transform: none;
  display: block;
  width: 30px;
  height: 1px;
  background: var(--hero-gold);
}

/* Theme rule sat at left:0 and struck through the text once padding went */
.hero-with-booking .hero-subtitle::after { display: none; }

.hero-with-booking .hero-title {
  font-size: clamp(42px, 5.6vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 18px;
  text-wrap: balance;
}

/* The rotating word is the hero's focal point, so it gets the gold.
   NOTE: do not use background-clip:text here — .cd-words-wrapper sets
   perspective:300px, and the resulting 3D context stops the clipped
   gradient painting, leaving the word invisible. Solid fill + glow. */
.hero-with-booking .hero-title .cd-words-wrapper b {
  color: #E6C979;
  text-shadow: 0 0 32px rgba(192, 160, 98, 0.45);
}

/* The plugin draws a 2px caret rule in a stock grey; make it gold */
.hero-with-booking .cd-headline.clip .cd-words-wrapper::after {
  background-color: var(--hero-gold);
  width: 2px;
}

.hero-with-booking .hero-text {
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  text-transform: none;
  color: rgba(255, 255, 255, 0.72);
  max-width: 46ch;
  margin-bottom: 30px;
}

/*------------------- Call to action -------------------*/
.hero-with-booking .hero-btn {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.hero-with-booking .hero-btn .vs-btn {
  box-shadow: 0 14px 34px rgba(192, 160, 98, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-with-booking .hero-btn .vs-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(192, 160, 98, 0.4);
}

/* --- Secondary CTA: call the dispatcher ---------------------------------
   Replaced the play button, which promised a video the company does not
   have. A tel: link is the more useful second action for a car service and
   becomes tap-to-call on a phone. */
.hero-call {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  transition: transform 0.25s ease;
}

.hero-call:hover { transform: translateY(-2px); }

.hero-call__icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(192, 160, 98, 0.55);
  background-color: rgba(192, 160, 98, 0.1);
  color: var(--hero-gold);
  font-size: 15px;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.hero-call:hover .hero-call__icon {
  background-color: var(--hero-gold);
  border-color: var(--hero-gold);
  color: #0C0F14;
}

.hero-call:focus-visible .hero-call__icon {
  outline: none;
  box-shadow: 0 0 0 3px rgba(192, 160, 98, 0.4);
}

.hero-call__copy {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.hero-call__label {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.hero-call__num {
  font-family: var(--title-font);
  font-size: 17px;
  font-weight: 700;
  color: var(--white-color);
  letter-spacing: 0.01em;
}

.hero-call:hover .hero-call__num { color: var(--hero-gold); }

/*------------------- Booking card -------------------*/
/* Lift the card off the panel so it reads as the primary action. */
.hero-with-booking .booking-widget {
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(192, 160, 98, 0.16),
    0 0 80px -20px rgba(192, 160, 98, 0.35);
}

/*------------------- Motion preferences -------------------*/
@media (prefers-reduced-motion: reduce) {
  .hero-fx__video { display: none; }          /* poster image takes over */
  .hero-call { transition: none; }
  .hero-call:hover { transform: none; }
}

/*------------------- Small screens -------------------*/
/* Below 1200px the card stacks under the copy, so the horizontal scrim
   (built for the side-by-side desktop layout) would darken the right edge
   for no reason. Grade it vertically instead. */
@media (max-width: 1199px) {
  .hero-fx__scrim {
    background:
      linear-gradient(180deg,
        rgba(6, 7, 10, 0.72) 0%,
        rgba(6, 7, 10, 0.55) 30%,
        rgba(6, 7, 10, 0.68) 65%,
        rgba(5, 6, 8, 0.9) 100%),
      radial-gradient(70% 50% at 50% 30%, rgba(192, 160, 98, 0.14) 0%, transparent 72%);
  }
}

/* Tablets: the card stacks under the copy and would otherwise run the full
   column width, stretching every field. Cap it and centre it. */
@media (max-width: 1199px) {
  .hero-with-booking .booking-widget {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 991px) {
  .hero-with-booking .hero-content { padding-left: 18px; }
  .hero-with-booking .hero-text { max-width: 100%; }
}

/* Landscape phones: reclaim vertical space so the hero is not three
   screens tall before the form even starts. */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-with-booking .hero-title { font-size: clamp(30px, 5vw, 44px); }
  .hero-with-booking .hero-text { margin-bottom: 18px; }
  .hero-with-booking .hero-subtitle { margin-bottom: 10px; }
}

@media (max-width: 575px) {
  .hero-with-booking .hero-subtitle { font-size: 11px; letter-spacing: 0.18em; }
  .hero-with-booking .hero-btn { gap: 16px; }
  .hero-call__label { font-size: 10.5px; letter-spacing: 0.12em; }
  .hero-call__num { font-size: 16px; }
  .hero-call__icon { width: 42px; height: 42px; }
}
