/* Custom Styles for Travel Assistance Website */

/* CSS Variables */
:root {
  --color-primary: #1E3A5F;
  --color-accent: #0EA5E9;
  --color-cta: #F97316;
  --color-cta-h: #EA580C;
  --color-background: #F8FAFC;
  --color-surface: #FFFFFF;
  --color-text: #0F172A;
  --color-text-muted: #64748B;
  --color-success: #10B981;
  --color-border: #E2E8F0;
}

/* Animations */
@keyframes pulse-green {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse-green {
  animation: pulse-green 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fade-in 0.5s ease-out forwards;
}

/* Staggered animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* Wavy underline for headlines */
.wavy-underline {
  position: relative;
  display: inline-block;
}

.wavy-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 3px;
  background: currentColor;
  opacity: 0.3;
  border-radius: 2px;
}

/* Hero section */
.hero-section {
  min-height: 500px;
}

@media (min-width: 768px) {
  .hero-section {
    min-height: 700px;
  }
}

/* Content blocks */
.content-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* FAQ Accordion */
.faq-item {
  transition: border-color 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.faq-answer.open {
  max-height: 500px;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-icon.open {
  transform: rotate(180deg);
}

/* Sticky Bar */
.sticky-bar {
  animation: slide-up 0.3s ease-out;
}

@keyframes slide-up {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Trust badges */
.trust-badge {
  transition: transform 0.2s ease;
}

.trust-badge:hover {
  transform: scale(1.05);
}

/* Outcome snippets */
.outcome-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.outcome-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

/* How it works steps */
.step-connector {
  position: relative;
}

.step-connector::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -2rem;
  width: 2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  transform: translateY(-50%);
}

@media (max-width: 767px) {
  .step-connector::after {
    display: none;
  }
}

/* Comparison table */
.comparison-table-row {
  transition: background-color 0.2s ease;
}

.comparison-table-row:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

/* Mobile card layout for comparison */
@media (max-width: 767px) {
  .mobile-card-positive {
    border-color: #86efac;
    background: linear-gradient(to bottom right, #f0fdf4, #dcfce7);
  }
  
  .mobile-card-negative {
    border-color: #fca5a5;
    background: linear-gradient(to bottom right, #fef2f2, #fee2e2);
  }
}

/* CTA Button styles */
.cta-button {
  transition: all 0.2s ease;
}

.cta-button:hover {
  transform: scale(1.02);
}

.cta-button:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Phone link */
.phone-link {
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.phone-link:hover {
  text-decoration: underline;
}

/* Geo pill */
.geo-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Rotating ticker */
.social-ticker {
  transition: opacity 0.4s ease;
}

/* Image placeholders */
.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Section backgrounds */
.section-bg-1 {
  background-color: #F8FAFC;
}

.section-bg-2 {
  background-color: #FFFFFF;
}

.section-bg-3 {
  background: linear-gradient(135deg, var(--color-primary), #1e293b);
  color: white;
}

/* Wave divider */
.wave-divider {
  display: block;
  width: 100%;
  height: 60px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* Blog cards */
.blog-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

/* Form styles */
.form-input {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
  outline: none;
}

/* Mobile menu animation */
#mobile-menu {
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

#mobile-menu.hidden {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

#mobile-menu:not(.hidden) {
  max-height: 500px;
  opacity: 1;
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
  }
  
  a[href]::after {
    content: " (" attr(href) ")";
  }
}

/* Shared visual refresh */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--color-text);
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.08), transparent 32%),
    linear-gradient(180deg, #f8fbff 0%, #f4f8fc 45%, #eef4fb 100%);
}

main {
  position: relative;
}

main section {
  position: relative;
}

main section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

h1, h2, h3, h4 {
  letter-spacing: -0.03em;
}

p {
  line-height: 1.72;
}

a {
  transition: color 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

img {
  display: block;
}

/* Header and navigation */
header {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18) !important;
}

header > div {
  position: relative;
}

header > div::after {
  content: '';
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
}

header nav a,
#mobile-menu a {
  border-radius: 999px;
}

header nav a:not(.phone-link):not(.phone-href):hover,
header nav a:not(.phone-link):not(.phone-href):focus-visible,
#mobile-menu a:not(.phone-link):hover,
#mobile-menu a:not(.phone-link):focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.phone-link,
.phone-href {
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
}

.phone-link:hover,
.phone-href:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
}

#mobile-menu {
  margin: 0 0.75rem;
  border-radius: 0 0 20px 20px;
  overflow: hidden;
}

/* Section polish */
.bg-white {
  background: rgba(255, 255, 255, 0.92) !important;
}

.bg-slate-50 {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(241, 245, 249, 0.92)) !important;
}

.bg-slate-800,
.bg-slate-900 {
  position: relative;
  overflow: hidden;
}

.bg-slate-800::before,
.bg-slate-900::before {
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.16), transparent 28%),
    radial-gradient(circle at bottom left, rgba(249, 115, 22, 0.12), transparent 24%);
}

