/* Website-3: below-hero rhythm, booking page, hero motion safety, trust/testimonials, mobile CTA */

.hero {
  overflow-x: clip;
  overflow-y: visible;
}

.hero-grid {
  overflow: visible;
}

/*
 * Shift hero copy slightly left on wide viewports only.
 * Negative margin + .hero overflow-x clip cuts off the column on tablets/phones.
 */
@media (min-width: 1025px) {
  .hero-copy {
    margin-left: clamp(-1600px, -5.5vw, -72px);
  }
}

.hero-visual {
  overflow: visible;
  min-height: 400px;
  padding-bottom: 48px;
}

.hero-vehicle {
  transform: translate3d(calc(var(--base-x, 0px) + var(--tx, 0px)), calc(var(--base-y, 0px) + var(--ty, 0px)), 0)
    scale(var(--scale, 1)) rotate(var(--rotate, 0deg));
}

.hero-vehicle img {
  transform: scale(var(--img-scale, 1.02));
  transition: transform 220ms ease;
}

/* Mobile: menu already has Book + Call — hide duplicate hero CTAs; raise floating vehicle cards */
@media (max-width: 640px) {
  .hero-ctas {
    display: none !important;
  }

  .hero-visual {
    min-height: 260px;
    padding-bottom: 20px;
  }

  /* Escalade only — nudge down so it doesn’t cover copy (S-Class / Sprinter use top) */
  .hero-vehicle:not(.hero-vehicle--mid):not(.hero-vehicle--small) {
    bottom: -76px !important;
  }

  .hero-vehicle--mid {
    top: -88px !important;
  }

  .hero-vehicle--small {
    top: 64px !important;
  }
}

.post-hero .service-showcase,
.post-hero .fleet,
.post-hero .gallery,
.post-hero .coverage,
.post-hero .why,
.post-hero .pricing,
.post-hero .faq,
.post-hero .trust-strip,
.post-hero .testimonials {
  padding: 56px 0;
}

.post-hero .section-heading h2 {
  font-weight: 700;
  letter-spacing: -0.03em;
}

.post-hero .section-heading p {
  font-weight: 500;
}

.fleet-panel > .fleet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.booking-page {
  padding: 32px 0 48px;
}

.page-booking .booking-card {
  max-width: none;
  margin: 0;
  grid-template-columns: 1fr;
  gap: 16px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.page-booking .booking > .container {
  width: 100%;
  max-width: none;
}

/* Wider + taller booking container, no visible frame, avoid inner clipping/scroll */
.page-booking .booking-widget {
  width: 100%;
  max-width: min(100%, 920px);
  margin-inline: auto;
  min-height: 1300px;
  max-height: none;
  overflow: visible;
  -webkit-overflow-scrolling: auto;
  overscroll-behavior: auto;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.page-booking .booking-widget > [data-kf-booking-widget],
.page-booking .booking-widget iframe {
  width: 100% !important;
  min-height: 1300px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  max-height: none !important;
}

@media (max-width: 960px) {
  .page-booking .booking-widget,
  .page-booking .booking-widget > [data-kf-booking-widget],
  .page-booking .booking-widget iframe {
    min-height: 1450px !important;
  }
}

@media (max-width: 640px) {
  .page-booking .booking-widget,
  .page-booking .booking-widget > [data-kf-booking-widget],
  .page-booking .booking-widget iframe {
    min-height: 1650px !important;
  }
}

.trust-strip {
  background: linear-gradient(180deg, rgba(201, 164, 108, 0.12), transparent);
  border-block: 1px solid var(--card-border);
}

.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.trust-strip-copy {
  margin: 0;
  font-weight: 600;
  max-width: 42ch;
}

.trust-strip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.testimonial-card {
  margin: 0;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  background: var(--card);
  box-shadow: 0 12px 32px rgba(11, 13, 16, 0.08);
}

.testimonial-card blockquote {
  margin: 0 0 12px;
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 500;
}

.testimonial-card figcaption {
  font-size: 0.85rem;
  color: var(--slate);
}

/* Floating WhatsApp (chat-style pop + FAB) */
.wa-chat-widget {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

.wa-chat-widget > * {
  pointer-events: auto;
}

.wa-chat-fab {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45), 0 4px 12px rgba(11, 13, 16, 0.25);
  border: none;
  text-decoration: none;
  transform: scale(0);
  opacity: 0;
  animation: waFabPop 0.55s cubic-bezier(0.34, 1.45, 0.64, 1) 0.35s forwards;
}

.wa-chat-fab:hover {
  filter: brightness(1.06);
}

.wa-chat-fab:focus-visible {
  outline: 2px solid var(--gold, #c9a46c);
  outline-offset: 3px;
}

@keyframes waFabPop {
  70% {
    transform: scale(1.06);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.wa-chat-bubble {
  position: relative;
  max-width: min(236px, calc(100vw - 88px));
  padding: 10px 34px 10px 12px;
  border-radius: 14px;
  background: var(--card, #151920);
  color: var(--ink, #f5f7fa);
  border: 1px solid var(--card-border, rgba(255, 255, 255, 0.12));
  box-shadow: 0 16px 40px rgba(11, 13, 16, 0.35);
  transform-origin: bottom right;
  opacity: 0;
  transform: translateY(10px) scale(0.94);
}

.wa-chat-bubble::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: -7px;
  width: 12px;
  height: 12px;
  background: var(--card, #151920);
  border-right: 1px solid var(--card-border, rgba(255, 255, 255, 0.12));
  border-bottom: 1px solid var(--card-border, rgba(255, 255, 255, 0.12));
  transform: rotate(45deg);
}

.theme-light .wa-chat-bubble {
  background: #fff;
  color: var(--ink, #0b0d10);
  border-color: rgba(11, 13, 16, 0.1);
  box-shadow: 0 16px 40px rgba(11, 13, 16, 0.12);
}

.theme-light .wa-chat-bubble::after {
  background: #fff;
  border-color: rgba(11, 13, 16, 0.1);
}

.wa-chat-bubble[hidden] {
  display: none !important;
}

.wa-chat-bubble--show {
  animation: waBubbleIn 0.42s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes waBubbleIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.wa-chat-bubble-close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.65;
}

.wa-chat-bubble-close:hover {
  opacity: 1;
}

.wa-chat-bubble-kicker {
  margin: 0 0 3px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold, #c9a46c);
}

.wa-chat-bubble-text {
  margin: 0 0 10px;
  font-size: 0.8rem;
  line-height: 1.42;
  color: var(--slate, #b0b7c3);
}

.theme-light .wa-chat-bubble-text {
  color: var(--slate, #566070);
}

.wa-chat-bubble-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  background: #25d366;
  color: #fff;
  text-decoration: none;
}

.wa-chat-bubble-cta:hover {
  filter: brightness(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .wa-chat-fab {
    animation: none;
    transform: none;
    opacity: 1;
  }

  .wa-chat-bubble--show {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
