/* =============================================================
   styles.css — Global Styles, Variables, Reset, Typography
   Aeropilot
============================================================= */

/* ----- 1. CSS Custom Properties ----------------------------- */
:root {
  /* Brand Colors */
  --color-navy:        #0d1b2a;
  --color-navy-mid:    #142233;
  --color-sky:         #1a6b8a;
  --color-sky-light:   #2a8aad;
  --color-gold:        #c9a84c;
  --color-gold-light:  #dfc06e;
  --color-gold-dark:   #a8852e;
  --color-cloud:       #f4f7fa;
  --color-white:       #ffffff;
  --color-text:        #2c3e50;
  --color-muted:       #6b7c8d;
  --color-border:      #dde4ec;
  --color-dark-bg:     #0a1520;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', -apple-system, sans-serif;

  /* Font Sizes — fluid scale */
  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-md:   1.125rem;  /* 18px */
  --text-lg:   1.25rem;   /* 20px */
  --text-xl:   1.5rem;    /* 24px */
  --text-2xl:  2rem;      /* 32px */
  --text-3xl:  2.5rem;    /* 40px */
  --text-4xl:  3.5rem;    /* 56px */
  --text-5xl:  4.5rem;    /* 72px */

  /* Spacing */
  --space-1:   0.5rem;    /* 8px  */
  --space-2:   1rem;      /* 16px */
  --space-3:   1.5rem;    /* 24px */
  --space-4:   2rem;      /* 32px */
  --space-6:   3rem;      /* 48px */
  --space-8:   4rem;      /* 64px */
  --space-10:  5rem;      /* 80px */
  --space-12:  6rem;      /* 96px */
  --space-16:  8rem;      /* 128px */

  /* Borders */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --radius-pill: 100px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(13,27,42,0.08);
  --shadow-md:  0 8px 24px rgba(13,27,42,0.12);
  --shadow-lg:  0 20px 48px rgba(13,27,42,0.18);
  --shadow-xl:  0 32px 64px rgba(13,27,42,0.22);

  /* Transitions */
  --transition-fast:   0.15s ease;
  --transition-base:   0.25s ease;
  --transition-slow:   0.4s ease;
  --transition-spring: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-index layers */
  --z-base:    1;
  --z-dropdown:100;
  --z-navbar:  200;
  --z-overlay: 300;
  --z-modal:   400;
}

/* ----- 2. Reset & Box Model -------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

ul, ol {
  list-style: none;
}

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

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ----- 3. Typography --------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-navy);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl)); }
h2 { font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl)); }
h3 { font-size: clamp(var(--text-xl), 2.5vw, var(--text-2xl)); }
h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-md); }
h6 { font-size: var(--text-base); }

h1 em, h2 em, h3 em {
  font-style: italic;
  color: var(--color-sky);
}

p {
  color: var(--color-muted);
  line-height: 1.75;
  max-width: 65ch;
}

strong {
  font-weight: 600;
  color: var(--color-text);
}

/* ----- 4. Layout Utilities --------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.section {
  padding: var(--space-12) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.section-header h2 {
  margin-bottom: var(--space-2);
}

.section-sub {
  max-width: 55ch;
  margin: 0 auto;
  font-size: var(--text-md);
  color: var(--color-muted);
}

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-sky);
  background: rgba(26, 107, 138, 0.08);
  padding: 0.35em 1em;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-2);
}

.section-tag--light {
  color: var(--color-gold-light);
  background: rgba(201, 168, 76, 0.15);
}

.section-cta {
  text-align: center;
  margin-top: var(--space-8);
}

/* ----- 5. Hero Section ------------------------------------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 21, 32, 0.88) 0%,
    rgba(13, 27, 42, 0.70) 50%,
    rgba(26, 107, 138, 0.40) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 80px; /* offset for fixed navbar */
}

.hero__tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  border: 1px solid rgba(201,168,76,0.4);
  padding: 0.4em 1.2em;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-3);
}