.border-b,
.border-t {
  border-color: rgba(148, 163, 184, 0.18) !important;
}

/* Shared container cards */
.content-card,
.outcome-card,
.blog-card,
.faq-item,
.trust-badge,
.comparison-table-row,
.bg-slate-50.rounded-2xl,
.bg-slate-50.rounded-xl,
.bg-white.rounded-2xl,
.bg-white.rounded-xl,
.bg-white.rounded-3xl,
.bg-slate-50.border,
.bg-white.border {
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.75) inset;
}

.content-card:hover,
.outcome-card:hover,
.blog-card:hover,
.trust-badge:hover,
.bg-slate-50.rounded-2xl:hover,
.bg-slate-50.rounded-xl:hover,
.bg-white.rounded-2xl:hover,
.bg-white.rounded-xl:hover,
.bg-white.rounded-3xl:hover {
  transform: translateY(-6px);
  box-shadow:
    0 22px 44px rgba(15, 23, 42, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.rounded-2xl,
.rounded-3xl {
  border-radius: 1.5rem !important;
}

.rounded-xl {
  border-radius: 1.125rem !important;
}

/* Hero treatment */
main section:first-of-type {
  isolation: isolate;
}

main section:first-of-type .absolute.inset-0 img,
main section:first-of-type .absolute.inset-0.hero-overlay img {
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.02);
}

main section:first-of-type h1 {
  text-shadow: 0 10px 30px rgba(15, 23, 42, 0.28);
}

main section:first-of-type p {
  text-shadow: 0 4px 18px rgba(15, 23, 42, 0.16);
}

main section:first-of-type .inline-flex.rounded-full,
main section:first-of-type a.rounded-full {
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

/* Buttons */
a[href^="tel:"]:not(.phone-link):not(.phone-href),
.cta-button {
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
}

a[href^="tel:"]:not(.phone-link):not(.phone-href):hover,
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

/* Typography helpers */
.text-slate-600,
.text-slate-500 {
  color: #5b6b80 !important;
}

.text-slate-700 {
  color: #334155 !important;
}

.text-slate-900 {
  color: #12233a !important;
}

/* Lists and icon chips common on flight pages */
.w-12.h-12.rounded-lg,
.w-14.h-14.rounded-xl,
.w-16.h-16.rounded-full,
.w-20.h-20.rounded-full {
  box-shadow:
    0 10px 24px rgba(37, 99, 235, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

/* Footer */
footer {
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 38%);
  pointer-events: none;
}

footer .border-slate-800 {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Responsive refinement */
@media (max-width: 768px) {
  header > div::after {
    left: 1rem;
    right: 1rem;
  }

  .bg-white,
  .bg-slate-50 {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Stronger modernization for flight subpages */
body[data-header="generic"] main {
  padding-bottom: 5.5rem;
}

body[data-header="generic"] main > section {
  overflow: hidden;
}

body[data-header="generic"] main > section + section {
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

body[data-header="generic"] main > section:first-of-type {
  background:
    radial-gradient(circle at top, rgba(125, 211, 252, 0.18), transparent 40%),
    linear-gradient(135deg, #0f172a 0%, #183b75 52%, #1d4ed8 100%);
}

body[data-header="generic"] main > section:first-of-type .relative.z-10.max-w-4xl {
  padding: 2.75rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.34), rgba(15, 23, 42, 0.16));
  box-shadow:
    0 30px 80px rgba(2, 8, 23, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.16) inset;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body[data-header="generic"] main > section:first-of-type .inline-flex.bg-green-500 {
  background: linear-gradient(135deg, #22c55e, #16a34a) !important;
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.28);
}

body[data-header="generic"] main > section:first-of-type .inline-flex.bg-black\/30 {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.42) !important;
}

body[data-header="generic"] main > section:nth-of-type(2) .flex.flex-wrap.justify-center {
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

body[data-header="generic"] main > section:nth-of-type(2) .flex.items-center.gap-2 {
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.96));
}

body[data-header="generic"] main .grid.md\:grid-cols-3 > div.text-center,
body[data-header="generic"] main .grid.md\:grid-cols-2.gap-8 > div,
body[data-header="generic"] main .grid.md\:grid-cols-2.lg\:grid-cols-3 > div,
body[data-header="generic"] main .space-y-4#faq-container > .faq-item {
  position: relative;
  padding: 1.75rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.98));
  box-shadow:
    0 14px 32px rgba(15, 23, 42, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

body[data-header="generic"] main .grid.md\:grid-cols-3 > div.text-center:hover,
body[data-header="generic"] main .grid.md\:grid-cols-2.gap-8 > div:hover,
body[data-header="generic"] main .grid.md\:grid-cols-2.lg\:grid-cols-3 > div:hover {
  transform: translateY(-6px);
  box-shadow:
    0 22px 44px rgba(15, 23, 42, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

body[data-header="generic"] main .grid.md\:grid-cols-2.gap-8 > div.border-2 {
  background:
    linear-gradient(180deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 0.98)) !important;
  border-color: rgba(29, 78, 216, 0.28) !important;
}

body[data-header="generic"] main .grid.md\:grid-cols-2.gap-12.items-center > div:first-child {
  padding: 2rem;
  border-radius: 1.75rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.98));
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

body[data-header="generic"] main .grid.md\:grid-cols-2.gap-12.items-center img.rounded-2xl {
  border-radius: 1.75rem !important;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 28px 50px rgba(15, 23, 42, 0.18);
}

body[data-header="generic"] main .w-20.h-20.bg-blue-100.rounded-full,
body[data-header="generic"] main .w-12.h-12.bg-\[\#1D4ED8\].rounded-lg,
body[data-header="generic"] main .w-8.h-8.bg-\[\#1D4ED8\].rounded-full {
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.95), rgba(191, 219, 254, 0.95)) !important;
}

body[data-header="generic"] main .w-12.h-12.bg-\[\#1D4ED8\].rounded-lg svg,
body[data-header="generic"] main .w-8.h-8.bg-\[\#1D4ED8\].rounded-full {
  color: var(--color-primary) !important;
}

body[data-header="generic"] main .w-12.h-12.bg-\[\#1D4ED8\].rounded-lg {
  border: 1px solid rgba(59, 130, 246, 0.16);
}

body[data-header="generic"] main .border-l-4.border-green-500 {
  border-left-width: 5px !important;
  background:
    linear-gradient(180deg, rgba(240, 253, 244, 0.94), rgba(255, 255, 255, 0.98)) !important;
}

body[data-header="generic"] main .faq-item {
  border-bottom: none !important;
  margin-bottom: 1rem;
}

body[data-header="generic"] main .faq-trigger {
  padding-top: 0;
  padding-bottom: 0;
}

body[data-header="generic"] main .faq-answer p {
  padding-bottom: 0;
  padding-top: 1rem;
}

body[data-header="generic"] .fixed.bottom-0.left-0.right-0.bg-white {
  background: rgba(255, 255, 255, 0.84) !important;
  border-top: 1px solid rgba(226, 232, 240, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body[data-header="generic"] .fixed.bottom-0.left-0.right-0 .phone-href {
  min-height: 3.5rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 16px 30px rgba(29, 78, 216, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

@media (max-width: 768px) {
  body[data-header="generic"] main > section:first-of-type .relative.z-10.max-w-4xl {
    padding: 2rem 1.25rem;
    border-radius: 1.5rem;
  }

  body[data-header="generic"] main .grid.md\:grid-cols-3 > div.text-center,
  body[data-header="generic"] main .grid.md\:grid-cols-2.gap-8 > div,
  body[data-header="generic"] main .grid.md\:grid-cols-2.lg\:grid-cols-3 > div,
  body[data-header="generic"] main .space-y-4#faq-container > .faq-item,
  body[data-header="generic"] main .grid.md\:grid-cols-2.gap-12.items-center > div:first-child {
    padding: 1.35rem;
    border-radius: 1.25rem;
  }

  body[data-header="generic"] main > section:nth-of-type(2) .flex.flex-wrap.justify-center {
    padding: 1rem;
    border-radius: 1.25rem;
  }
}

/* Folder 4 variation: deeper and warmer */
body[data-header="generic"] {
  --color-accent: #60a5fa;
}

body[data-header="generic"] {
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.08), transparent 26%),
    radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.1), transparent 34%),
    linear-gradient(180deg, #f9fbfe 0%, #f4f7fb 44%, #eef2f8 100%);
}

body[data-header="generic"] main > section:first-of-type {
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.14), transparent 28%),
    linear-gradient(135deg, #111827 0%, #183153 46%, #1d4ed8 100%);
}

body[data-header="generic"] main > section:first-of-type .relative.z-10.max-w-4xl {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.38), rgba(15, 23, 42, 0.18));
  border-color: rgba(253, 224, 71, 0.12);
  box-shadow:
    0 34px 82px rgba(2, 8, 23, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.14) inset;
}

body[data-header="generic"] main > section:nth-of-type(2) .flex.flex-wrap.justify-center {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

body[data-header="generic"] main .grid.md\:grid-cols-3 > div.text-center,
body[data-header="generic"] main .grid.md\:grid-cols-2.gap-8 > div,
body[data-header="generic"] main .grid.md\:grid-cols-2.lg\:grid-cols-3 > div,
body[data-header="generic"] main .space-y-4#faq-container > .faq-item,
body[data-header="generic"] main .grid.md\:grid-cols-2.gap-12.items-center > div:first-child {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 252, 0.98));
  box-shadow:
    0 16px 34px rgba(15, 23, 42, 0.09),
    0 1px 0 rgba(255, 255, 255, 0.82) inset;
}

body[data-header="generic"] main .border-l-4.border-green-500 {
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.98)) !important;
}
