/* ==========================================================================
   Rally Jet Charters — Component Styles
   ========================================================================== */

/* ---- Layout primitives ---- */
.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-10));
}

.container-wide {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-10));
}

.section {
  padding-block: clamp(var(--space-12), 7vw, var(--space-32));
}

.section-sm {
  padding-block: clamp(var(--space-10), 5vw, var(--space-20));
}

.eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: 30px;
}

.lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 58ch;
  line-height: 1.55;
  margin-top:20px;
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text);
}
.skip-link:focus {
  top: var(--space-4);
}

/* ---- Header / Nav ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-4);
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-10));
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}

.brand-logo {
  height: 70px;
  width: auto;
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 6px 14px;
  flex-shrink: 0;
  object-fit: contain;
  box-shadow: 0 0 0 1px oklch(from var(--color-text) l c h / 0.06);
}

/* Home page: transparent logo over the hero */
.brand-logo.brand-logo--overlay {
  height: 70px;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Home page: header floats transparently over the hero image */
.header--overlay {
  position: absolute;
  left: 0;
  right: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
}
.header--overlay .nav-link,
.header--overlay .theme-toggle,
.header--overlay .menu-toggle {
  color: #ffffff;
}
.header--overlay .nav-link {
  font-weight: 600;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
}

/* The mobile-only action slot is empty while the desktop menu is shown. */
.nav-mobile-controls {
  display: none;
}

.nav-link {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-weight: 500;
}
.nav-link:hover {
  color: var(--color-text);
  background: oklch(from var(--color-text) l c h / 0.05);
}
.nav-link[aria-current='page'] {
  color: var(--color-text);
}

.nav-cta {
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-4);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
}
.theme-toggle:hover {
  color: var(--color-text);
  background: oklch(from var(--color-text) l c h / 0.05);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text);
}
.menu-toggle:hover {
  background: oklch(from var(--color-text) l c h / 0.05);
}

@media (max-width: 860px) {
  .header-inner {
    position: relative;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .nav-list {
    position: absolute;
    inset: 100% 0 auto;
    z-index: 20;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-1);
    padding: var(--space-4);
    margin: 0;
    background: #ffffff;
    border-bottom: 1px solid #d3cdbf;
    box-shadow: var(--shadow-lg);
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0.2s;
  }
  .nav-list[data-open='true'] {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
  }
  .nav-list .nav-link,
  .header--overlay .nav-list .nav-link {
    display: block;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    color: #1b3358;
  }
  .nav-list .nav-link:hover,
  .header--overlay .nav-list .nav-link:hover {
    background: #d7dfe9;
    color: #12233d;
  }
  .nav-mobile-controls {
    display: flex;
    justify-content: flex-end;
    margin-top: var(--space-2);
    padding-top: var(--space-3);
    border-top: 1px solid #d3cdbf;
  }
  .nav-mobile-controls .header-actions {
    justify-content: flex-end;
    width: 100%;
  }
  .nav-mobile-controls .theme-toggle,
  .nav-mobile-controls .menu-toggle,
  .header--overlay .nav-mobile-controls .theme-toggle,
  .header--overlay .nav-mobile-controls .menu-toggle {
    color: #1b3358;
  }
  .header[data-menu-open='true'] {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-cta {
    margin-top: var(--space-2);
    text-align: center;
  }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  font-family: var(--font-body);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  min-height: 44px;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
}

.btn-outline {
  border-color: oklch(from var(--color-text) l c h / 0.18);
  color: var(--color-text);
  background: transparent;
}
.btn-outline:hover {
  border-color: oklch(from var(--color-text) l c h / 0.35);
  background: oklch(from var(--color-text) l c h / 0.04);
}

.btn-ghost {
  color: var(--color-text-muted);
  background: transparent;
}
.btn-ghost:hover {
  color: var(--color-text);
}

.btn-lg {
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-base);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.15);
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    oklch(from var(--color-bg) l c h / 0.55) 0%,
    oklch(from var(--color-bg) l c h / 0.25) 35%,
    oklch(from var(--color-bg) l c h / 0.8) 80%,
    var(--color-bg) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

.hero h1 {
  font-size: var(--text-hero);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
  max-width: 14ch;
  margin-bottom: var(--space-6);
  color: #12202f;
  text-shadow: 0 2px 8px oklch(from var(--color-bg) l c h / 0.6);
}

