/* ============================================================================
   travflex marketing site — shared component styles.
   Extracted from the per-page inline <style> block; every colour is tokenised
   via styles/tokens.css and consumed as rgb(var(--token) [/ alpha]). Behaviour
   (transitions, transforms, keyframes) is unchanged. Linked by every page.
   ============================================================================ */
* {
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

.hero-gradient {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgb(var(--color-primary-500) / 0.12) 0%, transparent 70%),
    linear-gradient(180deg, rgb(var(--color-white)) 0%, rgb(var(--color-slate-50)) 100%);
}

.nav-glass {
  background: rgb(var(--color-white) / 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgb(var(--color-black) / 0.07);
}

.btn-primary {
  background: linear-gradient(135deg, rgb(var(--color-primary-500)) 0%, rgb(var(--color-primary-glow)) 100%);
  box-shadow: 0 4px 20px rgb(var(--color-primary-500) / 0.35);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgb(var(--color-primary-500) / 0.45);
}

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

.feature-card {
  transition: all 0.25s ease;
  border: 1px solid rgb(var(--color-slate-200));
  cursor: pointer;
}

.feature-card h3 {
  transition: color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: #fb923c !important;
  box-shadow: 0 0 0 1px #fb923c, 0 12px 30px -10px rgba(251, 146, 60, 0.25), 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.feature-card:hover h3 {
  color: #ea580c !important;
}

.shimmer {
  background: linear-gradient(90deg, rgb(var(--color-slate-100)) 25%, rgb(var(--color-slate-200)) 50%, rgb(var(--color-slate-100)) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: rgb(var(--color-primary-500));
  transition: width 0.2s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.testimonial-card {
  background: rgb(var(--color-white));
  border: 1px solid rgb(var(--color-slate-200));
  transition: all 0.2s ease;
}

.testimonial-card:hover {
  border-color: rgb(var(--color-primary-500) / 0.3);
  box-shadow: 0 8px 30px rgb(var(--color-black) / 0.08);
}

.testimonial-slide,
.module-slide,
.feature-module-slide,
.blog-post-slide {
  flex: 0 0 100%;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.testimonial-slide > *,
.module-slide > *,
.feature-module-slide > *,
.blog-post-slide > * {
  width: 100%;
  height: 100%;
}

@media (min-width: 640px) {
  .testimonial-slide,
  .module-slide,
  .blog-post-slide {
    flex: 0 0 calc((100% - 1.5rem) / 2);
    width: calc((100% - 1.5rem) / 2);
  }
  .feature-module-slide {
    flex: 0 0 calc((100% - 1.25rem) / 2);
    width: calc((100% - 1.25rem) / 2);
  }
}

@media (min-width: 1024px) {
  .testimonial-slide,
  .module-slide,
  .blog-post-slide {
    flex: 0 0 calc((100% - 3rem) / 3);
    width: calc((100% - 3rem) / 3);
  }
  .feature-module-slide {
    flex: 0 0 calc((100% - 2.5rem) / 3);
    width: calc((100% - 2.5rem) / 3);
  }
}

/* Slider carousel navigation arrows */
#module-prev-btn,
#module-next-btn,
#testimonial-prev-btn,
#testimonial-next-btn,
#feature-prev-btn,
#feature-next-btn,
#blog-prev-btn,
#blog-next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
}

#module-prev-btn,
#testimonial-prev-btn,
#feature-prev-btn,
#blog-prev-btn {
  left: -0.75rem;
}

#module-next-btn,
#testimonial-next-btn,
#feature-next-btn,
#blog-next-btn {
  right: -0.75rem;
}

@media (min-width: 640px) {
  #module-prev-btn,
  #testimonial-prev-btn,
  #feature-prev-btn,
  #blog-prev-btn {
    left: -1.25rem;
  }

  #module-next-btn,
  #testimonial-next-btn,
  #feature-next-btn,
  #blog-next-btn {
    right: -1.25rem;
  }
}

@media (min-width: 1024px) {
  #module-prev-btn,
  #testimonial-prev-btn,
  #feature-prev-btn,
  #blog-prev-btn {
    left: -1.5rem;
  }

  #module-next-btn,
  #testimonial-next-btn,
  #feature-next-btn,
  #blog-next-btn {
    right: -1.5rem;
  }
}

/* Slider pagination dots */
#module-dots,
#testimonial-dots,
#feature-dots,
#blog-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  margin-top: 2rem;
}

