/**
 * PARVATHI TRAVELS - REUSABLE COMPONENTS
 * Clean buttons without default glowing, high-contrast brand lockup, cards, testimonials, and floating controls.
 */

/* ==========================================================================
   1. Brand Logo & Company Name Lockup (Guaranteed 100% Readability)
   ========================================================================== */
.brand-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  user-select: none;
}

.brand-logo-link:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.brand-logo-icon {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.35)) drop-shadow(0 1px 3px rgba(197, 155, 39, 0.35));
  transition: transform var(--transition-fast);
}

.brand-logo-link:hover .brand-logo-icon {
  transform: scale(1.04);
}

.brand-text-block {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text-main {
  font-family: var(--font-serif-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 0.12em;
  color: var(--color-midnight);
  text-transform: uppercase;
}

.brand-text-sub {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  color: var(--color-gold);
  text-transform: uppercase;
  margin-top: 3px;
}

/* Dark mode variation for footer & transparent hero */
.brand-logo-link.on-dark .brand-text-main {
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.brand-logo-link.on-dark .brand-text-sub {
  color: var(--color-gold-bright);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   2. Clean Geometric & Pill Buttons (Luxury Champagne Gold & Royal Midnight)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
  user-select: none;
  white-space: nowrap;
  box-shadow: none;
}

/* Primary Button: Regal Champagne Gold Gradient (as in reference "Plan Your Trip →") */
.btn-primary {
  background: var(--color-gold-gradient);
  color: #081322 !important;
  border: 1px solid var(--color-gold);
  font-weight: 800;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  background: var(--color-gold-gradient-hover);
  border-color: var(--color-gold-bright);
  color: #000000 !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(197, 155, 39, 0.42);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Secondary / Outline Button: Refined Midnight or Gold Border */
.btn-outline {
  background-color: transparent;
  color: var(--color-midnight);
  border: 1px solid var(--color-gold);
}

.btn-outline:hover {
  background: var(--color-gold-gradient);
  border-color: var(--color-gold);
  color: #081322;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline:active {
  transform: translateY(0);
}

/* White / Ivory Button (High Contrast for Dark Midnight Sections) */
.btn-white {
  background-color: #ffffff !important;
  color: var(--color-midnight) !important;
  border: 1.5px solid var(--color-gold) !important;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  opacity: 1 !important;
  visibility: visible !important;
}

.btn-white svg {
  stroke: var(--color-midnight);
  stroke-width: 2.2;
}

.btn-white:hover {
  background: var(--color-gold-gradient) !important;
  color: #081322 !important;
  border-color: var(--color-gold-bright) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-white:hover svg {
  stroke: #081322;
}

.btn-white:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Explicit rule for section-bg-navy buttons */
.section-bg-navy .btn-white {
  background-color: #ffffff !important;
  color: var(--color-midnight) !important;
  border-color: var(--color-gold) !important;
}

.section-bg-navy .btn-white:hover {
  background: var(--color-gold-gradient) !important;
  color: #081322 !important;
  border-color: var(--color-gold-bright) !important;
}

/* Direct Instant Call Button (Golden Pill as in Reference Header "Book Now →") */
.btn-call {
  background: var(--color-gold-gradient);
  color: #081322 !important;
  border: 1px solid var(--color-gold);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-gold);
}

.btn-call:hover {
  background: var(--color-gold-gradient-hover);
  color: #000000 !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(197, 155, 39, 0.38);
}

/* Pulsing live dot */
.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
  animation: livePulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
  display: inline-block;
  flex-shrink: 0;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ==========================================================================
   3. Geometric Badges (NO PILLS)
   ========================================================================== */
.geo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.68rem;
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  user-select: none;
}

.geo-badge-blue {
  background: var(--blue-light-tint);
  border: 1px solid var(--border-blue-subtle);
  color: var(--blue-royal);
}

.geo-badge-dark {
  background: var(--blue-deep-navy);
  border: 1px solid var(--blue-navy-dark);
  color: var(--color-white);
}

.geo-badge-live {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #059669;
}

.geo-badge-gold {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.38);
  color: #926a0b;
}

/* ==========================================================================
   4. Luxury Testimonials Showcase & Slider (Custom-Built, High-End Design)
   ========================================================================== */
.testimonial-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-white);
  border: 1px solid var(--border-blue-subtle);
  border-radius: 999px;
  padding: 0.4rem 1.15rem;
  box-shadow: var(--shadow-subtle);
  margin-bottom: 1.25rem;
}

.trust-stars-svg {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #f59e0b;
}

.trust-stars-svg svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.trust-rating {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--blue-deep-navy);
  letter-spacing: -0.01em;
}

.trust-sep {
  color: var(--border-blue-medium);
  font-size: 0.8rem;
}

