/* ============================================================
   JETEDCO HOMEPAGE V4 — Aviation Flight School Clone Layout
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white: #ffffff;
  --black: #0a0a0a;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-400: #adb5bd;
  --gray-500: #6c757d;
  --gray-600: #495057;
  --gray-700: #343a40;
  --gray-800: #1a1d21;
  --gray-900: #0d0f12;
  --navy: #0b1120;
  --accent: #5691da;
  --accent-light: #ccd9f5;
  --accent-burnt: #5691da;
  --sky-start: #d6e4f5;
  --sky-end: #edf2f9;
  --glass-bg: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.12);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --container: 1240px;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Satoshi Heading Font --- */
@font-face {
  font-family: 'Satoshi';
  src: url('../Fonts/satoshi/Satoshi-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../Fonts/satoshi/Satoshi-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../Fonts/satoshi/Satoshi-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../Fonts/satoshi/Satoshi-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--black);
  background: #f2f2f2;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Satoshi', var(--font);
}
body.menu-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* --- Container --- */
.hp-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }

/* ============================================================
   NAVIGATION — Glassmorphism bar (matching reference)
   ============================================================ */
.hp-nav {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
}
.hp-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: transparent;
}
.hp-nav-logo img {
  height: 28px;
  width: auto;
}
.hp-nav-wordmark {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--white);
}
.hp-nav-divider {
  width: 1px;
  height: 24px;
  background: var(--gray-200);
  margin: 0 16px;
  flex-shrink: 0;
}
.hp-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 100px;
  padding: 6px 8px;
}
.hp-nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.01em;
  padding: 8px 16px;
  border-radius: 100px;
  transition: all var(--transition);
  white-space: nowrap;
}
.hp-nav-links a:hover,
.hp-nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}
.hp-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--black);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 100px;
  transition: all var(--transition);
  white-space: nowrap;
  border: none;
}
.hp-nav-cta::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52,211,153,0.6), 0 0 20px rgba(52,211,153,0.3);
  animation: orbPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes orbPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(52,211,153,0.6), 0 0 20px rgba(52,211,153,0.3); }
  50% { box-shadow: 0 0 12px rgba(52,211,153,0.9), 0 0 30px rgba(52,211,153,0.5); }
}
.hp-nav-cta:hover {
  background: var(--gray-800);
  transform: translateY(-1px);
}
.hp-cta-arrow { font-size: 14px; }

/* Mobile toggle */
.hp-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hp-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
/* Dark bars once the nav gets its white scrolled background */
.hp-nav--scrolled .hp-nav-toggle span { background: var(--black); }

/* ============================================================
   HERO — Full-viewport sky with massive typography
   ============================================================ */
.hp-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hp-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hp-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.5) 40%,
    rgba(0,0,0,0.7) 100%);
  z-index: 1;
}
.hp-hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 32px 80px;
}
.hp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  padding: 8px 24px;
  margin-bottom: 40px;
}
.hp-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.hp-badge-text {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.85);
}
.hp-hero-headline {
  font-size: clamp(42px, 7.2vw, 104px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 32px;
  text-transform: uppercase;
  text-shadow: 0 2px 40px rgba(0,0,0,0.3);
}
.hp-hero-sub {
  font-size: clamp(16px, 1.8vw, 20px);
  color: rgba(255,255,255,0.75);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 40px;
}
.hp-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

/* Primary Button */
.hp-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 18px 40px;
  border-radius: 100px;
  transition: all var(--transition);
  cursor: pointer;
}
.hp-btn-primary:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* Text link button */
.hp-btn-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-600);
  transition: color var(--transition);
}
.hp-btn-text::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--gray-400);
  margin-right: 4px;
}
.hp-btn-text:hover { color: var(--black); }

/* Scroll indicator */
.hp-scroll-indicator {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
}
.hp-scroll-indicator span {
  writing-mode: vertical-rl;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.4);
}
.hp-scroll-line {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
}
.hp-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 1px;
  height: 100%;
  background: rgba(255,255,255,0.6);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

/* ============================================================
   MARQUEE — Scrolling partner logos
   ============================================================ */
.hp-marquee {
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.4);
  overflow: hidden;
}
.hp-marquee-label {
  flex-shrink: 0;
  padding: 24px 32px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gray-500);
  line-height: 1.5;
  border-right: 1px solid rgba(0,0,0,0.06);
}
.hp-marquee-track {
  flex: 1;
  overflow: hidden;
  padding: 24px 0;
}
.hp-marquee-slide {
  display: flex;
  gap: 80px;
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
}
.hp-marquee-slide span {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  white-space: nowrap;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   SERVICES — Card grid (Pathways clone)
   ============================================================ */
.hp-services {
  padding: 120px 0;
}
.hp-services-header {
  max-width: 560px;
  margin-bottom: 60px;
}
.hp-label-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-burnt);
  margin-right: 10px;
  vertical-align: middle;
}
.hp-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  vertical-align: middle;
}
.hp-label--accent { color: var(--accent-burnt); }
.hp-services-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-top: 20px;
  color: var(--black);
}
.hp-text-muted { color: var(--gray-400); }
.hp-services-desc {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-top: 20px;
}

