/* ============================================================
   JHANKAR AVIATION DESIGN SYSTEM — SHARED STYLES (ds.css)
   Contains: Header, Emergency Call Banner, and Footer
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0');

/* --- CSS Variables & Fonts --- */
:root {
  --navy: #002244;
  --navy-light: #003366;
  --navy-card: #082a52;
  --vibrant-blue: #0b4071;
  --blue: #0b4071;
  --light-blue: #eef4fa;
  --orange-red: #d90000;
  --text-dark: #002244;
  --text-muted: #5a738e;
  --text-light: #ffffff;
  --border-color: rgba(28, 117, 188, 0.15);
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-charter-display: 'Instrument Sans', sans-serif;
  --font-label: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 4-FONT TYPOGRAPHY SYSTEM RULES --- */
/* 1. Syne: Labels & Section Titles ALWAYS ALL CAPS */
.section-tag,
.banner-label,
.fleet-tag-white,
.fleet-tag-blue,
.badge,
.tag-syne,
.label-syne {
  font-family: 'Syne', sans-serif !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em;
}

/* 2. Plus Jakarta Sans: Headlines */
h1,
h2,
h3,
h4,
h5,
h6,
.font-display {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* 3. Instrument Sans: Headlines on Charter pages */
#page-charter h1,
#page-charter h2,
#page-charter h3,
#page-charter h4,
.charter-page h1,
.charter-page h2,
.charter-page h3,
.charter-page h4,
.charter-headline,
.font-charter-display {
  font-family: 'Instrument Sans', sans-serif !important;
}

/* 4. Inter: Body Copy */
body,
p,
li,
span,
button,
input,
select,
textarea,
.font-body {
  font-family: 'Inter', sans-serif;
}

/* --- Global styles for Header and Footer components to ensure typography --- */
header,
footer,
.emergency-call-banner {
  font-family: var(--font-body);
  box-sizing: border-box;
}

header *,
footer *,
.emergency-call-banner * {
  box-sizing: border-box;
}

/* --- COMMON COMPONENTS IN NAV/FOOTER --- */
.btn-primary {
  background-color: var(--orange-red);
  color: var(--text-light);
  padding: 12px 28px;
  border: none;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: #b30000;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(217, 0, 0, 0.4);
}

/* --- HEADER (NAVBAR) --- */
header {
  background-color: #ffffff;
  border-bottom: 1px solid rgba(0, 34, 68, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-img {
  height: 54px;
  width: auto;
}

header nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
  margin: 0;
  padding: 0;
}

header nav ul li a {
  font-family: var(--font-display);
  font-size: 16.6px;
  font-weight: 600;
  color: var(--text-dark);
  transition: var(--transition);
  text-decoration: none;
}

header nav ul li a:hover {
  color: var(--vibrant-blue);
}

header nav ul li a.active {
  color: var(--vibrant-blue);
  font-weight: 700;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.phone-link {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--orange-red);
  transition: var(--transition);
  text-decoration: none;
}

.phone-link:hover {
  color: #b30000;
}

/* --- EMERGENCY CALL BANNER --- */
.emergency-call-banner {
  background: linear-gradient(320deg, #2b9af8 0%, #f0f8ff 100%) !important;
  padding: 16px 24px;
  width: 100%;
}

.banner-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.banner-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.banner-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.banner-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.banner-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(0, 34, 68, 0.08);
  border-radius: 50%;
  transition: var(--transition);
  text-decoration: none;
}

.banner-socials a:hover {
  background: rgba(0, 34, 68, 0.16);
  transform: translateY(-2px);
}

.banner-socials svg {
  width: 16px;
  height: 16px;
  fill: #002244;
  transition: var(--transition);
}

.banner-socials a i {
  font-size: 15px;
  color: #002244;
  transition: var(--transition);
}

.banner-socials a:hover svg {
  fill: #002244;
}

.banner-socials a:hover i {
  color: #0b4071;
}

.banner-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: rgba(0, 34, 68, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.banner-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: #002244;
  text-decoration: none;
  transition: var(--transition);
  line-height: 1;
}

.banner-link:hover {
  color: var(--vibrant-blue);
}

.banner-link svg {
  width: 22px;
  height: 22px;
  fill: #002244;
  transition: var(--transition);
}

.banner-link:hover svg {
  fill: var(--vibrant-blue);
}

/* --- FOOTER --- */
footer {
  background: var(--blue);
  padding: 20px;
  color: var(--text-light);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-column h4 {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 24px;
  margin-top: 0;
}

.footer-logo-desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin-top: 16px;
  margin-bottom: 16px;
}

.footer-logo-svg {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-meta-info {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-award {
  color: #ffffff;
  font-weight: 700;
  margin-top: 6px;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-list a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 13.5px;
  font-family: var(--font-body);
  transition: var(--transition);
}

.footer-nav-list a:hover {
  color: #ffffff;
}

.footer-contact-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
}

.footer-contact-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-contact-value {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  transition: var(--transition);
}

a.footer-contact-item:hover .footer-contact-value {
  color: var(--vibrant-blue);
}

.footer-contact-text {
  font-family: var(--font-body);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
}

/* Footer Bottom Bar */
.footer-bottom {
  max-width: 1280px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom-links a {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--vibrant-blue);
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 1024px) {
  .nav-container {
    padding: 8px 16px;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
  }

  header nav {
    display: none !important;
  }

  .logo-img {
    height: 36px;
    max-width: 158px;
  }

  .nav-right {
    margin-left: auto;
    gap: 10px;
  }

  .phone-link {
    font-size: 14px;
    white-space: nowrap;
  }

  .nav-right .btn-primary {
    padding: 10px 16px;
    font-size: 12px;
    white-space: nowrap;
  }

  .banner-container {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 16px;
  }

  .banner-left,
  .banner-right {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
}

@media (max-width: 640px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
    gap: 12px 16px;
  }
}

.ds-hamburger {
  display: none !important;
}

@media (max-width: 768px) {
  .ds-hamburger {
    display: inline-flex !important;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    flex-shrink: 0;
  }

  body.mobile-menu-open {
    overflow: hidden;
  }

  #mobile-menu {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1200 !important;
    display: none;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
  }

  #mobile-menu:not(.hidden),
  #mobile-menu.is-open {
    display: flex !important;
  }

  #mobile-menu.hidden {
    display: none !important;
  }

  #mobile-menu nav a {
    padding: 12px 2px;
    border-bottom: 1px solid rgba(0, 59, 109, 0.08);
  }
}

