/* ============================================
   VELAERO — Quietly Above.
   Luxury Private Aviation Landing Page
   ============================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Brand Colors */
  --navy:        #0B1120;
  --navy-light:  #111827;
  --ivory:       #F5F0E8;
  --ivory-dim:   #EDE8DF;
  --gold:        #C9A96E;
  --gold-dim:    #b89555;
  --graphite:    #3A3A3A;
  --fog:         #8A8A8A;
  --fog-light:   #A0A0A0;

  /* Typography */
  --font-serif:  'Playfair Display', 'Noto Serif SC', Georgia, 'Times New Roman', serif;
  --font-sans:   'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-pad: clamp(4rem, 8vw, 8rem);
  --content-max: 1280px;

  /* Motion */
  --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
  --duration-reveal: 800ms;

  /* Radius (max 4px per design spec) */
  --radius-sm: 2px;
  --radius-md: 4px;

  /* Safe area */
  --sat: env(safe-area-inset-top, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--navy);
  color: var(--ivory);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-top: var(--sat);
  padding-right: var(--sar);
  padding-bottom: var(--sab);
  padding-left: var(--sal);
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Gold underline accent */
.gold-line {
  display: inline-block;
  position: relative;
}
.gold-line::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 600ms var(--ease-smooth);
}
.gold-line:hover::after,
.gold-line.active::after {
  width: 100%;
}

/* Section label (small caps gold) */
.section-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}

/* Section heading */
.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ivory);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

/* Section body text */
.section-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--fog-light);
  max-width: 560px;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-reveal) var(--ease-smooth),
              transform var(--duration-reveal) var(--ease-smooth);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   NAVIGATION
   ============================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: calc(var(--sat) + 1rem) 0 1rem;
  transition: background 500ms var(--ease-smooth),
              box-shadow 500ms var(--ease-smooth);
}
.site-nav.scrolled {
  background: rgba(11, 17, 32, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(201, 169, 110, 0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--ivory);
  text-transform: uppercase;
}
.nav-brand span {
  color: var(--gold);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fog-light);
  transition: color 300ms var(--ease-smooth);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 400ms var(--ease-smooth);
}
.nav-links a:hover {
  color: var(--ivory);
}
.nav-links a:hover::after {
  width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ivory);
  transition: transform 300ms var(--ease-smooth), opacity 200ms;
}
.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 17, 32, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 400ms var(--ease-smooth);
  }
  .nav-links.open {
    opacity: 1;
    pointer-events: all;
  }
  .nav-links a {
    font-size: 1rem;
    color: var(--ivory);
  }
}

/* --- CTA Button --- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  padding: 0.85rem 2rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  transition: background 400ms var(--ease-smooth),
              color 400ms var(--ease-smooth),
              transform 300ms var(--ease-smooth);
  cursor: pointer;
  text-decoration: none;
}
.cta-btn:hover {
  background: transparent;
  color: var(--gold);
  transform: scale(1.02);
}
.cta-btn--outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.cta-btn--outline:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(4rem, 10vh, 8rem);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Image: Full-width hero — sleek private jet on tarmac at golden hour, 16:9 */
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(11, 17, 32, 0.92) 0%,
    rgba(11, 17, 32, 0.5) 40%,
    rgba(11, 17, 32, 0.15) 70%,
    rgba(11, 17, 32, 0.3) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.hero-slogan {
  font-family: var(--font-serif);
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  font-weight: 400;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: heroFadeIn 1200ms var(--ease-smooth) 300ms forwards;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ivory);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: heroFadeIn 1200ms var(--ease-smooth) 500ms forwards;
}
.hero-subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.8;
  color: var(--fog-light);
  max-width: 520px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: heroFadeIn 1200ms var(--ease-smooth) 700ms forwards;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: heroFadeIn 1200ms var(--ease-smooth) 900ms forwards;
}

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

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  right: clamp(1.25rem, 4vw, 3rem);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--fog);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}
.hero-scroll svg {
  width: 16px;
  height: 24px;
  stroke: var(--fog);
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ============================================
   FLIGHT EXPERIENCE SECTION
   ============================================ */
.flight-section {
  padding: var(--section-pad) 0;
  background: var(--navy);
}
.flight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.flight-visual {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.flight-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Image: Cockpit view from pilot seat with instruments, 4:3 */
  transition: transform 800ms var(--ease-smooth);
}
.flight-visual:hover img {
  transform: scale(1.02);
}
.flight-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201, 169, 110, 0.15);
  border-radius: var(--radius-md);
  pointer-events: none;
}
.flight-text .section-body {
  margin-bottom: 2rem;
}
.flight-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.flight-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--fog-light);
  line-height: 1.6;
}
.flight-features li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
}

@media (max-width: 768px) {
  .flight-grid {
    grid-template-columns: 1fr;
  }
  .flight-visual {
    aspect-ratio: 16 / 10;
  }
}

/* ============================================
   FLEET OVERVIEW SECTION
   ============================================ */