.hero .lead {
  font-size: var(--text-lg);
  color: #f6f4ef;
  opacity: 1;
  max-width: 52ch;
  margin-bottom: var(--space-8);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Hero text colors for light and dark themes on every page. */
[data-theme='light'] .hero .eyebrow,
[data-theme='light'] .hero h1,
[data-theme='light'] .hero .lead,
[data-theme='light'] .page-hero .eyebrow,
[data-theme='light'] .page-hero h1,
[data-theme='light'] .page-hero .lead,
[data-theme='light'] .contact-hero .eyebrow,
[data-theme='light'] .contact-hero h1,
[data-theme='light'] .contact-hero .lead {
  color: #12202F;
}
[data-theme='dark'] .hero .eyebrow,
[data-theme='dark'] .hero h1,
[data-theme='dark'] .hero .lead,
[data-theme='dark'] .page-hero .eyebrow,
[data-theme='dark'] .page-hero h1,
[data-theme='dark'] .page-hero .lead,
[data-theme='dark'] .contact-hero .eyebrow,
[data-theme='dark'] .contact-hero h1,
[data-theme='dark'] .contact-hero .lead {
  color: #f6f4ef;
}

/* ---- Section heading block ---- */
.section-head {
  max-width: 62ch;
  margin-bottom: clamp(var(--space-8), 5vw, var(--space-16));
}
.section-head h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-3);
}
.section-head .lead {
  margin-top: var(--space-4);
}

/* ---- Feature grid (asymmetric) ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
@media (max-width: 720px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
}
.feature-card--wide {
  grid-column: 1 / -1;
}
.feature-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.feature-card p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
}
.feature-card .feature-num {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: var(--space-4);
}

/* ---- Split section (text + image) ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}
@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .split--reverse .split-media {
    order: -1;
  }
}

.split-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.split-content h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}
.split-content p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

/* ---- Stats row ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.1);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.1);
  padding-block: clamp(var(--space-8), 5vw, var(--space-12));
}
@media (max-width: 720px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
}
.stat-num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1;
}
.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

/* ---- Fleet cards ---- */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: var(--space-5);
}

.fleet-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}
.fleet-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.fleet-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.fleet-card-body {
  padding: var(--space-5) var(--space-5) var(--space-6);
}
.fleet-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.fleet-specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.08);
}
.fleet-spec {
  font-size: var(--text-sm);
}
.fleet-spec span {
  display: block;
  color: var(--color-text-faint);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

/* ---- Process / steps ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(var(--space-6), 4vw, var(--space-12));
}
@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
.step-num {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}
.step h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.step p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
}

/* ---- Quote block ---- */
.quote {
  max-width: 56ch;
  margin-inline: auto;
  text-align: left;
}
.quote blockquote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}
.quote cite {
  font-style: normal;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.quote cite strong {
  display: block;
  color: var(--color-text);
  font-weight: 500;
}

/* ---- Contact form ---- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.form-field--full {
  grid-column: 1 / -1;
}
.form-field label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}
.form-field input,
.form-field textarea,
.form-field select {
  padding: var(--space-3) var(--space-4);
  border: 1px solid oklch(from var(--color-text) l c h / 0.16);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-base);
  font-family: var(--font-body);
  min-height: 44px;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.12);
}
.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-3);
}

/* ---- Contact info list ---- */
.contact-info {
  display: grid;
  gap: var(--space-6);
}
.contact-info-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.contact-info-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-info-item h4 {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}
.contact-info-item p,
.contact-info-item a {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  text-decoration: none;
}
.contact-info-item a:hover {
  color: var(--color-text);
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.08);
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
  background: var(--color-surface-2);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.7fr) minmax(0, 1fr);
  justify-content: space-between;
  justify-items: start;
  text-align: left;
  gap: var(--space-8) clamp(var(--space-8), 7vw, var(--space-24));
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-10));
}
.footer-inner > :first-child {
  grid-column: auto;
}
.footer-brand {
  display: flex;
  justify-content: flex-start;
}
.footer-col {
  min-width: 0;
  text-align: left;
}
.footer-logo {
  display: block;
  height: 150px;
  width: auto;
  max-width: 100%;
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 6px 12px;
  flex-shrink: 0;
  object-fit: contain;
  margin: 0 0 var(--space-4);
  box-shadow: 0 0 0 1px oklch(from var(--color-text) l c h / 0.06);
}

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 36ch;
}
.footer-col h4 {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
  font-weight: 500;
}
.footer-col ul {
  list-style: none;
  display: grid;
  justify-items: start;
  gap: var(--space-3);
  padding: 0;
}
.footer-col a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--color-text);
}
.footer-bottom {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-6) clamp(var(--space-4), 4vw, var(--space-10)) 0;
  margin-top: var(--space-8);
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.06);
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: center;
  gap: var(--space-8);
  text-align: left;
}
.footer-bottom p {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.footer-disclaimer {
  font-size: 7px;
  max-width: 90ch;
  line-height: 1.3;
}

@media (max-width: 720px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
    gap: var(--space-8);
  }
  .footer-brand {
    justify-content: center;
  }
  .footer-col {
    text-align: center;
  }
  .footer-col ul {
    justify-items: center;
  }
  .footer-logo {
    margin-inline: auto;
  }
  .footer-bottom {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }
  .footer-disclaimer {
    text-align: center;
  }
}

