/* 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) ")";
  }
}
