/* ============================================================
   Ramona Flight Training Center — Main Stylesheet
   Brand Color (Ramona Radio Blue): #0328D4
   Fonts: Inter (headings), DM Sans (body)
   ============================================================ */

/* ------------------------------------------------------------
   Custom Properties
   ------------------------------------------------------------ */
:root {
  /* Brand */
  --color-primary:       #0328D4;
  --color-primary-light: #3b5ce8;
  --color-primary-dark:  #1a2e8a;
  --color-primary-bg:    #EFF1FB;

  /* Surfaces */
  --color-bg:            #ffffff;
  --color-bg-light:      #F8F9FF;
  --color-bg-dark:       #0e1a3a;
  --color-bg-muted:      #EFF1FB;

  /* Text */
  --color-text:          #19294A;
  --color-text-light:    #ffffff;
  --color-muted:         #6D7BA0;
  --color-border:        #BED1EE;

  /* Semantic */
  --color-success:       #16a34a;
  --color-success-bg:    #f0fdf4;
  --color-error:         #dc2626;
  --color-error-bg:      #fef2f2;
  --color-warning:       #f59e0b;
  --color-warning-bg:    #fffbeb;
  --color-info:          #0284c7;
  --color-info-bg:       #f0f9ff;

  /* Typography */
  --font-heading:        'Inter', sans-serif;
  --font-body:           'DM Sans', sans-serif;

  /* Spacing Scale */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Radii */
  --radius-sm:   0.375rem;
  --radius-md:   0.5rem;
  --radius-lg:   0.75rem;
  --radius-xl:   1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(109, 123, 160, 0.08);
  --shadow-md:  0 4px 12px rgba(109, 123, 160, 0.15);
  --shadow-lg:  0 10px 30px rgba(109, 123, 160, 0.2);
  --shadow-xl:  0 20px 50px rgba(109, 123, 160, 0.25);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* Layout */
  --container-max:     1200px;
  --nav-height:        72px;
}


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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

ul, ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
}


/* ------------------------------------------------------------
   Typography
   ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; font-weight: 800; }
h2 { font-size: 2rem;   font-weight: 800; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p + p {
  margin-top: var(--space-md);
}

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.75rem; }
}

@media (min-width: 1024px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
}


/* ------------------------------------------------------------
   Container
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}


/* ------------------------------------------------------------
   Buttons (.btn)
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* Primary */
.btn--primary {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background-color: var(--color-primary-light);
  border-color: var(--color-primary-light);
  color: #ffffff;
  box-shadow: 0 6px 30px rgba(3, 40, 212, 0.4);
}

/* Outline */
.btn--outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--outline:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

/* Outline White */
.btn--outline-white {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.btn--outline-white:hover {
  background-color: #ffffff;
  color: var(--color-primary);
}

/* Ghost */
.btn--ghost {
  background-color: transparent;
  color: var(--color-primary);
  border-color: transparent;
}

.btn--ghost:hover {
  background-color: var(--color-primary-bg);
}

/* Danger */
.btn--danger {
  background-color: var(--color-error);
  color: #ffffff;
  border-color: var(--color-error);
}

.btn--danger:hover {
  background-color: #b91c1c;
  border-color: #b91c1c;
  color: #ffffff;
}

/* Sizes */
.btn--xs {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: 1.0625rem;
  border-radius: var(--radius-lg);
}

.btn--full {
  width: 100%;
}


/* ------------------------------------------------------------
   Navigation (.nav)
   ------------------------------------------------------------ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background-color: transparent;
  transition:
    background-color var(--transition-base),
    box-shadow var(--transition-base);
}

.nav--scrolled {
  background-color: #ffffff;
  box-shadow: var(--shadow-md);
}

.nav--solid {
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: #ffffff;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav--scrolled .nav__logo,
.nav--solid .nav__logo {
  color: var(--color-text);
}

.nav__logo img,
img.nav__logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-xl);
}

.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav__link:hover {
  color: #ffffff;
}

.nav--scrolled .nav__link,
.nav--solid .nav__link {
  color: var(--color-muted);
}

.nav--scrolled .nav__link:hover,
.nav--solid .nav__link:hover {
  color: var(--color-primary);
}

.nav__link--active {
  color: #ffffff;
}

.nav--scrolled .nav__link--active,
.nav--solid .nav__link--active {
  color: var(--color-primary);
}

/* Hamburger */
.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition:
    transform var(--transition-base),
    opacity var(--transition-base);
  transform-origin: center;
}

.nav--scrolled .nav__toggle span,
.nav--solid .nav__toggle span {
  background-color: var(--color-text);
}

/* X animation when open */
.nav__toggle--open span {
  background-color: var(--color-text);
}

.nav__toggle--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle--open span:nth-child(2) {
  opacity: 0;
}

