
:root {
  --brand-blue: #0b3a5a;
  --accent: #0fb9d8;
  --max-width: 1200px;
}

/* ===================== RESET ===================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }

/* ===================== BASE ===================== */
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #0f172a;
  line-height: 1.55;
  font-size: 2rem;
  text-align: center;
  background: #fff;
}

/* ===================== HEADER ===================== */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  max-width: var(--max-width);
  width: min(100%, var(--max-width));
  margin-left: auto;
  margin-right: auto;
  padding: 1.75rem 1.5rem;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* NAV NOW ON THE LEFT */
.nav {
  order: 1;
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 1.5rem;

  font-size: 1.6rem;
  line-height: 1.2;
  text-align: left;
}

/* LOGO NOW ON THE RIGHT (desktop “yellow box”) */
.logo-container {
  order: 2;
  flex: 0 0 1440px;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

/* NAV LINKS */
.nav a {
  text-decoration: none;
  color: #0f172a;
  font-weight: 600;
  display: inline-block;
  padding: 0.15rem 0.25rem;
  white-space: nowrap;
}

.nav .cta {
  color: var(--accent);
  font-weight: 800;
}

/* ===================== HERO ===================== */
.hero {
  background: linear-gradient(180deg, #0b3a5a, #0a2f49);
  color: white;
  padding: 7rem 1.5rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(3.6rem, 6vw, 5.2rem);
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 2.2rem;
  max-width: 980px;
  margin: 0 auto 2.5rem;
}

.hero-button {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 1.25rem 2.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.8rem;
}

/* ===================== SECTIONS ===================== */
.content,
.diagram-section {
  max-width: var(--max-width);
  width: min(100%, var(--max-width));
  margin-left: auto;
  margin-right: auto;
  padding: 5rem 1.5rem;
  text-align: center;
}

.content.alt,
.diagram-section.alt {
  background: #f8fafc;
}

h2 {
  font-size: 3.6rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.centered-subheading {
  font-size: 2.6rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.centered-paragraph {
  max-width: 980px;
  margin: 1.25rem auto 0;
  text-align: center;
}

/* Lists */
.center-list {
  list-style-position: inside;
  margin: 1.75rem auto 0;
  padding: 0;
  max-width: 980px;
  text-align: center;
}

.center-list li {
  margin-bottom: 1rem;
  font-size: 2rem;
  text-align: center;
}

/* Diagrams */
.diagram,
.diagram-section img {
  max-width: 980px;
  width: 100%;
  height: auto;
  margin: 3rem auto 2rem;
}

/* ===================== PILOT ===================== */
#pilot {
  padding-bottom: 9rem;
}

.pilot-form {
  max-width: 760px;
  margin: 2.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pilot-form input {
  padding: 1.25rem;
  font-size: 1.8rem;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  text-align: center;
}

.pilot-form button {
  padding: 1.25rem;
  font-size: 2rem;
  font-weight: 900;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  margin-bottom: 2rem;
}

/* ===================== FOOTER ===================== */
.footer {
  position: static;
  background: #0b3a5a;
  color: white;
  padding: 2.5rem 1.5rem;
  font-size: 1.4rem;
  text-align: center;
}

/* ===================== MOBILE AUTOSCALE ===================== */
@media (max-width: 900px) {
  body {
    font-size: clamp(16px, 4.2vw, 20px);
    text-align: center;
  }

  .header-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 1rem;
    gap: 0.75rem;
  }

  /* Mobile: logo on top, nav below */
  .logo-container {
    order: 1;
    flex: 0 0 auto;
    width: 100%;
    height: auto;          /* allow natural height */
    max-height: none;
    overflow: visible;
  }

  /* Mobile logo AUTOSCALE (prevents shield/A clipping) */
  .logo-img {
    width: min(90vw, 420px);  /* scale by width */
    height: auto;
    max-width: 100%;
    max-height: none;         /* remove height clamp that caused cropping */
    object-fit: contain;
    margin: 0 auto;
  }

  .nav {
    order: 2;
    width: 100%;
    justify-content: center;
    gap: 0.75rem 1rem;
    font-size: 1rem;
    text-align: center;
  }

  .hero {
    padding: 3.25rem 1rem;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.15;
  }

  .hero p {
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    padding: 0 0.5rem;
  }

  .hero-button {
    font-size: 1.05rem;
    padding: 0.9rem 1.4rem;
  }

  .content,
  .diagram-section {
    padding: 3rem 1rem;
  }

  h2 {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .centered-subheading {
    font-size: 1.3rem;
  }

  .diagram,
  .diagram-section img {
    max-width: 95vw;
    margin: 1.5rem auto 1.25rem;
  }

  .pilot-form {
    width: 100%;
    max-width: 520px;
  }

  .pilot-form input {
    font-size: 1rem;
    padding: 0.9rem;
  }

  .pilot-form button {
    font-size: 1.05rem;
    padding: 0.95rem;
    margin-bottom: 2.5rem;
  }

  #pilot {
    padding-bottom: 5rem;
  }
}

/* ===================== THANK YOU PAGE CENTERING ===================== */

.thank-you-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Main content is perfectly centered */
.thank-you-content {
  flex: 1;
  display: flex;
  align-items: center;      /* vertical centering */
  justify-content: center;  /* horizontal centering */
  text-align: center;
  padding: 2rem 1rem;
}

/* Constrain width so it looks intentional */
.thank-you-box {
  max-width: 720px;
  width: 100%;
}

/* Logo scaling */
.thank-you-box .logo-img {
  max-width: 420px;
  width: 90%;
  height: auto;
  margin: 0 auto 2rem;
}

/* Typography */
.thank-you-box h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

.thank-you-box p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

/* Button */
.thank-you-box a.button {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.9rem 1.6rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
}

/* Footer stays at bottom */
.thank-you-footer {
  background: #0b3a5a;
  color: white;
  text-align: center;
  padding: 1.25rem;
  font-size: 0.9rem;
}

/* Mobile fine tuning */
@media (max-width: 600px) {
  .thank-you-box h1 {
    font-size: 1.9rem;
  }

  .thank-you-box p {
    font-size: 1rem;
  }
}

/* ===== THANK YOU PAGE: keep original format, center content, footer at bottom ===== */
body.thank-you-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Make the content area fill the space between header and footer and center it */
body.thank-you-layout .thank-you-content {
  flex: 1;
  display: flex;
  align-items: center;      /* vertical center */
  justify-content: center;  /* horizontal center */
  padding: 2rem 1.5rem;
}

/* Keep the centered block a sensible width */
body.thank-you-layout .thank-you-inner {
  max-width: 900px;
  width: 100%;
}

/* ===== THANK YOU PAGE HARD LOCK ===== */
body.thank-you-layout{
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
}

body.thank-you-layout > .site-header{
  flex: 0 0 auto !important;
}

body.thank-you-layout > .content{
  flex: 1 1 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 2rem 1.5rem !important;
}

body.thank-you-layout > .footer{
  flex: 0 0 auto !important;
  margin-top: auto !important;
}