.trust-verified {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* Showcase Slider Container */
.testimonial-showcase-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0.5rem 0.25rem 1rem;
}

.testimonial-viewport {
  overflow: hidden;
  width: 100%;
  border-radius: var(--radius-md);
  user-select: none;
  -webkit-user-select: none;
}

.testimonial-slider-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1);
  will-change: transform;
  cursor: grab;
  touch-action: pan-y;
}

.testimonial-slider-track.is-dragging {
  cursor: grabbing;
  transition: none !important;
}

.testimonial-slide {
  flex: 0 0 33.333333%;
  padding: 0 0.85rem;
  box-sizing: border-box;
}

@media (max-width: 992px) {
  .testimonial-slide {
    flex: 0 0 50%;
  }
}

@media (max-width: 640px) {
  .testimonial-slide {
    flex: 0 0 100%;
    padding: 0 0.25rem;
  }
}

/* Refined Luxury Testimonial Card with Scenic Destination Vehicle */
.testimonial-card-premium {
  position: relative;
  background: var(--bg-white);
  border: 1px solid var(--border-blue-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 480px;
  box-sizing: border-box;
  box-shadow: 0 4px 18px rgba(10, 25, 49, 0.05);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  overflow: hidden;
}

.testimonial-card-premium:hover {
  transform: translateY(-5px);
  border-color: var(--border-blue-medium);
  box-shadow: 0 14px 32px -4px rgba(29, 78, 216, 0.12);
}

/* Card Visual Header: Destination Vehicle Image with Overlaid Badges */
.testimonial-vehicle-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-surface-soft);
  overflow: hidden;
}

.testimonial-vehicle-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-normal);
}

.testimonial-card-premium:hover .testimonial-vehicle-img {
  transform: scale(1.04);
}

.testimonial-vehicle-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 25, 49, 0.35) 0%, transparent 40%, rgba(10, 25, 49, 0.6) 100%);
  pointer-events: none;
}

.testimonial-destination-tag {
  position: absolute;
  bottom: 10px;
  left: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(10, 25, 49, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.testimonial-destination-tag svg {
  width: 12px;
  height: 12px;
  stroke: var(--blue-sky-bright);
}

.testimonial-vehicle-type-tag {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.95);
  color: var(--blue-deep-navy);
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-xs);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Card Content Body Wrapper */
.testimonial-card-content {
  padding: 1.5rem 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

/* Decorative background quote watermark */
.testimonial-watermark {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 44px;
  height: 44px;
  color: rgba(29, 78, 216, 0.05);
  pointer-events: none;
  user-select: none;
}

/* Card Top Row: Rating & Verified Badge */
.testimonial-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.95rem;
  position: relative;
  z-index: 2;
}

.testimonial-rating-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  color: #f59e0b;
}

.testimonial-stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.testimonial-score {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--blue-deep-navy);
}

.testimonial-badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #059669;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.testimonial-badge-verified svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 2.4;
}

/* Quote Text Body */
.testimonial-quote-body {
  font-size: 0.98rem;
  color: var(--color-text-main);
  line-height: 1.68;
  margin-bottom: 1.6rem;
  flex-grow: 1;
  position: relative;
  z-index: 2;
}

/* Author Lockup */
.testimonial-author-lockup {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  border-top: 1px solid #f1f5f9;
  padding-top: 1.25rem;
  position: relative;
  z-index: 2;
}

.testimonial-avatar-ring {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d4ed8, #0284c7);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(29, 78, 216, 0.2);
}

.testimonial-author-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.testimonial-author-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--blue-deep-navy);
  line-height: 1.25;
}

.testimonial-author-details {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.testimonial-trip-pill {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: var(--bg-surface-blue-tint);
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue-royal);
  white-space: nowrap;
}

.testimonial-location-tag {
  font-size: 0.74rem;
  color: var(--color-text-light);
  white-space: nowrap;
}

/* Slider Navigation & Pagination Controls */
.testimonial-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding: 0 0.5rem;
}

.testimonial-nav-btns {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.testimonial-arrow-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  border: 1px solid var(--border-blue-subtle);
  color: var(--blue-deep-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-subtle);
}

.testimonial-arrow-btn:hover:not(:disabled) {
  background: var(--blue-royal);
  color: #ffffff;
  border-color: var(--blue-royal);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}

.testimonial-arrow-btn:active:not(:disabled) {
  transform: translateY(0);
}

.testimonial-arrow-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  background: var(--bg-white);
  color: var(--blue-deep-navy);
  border-color: var(--border-blue-subtle);
}

.testimonial-dots-track {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--border-blue-medium);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: all var(--transition-fast);
}

.testimonial-dot.active {
  width: 26px;
  background: var(--blue-royal);
}

