/* ==========================================================================
   SKYFARE HUB - PREMIUM STYLE SHEETS
   ========================================================================== */

/* 1. DESIGN VARIABLES & FONTS */
:root {
  --primary: #0057D9;
  --primary-hover: #0042A6;
  --primary-rgb: 0, 87, 217;
  --secondary: #0F172A;
  --secondary-hover: #1E293B;
  --secondary-rgb: 15, 23, 42;
  --accent: #FFB703;
  --accent-hover: #E09E00;
  --background: #F8FAFC;
  --white: #FFFFFF;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-800: #1E293B;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 30px -5px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 20px 40px -10px rgba(15, 23, 42, 0.15);
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
}

/* 2. BASE STYLES */
body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--secondary);
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after {
  animation: none !important;
  transition: none !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--secondary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* 3. TYPOGRAPHY & GRADIENTS */
.text-gradient {
  background: linear-gradient(135deg, var(--secondary) 30%, var(--primary) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-accent {
  color: var(--accent);
}

.bg-light-blue {
  background-color: rgba(0, 87, 217, 0.05);
}

/* Custom Buttons */
.btn-premium-primary {
  background-color: var(--primary);
  color: var(--white);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
  border: 1px solid var(--primary);
  box-shadow: 0 4px 14px rgba(0, 87, 217, 0.3);
}

.btn-premium-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 87, 217, 0.4);
}

.btn-premium-accent {
  background-color: var(--accent);
  color: var(--secondary);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
  border: 1px solid var(--accent);
  box-shadow: 0 4px 14px rgba(255, 183, 3, 0.3);
}

.btn-premium-accent:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 183, 3, 0.4);
}

.btn-premium-outline {
  background-color: transparent;
  color: var(--secondary);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
  border: 2px solid var(--secondary);
}

.btn-premium-outline:hover {
  background-color: var(--secondary);
  color: var(--white);
  transform: translateY(-2px);
}

/* 4. HEADER & NAVIGATION */
.header-nav {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition);
  z-index: 1050;
}

.header-nav.scrolled {
  padding: 10px 0 !important;
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.95);
}

.nav-link {
  font-weight: 500;
  color: var(--gray-600) !important;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary) !important;
}

.navbar-brand img {
  height: 40px;
  transition: var(--transition);
}

/* 5. HERO SECTION */
.hero-section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 160px 0 100px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(248, 250, 252, 0.94) 0%, rgba(248, 250, 252, 0.78) 42%, rgba(248, 250, 252, 0.4) 72%, rgba(248, 250, 252, 0.15) 100%),
    url('../assets/images/airplane_hero.png') center 45% / cover no-repeat;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05)),
    radial-gradient(circle at 88% 18%, rgba(0, 87, 217, 0.12) 0%, transparent 36%);
  pointer-events: none;
}

.hero-section .container {
  max-width: 1320px;
  width: min(100%, 1320px);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

.hero-section .row {
  position: relative;
  z-index: 2;
}

.hero-vector {
  display: none;
}

@keyframes floatAirplane {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(-1deg); }
}

/* Search Card styling */
.search-card-shell {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.search-card {
  /* background: var(--white); */
  border-radius: var(--border-radius-md);
  /* box-shadow: var(--shadow-xl); */
  /* padding: 32px; */
  border: 1px solid rgba(222, 226, 230, 0.5);
  position: relative;
  z-index: 5;
  width: 100%;
  /* max-width: 980px; */
  /* min-height: 420px; */
}

@media (min-width: 992px) {
  .hero-section .col-lg-7 {
    flex: 0 0 68%;
    max-width: 68%;
  }

  .hero-section .col-lg-5 {
    display: block;
    flex: 0 0 32%;
    max-width: 32%;
  }
}

.search-tabs {
  border-bottom: 2px solid var(--gray-100);
  margin-bottom: 24px;
  display: flex;
  gap: 8px;
}

.search-tab-btn {
  background: none;
  border: none;
  padding: 10px 20px;
  font-weight: 600;
  color: var(--gray-500);
  font-size: 0.95rem;
  position: relative;
  transition: var(--transition);
}

.search-tab-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  transform: scaleX(0);
  transition: var(--transition);
}

.search-tab-btn.active {
  color: var(--primary);
}

.search-tab-btn.active::after {
  transform: scaleX(1);
}

.search-grid-row {
  display: grid;
  grid-template-columns: 1.5fr 1.5fr 1fr 1fr 1.8fr;
  gap: 16px;
}

@media (max-width: 991px) {
  .search-grid-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575px) {
  .search-grid-row {
    grid-template-columns: 1fr;
  }
}

.form-group-custom {
  position: relative;
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-sm);
  padding: 8px 12px 8px 40px;
  background-color: var(--white);
  transition: var(--transition);
}

.form-group-custom:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 87, 217, 0.15);
}

.form-group-custom i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.1rem;
}

.form-group-custom label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 2px;
}

.form-group-custom input, 
.form-group-custom select {
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--secondary);
  background: transparent;
  padding: 0;
}

.multi-city-row {
  border-bottom: 1px dashed var(--gray-200);
  padding-bottom: 16px;
}

/* 6. TRUST BADGES */
.trust-badges-section {
  background-color: var(--white);
  border-bottom: 1px solid var(--gray-100);
  padding: 30px 0;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
}

.trust-badge-item > div:last-child {
  min-width: 0;
}

.trust-badge-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(0, 87, 217, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.trust-badge-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.trust-badge-desc {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin: 0;
}

/* 7. POPULAR DESTINATIONS */
.destination-card {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  border: none;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.destination-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.destination-img-wrapper {
  position: relative;
  overflow: hidden;
  padding-bottom: 65%; /* aspect ratio */
  background-color: var(--gray-200);
}

.destination-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.destination-card:hover .destination-img {
  transform: scale(1.08);
}

.destination-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--secondary);
  color: var(--white);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
  z-index: 2;
}

