/* AL KHAIF TRAVEL & TOURS CENTRAL DESIGN SYSTEM */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@500;600;700;800&display=swap');

:root {
  /* Centralized Color System */
  --primary: #26306D;       /* Deep Blue */
  --secondary: #b9d032;     /* Updated Green */
  --background: #FFFFFF;    /* White Background */
  --text: #539CB4;          /* Text Color */
  --light: #F7F8FA;         /* Light grey background */
  --border: #E5E7EB;        /* Border color */
  
  /* Layout Spacings */
  --border-radius-sm: 0.375rem;
  --border-radius-md: 0.75rem;
  --border-radius-lg: 1.25rem;
  --border-radius-xl: 2rem;
}

/* Base Font Families and Styles */
body {
  font-family: 'Inter', sans-serif;
  color: #333333; /* Keep core body text dark for high accessibility contrast */
  background-color: var(--background);
}

html {
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6,
.navbar,
.btn {
  font-family: 'Poppins', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--primary);
}

/* Premium Floating Label & Smooth Input Animations */
.floating-label-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.floating-label-group input,
.floating-label-group select,
.floating-label-group textarea {
  width: 100%;
  padding: 1rem 1rem 1rem 2.75rem;
  font-size: 0.875rem;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border);
  background-color: var(--light);
  color: var(--text);
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Adjust padding for selects / non-icon inputs if needed */
.floating-label-group .no-icon {
  padding-left: 1rem !important;
}

.floating-label-group input:focus,
.floating-label-group select:focus,
.floating-label-group textarea:focus {
  border-color: var(--primary);
  background-color: var(--background);
  box-shadow: 0 0 0 4px rgba(11, 45, 92, 0.08);
}

.floating-label-group label {
  position: absolute;
  left: 2.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.875rem;
  color: #6B7280;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: transparent;
  padding: 0 0.25rem;
}

.floating-label-group .no-icon + label {
  left: 1rem !important;
}

/* Floating behavior when input has focus or is filled */
.floating-label-group input:focus ~ label,
.floating-label-group input:not(:placeholder-shown) ~ label,
.floating-label-group select:focus ~ label,
.floating-label-group select:valid ~ label,
.floating-label-group textarea:focus ~ label,
.floating-label-group textarea:not(:placeholder-shown) ~ label {
  top: 0;
  transform: translateY(-50%) scale(0.85);
  font-size: 0.75rem;
  color: var(--primary);
  background-color: var(--background);
  left: 1rem;
  font-weight: 500;
}

.floating-label-group .input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9CA3AF;
  font-size: 1.25rem;
  pointer-events: none;
  transition: color 0.3s ease;
}

.floating-label-group input:focus ~ .input-icon,
.floating-label-group select:focus ~ .input-icon {
  color: var(--primary);
}

/* Smooth Interactive Card Hover Lift */
.premium-card {
  background-color: var(--background);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.premium-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(11, 45, 92, 0.1), 0 10px 10px -5px rgba(11, 45, 92, 0.04);
  border-color: rgba(184, 155, 60, 0.3);
}

/* Premium Button Styles */
.btn-primary {
  background-color: var(--secondary);
  color: var(--background);
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  border-radius: var(--border-radius-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  background-color: var(--primary);
  box-shadow: 0 4px 14px 0 rgba(11, 45, 92, 0.3);
}

.btn-secondary {
  border: 2px solid var(--primary);
  color: var(--primary);
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  border-radius: var(--border-radius-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--background);
}

/* Modern Sticky Navigation Active States */
.nav-link {
  color: #4B5563;
  font-family: 'Poppins', sans-serif;
  font-size: 0.925rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--secondary);
  border-radius: 9999px;
  animation: lineReveal 0.3s ease forwards;
}

@keyframes lineReveal {
  from { width: 0; }
  to { width: 100%; }
}