.fleet-section {
  padding: var(--section-pad) 0;
  background: var(--navy-light);
}
.fleet-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}
.fleet-header .section-label {
  justify-content: center;
}
.fleet-header .section-label::before {
  display: none;
}
.fleet-header .section-body {
  margin: 0 auto;
  text-align: center;
}
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.fleet-card {
  background: var(--navy);
  border: 1px solid rgba(201, 169, 110, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 400ms var(--ease-smooth),
              border-color 400ms var(--ease-smooth);
}
.fleet-card:hover {
  transform: scale(1.02);
  border-color: rgba(201, 169, 110, 0.2);
}
.fleet-card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.fleet-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-smooth);
}
.fleet-card:hover .fleet-card-img img {
  transform: scale(1.04);
}
.fleet-card-body {
  padding: 1.5rem;
}
.fleet-card-category {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.fleet-card-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ivory);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.fleet-card-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--fog);
  margin-bottom: 1.25rem;
}
.fleet-card-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(201, 169, 110, 0.08);
}
.fleet-spec {
  font-size: 0.75rem;
  color: var(--fog);
}
.fleet-spec strong {
  display: block;
  color: var(--ivory);
  font-weight: 500;
  font-size: 0.85rem;
  margin-bottom: 2px;
}

/* ============================================
   MAINTENANCE / MRO SECTION
   ============================================ */
.mro-section {
  padding: var(--section-pad) 0;
  background: var(--navy);
}
.mro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.mro-text .section-body {
  margin-bottom: 2rem;
}
.mro-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.mro-service {
  padding: 1.25rem;
  border: 1px solid rgba(201, 169, 110, 0.08);
  border-radius: var(--radius-md);
  transition: border-color 400ms var(--ease-smooth);
}
.mro-service:hover {
  border-color: rgba(201, 169, 110, 0.2);
}
.mro-service-icon {
  width: 28px;
  height: 28px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.2;
  margin-bottom: 0.75rem;
}
.mro-service-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--ivory);
  margin-bottom: 0.35rem;
}
.mro-service-desc {
  font-size: 0.8rem;
  color: var(--fog);
  line-height: 1.6;
}
.mro-visuals {
  display: grid;
  grid-template-rows: 3fr 2fr;
  gap: 1rem;
  height: 100%;
  min-height: 480px;
}
.mro-visual {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.mro-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms var(--ease-smooth);
}
.mro-visual:hover img {
  transform: scale(1.02);
}
.mro-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201, 169, 110, 0.12);
  border-radius: var(--radius-md);
  pointer-events: none;
}

@media (max-width: 768px) {
  .mro-grid {
    grid-template-columns: 1fr;
  }
  .mro-services {
    grid-template-columns: 1fr;
  }
  .mro-visuals {
    min-height: 360px;
    grid-template-rows: 2fr 1fr;
  }
}

/* ============================================
   BRIEF / CTA SECTION
   ============================================ */
.brief-section {
  padding: var(--section-pad) 0;
  background: var(--navy-light);
  position: relative;
  overflow: hidden;
}
.brief-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.brief-inner .section-label {
  justify-content: center;
}
.brief-inner .section-label::before {
  display: none;
}
.brief-inner .section-heading {
  margin-bottom: 1rem;
}
.brief-inner .section-body {
  margin: 0 auto 2.5rem;
  text-align: center;
}
.brief-bg-accent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

/* ============================================
   CABIN SHOWCASE
   ============================================ */
.cabin-section {
  padding: var(--section-pad) 0;
  background: var(--navy);
}
.cabin-showcase {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  margin-top: 2rem;
}
.cabin-showcase img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Image: Luxury cabin interior, wide panoramic, 21:9 */
}
.cabin-showcase::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201, 169, 110, 0.1);
  border-radius: var(--radius-md);
  pointer-events: none;
}
.cabin-showcase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,17,32,0.6) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}
.cabin-caption {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--ivory);
  opacity: 0.9;
}

@media (max-width: 768px) {
  .cabin-showcase {
    aspect-ratio: 16 / 9;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  padding: 3rem 0 calc(2rem + var(--sab));
  background: var(--navy);
  border-top: 1px solid rgba(201, 169, 110, 0.08);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ivory);
  margin-bottom: 0.5rem;
}
.footer-brand span {
  color: var(--gold);
}
.footer-tagline {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--fog);
}
.footer-legal {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-legal button {
  font-size: 0.75rem;
  color: var(--fog);
  letter-spacing: 0.05em;
  transition: color 300ms var(--ease-smooth);
  padding: 0;
}
.footer-legal button:hover {
  color: var(--gold);
}
.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.7rem;
  color: var(--fog);
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201, 169, 110, 0.05);
}

/* ============================================
   MODALS (Privacy / Terms / Disclaimer)
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms var(--ease-smooth);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  background: var(--navy-light);
  border: 1px solid rgba(201, 169, 110, 0.12);
  border-radius: var(--radius-md);
  max-width: 640px;
  width: 100%;
  max-height: 80dvh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 400ms var(--ease-smooth);
}
.modal-overlay.open .modal-box {
  transform: translateY(0);
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fog);
  transition: color 300ms;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.modal-close:hover {
  color: var(--gold);
}
.modal-close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}
.modal-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--ivory);
  margin-bottom: 1.5rem;
  padding-right: 2rem;
}
.modal-content {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--fog-light);
}
.modal-content h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--ivory);
  margin: 1.5rem 0 0.5rem;
}
.modal-content p {
  margin-bottom: 1rem;
}

/* ============================================
   DIVIDER
   ============================================ */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201, 169, 110, 0.15), transparent);
}

/* ============================================
   RESPONSIVE REFINEMENTS
   ============================================ */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .fleet-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-legal {
    justify-content: center;
  }
}