.nav__toggle--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu overlay */
@media (max-width: 767px) {
  .nav__links {
    position: fixed;
    inset: 0;
    background-color: #ffffff;
    z-index: 999;
    padding-top: calc(var(--nav-height) + var(--space-xl));
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
    transform: translateX(100%);
    transition: transform var(--transition-base);
  }

  .nav__links--open {
    display: flex;
    transform: translateX(0);
  }

  .nav__links .nav__link {
    font-size: 1.25rem;
    color: var(--color-text);
  }

  .nav__links .nav__link:hover {
    color: var(--color-primary);
  }

  .nav__links .btn {
    width: 80%;
    max-width: 280px;
  }
}

@media (min-width: 768px) {
  .nav__links {
    display: flex;
  }

  .nav__toggle {
    display: none;
  }
}


/* ------------------------------------------------------------
   Hero (.hero)
   ------------------------------------------------------------ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--nav-height) var(--space-lg) var(--space-3xl);
  background: linear-gradient(135deg, #0a1230 0%, #0e1a3a 40%, #0328D4 100%);
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

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

/* Animated gradient orbs for depth */
.hero__bg::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(3, 40, 212, 0.35) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation: hero-float 20s ease-in-out infinite;
}

.hero__bg::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 101, 199, 0.25) 0%, transparent 70%);
  bottom: -100px;
  left: -50px;
  animation: hero-float 15s ease-in-out infinite reverse;
}

@keyframes hero-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* Subtle grid pattern overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.25rem;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.03em;
}

.hero__subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-inline: auto;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 3.25rem;
  }

  .hero__subtitle {
    font-size: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: 4rem;
  }
}


/* ------------------------------------------------------------
   Sections (.section)
   ------------------------------------------------------------ */
.section {
  padding: var(--space-3xl) 0;
}

.section--light {
  background-color: var(--color-bg-light);
}

.section--white {
  background-color: var(--color-bg);
}

.section--dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5,
.section--dark h6 {
  color: var(--color-text-light);
}

.section--dark .section__subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  max-width: 640px;
  margin-inline: auto;
}

.section__badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  background-color: var(--color-primary-bg);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.section--dark .section__badge {
  background-color: rgba(3, 40, 212, 0.3);
  color: var(--color-primary-light);
}

.section__title {
  margin-bottom: var(--space-md);
}

.section__subtitle {
  font-size: 1.0625rem;
  color: var(--color-muted);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-4xl) 0;
  }
}


/* ------------------------------------------------------------
   Features Grid (.features, .feature)
   ------------------------------------------------------------ */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

.feature {
  text-align: center;
}

.feature__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-size: 1.5rem;
  margin: 0 auto var(--space-lg);
  transition: background-color var(--transition-base), color var(--transition-base);
}

.feature__icon svg {
  width: 28px;
  height: 28px;
}

.feature:hover .feature__icon {
  background-color: var(--color-primary);
  color: #ffffff;
}

.feature__title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.feature__text {
  color: var(--color-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ------------------------------------------------------------
   Split Layout (.split)
   ------------------------------------------------------------ */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.split__content {
  order: 1;
}

.split__image {
  order: 2;
  position: relative;
}

.split__image::before {
  content: '';
  position: absolute;
  inset: 12px -12px -12px 12px;
  background: #123B77;
  border-radius: var(--radius-xl);
  z-index: -1;
}

.split__content h2 {
  margin-bottom: var(--space-md);
}

.split__content p {
  color: var(--color-muted);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  background: linear-gradient(135deg, var(--color-bg-muted) 0%, var(--color-bg-light) 100%);
  border-radius: var(--radius-xl);
  min-height: 320px;
  color: var(--color-muted);
  font-size: 0.875rem;
  border: 1px dashed var(--color-border);
  padding: var(--space-xl);
}

.image-placeholder--large {
  min-height: 400px;
}

.image-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.35;
}

.image-placeholder span {
  max-width: 300px;
  text-align: center;
  line-height: 1.6;
}

.split__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.split__image img {
  border-radius: var(--radius-lg);
  width: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split__content { order: unset; }
  .split__image   { order: unset; }

  .split--reverse .split__image {
    order: -1;
  }
}


/* ------------------------------------------------------------
   Checklist (.checklist)
   ------------------------------------------------------------ */
.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.125rem;
}


/* ------------------------------------------------------------
   Instructor Grid (.instructor-grid, .instructor-card)
   ------------------------------------------------------------ */
.instructor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-2xl);
}

.instructor-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  transition:
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

.instructor-card:hover {
  box-shadow: 0px 25px 45px 0px rgba(109, 123, 160, 0.2);
  transform: translateY(-4px);
}

.instructor-card__photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto var(--space-lg);
  border: 3px solid var(--color-primary-bg);
}