.nav-priority {
  color: var(--secondary);
  animation: navBlink 1.2s ease-in-out infinite;
}

.nav-priority:hover,
.nav-priority.active {
  animation-play-state: paused;
}

.nav-contact-cta {
  background: linear-gradient(135deg, #0f4c81 0%, #1b5e20 100%);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 53, 112, 0.18);
}

.nav-contact-cta:hover {
  background: linear-gradient(135deg, #c7f0c4 0%, #b8e6ff 100%);
  color: #0f4c81;
  box-shadow: 0 16px 30px rgba(27, 94, 32, 0.18);
}

@keyframes navBlink {
  0%,
  100% {
    opacity: 1;
    text-shadow: 0 0 0 rgba(28, 148, 28, 0);
  }
  50% {
    opacity: 0.45;
    text-shadow: 0 0 10px rgba(28, 148, 28, 0.45);
  }
}

.fixed-action-rail {
  position: fixed;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 70;
}

.action-rail-link {
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  border: 1px solid var(--secondary);
  background: var(--secondary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.action-rail-link:hover {
  transform: translateX(2px);
  background: #ffffff;
  color: var(--secondary);
}

@media (max-width: 767px) {
  .fixed-action-rail {
    left: 8px;
  }

  .action-rail-link {
    width: 40px;
    height: 40px;
  }
}

/* Homepage Journey Update Modal */
.journey-modal-open {
  overflow: hidden;
}

.journey-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(15, 53, 112, 0.55), rgba(27, 94, 32, 0.58));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.journey-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.journey-modal-panel {
  position: relative;
  width: min(100%, 760px);
  max-height: min(90vh, 820px);
  overflow: auto;
  background: #ffffff;
  color: #17321d;
  border-radius: 28px;
  border: 1px solid rgba(27, 94, 32, 0.14);
  box-shadow: 0 32px 80px rgba(15, 53, 112, 0.22), 0 12px 30px rgba(27, 94, 32, 0.12);
  transform: translateY(-28px) scale(0.98);
  opacity: 0;
  transition: transform 280ms ease, opacity 280ms ease;
}

.journey-modal-backdrop.is-open .journey-modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
  animation: journeyModalDrop 420ms cubic-bezier(0.2, 0.85, 0.2, 1) both;
}

.journey-modal-hero {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 1.5rem 1.25rem;
  background: linear-gradient(135deg, #0f4c81 0%, #1b5e20 100%);
  color: #fff8e7;
}

.journey-modal-hero::before {
  content: '';
  position: absolute;
  inset: auto -48px -70px auto;
  width: 180px;
  height: 180px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.5) 0%, rgba(212, 175, 55, 0) 70%);
}

.journey-modal-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0.18) 1px, transparent 1px, transparent 16px);
  background-size: 16px 16px;
  opacity: 0.4;
  pointer-events: none;
}

.journey-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 248, 231, 0.25);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff8e7;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.journey-modal-close:hover,
.journey-modal-close:focus-visible {
  transform: scale(1.06);
  background: rgba(212, 175, 55, 0.2);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  outline: none;
}

.journey-modal-body {
  padding: 1.5rem;
}

.journey-modal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff8e7;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.journey-modal-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.15;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
}

.journey-modal-copy {
  margin: 0.85rem 0 0;
  color: #ffffff;
  font-size: 0.98rem;
  line-height: 1.75;
}

.journey-modal-sequence {
  display: grid;
  gap: 1rem;
}