/* ==========================================================================
   5. Floating Controls (WhatsApp Left, Back-To-Top Right)
   ========================================================================== */
.floating-whatsapp-wrap {
  position: fixed;
  left: clamp(16px, 2.5vw, 32px);
  bottom: clamp(20px, 3vw, 36px);
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.floating-whatsapp-btn {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #25d366, #128c7e);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(18, 140, 126, 0.45);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.floating-whatsapp-btn svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.floating-whatsapp-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 24px rgba(18, 140, 126, 0.6);
}

.floating-whatsapp-tooltip {
  background: var(--blue-deep-navy);
  color: var(--color-white);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--transition-normal);
}

.floating-whatsapp-wrap:hover .floating-whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.back-to-top-btn {
  position: fixed;
  right: clamp(16px, 2.5vw, 32px);
  bottom: clamp(20px, 3vw, 36px);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  border: 1px solid var(--border-blue-subtle);
  color: var(--blue-royal);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 990;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-card);
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: var(--blue-royal);
  color: var(--color-white);
  border-color: var(--blue-royal);
  transform: translateY(-3px);
}

.back-to-top-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.4;
  fill: none;
}

/* ==========================================================================
   6. Vehicle Modal Dialog (<dialog>)
   ========================================================================== */
dialog.vehicle-modal {
  margin: auto;
  border: none;
  background: transparent;
  padding: 0;
  max-width: 960px;
  width: calc(100% - 2rem);
  color: var(--color-text-main);
  overflow: visible;
}

dialog.vehicle-modal::backdrop {
  background: rgba(10, 25, 49, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-content-shell {
  background: var(--bg-white);
  border: 1px solid var(--border-blue-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(10, 25, 49, 0.25);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--blue-royal);
  color: var(--color-white);
}

.modal-close-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
}

.modal-visual-pane {
  background: var(--bg-surface-soft);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--border-blue-subtle);
}

.modal-main-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 11;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #081322;
  border: 1px solid var(--border-gold-subtle);
  position: relative;
}

.modal-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.modal-thumbnails {
  display: flex;
  gap: 0.55rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.modal-thumb {
  width: 60px;
  height: 46px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid rgba(197, 155, 39, 0.25);
  cursor: pointer;
  opacity: 0.7;
  transition: all var(--transition-fast);
  background: #081322;
  padding: 0;
  flex-shrink: 0;
}

.modal-thumb.active {
  opacity: 1;
  border-color: var(--color-gold, #c59b27);
  box-shadow: 0 0 10px rgba(197, 155, 39, 0.45);
  transform: translateY(-2px);
}

.modal-thumb:hover {
  opacity: 1;
  border-color: var(--color-gold-bright, #d4af37);
  transform: translateY(-2px);
}

.modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-info-pane {
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.modal-tag {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--blue-royal);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.modal-vehicle-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--blue-deep-navy);
  margin-bottom: 0.75rem;
}

.modal-rate-strip {
  background: var(--bg-surface-soft);
  border-left: 3px solid var(--blue-royal);
  padding: 0.7rem 0.9rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1.35rem;
}

.modal-rate-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.modal-rate-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--blue-deep-navy);
}

.modal-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.spec-cell {
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-blue-subtle);
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
}

.spec-cell-label {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.spec-cell-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue-deep-navy);
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
}

.modal-actions .btn {
  flex: 1;
}

/* ==========================================================================
   Cinematic Reveal: Smooth, Classy & Premium Hero Text Animation
   Silky upward elevation with atmospheric optical focus and luxury gold aura.
   Applied across all hero sections (Home, About, Services, Vehicles, Contact).
   ========================================================================== */

