/* ============================================
   National Aircraft Service, Inc. — Site Styles
   ============================================ */

:root {
  --nasi-50: #f0f7ff;
  --nasi-100: #e0effe;
  --nasi-200: #b9dffd;
  --nasi-300: #7cc5fb;
  --nasi-400: #36a7f6;
  --nasi-500: #0c8ce7;
  --nasi-600: #006fc5;
  --nasi-700: #0158a0;
  --nasi-800: #064b84;
  --nasi-900: #0b3f6e;
  --nasi-950: #072849;
  --blue-page: #0b0bc1;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--slate-50);
  color: var(--slate-800);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ----- Navigation ----- */
nav.site-nav,
nav.fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.nav-link {
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

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

/* Nav button style (desktop grid) */
nav a.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  height: 1.75rem;
  padding: 0 0.5rem;
  border-radius: 0.375rem;
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  color: var(--slate-700);
  white-space: nowrap;
}

nav a.nav-link:hover {
  background: var(--nasi-50);
  border-color: var(--nasi-300);
  color: var(--nasi-800);
}

/* ----- Hero ----- */
.hero-gradient {
  background: linear-gradient(135deg, #072849 0%, #0b3f6e 45%, #0158a0 100%);
}

/* ----- Cards & sections ----- */
.section-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.section-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.12);
}

/* Product / detail cards */
.product-card {
  background: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Blue category pages (AC, Flight Deck, Fuel) */
.page-blue {
  background: var(--blue-page);
  color: #fff;
}

.page-blue a {
  color: #fff;
}

.page-blue a:hover {
  color: #a5f3fc;
}

/* ----- Lightbox ----- */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  color: white;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  background: none;
  border: none;
}

.lightbox-close:hover {
  opacity: 1;
}

img.zoomable {
  cursor: zoom-in;
}

/* ----- Footer ----- */
footer {
  background: var(--nasi-950);
  color: #b9dffd;
}

footer a:hover {
  color: #fff;
}

/* ----- Forms (if present) ----- */
input, textarea, select, button {
  font-family: inherit;
}

/* ----- Utility helpers ----- */
.scroll-mt-28 { scroll-margin-top: 7rem; }
.scroll-mt-32 { scroll-margin-top: 8rem; }

/* ----- Responsive ----- */
@media (max-width: 1023px) {
  nav a.nav-link {
    /* mobile menu items keep simpler look when inside mobile panel */
  }
}

@media print {
  nav, footer, .lightbox-overlay { display: none !important; }
  body { background: #fff; color: #000; }
  main { padding-top: 0 !important; }
}

/* Active nav page highlight */
nav a.nav-active,
a.nav-active {
  background: #0158a0 !important;
  border-color: #064b84 !important;
  color: #fff !important;
  font-weight: 600;
}
nav a.nav-active:hover {
  background: #064b84 !important;
  color: #fff !important;
}


/* ----- Cleanup / polish ----- */
main {
  padding-top: 6rem; /* clear 2-row fixed nav */
  min-height: 70vh;
}

section {
  overflow-x: hidden;
}

/* Consistent content width helpers */
.content-narrow {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Even image cards */
.img-card {
  background: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}

.img-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Cleaner footer bottom bar */
footer .footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.75rem;
  color: #7cc5fb;
}

/* Blue page headings */
section[style*="#0b0bc1"] h2,
section[style*="#0b0bc1"] h3 {
  color: #fff;
}

section[style*="#0b0bc1"] .max-w-3xl,
section[style*="#0b0bc1"] .max-w-4xl {
  margin-left: auto;
  margin-right: auto;
}

/* Nav grid even cells */
nav .grid {
  align-items: stretch;
}
nav .grid a.nav-link {
  width: 100%;
  height: 100%;
  min-height: 1.85rem;
}