/* ---- Page header (interior pages) ---- */
.page-hero {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24)) clamp(var(--space-10), 6vw, var(--space-16));
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
}
.page-hero h1 {
  font-size: var(--text-3xl);
  margin-top: var(--space-3);
  max-width: 16ch;
}
.page-hero .lead {
  margin-top: var(--space-5);
}

/* ---- Full-bleed image ---- */
.bleed {
  width: 100%;
  max-width: var(--content-full);
}
.bleed img {
  width: 100%;
  border-radius: 0;
}

/* ---- Reveal animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Keep hero content clear of the floating header */
.header--overlay ~ main .hero {
  min-height: 100vh;
  padding-top: 220px;
}
@media (max-width: 768px) {
  .brand-logo.brand-logo--overlay { height: 90px; }
  .header--overlay ~ main .hero { padding-top: 110px; }
}

/* ---- Team member ---- */
.team-member {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-top: var(--space-8);
}
.team-member img {
  width: 140px;
  height: 170px;
  object-fit: cover;
  object-position: center 25%;
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}
.team-member {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.team-member img { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.team-member:hover img,
.team-member:focus-visible img {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.team-link {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
}
.team-member:hover .team-link { text-decoration: underline; }
.team-caption {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.team-name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
}
.team-title {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ---- Bio dialog ---- */
.bio-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  height: fit-content;
  width: min(680px, calc(100vw - 2rem));
  max-height: calc(100vh - 3rem);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  overflow-y: auto;
}
.bio-dialog::backdrop {
  background: rgba(8, 14, 24, 0.6);
  backdrop-filter: blur(3px);
}
.bio-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-4);
  background: none;
  border: 0;
  font-size: 2rem;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
}
.bio-close:hover { color: var(--color-text); }
.bio-head {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}
.bio-head img {
  width: 96px;
  height: 116px;
  object-fit: cover;
  object-position: center 25%;
  border-radius: var(--radius-md);
}
.bio-head h2 {
  font-size: var(--text-xl);
  margin: 0 0 var(--space-1);
}
.bio-body p {
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  max-width: none;
}

/* ---- Team row ---- */
.team-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-top: var(--space-8);
}
.team-row .team-member { margin-top: 0; }
.team-member--static { cursor: default; }
.team-photo-placeholder {
  width: 140px;
  height: 170px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--radius-lg);
  background: #1b3358;
  color: #f6f4ef;
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.team-row { flex-wrap: nowrap; gap: var(--space-6); }
.team-row .team-member {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  flex: 0 1 180px;
}
.team-row .team-member img,
.team-row .team-photo-placeholder {
  width: 160px;
  height: 195px;
}

/* Home hero: lift headline so it clears the aircraft wing */
.header--overlay ~ main .hero {
  align-items: flex-start;
  padding-top: 190px;
}
.header--overlay ~ main .hero .hero-content {
  padding-top: 0;
}
@media (max-width: 768px) {
  .header--overlay ~ main .hero { padding-top: 120px; }
}
.header--overlay ~ main .hero { padding-top: 225px; }
.header--overlay ~ main .hero .hero-media img { object-position: center 15%; }
.header--overlay ~ main .hero { padding-top: 255px; }
.header--overlay ~ main .hero .hero-media img { object-position: center 0%; }
.header--overlay ~ main .hero { padding-top: 240px; }
.header--overlay ~ main .hero { padding-top: 228px; }
.team-row .team-member { flex: 1 1 0; min-width: 0; }
.team-row .team-member img,
.team-row .team-photo-placeholder { width: 100%; max-width: 160px; height: auto; aspect-ratio: 160 / 195; }
.team-row .team-name { white-space: nowrap; }
.team-row .team-member:last-child { flex-grow: 1.4; }
.team-row .team-member,
.team-row .team-member:last-child { flex: 1 1 0; }
.team-row .team-member img,
.team-row .team-photo-placeholder { width: 120px; max-width: 120px; height: 146px; aspect-ratio: auto; }
.team-row .team-member:last-child { flex-grow: 1.35; }
.team-row .team-member img,
.team-row .team-photo-placeholder {
  width: 120px !important;
  min-width: 120px;
  max-width: 120px !important;
  height: 146px !important;
  min-height: 146px;
  max-height: 146px;
  flex: 0 0 auto;
  box-sizing: border-box;
}

