/* Cowri Mobility - Premium Design System */

/* ============================================
   Base & Resets
   ============================================ */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

/* ============================================
   Selection Colors
   ============================================ */
::selection {
  background: #D6A33A;
  color: #fff;
}

/* ============================================
   Reduced Motion Preference
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   Focus States (Accessibility)
   ============================================ */
:focus-visible {
  outline: 2px solid #D6A33A;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================
   Micro-interactions & Transitions
   ============================================ */

/* Card lift on hover */
.hover\:shadow-lg:hover {
  transform: translateY(-2px);
}

/* Smooth all transitions */
a, button, .faq-item, input, select {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Navigation - Dropdowns & Active State
   ============================================ */
.nav-link {
  position: relative;
  color: #031B3A;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: #D6A33A;
}

/* Active section gold underline */
.nav-link.active-nav::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #D6A33A;
  border-radius: 1px;
}

/* Override the default nav a::after for new nav system */
header .nav-link::after {
  display: none;
}
header .nav-link.active-nav::after {
  display: block;
}

/* Dropdown menus */
.nav-dropdown .dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown .dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  display: block;
}

/* Dropdown chevron rotation */
.nav-dropdown:hover button svg,
.nav-dropdown button[aria-expanded="true"] svg {
  transform: rotate(180deg);
  transition: transform 0.2s ease;
}

.nav-dropdown button svg {
  transition: transform 0.2s ease;
}

/* Mobile dropdown toggle */
.mobile-dropdown-toggle svg {
  transition: transform 0.2s ease;
}

.mobile-dropdown-toggle.open svg {
  transform: rotate(180deg);
}

.mobile-dropdown-content {
  animation: fadeIn 0.2s ease;
}

/* ============================================
   Link underline animation (updated)
   ============================================ */
nav a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #D6A33A;
  transition: width 0.3s ease;
  margin-top: 2px;
}

nav a:hover::after,
nav a.text-gold::after {
  width: 100%;
}

/* ============================================
   FAQ Accordion
   ============================================ */
.faq-item {
  transition: all 0.2s ease;
}

.faq-item:hover {
  border-color: #D6A33A40;
}

.faq-item.active {
  border-color: #D6A33A;
  box-shadow: 0 0 0 1px #D6A33A20;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: #D6A33A;
}

.faq-content {
  animation: fadeIn 0.3s ease;
}

/* ============================================
   Button Hover Effects
   ============================================ */
a[class*="rounded-full"]:active {
  transform: scale(0.97);
}

/* Gold button glow on hover */
.bg-gold:hover {
  box-shadow: 0 4px 20px #D6A33A40;
}

/* Navy button depth */
.bg-navy:hover {
  box-shadow: 0 4px 20px #031B3A30;
}

/* ============================================
   WhatsApp Floating Button
   ============================================ */
a[aria-label="Chat on WhatsApp"] {
  animation: pulse-subtle 3s infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a[aria-label="Chat on WhatsApp"]:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}

@keyframes pulse-subtle {
  0%, 100% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); }
  50% { box-shadow: 0 4px 25px rgba(37, 211, 102, 0.5); }
}

/* ============================================
   Form Inputs
   ============================================ */
input:focus, select:focus {
  box-shadow: 0 0 0 3px #D6A33A20;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.animate-fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* ============================================
   Skip to Content Link
   ============================================ */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  background: #031B3A;
  color: #fff;
  padding: 12px 24px;
  border-radius: 0 0 8px 8px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-to-content:focus {
  top: 0;
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb {
  font-size: 0.8125rem;
  color: #667085;
}

.breadcrumb a {
  color: #667085;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #D6A33A;
}

.breadcrumb span.separator {
  margin: 0 0.5em;
  opacity: 0.5;
}

/* ============================================
   Header Glass Effect Enhancement
   ============================================ */
header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ============================================
   Mobile Menu Transition
   ============================================ */
#mobile-menu {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Typography Refinements
   ============================================ */
h1, h2, h3 {
  letter-spacing: -0.02em;
}

/* ============================================
   Pricing Card Shimmer
   ============================================ */
.border-gold {
  position: relative;
}

.border-gold::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 1rem;
  padding: 2px;
  background: linear-gradient(135deg, #D6A33A, #D6A33A40, #D6A33A);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.border-gold:hover::before {
  opacity: 1;
}

/* ============================================
   Responsive Utilities
   ============================================ */
@media (max-width: 640px) {
  h1 {
    font-size: 1.75rem;
    line-height: 1.2;
  }
  
  section {
    animation: none;
  }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  header, footer, a[aria-label="Chat on WhatsApp"], #mobile-menu {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    color: #000;
  }
}

/* ============================================
   Flight Ticketing Page
   ============================================ */

/* Flight form success animation */
#flight-form-success {
  animation: fadeInUp 0.5s ease both;
}

/* ============================================
   Elevated Site Footer
   ============================================ */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: 4rem !important;
  background:
    radial-gradient(circle at 8% 20%, rgba(214, 163, 58, 0.09), transparent 28rem),
    linear-gradient(135deg, #02162f 0%, #031b3a 58%, #062449 100%) !important;
  border-top: 0 !important;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, #d6a33a 18%, #f1cd7b 50%, #d6a33a 82%, transparent);
}

.site-footer::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 24rem;
  height: 24rem;
  right: -12rem;
  bottom: -16rem;
  border: 1px solid rgba(214, 163, 58, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgba(214, 163, 58, 0.025), 0 0 0 8rem rgba(214, 163, 58, 0.015);
}

.site-footer > div {
  position: relative;
  z-index: 1;
}

.site-footer > div > .grid {
  gap: 3rem;
  margin-bottom: 3.5rem !important;
}

.site-footer p[class*="uppercase"] {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #e6b954 !important;
  letter-spacing: 0.14em;
}

.site-footer p[class*="uppercase"]::before {
  content: '';
  width: 1.25rem;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
}

.site-footer ul a,
.site-footer a[href^="mailto:"] {
  display: inline-flex;
  align-items: center;
  color: #aebdd0;
  transition: color 180ms ease, transform 180ms ease;
}

.site-footer ul a:hover,
.site-footer a[href^="mailto:"]:hover {
  color: #fff;
  transform: translateX(3px);
}

.site-footer a[aria-label] {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: #aebdd0 !important;
  background: rgba(255, 255, 255, 0.035);
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.site-footer a[aria-label]:hover {
  color: #031b3a !important;
  border-color: #d6a33a;
  background: #d6a33a;
  transform: translateY(-3px);
}

.site-footer > div > .border-t {
  padding-top: 1.5rem !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.footer-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 1.25rem auto 0;
  color: #7f91aa;
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-align: center;
}

.footer-credit::before {
  content: '';
  width: 1.5rem;
  height: 1px;
  background: rgba(214, 163, 58, 0.55);
}

.footer-credit a {
  display: inline !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #d9ad4d !important;
  background: transparent !important;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease !important;
}

.footer-credit a:hover {
  color: #f1cd7b !important;
  background: transparent !important;
  transform: none !important;
}

.footer-credit a:focus-visible {
  outline: 2px solid #f1cd7b;
  outline-offset: 3px;
  border-radius: 0.2rem;
}

@media (min-width: 768px) {
  .site-footer > div > .grid {
    grid-template-columns: 1.2fr 0.8fr 1fr;
  }
}

@media (max-width: 767px) {
  .site-footer {
    padding-top: 3.25rem !important;
  }

  .site-footer > div > .grid {
    gap: 2.5rem;
    margin-bottom: 2.75rem !important;
  }

  .site-footer::after {
    opacity: 0.55;
  }
}
