/* Custom Style Sheet for Get Your eVisa - Ultra-Premium Fintech & Travel Theme */

:root {
  --primary-slate: #0f172a;
  --primary-slate-dark: #080c15;
  --accent-teal: #00a8a8;
  --accent-teal-dark: #008a8a;
  --canvas-slate: #f8fafc;
  --card-surface: #ffffff;
  --border-subtle: #e2e8f0;
  --text-dark: #080c15;
  --text-muted: #64748b;
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #0f172a;
  background-color: #f8fafc;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, .font-display, .font-heading {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.font-serif {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif !important;
  letter-spacing: 0.05em;
}

.font-sans-display {
  font-family: 'Manrope', sans-serif;
}

/* Luxury Destination Cards (Matches Reference Screenshots) */
.destination-card {
  perspective: 1000px;
  will-change: transform, box-shadow;
  transform: translateZ(0);
}

.destination-card:hover .dest-default-specs {
  opacity: 0;
  visibility: hidden;
  height: 0;
  margin: 0;
}

.destination-card:hover .dest-hover-details {
  max-height: 340px;
  opacity: 1;
  visibility: visible;
}

/* Hide scrollbar on carousel */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Hide scrollbar utility */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Premium Card hover animation with physics-inspired spring */
.hover-card-lift {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease;
}
.hover-card-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
}

/* Consular Card Design */
.consular-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
}