@media (max-width: 640px) {
  header .phone-link {
    display: none;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 10px 12px;
  }

  .logo-img {
    height: 32px;
    max-width: 145px;
  }

  #mobile-menu {
    padding: 16px;
  }
}

@media (max-width: 380px) {
  .nav-right .btn-primary {
    display: none;
  }
}

.floating-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-btn a {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 34, 68, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-btn a:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 24px rgba(0, 34, 68, 0.28);
}

.floating-btn .call-icon {
  background: var(--orange-red);
  color: #ffffff;
}

.floating-btn .call-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.floating-btn .whatsapp-icon {
  background: #25d366;
}

.floating-btn .whatsapp-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

@media (max-width: 480px) {
  .floating-btn {
    right: 16px;
    bottom: 16px;
    gap: 10px;
  }

  .floating-btn a {
    width: 50px;
    height: 50px;
  }

  .floating-btn .call-icon svg,
  .floating-btn .whatsapp-icon img {
    width: 28px;
    height: 28px;
  }
}

/* --- PAGE HERO STYLES --- */
.page-hero {
  background: linear-gradient(320deg, #2b9af8 0%, #f0f8ff 100%) !important;
  color: #002244 !important;
  border-bottom: 1px solid rgba(195, 220, 245, 0.3) !important;
}

/* --- MEMORIES SECTION --- */
.memories {
  background-color: var(--vibrant-blue);
  padding: 40px 0;
  color: var(--text-light);
}

.memories-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.memories-header {
  margin-bottom: 40px;
}

.section-tag {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
}

.memories-header .section-tag {
  color: rgba(255, 255, 255, 0.7);
}

.memories-header h2 {
  font-size: 36px;
  font-weight: 800;
  font-family: var(--font-display);
}

.memories-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-bottom: 20px;
}

.carousel-track.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee 60s linear infinite;
}

.carousel-track.animate-marquee:hover {
  animation-play-state: paused;
}

.memory-slide {
  flex: 0 0 auto;
  height: 360px;
  aspect-ratio: 9 / 16;
  margin-right: 16px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.memory-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.memory-slide:hover img {
  transform: scale(1.05);
}

/* Slide Overlay & Zoom */
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 10, 30, 0.75) 100%);
  opacity: 1;
  transition: opacity 0.35s;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  pointer-events: none;
}

.memory-slide .slide-overlay {
  opacity: 1 !important;
}

.slide-caption {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  font-family: var(--font-display);
}

.slide-subcaption {
  margin-top: 8px;
}

.slide-subcaption-row1 {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.slide-subcaption-row2 {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 4px;
  font-family: var(--font-body);
  text-transform: uppercase;
}

.slide-zoom {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  opacity: 1;
  transition: opacity 0.3s;
}

.memory-slide .slide-zoom {
  opacity: 1 !important;
}

/* --- LIGHTBOX --- */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 10, 30, 0.92);
  backdrop-filter: blur(10px);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  user-select: none;
}

#lightbox.open {
  display: flex;
}

.lb-close {
  position: absolute;
  top: 24px;
  right: 24px;
  border: none;
  background: none;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  z-index: 9100;
  transition: var(--transition);
}

.lb-close:hover {
  transform: scale(1.1);
  color: var(--vibrant-blue);
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  z-index: 9100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lb-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lb-nav.prev {
  left: 24px;
}

.lb-nav.next {
  right: 24px;
}

.lb-inner {
  max-width: 90%;
  max-height: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

#lb-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

#lb-img.is-ready {
  opacity: 1;
}

.lb-caption {
  margin-top: 16px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.lb-counter {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-family: var(--font-body);
}

@keyframes marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
  }
}