.hero__title {
  color: var(--color-white);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: var(--space-3);
}

.hero__title em {
  color: var(--color-gold-light);
  font-style: italic;
}

.hero__sub {
  font-size: clamp(var(--text-base), 2vw, var(--text-lg));
  color: rgba(255,255,255,0.82);
  max-width: 50ch;
  margin-bottom: var(--space-6);
}

.hero__cta {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.6);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--transition-base);
  animation: bounce 2s infinite;
}

.hero__scroll:hover { color: var(--color-gold-light); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ----- 6. About Snippet ------------------------------------ */
.about-snippet__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.about-snippet__text h2 {
  margin: var(--space-2) 0 var(--space-3);
}

.about-snippet__text p {
  margin-bottom: var(--space-3);
}

.image-mosaic {
  display: grid;
  grid-template-columns: 3fr 2fr;
  grid-template-rows: auto auto;
  gap: var(--space-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.mosaic__main {
  grid-row: 1 / 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3/4;
  border-radius: var(--radius-md);
}

.mosaic__secondary,
.mosaic__tertiary {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
}

/* ----- 7. Why Us (Feature Cards) --------------------------- */
.why-us {
  background-color: var(--color-cloud);
}

.why-us__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.feature-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-6) var(--space-4);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-spring), box-shadow var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(26,107,138,0.12), rgba(201,168,76,0.12));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-3);
  font-size: 1.5rem;
  color: var(--color-sky);
}

.feature-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.feature-card p {
  font-size: var(--text-sm);
  margin: 0;
  max-width: none;
}

/* ----- 8. Process Steps ------------------------------------ */
.process-overview {
  background: var(--color-navy);
  color: var(--color-white);
}

.process-overview .section-header h2 {
  color: var(--color-white);
}

.process-overview .section-tag {
  color: var(--color-gold-light);
  background: rgba(201,168,76,0.12);
}

.process-overview .section-sub {
  color: rgba(255,255,255,0.65);
}

.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: var(--space-8);
  overflow-x: auto;
  padding-bottom: var(--space-2);
}

.process-step {
  flex: 1;
  min-width: 160px;
  text-align: center;
  padding: var(--space-3);
}

.process-step__number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: var(--space-2);
  opacity: 0.9;
}

.process-step__content h3 {
  color: var(--color-white);
  font-size: var(--text-md);
  margin-bottom: var(--space-1);
}

.process-step__content p {
  color: rgba(255,255,255,0.60);
  font-size: var(--text-sm);
  max-width: none;
}



/* ----- 9. Testimonials ------------------------------------- */
.testimonials {
  background: var(--color-cloud);
}

.testimonials__slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-top: var(--space-6);
}

.testimonials__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.testimonial-card {
  flex: 0 0 100%;
  padding: var(--space-8) var(--space-12);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.testimonial-card__stars {
  color: var(--color-gold);
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  font-family: var(--font-display);
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-2xl));
  font-style: italic;
  color: var(--color-navy);
  line-height: 1.5;
  max-width: 70ch;
  margin: 0 auto var(--space-4);
}

.testimonial-card cite {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-style: normal;
  font-weight: 600;
  color: var(--color-sky);
  letter-spacing: 0.05em;
}

.testimonials__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-4) 0 var(--space-2);
}

.testimonials__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-white);
  border: 2px solid var(--color-border);
  color: var(--color-sky);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  transition: all var(--transition-base);
}

.testimonials__btn:hover {
  background: var(--color-sky);
  border-color: var(--color-sky);
  color: var(--color-white);
}

.testimonials__dots {
  display: flex;
  gap: 8px;
}

.testimonials__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
}

.testimonials__dot.active {
  background: var(--color-sky);
  width: 24px;
  border-radius: var(--radius-pill);
}

/* ----- 10. Ground School CTA ------------------------------- */
.ground-school-cta {
  background: var(--color-dark-bg);
  position: relative;
  overflow: hidden;
}