.module-dot,
.testimonial-dot,
.feature-dot,
.blog-dot {
  height: 0.625rem;
  border-radius: 9999px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  padding: 0;
}

.module-dot:not([aria-selected="true"]),
.testimonial-dot:not([aria-selected="true"]),
.feature-dot:not([aria-selected="true"]),
.blog-dot:not([aria-selected="true"]) {
  width: 0.625rem;
  background-color: #cbd5e1;
}

.module-dot:not([aria-selected="true"]):hover,
.testimonial-dot:not([aria-selected="true"]):hover,
.feature-dot:not([aria-selected="true"]):hover,
.blog-dot:not([aria-selected="true"]):hover {
  background-color: #94a3b8;
}

.module-dot[aria-selected="true"],
.testimonial-dot[aria-selected="true"],
.feature-dot[aria-selected="true"],
.blog-dot[aria-selected="true"] {
  width: 1.75rem;
  background-color: rgb(var(--color-primary-600));
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}


.security-card {
  background: linear-gradient(135deg, rgb(var(--color-slate-900)) 0%, rgb(var(--color-slate-800)) 100%);
}

.hover-dropdown-panel {
  display: none !important;
}

.hover-dropdown:hover>.hover-dropdown-panel {
  display: block !important;
}

.hover-dropdown:hover>.hover-dropdown-panel.panel-grid {
  display: grid !important;
}

#sticky-bar {
  display: none;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgb(var(--color-primary-500) / 0.4);
  }

  70% {
    box-shadow: 0 0 0 8px rgb(var(--color-primary-500) / 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgb(var(--color-primary-500) / 0);
  }
}

.pulse-badge {
  animation: pulse-ring 2.5s ease infinite;
}

.pain-card {
  border-left: 4px solid rgb(var(--color-red-100));
  background: linear-gradient(135deg, rgb(var(--color-danger-tint)) 0%, rgb(var(--color-white)) 100%);
}

.pain-card .solution {
  border-left: 4px solid rgb(var(--color-emerald-100));
  background: rgb(var(--color-green-50));
}

.video-card {
  transition: all 0.25s ease;
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgb(var(--color-black) / 0.12);
}

/* Feature module pages — two-column feature rows, checklists, stat cards */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4.5rem 0;
  border-bottom: 1px solid rgb(var(--color-slate-100));
}

@media (max-width: 1023px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 0;
  }
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.check-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgb(var(--color-primary-500) / 0.12);
}

.stat-card {
  background: rgb(var(--color-white));
  border: 1px solid rgb(var(--color-slate-200));
  border-radius: 0.875rem;
  padding: 1.5rem;
  text-align: center;
}

/* Support-desk marquee — scrolling notice strip shown above the nav */
.support-marquee {
  overflow: hidden;
  white-space: nowrap;
  background: rgb(var(--color-primary-500));
  color: rgb(var(--color-white));
  border-bottom: 1px solid rgb(var(--color-primary-600));
  padding: 0.5rem 0;
  font-size: 0.8125rem;
  line-height: 1.25rem;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  width: max-content;
}

.marquee-segment {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-right: 4rem;
  line-height: 1.25rem;
}

.animate-marquee {
  animation: marquee-scroll 30s linear infinite;
}

.support-marquee:hover .animate-marquee {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .animate-marquee {
    animation: none;
  }
}

/* Mobile nav: hide the native disclosure marker on the collapsible sections. */
#mobile-menu summary::-webkit-details-marker {
  display: none;
}

#mobile-menu summary::marker {
  content: '';
}

/* Mobile module card marquee — 3 rows of 4 cards scrolling horizontally */
.module-marquee {
  overflow: hidden;
}

.module-marquee .marquee-row {
  display: flex;
  width: max-content;
}

.module-marquee .marquee-card {
  flex-shrink: 0;
}

.module-marquee-ltr .marquee-row {
  animation: marquee-ltr 50s linear infinite;
}

.module-marquee-rtl .marquee-row {
  animation: marquee-rtl 50s linear infinite;
}

.module-marquee:hover .marquee-row {
  animation-play-state: paused;
}

@keyframes marquee-ltr {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes marquee-rtl {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {

  .module-marquee-ltr .marquee-row,
  .module-marquee-rtl .marquee-row {
    animation: none;
  }
}