.instructor-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.instructor-card__initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.75rem;
  margin: 0 auto var(--space-lg);
  letter-spacing: 0.05em;
}

.instructor-card__initials--large {
  width: 140px;
  height: 140px;
  font-size: 2.5rem;
}

.instructor-card__name {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

.instructor-card__certs {
  font-size: 0.8125rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--space-md);
  letter-spacing: 0.02em;
}

.instructor-card__bio {
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

/* Instructor cards on dark backgrounds keep their own text colors */
.section--dark .instructor-card {
  color: var(--color-text);
}

.section--dark .instructor-card h3 {
  color: var(--color-text);
}


/* ------------------------------------------------------------
   Instructor Profile (.instructor-profile)
   ------------------------------------------------------------ */
.instructor-profile {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
}

.instructor-profile__photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space-xl);
  border: 4px solid var(--color-primary-bg);
}

.instructor-profile__name {
  margin-bottom: var(--space-sm);
}

.instructor-profile__certs {
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--space-2xl);
}

.instructor-profile__bio {
  text-align: left;
  color: var(--color-muted);
  line-height: 1.8;
}


/* ------------------------------------------------------------
   Contact (.contact-grid, .contact-form, .contact-info)
   ------------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

.contact-form {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contact-info__item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.contact-info__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: var(--radius-md);
  background-color: var(--color-primary-bg);
  color: var(--color-primary);
  font-size: 1.25rem;
}

.contact-info__label {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: var(--space-xs);
}

.contact-info__value {
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* Contact info on dark backgrounds */
.section--dark .contact-info h3 {
  color: #ffffff;
}

.section--dark .contact-info p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.section--dark .contact-info a {
  color: rgba(255, 255, 255, 0.85);
}

.section--dark .contact-info a:hover {
  color: #ffffff;
}

/* Contact form keeps white bg on dark sections */
.section--dark .contact-form {
  background: var(--color-bg);
}

.section--dark .contact-form label {
  color: var(--color-text);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}


/* ------------------------------------------------------------
   Forms
   ------------------------------------------------------------ */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-bg);
  color: var(--color-text);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(3, 40, 212, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5l-5-5h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-row {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.form-row .form-group {
  flex: 1;
  min-width: 200px;
}

.form-hint {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin-top: var(--space-xs);
}

.form-section-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.required {
  color: var(--color-error);
  font-weight: 400;
}


/* ------------------------------------------------------------
   Footer (.footer)
   ------------------------------------------------------------ */
.footer {
  background-color: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  align-items: center;
  text-align: center;
}

.footer__logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: #ffffff;
  text-decoration: none;
}

.footer__logo img {
  height: 36px;
  width: auto;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__tagline {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  justify-content: center;
}

.footer__link {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: #ffffff;
}

.footer__copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}


/* ------------------------------------------------------------
   Auth Pages (.auth-page, .auth-card)
   ------------------------------------------------------------ */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--space-xl);
  background-color: var(--color-bg-light);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
}

.auth-card__logo {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-2xl);
}

.auth-card__logo img {
  height: 48px;
  width: auto;
}

.auth-card__title {
  text-align: center;
  margin-bottom: var(--space-xs);
}

.auth-card__subtitle {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9375rem;
  margin-bottom: var(--space-2xl);
}

.auth-card__footer {
  text-align: center;
  margin-top: var(--space-xl);
  font-size: 0.875rem;
  color: var(--color-muted);
}

.auth-card__footer a {
  font-weight: 600;
}


/* ------------------------------------------------------------
   Flash Messages (.flash-container, .flash)
   ------------------------------------------------------------ */
.flash-container {
  position: fixed;
  top: calc(var(--nav-height) + var(--space-md));
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  width: 100%;
  max-width: 560px;
  padding-inline: var(--space-lg);
  pointer-events: none;
}

.flash {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.flash--fade-out {
  opacity: 0;
  transform: translateY(-10px);
}

.flash--success {
  background-color: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid #bbf7d0;
}

.flash--error {
  background-color: var(--color-error-bg);
  color: var(--color-error);
  border: 1px solid #fecaca;
}

.flash--info {
  background-color: var(--color-info-bg);
  color: var(--color-info);
  border: 1px solid #bae6fd;
}

.flash--warning {
  background-color: var(--color-warning-bg);
  color: var(--color-warning);
  border: 1px solid #fde68a;
}

.flash__close {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
  padding: 0;
}

.flash__close:hover {
  opacity: 1;
}


/* ------------------------------------------------------------
   Utility Classes
   ------------------------------------------------------------ */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--color-muted);
}

.link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.link:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.link--light {
  color: rgba(255, 255, 255, 0.8);
}

.link--light:hover {
  color: #ffffff;
  text-decoration: underline;
}