.destination-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.destination-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

/* 8. WHY CHOOSE US */
.why-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  height: 100%;
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 87, 217, 0.2);
}

.why-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background-color: rgba(0, 87, 217, 0.06);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

.why-card:hover .why-icon {
  background-color: var(--primary);
  color: var(--white);
  transform: rotateY(180deg);
}

/* 9. TOP AIRLINES */
.airlines-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 991px) {
  .airlines-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.airline-card {
  background-color: var(--white);
  padding: 24px;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  transition: var(--transition);
}

.airline-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 87, 217, 0.2);
  transform: scale(1.03);
}

.airline-logo-svg {
  max-height: 45px;
  width: 100%;
  object-fit: contain;
}

/* 10. SPECIAL OFFERS */
.offer-card {
  background: var(--white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: none;
  height: 100%;
  position: relative;
  transition: var(--transition);
}

.offer-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.offer-banner {
  height: 10px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.offer-body {
  padding: 24px;
}

.offer-tag {
  display: inline-block;
  background-color: rgba(0, 87, 217, 0.08);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.offer-promo {
  font-size: 0.8rem;
  color: var(--gray-500);
  border: 1px dashed var(--gray-300);
  padding: 6px 12px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--gray-100);
  margin: 16px 0;
}

.offer-promo span {
  font-weight: 700;
  color: var(--secondary);
}

/* 11. HOW IT WORKS */
.step-container {
  position: relative;
}

.step-card {
  position: relative;
  z-index: 2;
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  margin: 0 auto 20px;
  box-shadow: 0 4px 10px rgba(0, 87, 217, 0.3);
}

.step-line {
  position: absolute;
  top: 55px;
  left: 50%;
  width: 100%;
  height: 2px;
  border-top: 2px dashed var(--gray-300);
  z-index: 1;
}

@media (max-width: 767px) {
  .step-line {
    display: none;
  }
}

/* 12. CUSTOMER REVIEWS */
.testimonials-section {
  background-color: var(--secondary);
  color: var(--white);
  padding: 100px 0;
}

.testimonials-section h2, 
.testimonials-section p {
  color: var(--white) !important;
}

.testimonial-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 40px;
  border-radius: var(--border-radius-md);
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  object-fit: cover;
  margin-bottom: 20px;
}

.star-rating {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 15px;
}

/* 13. NEWSLETTER */
.newsletter-card {
  background: linear-gradient(135deg, var(--secondary) 0%, #1e293b 100%);
  border-radius: var(--border-radius-lg);
  padding: 60px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.newsletter-card::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 300px;
  height: 300px;
  background-color: rgba(0, 87, 217, 0.15);
  border-radius: 50%;
  pointer-events: none;
}

/* 14. FAQ ACCORDION */
.faq-accordion .accordion-item {
  border: none;
  margin-bottom: 16px;
  border-radius: var(--border-radius-sm) !important;
  box-shadow: var(--shadow-sm);
  background-color: var(--white);
  overflow: hidden;
}

.faq-accordion .accordion-button {
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--secondary);
  padding: 20px 24px;
  box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
  background-color: rgba(0, 87, 217, 0.05);
  color: var(--primary);
}

.faq-accordion .accordion-body {
  padding: 20px 24px 24px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* 15. FOOTER */
.footer {
  background-color: var(--secondary);
  color: #94A3B8;
  padding: 80px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer h5 {
  color: var(--white);
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.footer-link {
  display: block;
  color: #94A3B8;
  margin-bottom: 12px;
  transition: var(--transition);
  font-size: 0.9rem;
}

.footer-link:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  margin-top: 50px;
  font-size: 0.85rem;
}

/* 16. SECTION CTA BARS (lead capture) */
.section-cta-bar {
  background-color: var(--primary);
  color: var(--white);
  padding: 24px 0;
  box-shadow: var(--shadow-lg);
}

.section-cta-phone {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-cta-phone:hover {
  color: var(--white);
}

/* 17. COUNTER SECTION */
.counter-box {
  background: var(--white);
  padding: 30px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  border-bottom: 4px solid var(--primary);
}

.counter-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 5px;
}

/* 18. POPUPS & FLOATING BUTTONS */
/* Exit Intent Popup & Live Offer Popup */
.modal-custom {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(5px);
  z-index: 1100;
  align-items: center;
  justify-content: center;
}

.modal-content-custom {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  max-width: 550px;
  width: 90%;
  padding: 40px;
  box-shadow: var(--shadow-xl);
  position: relative;
  animation: modalSlideUp 0.4s ease-out;
}

@keyframes modalSlideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-500);
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--secondary);
}

/* Sticky Floating Widgets */
.floating-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1040;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.floating-btn:hover {
  transform: scale(1.1) translateY(-2px);
  color: var(--white);
}


@keyframes pulseBtn {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

.btn-sticky-call {
  background-color: var(--accent);
  color: var(--secondary);
}

.btn-sticky-call:hover {
  color: var(--secondary);
}

.btn-back-to-top {
  background-color: var(--secondary);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

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

/* 19. RESPONSIVENESS AND MOBILE FIXES */
@media (max-width: 767px) {
  .hero-section {
    padding: 120px 0 60px;
    text-align: center;
  }

  .hero-section .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-section .row,
  .row.g-5,
  .row.g-3 {
    margin-left: 0;
    margin-right: 0;
  }
  
  .newsletter-card {
    padding: 40px 20px;
  }
  
  .modal-content-custom {
    padding: 30px 20px;
  }
  
  .section-cta-phone {
    font-size: 1.4rem;
  }
}