.ground-school-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(26,107,138,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.ground-school-cta__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  position: relative;
  z-index: 1;
}

.ground-school-cta__text h2 {
  color: var(--color-white);
  margin: var(--space-2) 0 var(--space-3);
}

.ground-school-cta__text h2 em {
  color: var(--color-gold-light);
}

.ground-school-cta__text p {
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--space-4);
  max-width: none;
}

.ground-school-cta__features {
  margin-bottom: var(--space-6);
}

.ground-school-cta__features li {
  color: rgba(255,255,255,0.80);
  font-size: var(--text-sm);
  padding: var(--space-1) 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.ground-school-cta__features li i {
  color: var(--color-gold);
  flex-shrink: 0;
}

.ground-school-cta__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.ground-school-cta__image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform var(--transition-slow);
}

.ground-school-cta__image:hover img {
  transform: scale(1.03);
}

/* ----- 11. Gallery ----------------------------------------- */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: var(--space-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.gallery__item {
  overflow: hidden;
  border-radius: var(--radius-md);
}

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

.gallery__item:hover img {
  transform: scale(1.07);
}

.gallery__item--tall {
  grid-row: span 2;
}

.gallery__item--wide {
  grid-column: span 2;
}

/* ----- 12. Blog Preview Cards ------------------------------ */
.blog-preview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.blog-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-spring), box-shadow var(--transition-base);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-card__image {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

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

.blog-card:hover .blog-card__image img {
  transform: scale(1.05);
}

.blog-card__tag {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white);
  background: var(--color-sky);
  padding: 0.3em 0.8em;
  border-radius: var(--radius-pill);
}

.blog-card__body {
  padding: var(--space-4);
}

.blog-card__date {
  font-size: var(--text-xs);
  color: var(--color-muted);
  font-weight: 500;
  display: block;
  margin-bottom: var(--space-1);
}

.blog-card__body h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
  transition: color var(--transition-base);
}

.blog-card:hover .blog-card__body h3,
.blog-card__body h3 a:hover {
  color: var(--color-sky);
}

.blog-card__body p {
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
  max-width: none;
}

.blog-card__link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-sky);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition-base);
}

.blog-card__link:hover {
  gap: 10px;
}

/* ----- 13. Final CTA --------------------------------------- */
.final-cta {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-mid) 50%, #1a3550 100%);
  padding: var(--space-16) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  position: absolute;
  font-size: 400px;
  color: rgba(255,255,255,0.015);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-20deg);
  pointer-events: none;
  font-family: sans-serif;
}

.final-cta__inner {
  position: relative;
  z-index: 1;
}

.final-cta h2 {
  color: var(--color-white);
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: var(--space-3);
}

.final-cta h2 em {
  color: var(--color-gold-light);
}

.final-cta p {
  color: rgba(255,255,255,0.70);
  font-size: var(--text-md);
  max-width: 50ch;
  margin: 0 auto var(--space-6);
}

.final-cta__buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* ----- 14. Responsive -------------------------------------- */
@media (max-width: 1024px) {
  .why-us__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .blog-preview__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    flex-direction: column;
    align-items: center;
  }



  .process-step {
    min-width: auto;
    width: 100%;
    max-width: 480px;
  }
}

@media (max-width: 768px) {
  :root {
    --space-12: 4rem;
    --space-16: 6rem;
  }

  .section { padding: var(--space-10) 0; }

  .about-snippet__grid,
  .ground-school-cta__inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .about-snippet__images { order: -1; }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  .gallery__item--wide { grid-column: span 1; }

  .blog-preview__grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    padding: var(--space-6) var(--space-4);
  }

  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
  .section { padding: var(--space-8) 0; }

  .container { padding: 0 var(--space-3); }

  .why-us__grid { grid-template-columns: 1fr; }

  .gallery__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .gallery__item--tall { grid-row: span 1; }

  .final-cta__buttons { flex-direction: column; align-items: center; }
  .final-cta__buttons .btn { width: 100%; max-width: 320px; }
}
