/* Valencia Safe Transfer — homepage polish (Nov 2026)
   Loaded after styles.css. Real photos, driver video hero, trust strip,
   fleet mosaic, reveal-on-scroll. */

/* ---------- Hero: slow zoom on real photos ---------- */
img.hero-bg-img.is-active {
  animation: vst-kenburns 9s ease-out both;
}

@keyframes vst-kenburns {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

/* ---------- Hero slide: 4 chóferes · 4 idiomas ---------- */
.hero-quartet {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #050505;
  pointer-events: none;
  transform: none;
  /* Always left → right: Jobeyeb · Alejandro · Brandon · Bilal (also on the Arabic site) */
  direction: ltr;
}

.hero-quartet.is-active {
  pointer-events: auto;
  transform: none;
}

.quartet-panel {
  position: relative;
  margin: 0;
  overflow: hidden;
  cursor: pointer;
  filter: grayscale(0.3) brightness(0.68);
  transition: filter 0.7s ease;
}

.quartet-panel + .quartet-panel {
  border-inline-start: 1px solid rgba(245, 163, 0, 0.4);
}

.quartet-panel.is-speaking {
  filter: none;
}

.quartet-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  transform: scale(1.02);
  transition: transform 1.4s ease;
}

.quartet-panel.is-speaking .quartet-video {
  transform: scale(1.07);
}

.quartet-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.78) 26%, rgba(0, 0, 0, 0) 58%);
  pointer-events: none;
}

.quartet-caption {
  position: absolute;
  inset-inline: 0;
  top: 47%;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  padding: 0 0.5rem;
  text-align: center;
  color: #fff;
}

.quartet-hello {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.5rem, 2.9vw, 2.7rem);
  line-height: 1.05;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.85);
  opacity: 0;
  transform: translateY(0.6rem);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.quartet-hello[lang="ar"] {
  font-family: "Tajawal", system-ui, sans-serif;
  font-style: normal;
  font-weight: 800;
  font-size: clamp(1.3rem, 2.5vw, 2.3rem);
}

.quartet-panel.is-speaking .quartet-hello {
  opacity: 1;
  transform: none;
}

.quartet-who {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.5);
  padding: 0.3rem 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

.quartet-who b {
  font-weight: 800;
}

.quartet-who i {
  font-style: normal;
  font-weight: 700;
  color: var(--brand);
}

.quartet-panel.is-speaking .quartet-who {
  background: var(--brand);
  border-color: var(--brand);
  color: #000;
}

.quartet-panel.is-speaking .quartet-who i {
  color: #000;
  opacity: 0.7;
}

.quartet-sound {
  position: absolute;
  top: 5.9rem;
  left: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transform: translateX(-50%);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 0.5rem 1rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.quartet-sound:hover,
.hero-quartet.is-sound-on .quartet-sound {
  background: var(--brand);
  border-color: var(--brand);
  color: #000;
}

.quartet-sound__on,
.quartet-sound__mute,
.hero-quartet.is-sound-on .quartet-sound__off,
.hero-quartet.is-sound-on .quartet-sound__listen {
  display: none;
}

.hero-quartet.is-sound-on .quartet-sound__on,
.hero-quartet.is-sound-on .quartet-sound__mute {
  display: inline;
}

/* Text sits low and compact so the four faces stay visible */
.hero-shade {
  transition: opacity 0.8s ease;
}

.hero-block--quartet .hero-shade {
  opacity: 0;
}

.hero-block--quartet .hero-stage {
  align-items: end;
  min-height: max(540px, calc(100vh - 12.5rem));
  pointer-events: none;
}

.hero-block--quartet .hero-panels {
  display: flex;
  align-items: flex-end;
}

.hero-block--quartet .hero-panel.is-active {
  pointer-events: none;
}

.hero-block--quartet .hero-cta a,
.hero-block--quartet .hero-dots {
  pointer-events: auto;
}

.hero-block--quartet .hero-badge {
  display: none;
}

.hero-block--quartet .hero-title {
  max-width: 44rem;
  font-size: clamp(1.45rem, 3vw, 2.3rem);
}

.hero-block--quartet .hero-text {
  margin-top: 0.6rem;
  max-width: 44rem;
  font-size: 1rem;
  line-height: 1.5;
}

.hero-block--quartet .hero-cta {
  margin-top: 1.1rem;
}

@media (max-width: 767px) {
  .hero-quartet {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    inset: 4.75rem 0 auto 0;
    height: 49%;
  }

  .quartet-panel:nth-child(3) {
    border-inline-start: 0;
  }

  .quartet-panel:nth-child(n + 3) {
    border-top: 1px solid rgba(245, 163, 0, 0.4);
  }

  .quartet-panel::after {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 55%);
  }

  .quartet-caption {
    top: auto;
    bottom: 0.55rem;
    gap: 0.25rem;
  }

  .quartet-hello {
    font-size: 1.35rem;
  }

  .quartet-who {
    font-size: 0.62rem;
    padding: 0.22rem 0.6rem;
  }

  .quartet-sound {
    top: calc(50% - 1.05rem);
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }

  .hero-block--quartet .hero-text,
  .hero-block--quartet .hero-cta .btn-ghost {
    display: none;
  }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  padding: 2.5rem 0 0;
}