/* ------------------------------------------------------------
   Fleet Grid (.fleet-grid, .fleet-card)
   ------------------------------------------------------------ */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-2xl);
}

.fleet-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

.fleet-card:hover {
  box-shadow: 0px 25px 45px 0px rgba(109, 123, 160, 0.2);
  transform: translateY(-4px);
}

.fleet-card__photo {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.fleet-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fleet-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-bg-muted) 0%, var(--color-bg-light) 100%);
  color: var(--color-muted);
}

.fleet-card__placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.35;
}

.fleet-card__info {
  padding: var(--space-lg) var(--space-xl) var(--space-xl);
  text-align: center;
}

.fleet-card__tail {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.fleet-card__model {
  font-size: 0.9375rem;
  color: var(--color-muted);
  margin-bottom: var(--space-xs);
}

.fleet-card__detail {
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin-bottom: var(--space-sm);
}

.fleet-card__type {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  background-color: var(--color-primary-bg);
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}


/* ------------------------------------------------------------
   Instructor Modal (.instructor-modal)
   ------------------------------------------------------------ */
.instructor-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.instructor-modal__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
}

.instructor-modal__content {
  position: relative;
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-2xl) var(--space-2xl);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
  box-shadow: var(--shadow-xl);
}

.instructor-modal__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--color-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
  padding: 0;
}

.instructor-modal__close:hover {
  color: var(--color-text);
}

.instructor-modal__photo {
  margin-bottom: var(--space-xl);
}

.instructor-modal__photo img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  border: 4px solid var(--color-primary-bg);
}

.instructor-modal__name {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.instructor-modal__certs {
  font-size: 0.875rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--space-md);
  letter-spacing: 0.02em;
}

.instructor-modal__phone {
  font-size: 0.9375rem;
  color: var(--color-muted);
  margin-bottom: var(--space-lg);
}

.instructor-modal__bio {
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.8;
  text-align: left;
  margin-bottom: var(--space-2xl);
  white-space: pre-line;
}


/* ------------------------------------------------------------
   Scroll Animations (data-animate)
   ------------------------------------------------------------ */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

[data-animate].animated {
  opacity: 1;
  transform: translateY(0);
}


/* ------------------------------------------------------------
   Responsive Utilities
   ------------------------------------------------------------ */
@media (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .hide-desktop {
    display: none !important;
  }
}


/* ------------------------------------------------------------
   Walkthrough Page (.walkthrough)
   ------------------------------------------------------------ */

/* Progress Bar */
.walkthrough__progress {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  z-index: 999;
  height: 4px;
  background-color: var(--color-border);
}

.walkthrough__progress-bar {
  height: 100%;
  width: 0%;
  background-color: var(--color-primary);
  transition: width 150ms ease;
}

/* Mini Hero */
.walkthrough__hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: calc(var(--nav-height) + var(--space-3xl)) var(--space-lg) var(--space-3xl);
  background: linear-gradient(135deg, #0a1230 0%, #0e1a3a 40%, #0328D4 100%);
  color: #ffffff;
  text-align: center;
}

.walkthrough__hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: var(--space-md);
  letter-spacing: -0.03em;
}

.walkthrough__hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-2xl);
  max-width: 500px;
  margin-inline: auto;
}

.walkthrough__hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  animation: walkthrough-bounce 2s ease-in-out infinite;
}

.walkthrough__hero-scroll svg {
  display: inline-block;
}

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

@media (min-width: 768px) {
  .walkthrough__hero-title {
    font-size: 3.25rem;
  }

  .walkthrough__hero-subtitle {
    font-size: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .walkthrough__hero-title {
    font-size: 4rem;
  }
}

/* FAQ Sections */
.walkthrough__section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--nav-height) + var(--space-2xl)) var(--space-lg) var(--space-2xl);
}

.walkthrough__section:nth-child(odd) {
  background-color: var(--color-bg-light);
}

.walkthrough__section:nth-child(even) {
  background-color: var(--color-bg);
}

.walkthrough__section--contact {
  background: var(--color-bg-dark) !important;
  color: var(--color-text-light);
}

.walkthrough__card {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.walkthrough__number {
  display: inline-block;
  padding: 0.3rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  background-color: var(--color-primary-bg);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-xl);
}

.walkthrough__question {
  font-size: 1.75rem;
  margin-bottom: var(--space-xl);
}

.walkthrough__answer {
  font-size: 1.0625rem;
  color: var(--color-muted);
  line-height: 1.8;
  text-align: left;
  margin-bottom: var(--space-2xl);
}

.walkthrough__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .walkthrough__question {
    font-size: 2.25rem;
  }
}


/* ------------------------------------------------------------
   Honeypot (hidden from humans)
   ------------------------------------------------------------ */
.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}