.journey-modal-section {
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fff5 100%);
  border: 1px solid rgba(27, 94, 32, 0.12);
  box-shadow: 0 10px 24px rgba(15, 53, 112, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.journey-modal-section h3 {
  margin: 0;
  color: #0f4c81;
  font-size: 1.08rem;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
}

.journey-modal-section-copy {
  margin: 0.6rem 0 0.95rem;
  color: #365042;
  font-size: 0.96rem;
  line-height: 1.7;
  max-width: 34rem;
}

.journey-modal-section-copy strong {
  color: #d9f8d6;
}

.journey-modal-section-community {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.journey-modal-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid transparent;
  background: linear-gradient(180deg, #1b5e20 0%, #117a37 100%);
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 24px rgba(27, 94, 32, 0.22);
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease, border-color 180ms ease, color 180ms ease;
  margin-inline: auto;
}

.journey-modal-action::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.95));
  background-size: 220% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: journeyBorderSlide 2.6s linear infinite;
  opacity: 0.9;
  pointer-events: none;
}

.journey-modal-action:hover,
.journey-modal-action:focus-visible {
  transform: translateY(-3px) scale(1.03);
  background: #ffffff;
  color: #1b5e20;
  border-color: rgba(15, 76, 129, 0.2);
  box-shadow: 0 18px 34px rgba(15, 76, 129, 0.16);
  outline: none;
}

.journey-modal-action-alt {
  background: linear-gradient(180deg, #176b2d 0%, #0f4c81 100%);
  color: #ffffff;
}

.journey-modal-action-alt:hover,
.journey-modal-action-alt:focus-visible {
  background: #ffffff;
  color: #0f4c81;
}

.journey-modal-community {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f5fff4 100%);
  border: 1px solid rgba(27, 94, 32, 0.1);
}

.journey-modal-community p {
  margin: 0;
  color: #406046;
  line-height: 1.6;
}

.journey-modal-whatsapp-button {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: linear-gradient(180deg, #1b5e20 0%, #0f4c81 100%);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(15, 53, 112, 0.2);
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
  margin-inline: auto;
}

.journey-modal-whatsapp-button::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.78);
  animation: journeyBorderSlide 2.6s linear infinite;
}

.journey-modal-whatsapp-button:hover,
.journey-modal-whatsapp-button:focus-visible {
  transform: translateY(-2px) scale(1.06);
  background: #ffffff;
  color: #1b5e20;
  box-shadow: 0 18px 30px rgba(27, 94, 32, 0.24);
  outline: none;
}

.journey-modal-whatsapp-button .material-symbols-outlined {
  font-size: 1.5rem;
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.journey-modal-whatsapp-button svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.journey-modal-footer {
  margin: 1.2rem auto 0;
  max-width: 42rem;
  text-align: center;
  color: #0f4c81;
  font-size: 0.95rem;
  line-height: 1.6;
}

.journey-modal-footer strong {
  color: #1b5e20;
}

.journey-modal-blink {
  animation: journeyBlink 1.25s ease-in-out infinite;
}

@keyframes journeyModalDrop {
  from {
    transform: translateY(-28px) scale(0.98);
  }
  to {
    transform: translateY(0) scale(1);
  }
}

@keyframes journeyBorderSlide {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 220% 50%;
  }
}

@keyframes journeyBlink {
  0%,
  100% {
    opacity: 1;
    text-shadow: 0 0 0 rgba(15, 76, 129, 0);
  }
  50% {
    opacity: 0.45;
    text-shadow: 0 0 12px rgba(27, 94, 32, 0.35);
  }
}

@media (max-width: 767px) {
  .journey-modal-panel {
    border-radius: 22px;
  }

  .journey-modal-hero,
  .journey-modal-body {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .journey-modal-actions {
    grid-template-columns: 1fr;
  }

  .journey-modal-community {
    flex-direction: column;
    align-items: flex-start;
  }

  .journey-modal-footer {
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .journey-modal-backdrop,
  .journey-modal-panel,
  .journey-modal-close,
  .journey-modal-action,
  .journey-modal-whatsapp-button {
    transition: none;
  }

  .journey-modal-backdrop.is-open .journey-modal-panel {
    animation: none;
  }

  .journey-modal-action::before,
  .journey-modal-whatsapp-button::before,
  .journey-modal-blink {
    animation: none;
  }
}