/* ---- Contact page ---- */
.contact-hero {
  padding-block: clamp(var(--space-12), 7vw, var(--space-20));
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}
.contact-copy h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: var(--space-3) 0 var(--space-4);
}
.contact-copy .lead {
  color: var(--color-text-muted);
  max-width: 44ch;
}
.contact-lines {
  margin-top: var(--space-8);
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.1);
}
.contact-line {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-block: var(--space-4);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.1);
  color: var(--color-text);
  text-decoration: none;
}
a.contact-line:hover .contact-value { color: var(--color-primary); }
.contact-label {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.contact-value {
  font-size: clamp(1.25rem, 2.2vw, .5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}
.contact-value--email { overflow-wrap: anywhere; }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}
.contact-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-media { order: -1; }
  .contact-media img { aspect-ratio: 16 / 10; }
}
[data-theme='dark'] a.contact-line:hover .contact-value { color: #9fb6d6; }
.contact-media img { aspect-ratio: 4 / 3; object-position: 30% center; }
.header--overlay ~ main .hero .hero-media img { filter: brightness(1.3) saturate(1.05); }
.header--overlay ~ main .hero .hero-media::after {
  background: linear-gradient(
    180deg,
    oklch(from var(--color-bg) l c h / 0.18) 0%,
    oklch(from var(--color-bg) l c h / 0.05) 10%,
    oklch(from var(--color-bg) l c h / 0.55) 82%,
    var(--color-bg) 100%
  );
}


/* ---- Mobile layout adjustments (all pages) ---- */
@media (max-width: 860px) {
  .header-inner {
    gap: var(--space-3);
    padding-block: var(--space-3);
  }
  .brand {
    min-width: 0;
    max-width: calc(100% - 102px);
  }
  .brand-logo,
  .brand-logo.brand-logo--overlay {
    height: 80px;
    max-width: 100%;
  }
  .split > *,
  .contact-grid > *,
  .feature-grid > *,
  .steps > * {
    min-width: 0;
  }
  .header--overlay ~ main .hero {
    padding-top: clamp(155px, 24vh, 215px);
  }
}

@media (max-width: 720px) {
  .team-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6);
  }
  .team-row .team-member,
  .team-row .team-member:last-child {
    width: 100%;
    min-width: 0;
    flex: none;
  }
  .team-row .team-member img,
  .team-row .team-photo-placeholder {
    width: 120px !important;
    min-width: 0;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0;
    max-height: none;
    aspect-ratio: 120 / 146;
  }
  .team-caption {
    max-width: 100%;
  }
  .team-row .team-name {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .footer-col,
  .footer-col a {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 600px) {
  .container,
  .container-wide {
    padding-inline: var(--space-4);
  }
  .brand-logo,
  .brand-logo.brand-logo--overlay {
    height: 70px;
  }
  .section {
    padding-block: var(--space-10);
  }
  .page-hero,
  .contact-hero {
    padding-block: var(--space-10);
  }
  .hero h1 {
    font-size: clamp(2.25rem, 19vw, 3.25rem);
  }
  .hero .lead {
    font-size: var(--text-base);
  }
  .page-hero h1,
  .contact-copy h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
    overflow-wrap: break-word;
  }
  .feature-card {
    padding: var(--space-5);
  }
  .feature-card ul[style*='grid-template-columns'] {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .contact-actions .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
  .contact-value {
    overflow-wrap: anywhere;
  }
  .footer-logo {
    max-height: 110px;
  }
  .footer-disclaimer {
    font-size: 11px;
    line-height: 1.5;
  }
  .bio-dialog {
    width: calc(100vw - 1.5rem);
    max-height: calc(100dvh - 1.5rem);
    padding: var(--space-5);
  }
  .bio-head {
    align-items: flex-start;
    gap: var(--space-3);
  }
  .bio-head img {
    width: 72px;
    height: 88px;
    flex-shrink: 0;
  }
}


@media (max-width: 600px) {

  /* 1. Position the entire hero text */
  .header--overlay ~ main .hero {
    padding-top: 170px;
  }

  /* 2. Space between eyebrow and heading */
  .hero .eyebrow {
    margin-bottom: 20px;
  }

  /* 3. Heading line height and bottom spacing */
  .hero h1 {
    line-height: 1.05;
    margin-bottom: 30px;
  }

  /* 4. Paragraph line spacing */
  .hero .lead {
    line-height: 1.6;
  }

}


/* ---- Full-width section intro copy ----
   Allows the paragraphs below section <h2> headings to use the full
   container width while keeping the heading visually constrained. */
.section-head {
  width: 100%;
  max-width: none;
}

.section-head h2 {
  width: 100%;
  margin-bottom: var(--space-4);
}

.section-head > p:not(.eyebrow) {
  width: 100%;
  max-width: none;
}