.glitch-rise-group .glitch-rise-item {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  filter: blur(8px);
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.glitch-rise-group.is-revealed .glitch-rise-item {
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Staggered Cinematic Orchestration */
.glitch-rise-group.is-revealed .glitch-rise-tag {
  animation-name: cinematicRiseTag;
  animation-duration: 900ms;
  animation-delay: 120ms;
}

.glitch-rise-group.is-revealed .glitch-rise-title {
  animation-name: cinematicRiseTitle;
  animation-duration: 1100ms;
  animation-delay: 280ms;
}

.glitch-rise-group.is-revealed .glitch-rise-desc {
  animation-name: cinematicRiseDesc;
  animation-duration: 950ms;
  animation-delay: 480ms;
}

.glitch-rise-group.is-revealed .glitch-rise-cta {
  animation-name: cinematicRiseCta;
  animation-duration: 850ms;
  animation-delay: 680ms;
}

/* 1. Main Title: Regal Cinematic Elevation with Golden Radiance */
@keyframes cinematicRiseTitle {
  0% {
    opacity: 0;
    transform: translate3d(0, 44px, 0) scale3d(0.98, 0.98, 1);
    filter: blur(10px) drop-shadow(0 4px 24px rgba(212, 160, 23, 0.5));
  }
  35% {
    opacity: 0.6;
    filter: blur(4px) drop-shadow(0 4px 20px rgba(212, 160, 23, 0.4));
  }
  70% {
    opacity: 0.95;
    transform: translate3d(0, 5px, 0) scale3d(0.996, 0.996, 1);
    filter: blur(1px) drop-shadow(0 2px 10px rgba(212, 160, 23, 0.2));
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
    filter: none;
  }
}

/* 2. Tag / Breadcrumbs: Gentle Optical Float */
@keyframes cinematicRiseTag {
  0% {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    filter: blur(6px);
  }
  50% {
    opacity: 0.75;
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: none;
  }
}

/* 3. Description / Subtitle: Soft Fluid Lift */
@keyframes cinematicRiseDesc {
  0% {
    opacity: 0;
    transform: translate3d(0, 32px, 0);
    filter: blur(8px);
  }
  45% {
    opacity: 0.7;
    filter: blur(3px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: none;
  }
}

/* 4. Action CTA Buttons: Elegant Poised Entry */
@keyframes cinematicRiseCta {
  0% {
    opacity: 0;
    transform: translate3d(0, 26px, 0) scale3d(0.98, 0.98, 1);
    filter: blur(4px);
  }
  60% {
    opacity: 0.85;
    filter: blur(1px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
    filter: none;
  }
}

/* Accessibility: prefers-reduced-motion compliance */
@media (prefers-reduced-motion: reduce) {
  .glitch-rise-group .glitch-rise-item,
  .glitch-rise-group.is-revealed .glitch-rise-item {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Print Stylesheet Fallback */
@media print {
  .glitch-rise-group .glitch-rise-item {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* ==========================================================================
   Service Keywords Marquee Strip (Seamless Infinite Left-to-Right Scrolling)
   Shared global component positioned directly above the site footer
   ========================================================================== */
.service-marquee-section {
  position: relative;
  background-color: var(--color-midnight);
  border-top: 1px solid var(--border-gold-subtle);
  border-bottom: 1px solid var(--border-gold-subtle);
  padding: clamp(0.95rem, 1.8vw, 1.25rem) 0;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  z-index: 5;
  user-select: none;
}

/* Hero / Page Banner Transition Ribbon:
   Seamlessly connects to the bottom of hero-section and page-banner.
   Eliminates top border and removes any subpixel gap, flowing seamlessly from hero. */
.service-marquee-hero {
  border-top: none !important;
  margin-top: -1px;
  position: relative;
  z-index: 6;
}

.service-marquee-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 19, 34, 0.98) 0%,
    rgba(12, 26, 45, 0.85) 50%,
    rgba(8, 19, 34, 0.98) 100%
  );
  pointer-events: none;
}

/* Atmospheric Edge Fades for Cinematic Entrance and Exit */
.service-marquee-inner {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 5%,
    black 95%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 5%,
    black 95%,
    transparent 100%
  );
}

/* Continuous Infinite Left-to-Right Moving Track */
.service-marquee-track {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
  animation: marqueeScrollLeftToRight 36s linear infinite;
}

/* Left-to-Right Keyframes: Moves smoothly from negative offset toward zero */
@keyframes marqueeScrollLeftToRight {
  0% {
    transform: translate3d(-50%, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

/* Marquee Item Group */
.service-marquee-group {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

/* Individual Service Keyword */
.marquee-keyword {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: clamp(0.86rem, 1.5vw, 1.05rem);
  font-weight: 600;
  color: var(--color-text-on-dark);
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding: 0 clamp(0.5rem, 1vw, 0.9rem);
  text-transform: none; /* Preserves exact casing provided by user */
  transition: color var(--transition-fast);
}

.service-marquee-section:hover .marquee-keyword {
  color: #ffffff;
}

/* Decorative Gold Separator Accent */
.marquee-separator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  padding: 0 clamp(0.35rem, 0.8vw, 0.75rem);
  opacity: 0.85;
  user-select: none;
  flex-shrink: 0;
  line-height: 1;
}

.marquee-separator svg {
  width: clamp(11px, 1.3vw, 14px);
  height: clamp(11px, 1.3vw, 14px);
  fill: currentColor;
  display: block;
}

/* Accessibility: prefers-reduced-motion fallback */
@media (prefers-reduced-motion: reduce) {
  .service-marquee-track {
    animation: none !important;
    transform: none !important;
  }
  .service-marquee-inner {
    overflow-x: auto;
    scrollbar-width: none;
  }
}