.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.trust-item {
  display: grid;
  gap: 0.2rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(23, 19, 11, 0.08);
  background: #fff;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 10px 30px rgba(23, 19, 11, 0.05);
}

.trust-item strong {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--foreground);
}

.trust-item strong::after {
  content: "";
  display: block;
  width: 2rem;
  height: 3px;
  margin-top: 0.45rem;
  border-radius: 3px;
  background: var(--brand);
}

.trust-item span {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--muted);
}

@media (min-width: 900px) {
  .trust-strip__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

/* ---------- Fleet: real-photo mosaic ---------- */
.fleet-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.fleet-mosaic__item {
  margin: 0;
  overflow: hidden;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  aspect-ratio: 1 / 1;
}

.fleet-mosaic__item--main {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.fleet-mosaic__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s ease;
}

.fleet-mosaic__item:hover img {
  transform: scale(1.06);
}

@media (max-width: 520px) {
  .fleet-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Team cards: tighter, photo-led ---------- */
.driver-body {
  min-height: 0;
}

.driver-photo-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 28%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.28), transparent);
  pointer-events: none;
}

/* ---------- Partners: real team photo ---------- */
.partners-media {
  border-radius: 1.25rem;
}

/* ---------- Reveal on scroll (only when JS enabled it) ---------- */
.has-reveal .trust-item,
.has-reveal .home-services-head,
.has-reveal .service-card,
.has-reveal .fleet-static__copy,
.has-reveal .fleet-mosaic__item,
.has-reveal .team-head,
.has-reveal .driver-card,
.has-reveal .partners > * {
  opacity: 0;
  translate: 0 1.25rem;
  transition: opacity 0.7s ease var(--reveal-delay, 0ms), translate 0.7s ease var(--reveal-delay, 0ms);
}

.has-reveal .is-in {
  opacity: 1 !important;
  translate: 0 0 !important;
}

@media (prefers-reduced-motion: reduce) {
  img.hero-bg-img.is-active {
    animation: none;
  }

  .quartet-panel,
  .quartet-video,
  .quartet-hello {
    transition: none;
  }
}

/* ---------- Footer v2: logo left, organised columns ---------- */
.site-footer--v2 {
  padding: 3.25rem 0 1.5rem;
  text-align: start;
  background: #fff;
  border-top: 1px solid rgba(23, 19, 11, 0.08);
  backdrop-filter: none;
}

.site-footer--v2 .footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.site-footer--v2 .footer-logo {
  display: block;
  width: 9.5rem;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: none;
  padding: 0;
  box-shadow: none;
}

.site-footer--v2 .desc {
  margin: 1rem 0 0;
  max-width: 24rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}

.site-footer--v2 .footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
}

.site-footer--v2 .footer-col > strong {
  margin-bottom: 0.25rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-strong);
}

.site-footer--v2 .footer-nav,
.site-footer--v2 .footer-services {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.55rem;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
}

.site-footer--v2 .footer-nav a,
.site-footer--v2 .footer-services a,
.site-footer--v2 .footer-contact > a {
  display: inline;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer--v2 .footer-nav a:hover,
.site-footer--v2 .footer-services a:hover,
.site-footer--v2 .footer-contact > a:hover {
  color: var(--brand-strong);
}

.site-footer--v2 .footer-contact > a {
  font-size: 1.15rem;
  font-weight: 800;
}

.site-footer--v2 .footer-contact span {
  color: var(--muted);
}

.site-footer--v2 .footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.site-footer--v2 .footer-actions .btn {
  min-height: 42px;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

.site-footer--v2 .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 2.5rem;
  border-top: 1px solid rgba(23, 19, 11, 0.08);
  padding-top: 1.25rem;
}

.site-footer--v2 .sponsors {
  margin: 0;
  max-width: 34rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.site-footer--v2 .sponsors img {
  display: block;
  width: 100%;
  height: auto;
}

.site-footer--v2 .footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

@media (min-width: 640px) {
  .site-footer--v2 .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .site-footer--v2 .footer-grid {
    grid-template-columns: 1.5fr 0.8fr 0.9fr 1.2fr;
    gap: 3rem;
  }
}

@media (max-width: 720px) {
  /* room for the floating buttons */
  .site-footer--v2 {
    padding-bottom: 5rem;
  }
}

/* Sound is on by default; while the browser is still waiting for a first click, the button invites it */
.quartet-sound.is-waiting {
  border-color: var(--brand);
  animation: vst-sound-pulse 1.6s ease-in-out infinite;
}

@keyframes vst-sound-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 163, 0, 0.55); }
  50% { box-shadow: 0 0 0 10px rgba(245, 163, 0, 0); }
}