/* Ambient Radial Mesh for Hero (Stripe & Linear grade backdrop) */
.hero-ambient-mesh {
  background-color: #ffffff;
  background-image: 
    radial-gradient(at 50% 0%, rgba(13, 148, 136, 0.08) 0px, transparent 55%),
    radial-gradient(at 10% 20%, rgba(59, 130, 246, 0.04) 0px, transparent 40%),
    radial-gradient(at 90% 25%, rgba(16, 185, 129, 0.04) 0px, transparent 40%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.subtle-dot-pattern {
  background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Dropdown & select reset */
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.15em 1.15em;
  padding-right: 2.25rem;
}

/* Custom Accordion smooth transition */
.accordion-content {
  display: none;
  transition: all 0.3s ease-out;
}
.accordion-content.active {
  display: block;
}

/* Modal styling */
.modal-backdrop-layer {
  background-color: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
}

/* Carousel transitions */
.carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Active tab pill */
.tab-pill.active {
  background-color: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

/* Fluid Typography Utilities using clamp() */
.text-fluid-hero {
  font-size: clamp(1.85rem, 5.5vw + 0.5rem, 3.75rem);
  line-height: 1.15;
}
.text-fluid-h1 {
  font-size: clamp(1.75rem, 4.5vw + 0.4rem, 3.25rem);
  line-height: 1.18;
}
.text-fluid-h2 {
  font-size: clamp(1.45rem, 3.5vw + 0.35rem, 2.5rem);
  line-height: 1.25;
}
.text-fluid-h3 {
  font-size: clamp(1.15rem, 2.4vw + 0.3rem, 1.65rem);
  line-height: 1.3;
}
.text-fluid-h4 {
  font-size: clamp(1rem, 1.8vw + 0.25rem, 1.25rem);
  line-height: 1.35;
}
.text-fluid-lead {
  font-size: clamp(1rem, 1.8vw + 0.4rem, 1.25rem);
  line-height: 1.6;
}
.text-fluid-body {
  font-size: clamp(0.9375rem, 1.4vw + 0.45rem, 1.0625rem);
  line-height: 1.6;
}
.text-fluid-sm {
  font-size: clamp(0.875rem, 1vw + 0.5rem, 0.9375rem);
  line-height: 1.5;
}
.text-fluid-xs,
.text-fluid-caption {
  font-size: clamp(0.8125rem, 0.8vw + 0.5rem, 0.875rem);
  line-height: 1.45;
}
.text-fluid-input {
  font-size: clamp(0.9375rem, 1.2vw + 0.45rem, 1rem);
  line-height: 1.5;
}

/* Mobile & Tablet Typography & Spacing Optimizations */
@media (max-width: 768px) {
  /* Enlarge mobile font sizes with clamp() */
  html {
    font-size: 16px;
  }

  body {
    font-size: clamp(0.9375rem, 3.8vw, 1.0625rem);
    line-height: 1.6;
  }

  /* Headings with clamp() for bold, legible mobile display */
  h1 {
    font-size: clamp(1.85rem, 7vw, 2.75rem) !important;
    line-height: 1.18 !important;
    letter-spacing: -0.025em;
  }

  h2 {
    font-size: clamp(1.45rem, 5.2vw, 2.15rem) !important;
    line-height: 1.25 !important;
  }

  h3 {
    font-size: clamp(1.15rem, 3.8vw, 1.45rem) !important;
    line-height: 1.3 !important;
  }

  h4 {
    font-size: clamp(1rem, 3.2vw, 1.2rem) !important;
    line-height: 1.35 !important;
  }

  /* Paragraphs and leads */
  p {
    font-size: clamp(0.9rem, 2.8vw + 0.2rem, 1.05rem);
    line-height: 1.55;
  }

  /* Form controls: 16px prevents iOS Safari auto-zoom while maintaining crisp readability */
  input, select, textarea {
    font-size: clamp(16px, 3.5vw, 16px) !important;
    -webkit-tap-highlight-color: transparent;
  }

  /* Form Labels */
  label {
    font-size: clamp(0.8125rem, 2.2vw + 0.25rem, 0.875rem) !important;
    letter-spacing: 0.04em;
  }

  /* Buttons & CTAs */
  button, .btn, [type="submit"], [type="button"] {
    font-size: clamp(0.875rem, 2.6vw + 0.25rem, 1rem);
    -webkit-tap-highlight-color: transparent;
  }

  /* Boost previously microscopic classes with clamp() so mobile text is never too small */
  .text-\[9px\], .text-\[10px\], .text-\[11px\] {
    font-size: clamp(0.8125rem, 2.4vw + 0.2rem, 0.875rem) !important; /* ~13px - 14px */
    line-height: 1.45 !important;
  }

  .text-xs {
    font-size: clamp(0.84375rem, 2.5vw + 0.2rem, 0.9375rem) !important; /* ~13.5px - 15px */
    line-height: 1.5 !important;
  }

  .text-sm {
    font-size: clamp(0.9375rem, 2.8vw + 0.2rem, 1.0625rem) !important; /* ~15px - 17px */
    line-height: 1.55 !important;
  }

  /* Badges, tags, and small pill buttons */
  [class*="rounded-full"] {
    font-size: clamp(0.8125rem, 2.2vw + 0.25rem, 0.875rem);
  }

  /* Prevent excessive padding on smaller devices */
  .container, .max-w-7xl, .max-w-4xl, .max-w-5xl {
    padding-left: 0.875rem;
    padding-right: 0.875rem;
  }

  /* Smooth snap scrolling for carousels */
  #guide-carousel-container, #destinations-track, #reviews-carousel-container {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  /* Tablet-specific balanced typography and density */
  h1 {
    font-size: clamp(2.25rem, 5.5vw, 3.25rem) !important;
  }
  h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
  }
  .container, .max-w-7xl, .max-w-4xl, .max-w-5xl {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* Desktop Luxury & Executive Finish */
@media (min-width: 1024px) {
  .shadow-luxury {
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.09), 0 0 0 1px rgba(226, 232, 240, 0.85);
  }
  
  .shadow-card {
    box-shadow: 0 14px 34px -8px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(14, 165, 233, 0.03);
  }

  .hover-card-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.1), 0 4px 12px rgba(14, 165, 233, 0.05);
    border-color: rgba(2, 132, 199, 0.35);
  }

  /* Executive button glow */
  #hero-apply-btn {
    box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.35), 0 4px 10px -2px rgba(2, 132, 199, 0.2);
  }
  #hero-apply-btn:hover {
    box-shadow: 0 15px 35px -5px rgba(2, 132, 199, 0.45), 0 6px 14px -2px rgba(2, 132, 199, 0.25);
  }
}