/* Services Grid */
.hp-services-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
}
.hp-service-card {
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.hp-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.06);
}
.hp-service-img {
  position: relative;
  overflow: hidden;
  height: 280px;
}
.hp-service-card--large .hp-service-img { height: 360px; }
.hp-service-card--full { grid-column: 1 / -1; }
.hp-service-card--full .hp-service-img { height: 320px; }
.hp-service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.hp-service-card:hover .hp-service-img img {
  transform: scale(1.04);
}
.hp-service-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gray-700);
  z-index: 2;
}
.hp-service-body {
  padding: 28px 28px 32px;
}
.hp-service-body h3 {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--black);
}
.hp-service-body p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 20px;
}
.hp-link-arrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-burnt);
  transition: gap var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.hp-link-arrow:hover { gap: 8px; }

/* ============================================================
   STATS — Number strip
   ============================================================ */
.hp-stats {
  padding: 80px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.hp-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}
.hp-stat-number {
  display: block;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--black);
}
.hp-stat-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-top: 8px;
}

/* ============================================================
   ABOUT — Side-by-side image + text
   ============================================================ */
.hp-about {
  padding: 120px 0;
}
.hp-about-centered {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.hp-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hp-about-img {
  border-radius: var(--radius);
  overflow: hidden;
}
.hp-about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.hp-about-title {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-top: 20px;
  margin-bottom: 20px;
  color: var(--black);
}
.hp-about-text {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* ============================================================
   CTA — Cockpit background
   ============================================================ */
.hp-cta {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin: 0 32px;
  border-radius: var(--radius);
}
.hp-cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hp-cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hp-cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.55);
}
.hp-cta-content {
  position: relative;
  z-index: 2;
  padding: 80px 32px;
  max-width: 820px;
}
.hp-cta-headline {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 20px;
}
.hp-cta-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 32px;
}
.hp-btn-primary--accent {
  background: var(--accent-burnt);
}
.hp-btn-primary--accent:hover {
  background: #3d7ac4;
}
.hp-cta-phone {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}
.hp-cta-phone a {
  color: rgba(255,255,255,0.75);
  text-decoration: underline;
}
.hp-cta-phone a:hover { color: var(--white); }

/* ============================================================
   FOOTER
   ============================================================ */
.hp-footer {
  padding-top: 80px;
}
.hp-footer-top {
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.hp-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
}
.hp-footer-logo {
  height: 32px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0);
}
.hp-footer-address {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  line-height: 1.6;
}
.hp-footer-blurb {
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray-500);
  max-width: 360px;
  margin-bottom: 20px;
}
.hp-footer-social {
  display: flex;
  gap: 12px;
}
.hp-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-600);
  transition: background 0.2s, color 0.2s;
}
.hp-footer-social a:hover {
  background: var(--accent);
  color: #fff;
}
.hp-footer-social svg {
  width: 18px;
  height: 18px;
}
.hp-footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gray-500);
  margin-bottom: 20px;
}
.hp-footer-col a {
  display: block;
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 12px;
  transition: color var(--transition);
}
.hp-footer-col a:hover { color: var(--black); }
.hp-footer-bottom {
  padding: 24px 0;
  text-align: center;
}
.hp-footer-bottom p {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gray-400);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hp-nav-links,
  .hp-nav-divider { display: none; }
  .hp-nav-toggle { display: flex; }
  .hp-nav-inner { padding: 10px 16px 10px 20px; }
  .hp-nav-cta { display: none; }

  .hp-hero-headline { font-size: clamp(36px, 12vw, 64px); }

  .hp-services-grid {
    grid-template-columns: 1fr;
  }
  .hp-service-card--large .hp-service-img,
  .hp-service-card--full .hp-service-img { height: 240px; }

  .hp-about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hp-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .hp-cta { margin: 0 16px; }
  .hp-scroll-indicator { display: none; }
}

@media (max-width: 600px) {
  .hp-container { padding: 0 20px; }
  .hp-stats-grid { grid-template-columns: 1fr; gap: 24px; }
  .hp-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hp-cta { margin: 0; border-radius: 0; }
  .hp-hero-actions { flex-direction: column; gap: 20px; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.hp-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.hp-visible {
  opacity: 1;
  transform: translateY(0);
}
.hp-nav--scrolled .hp-nav-inner {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 4px 40px rgba(0,0,0,0.1);
}

/* ============================================================
   MOBILE NAV OVERLAY
   ============================================================ */
body.menu-open .hp-nav-links {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(24px);
  padding: 100px 32px 32px;
  gap: 8px;
  z-index: 999;
}
body.menu-open .hp-nav-links a {
  font-size: 24px;
  font-weight: 600;
  padding: 16px 0;
  color: var(--black);
}
body.menu-open .hp-nav-links a:hover,
body.menu-open .hp-nav-links a.active {
  color: var(--black);
  background: transparent;
  opacity: 0.55;
}
/* X icon stays dark against the white open overlay */
body.menu-open .hp-nav-toggle span { background: var(--black); }
body.menu-open .hp-nav-toggle span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
body.menu-open .hp-nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .hp-nav-toggle span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