/* ---------- Tourist Card partner offer (after the drivers) ---------- */
.tourist-promo {
  padding: 4.5rem 0;
  background: linear-gradient(180deg, #e9eef2 0%, var(--background) 100%);
}

.tourist-promo__card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  padding: clamp(2rem, 4.5vw, 3.75rem);
  border-radius: 28px;
  background: #0d1716;
  color: #fff;
  box-shadow: 0 30px 70px -30px rgba(6, 40, 38, 0.55);
  isolation: isolate;
}

.tourist-promo__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 92% 12%, rgba(20, 184, 166, 0.45), transparent 42%),
    radial-gradient(circle at 6% 96%, rgba(245, 163, 0, 0.28), transparent 38%);
}

.tourist-promo__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(94, 234, 212, 0.4);
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  color: #5eead4;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tourist-promo__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2dd4bf;
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.2);
}

.tourist-promo__title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.tourist-promo__text {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.6;
}

.tourist-promo__banner {
  display: block;
  justify-self: center;
  width: 100%;
  max-width: 560px;
  border-radius: 18px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 20px 45px -18px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: rotate(-1.5deg);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.tourist-promo__banner:hover,
.tourist-promo__banner:focus-visible {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 28px 55px -18px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(94, 234, 212, 0.5);
}

.tourist-promo__banner img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}

[dir="rtl"] .tourist-promo__banner {
  transform: rotate(1.5deg);
}

@media (max-width: 820px) {
  .tourist-promo {
    padding: 3rem 0;
  }

  .tourist-promo__card {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .tourist-promo__card > * {
    min-width: 0;
  }

  .tourist-promo__text {
    margin-inline: auto;
  }

  .tourist-promo__banner {
    grid-row: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tourist-promo__banner {
    transition: none;
  }
}


/* ---------- Tablets / iPad (Nov 2026) ---------- */

/* iPad portrait: 2 x 2 large video tiles instead of 4 thin columns, so faces are not cropped */
@media (min-width: 768px) and (max-width: 1100px) and (orientation: portrait) {
  .hero-quartet {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    inset: 5.5rem 0 auto 0;
    height: 58%;
  }

  .quartet-panel:nth-child(3) {
    border-inline-start: 0;
  }

  .quartet-panel:nth-child(n + 3) {
    border-top: 1px solid rgba(245, 163, 0, 0.4);
  }

  .quartet-video {
    object-position: 50% 22%;
  }

  .quartet-panel::after {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.35) 32%, rgba(0, 0, 0, 0) 55%);
  }

  .quartet-caption {
    top: auto;
    bottom: 1rem;
    gap: 0.35rem;
  }

  .quartet-hello {
    font-size: 2rem;
  }

  .quartet-hello[lang="ar"] {
    font-size: 1.8rem;
  }

  .quartet-who {
    font-size: 0.75rem;
  }

  /* Sound button sits on the cross between the 4 tiles */
  .quartet-sound {
    top: calc(5.5rem + 29% - 1.2rem);
  }

  .hero-block--quartet .hero-stage {
    min-height: max(540px, calc(100svh - 10rem));
  }

  .hero-block--quartet .hero-title {
    font-size: clamp(1.9rem, 4.6vw, 2.6rem);
  }

  .hero-block--quartet .hero-text {
    font-size: 1.05rem;
  }
}

/* iPad landscape and short laptop screens: lift the names so they never touch the title */
@media (min-width: 900px) and (max-height: 900px) and (orientation: landscape) {
  .quartet-caption {
    top: 36%;
  }

  .hero-block--quartet .hero-title {
    font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  }
}

/* Touch tablets: compact bottom dock (like on phones) so the floating buttons don't cover the faces */
@media (min-width: 721px) and (max-width: 1366px) and (hover: none),
  (min-width: 721px) and (max-width: 1100px) and (orientation: portrait) {
  .float-dock {
    top: auto;
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    right: max(1rem, env(safe-area-inset-right, 0px));
    transform: none;
    grid-auto-flow: column;
    gap: 0.6rem;
    padding: 0.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  html[dir="rtl"] .float-dock {
    left: max(1rem, env(safe-area-inset-left, 0px));
    right: auto;
  }

  .float-btn {
    width: 54px;
    height: 54px;
  }

  .float-btn svg {
    width: 26px;
    height: 26px;
  }
}