/* =============================================
   PRESTWICK DRONEPORT — STYLESHEET
   Palette: Deep Navy #0a1628, Steel Blue #1e3a5f,
   Sky #4a90d9, Amber #f0a500, White, Light Grey #f5f6f8
   ============================================= */

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

:root {
  --navy:    #0a1628;
  --steel:   #1e3a5f;
  --sky:     #4a90d9;
  --sky-lt:  #6aabee;
  --amber:   #f0a500;
  --white:   #ffffff;
  --grey-lt: #f5f6f8;
  --grey:    #e8eaed;
  --text:    #1a2636;
  --muted:   #5a6a7a;
  --radius:  8px;
  --shadow:  0 4px 20px rgba(10,22,40,0.12);
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); line-height: 1.6; font-size: 16px; }

/* Typography */
h1,h2,h3,h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-family: 'Inter', sans-serif; font-weight: 600; }
h4 { font-size: 1rem; font-family: 'Inter', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
p { margin-bottom: 1.2em; }
a { color: var(--sky); text-decoration: none; }
a:hover { color: var(--sky-lt); }
strong { font-weight: 600; }

/* Layout */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1340px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }
section.tight { padding: 48px 0; }
section.dark { background: var(--navy); color: var(--white); }
section.dark p, section.dark li { color: rgba(255,255,255,0.82); }
section.dark h2, section.dark h3 { color: var(--white); }
section.steel { background: var(--steel); color: var(--white); }
section.grey { background: var(--grey-lt); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,0.08); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { font-size: 1.4rem; color: var(--amber); }
.logo-text { font-size: 1.05rem; color: var(--white); font-weight: 400; letter-spacing: -0.01em; }
.logo-text strong { font-weight: 700; color: var(--amber); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { color: rgba(255,255,255,0.78); padding: 6px 12px; border-radius: var(--radius); font-size: 0.9rem; font-weight: 500; transition: all 0.2s; }
.site-nav a:hover, .site-nav a.active { color: var(--white); background: rgba(255,255,255,0.08); }
.site-nav a.btn-nav { background: var(--amber); color: var(--navy); font-weight: 600; margin-left: 8px; }
.site-nav a.btn-nav:hover { background: #ffc030; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { color: rgba(255,255,255,0.78); background: none; border: none; cursor: pointer; padding: 6px 12px; border-radius: var(--radius); font-size: 0.9rem; font-weight: 500; transition: all 0.2s; display: flex; align-items: center; gap: 5px; font-family: inherit; }
.nav-dropdown-toggle:hover, .nav-dropdown.active .nav-dropdown-toggle { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-caret { font-size: 0.6rem; transition: transform 0.2s; }
.nav-dropdown.open .nav-caret { transform: rotate(180deg); }
.nav-dropdown-menu { display: none; position: absolute; top: calc(100% + 8px); left: 0; background: var(--navy); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); min-width: 160px; padding: 6px; box-shadow: 0 8px 24px rgba(0,0,0,0.3); z-index: 200; }
.nav-dropdown.open .nav-dropdown-menu { display: flex; flex-direction: column; gap: 2px; }
.nav-dropdown-menu a { color: rgba(255,255,255,0.78); padding: 8px 12px; border-radius: 4px; font-size: 0.88rem; font-weight: 500; white-space: nowrap; }
.nav-dropdown-menu a:hover, .nav-dropdown-menu a.active { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s; }

/* Hero — Homepage */
.hero { background: url('/hero-bg.jpg') center 60% / cover no-repeat; color: var(--white); padding: 100px 0 80px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(4,10,22,0.97) 0%, rgba(5,12,26,0.96) 38%, rgba(7,15,32,0.82) 62%, rgba(10,20,42,0.38) 100%); z-index: 0; }
.hero .container { position: relative; z-index: 1; }

.hero .container { position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(240,165,0,0.15); border: 1px solid rgba(240,165,0,0.4); color: var(--amber); padding: 6px 14px; border-radius: 24px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 24px; }
.hero h1 { max-width: 780px; margin-bottom: 24px; }
.hero h1 em { color: var(--amber); font-style: normal; }
.hero-lead { font-size: clamp(1rem, 2vw, 1.2rem); max-width: 620px; color: rgba(255,255,255,0.85); margin-bottom: 40px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 60px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 32px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.12); }
.hero-stat { }
.hero-stat strong { display: block; font-size: 1.8rem; font-weight: 700; color: var(--amber); font-family: 'Inter', sans-serif; }
.hero-stat span { font-size: 0.85rem; color: rgba(255,255,255,0.65); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem; cursor: pointer; border: 2px solid transparent; transition: all 0.2s; text-decoration: none; }
.btn-primary { background: var(--amber); color: var(--navy); border-color: var(--amber); }
.btn-primary:hover { background: #ffc030; border-color: #ffc030; color: var(--navy); }
.btn-outline { background: transparent; color: var(--sky); border-color: var(--sky); }
.btn-outline:hover { background: var(--sky); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* Section headings */
.section-header { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-header .eyebrow { display: inline-block; color: var(--sky); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.section-header.left { text-align: left; margin-left: 0; }

/* Cards */
.card-grid { display: grid; gap: 24px; }
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--white); border-radius: 12px; padding: 32px; box-shadow: var(--shadow); border: 1px solid var(--grey); }
.card.dark { background: var(--steel); border-color: rgba(255,255,255,0.1); color: var(--white); }
.card.dark p { color: rgba(255,255,255,0.8); }
.card-icon { font-size: 2rem; margin-bottom: 16px; }
.card h3 { margin-bottom: 12px; }
.card p { margin-bottom: 0; font-size: 0.95rem; color: var(--muted); }
.card.dark p { color: rgba(255,255,255,0.75); }

/* Route cards */
.route-card { background: var(--white); border-radius: 12px; padding: 28px; box-shadow: var(--shadow); border-left: 4px solid var(--sky); }
.route-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.route-name { font-size: 1.2rem; font-weight: 700; color: var(--navy); }
.route-badge { background: var(--sky); color: var(--white); padding: 4px 12px; border-radius: 24px; font-size: 0.78rem; font-weight: 600; }
.route-stats { display: flex; gap: 24px; margin-bottom: 16px; }
.route-stat strong { display: block; font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.route-stat span { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.route-desc { font-size: 0.9rem; color: var(--muted); }

/* Roadmap */
.roadmap { display: flex; flex-direction: column; gap: 0; }
.roadmap-item { display: flex; gap: 32px; position: relative; padding-bottom: 40px; }
.roadmap-item:last-child { padding-bottom: 0; }
.roadmap-left { display: flex; flex-direction: column; align-items: center; min-width: 48px; }
.roadmap-phase { width: 48px; height: 48px; border-radius: 50%; background: var(--sky); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; z-index: 1; }
.roadmap-line { flex: 1; width: 2px; background: var(--grey); margin: 4px 0; }
.roadmap-item:last-child .roadmap-line { display: none; }
.roadmap-content { padding-top: 8px; }
.roadmap-content h3 { margin-bottom: 6px; color: var(--navy); }
.roadmap-content .timeframe { display: inline-block; background: var(--amber); color: var(--navy); font-size: 0.78rem; font-weight: 700; padding: 2px 10px; border-radius: 12px; margin-bottom: 10px; }
.roadmap-content p { color: var(--muted); font-size: 0.95rem; margin-bottom: 8px; }
.roadmap-content .deps { font-size: 0.82rem; color: var(--sky); font-style: italic; }

/* Audience table */
.audience-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.audience-card { background: var(--grey-lt); border-radius: 10px; padding: 24px; border-top: 3px solid var(--sky); }
.audience-card .audience-type { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sky); margin-bottom: 8px; }
.audience-card h3 { font-size: 1rem; margin-bottom: 8px; font-family: 'Inter', sans-serif; color: var(--navy); }
.audience-card p { font-size: 0.88rem; color: var(--muted); margin-bottom: 0; }

/* Map */
#droneport-map { height: 520px; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }

/* Prose content */
.prose { max-width: 780px; }
.prose h2 { margin: 2em 0 0.6em; }
.prose h3 { margin: 1.6em 0 0.5em; color: var(--navy); }
.prose ul, .prose ol { padding-left: 1.6em; margin-bottom: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote { border-left: 4px solid var(--sky); padding: 16px 24px; background: var(--grey-lt); border-radius: 0 8px 8px 0; font-style: italic; color: var(--muted); margin: 2em 0; font-size: 1.1rem; }

/* Callout */
.callout { background: linear-gradient(135deg, var(--navy), var(--steel)); color: var(--white); border-radius: 16px; padding: 48px; text-align: center; }
.callout h2 { color: var(--white); margin-bottom: 16px; }
.callout p { color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto 32px; }

/* Disclaimer banner */
.disclaimer-banner { background: var(--grey-lt); border-top: 3px solid var(--amber); padding: 16px 0; }
.disclaimer-banner p { font-size: 0.82rem; color: var(--muted); margin: 0; text-align: center; }

/* Stats strip */
.stats-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 48px; padding: 48px 0; }
.stat-item { text-align: center; }
.stat-item strong { display: block; font-size: 2.4rem; font-weight: 800; color: var(--amber); line-height: 1; font-family: 'Inter', sans-serif; }
.stat-item span { font-size: 0.85rem; color: var(--muted); margin-top: 4px; display: block; }
section.dark .stat-item span { color: rgba(255,255,255,0.65); }

/* Contact form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: 0.88rem; font-weight: 600; color: var(--text); }
input, textarea, select { width: 100%; padding: 12px 16px; border: 2px solid var(--grey); border-radius: var(--radius); font-family: inherit; font-size: 0.95rem; color: var(--text); background: var(--white); transition: border-color 0.2s; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--sky); }
textarea { resize: vertical; min-height: 140px; }

/* Page hero (inner pages) */
.page-hero { background: linear-gradient(135deg, var(--navy), var(--steel)); color: var(--white); padding: 64px 0 56px; }
.page-hero .eyebrow { color: var(--amber); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 16px; }
.page-hero p { font-size: 1.1rem; color: rgba(255,255,255,0.82); max-width: 640px; margin-bottom: 0; }

/* Image blocks */
.img-full { width: 100%; height: 360px; object-fit: cover; border-radius: 12px; display: block; }
.img-placeholder { width: 100%; height: 360px; background: linear-gradient(135deg, var(--steel), var(--navy)); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.4); font-size: 0.9rem; }

/* 2-col layout */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.two-col.flip { }

/* Tags */
.tag { display: inline-block; background: var(--grey); color: var(--muted); font-size: 0.78rem; font-weight: 600; padding: 3px 10px; border-radius: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.tag-sky { background: rgba(74,144,217,0.12); color: var(--sky); }
.tag-amber { background: rgba(240,165,0,0.15); color: #c47f00; }

/* Site footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: 0.88rem; margin-top: 16px; line-height: 1.7; }
.footer-brand .disclaimer { font-size: 0.78rem; opacity: 0.65; margin-top: 12px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav h4 { color: var(--white); margin-bottom: 8px; }
.footer-nav a { color: rgba(255,255,255,0.65); font-size: 0.88rem; transition: color 0.2s; }
.footer-nav a:hover { color: var(--white); }
.footer-contact h4 { color: var(--white); margin-bottom: 12px; }
.footer-contact p { font-size: 0.88rem; margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.82rem; margin: 0; }
.footer-bottom a { color: var(--amber); }

/* Responsive */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .card-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy); flex-direction: column; padding: 16px 24px; gap: 4px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .site-nav.open { display: flex; }
  .site-nav a.btn-nav { margin-left: 0; margin-top: 8px; justify-content: center; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle { width: 100%; justify-content: space-between; padding: 8px 0; }
  .nav-dropdown-menu { position: static; border: none; box-shadow: none; background: rgba(255,255,255,0.05); border-radius: var(--radius); margin-top: 4px; padding: 4px 8px; }
  .nav-dropdown.open .nav-dropdown-menu { display: flex; }
  .nav-toggle { display: flex; }
  .site-header { position: relative; }
  .hero { padding: 64px 0 48px; }
  .hero-stats { gap: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats-strip { gap: 32px; }
  section { padding: 56px 0; }
  .roadmap-item { gap: 16px; }
}
@media (max-width: 500px) {
  .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
  .route-stats { flex-wrap: wrap; gap: 16px; }
}

/* =============================================
   MOBILE OVERRIDES — PROFESSIONAL REFRESH
   ============================================= */

/* Tighten hero on mobile */
@media (max-width: 640px) {
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 1.9rem; }
  .hero-lead { font-size: 0.95rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .hero-stat strong { font-size: 1.4rem; }

  .page-hero { padding: 40px 0 36px; }
  .page-hero h1 { font-size: 1.6rem; }

  .callout { padding: 32px 20px; }
  .callout h2 { font-size: 1.4rem; }

  .roadmap-item { flex-direction: column; gap: 8px; }
  .roadmap-left { flex-direction: row; align-items: center; gap: 12px; }
  .roadmap-line { width: 32px; height: 2px; flex: none; margin: 0; }

  .stats-strip { gap: 24px; }
  .stat-item strong { font-size: 1.8rem; }

  .route-card { padding: 20px; }
  .route-stats { gap: 16px; }

  table { font-size: 0.78rem; }
  th, td { padding: 8px 10px; }

  .two-col { gap: 24px; }
  .card { padding: 24px; }

  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .audience-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

/* Nav — ensure proper mobile padding */
@media (max-width: 768px) {
  .site-header .container { padding: 0 16px; height: 60px; }
  .container, .container-wide { padding: 0 16px; }
  section { padding: 48px 0; }

  /* Stack the two-col on tablet too */
  .two-col { grid-template-columns: 1fr; }

  /* Card grids */
  .card-grid-2,
  .card-grid-3,
  .card-grid-4 { grid-template-columns: 1fr; }

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

  #droneport-map { height: 340px; }
}

/* Remove card-icon gap when icons stripped */
.card h3:first-child,
.card h3 { margin-top: 0; }

/* Professional table styling */
table { border-radius: 8px; overflow: hidden; }
thead tr th:first-child { border-radius: 8px 0 0 0; }
thead tr th:last-child { border-radius: 0 8px 0 0; }

/* Cleaner prose on mobile */
@media (max-width: 640px) {
  .prose { font-size: 0.95rem; }
  .prose h2 { font-size: 1.4rem; margin: 1.4em 0 0.5em; }
  .prose h3 { font-size: 1.1rem; }
  .prose blockquote { padding: 12px 16px; font-size: 0.95rem; }
}

/* Callout block mobile margin */
@media (max-width: 640px) {
  .callout[style*="margin:0 24px"] { margin: 0 16px 48px !important; }
}

/* Ensure sticky header doesn't break on iOS */
.site-header { -webkit-position: sticky; position: sticky; }

/* Improve tap targets on mobile */
@media (max-width: 768px) {
  .btn { min-height: 44px; padding: 12px 20px; }
  .site-nav a { min-height: 44px; display: flex; align-items: center; }
}

/* =============================================
   ROUTES PAGE — MOBILE FIXES
   ============================================= */

/* Map: taller on mobile, full width */
@media (max-width: 768px) {
  #droneport-map { height: 420px; border-radius: 8px; }
}
@media (max-width: 480px) {
  #droneport-map { height: 320px; border-radius: 6px; }
}

/* Route cards — stack stats vertically on small screens */
@media (max-width: 600px) {
  .route-card { padding: 20px 16px; }
  .route-header { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 14px; }
  .route-name { font-size: 1.05rem; }
  .route-badge { font-size: 0.72rem; }
  .route-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 14px; }
  .route-stat strong { font-size: 0.95rem; }
  .route-stat span { font-size: 0.7rem; }
  .route-desc { font-size: 0.88rem; }
}

/* Route card grid — single column on mobile */
@media (max-width: 768px) {
  .card-grid[style*="minmax(460px"] { grid-template-columns: 1fr !important; }
}

/* Reference aircraft section — tighter on mobile */
@media (max-width: 600px) {
  .section-header p { font-size: 0.9rem; }
}

/* Leaflet map labels — smaller on mobile */
@media (max-width: 600px) {
  .map-label { font-size: 10px !important; }
  .leaflet-tooltip { font-size: 10px !important; padding: 2px 6px !important; }
}

/* Route card grid — responsive */
.route-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}
@media (max-width: 640px) {
  .route-card-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* Hero text backdrop for legibility */
.hero-content-box {
  background: rgba(4, 10, 22, 0.55);
  backdrop-filter: blur(2px);
  border-left: 3px solid var(--amber);
  border-radius: 0 8px 8px 0;
  padding: 32px 40px 32px 32px;
  display: inline-block;
  max-width: 660px;
}
@media (max-width: 768px) {
  .hero-content-box { padding: 24px 20px; max-width: 100%; }
}
