/* ==========================================================================
   Aircraft Performance Software — static site stylesheet
   Replaces the former WordPress "Flat Bootstrap" child theme.
   ========================================================================== */

@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/pt-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "PT Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/pt-sans-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/pt-sans-700.woff2") format("woff2");
}

:root {
  --blue: #336699;
  --blue-hover: #0a66c2;
  --blue-dark: #224466;
  --navy: #263e63;
  --sky: #dae3ec;
  --sky-active: #b9d4e7;
  --line: #c7d3dc;
  --shadow: #86a0b3;
  --text: #1a1a1a;
  --muted: #5a6470;
  --max: 1020px;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "PT Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

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

a { color: var(--blue); text-decoration: none; }
a:hover, a:focus { color: var(--blue-hover); text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; font-weight: 700; color: #000; }
h1 { font-size: 2em; margin: 0; }
h2 { font-size: 1.5em; margin: 0 0 .6em; scroll-margin-top: 1rem; }
h3 { font-size: 1.2em; margin: 1.4em 0 .5em; }
p  { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: .25em; }

hr { border: 0; border-top: 1px solid #e3e8ee; margin: 2.2em 0; }

blockquote {
  margin: 0 0 .8em;
  padding: .4em 1em;
  border-left: 4px solid var(--sky-active);
  background: #f5f8fb;
}
blockquote p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--blue); color: #fff; padding: .5em 1em; z-index: 100;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Header ---------- */

.site-header {
  background:
    linear-gradient(to right, rgba(218, 227, 236, .92) 0, rgba(218, 227, 236, .75) 30%, rgba(218, 227, 236, 0) 62%),
    var(--sky) url("../img/Banner_APP_composite_200px_k.jpg") no-repeat right center;
  min-height: 200px;
  display: flex;
  align-items: center;
}
.site-title {
  font-size: 2.5em;
  margin: 0;
  font-weight: 700;
  line-height: 1.1;
}
.site-title a { color: var(--navy); text-decoration: none; }
.site-tagline { font-size: 1.25em; margin: .2em 0 0; color: var(--navy); }

/* ---------- Navigation ---------- */

.site-nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 0 8px var(--shadow);
  position: relative;
  z-index: 10;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.site-nav li { margin: 0; }
.site-nav a {
  display: block;
  padding: 15px 15px;
  color: #666;
  font-size: 17px;
}
.site-nav a:hover,
.site-nav a:focus { color: #222; text-decoration: none; background: #f2f6f9; }
.site-nav a[aria-current="page"] { color: #333; background: var(--sky-active); }

.nav-toggle {
  display: none;
  margin: 8px 0 8px auto;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 9px 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: #999; border-radius: 1px;
}
.nav-toggle span + span { margin-top: 4px; }

/* ---------- Page title ---------- */

.page-header { padding: 28px 0 8px; }

.content { padding: 12px 0 48px; }

/* ---------- Layout helpers ---------- */

.split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px 32px;
  align-items: center;
  margin-bottom: 1em;
}
.split.half { grid-template-columns: 1fr 1fr; align-items: start; }
.split > * > :last-child { margin-bottom: 0; }

.justify { text-align: justify; hyphens: auto; }

.figure { margin: 1.5em auto; }
.figure img { margin: 0 auto; }
.figure.narrow { max-width: 600px; }
.figure.medium { max-width: 820px; }

.logo-app { max-width: 300px; width: 100%; margin: 0 auto; }

.logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 24px;
  margin: 0 0 1.2em;
}
.logo-grid a { display: block; }
.logo-grid a:hover { opacity: .8; }
.logo-grid img { width: 100%; max-width: 300px; }

/* ---------- Buttons ---------- */

.btn-row { text-align: center; margin: 1.4em 0; }
.btn-row.left { text-align: left; }

.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: 18px;
  line-height: 1.33;
  padding: 10px 18px;
  margin: 4px 6px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color .15s;
}
.btn:hover, .btn:focus { background: var(--blue-hover); color: #fff; text-decoration: none; }

.dl::after {
  content: "";
  display: inline-block;
  width: .9em; height: .9em;
  margin-left: .25em;
  vertical-align: -0.1em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v12m0 0-5-5m5 5 5-5M4 19h16' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v12m0 0-5-5m5 5 5-5M4 19h16' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

ul.ref-list li { margin-bottom: .75em; }

.partner {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 24px;
  align-items: center;
  margin-bottom: 1.2em;
}

/* ---------- Footer ---------- */

.site-footer { box-shadow: 0 0 8px var(--shadow); }

.footer-contact { padding: 28px 0 20px; font-size: .9em; }
.footer-contact h2 { font-size: 1.35em; margin-bottom: .5em; }

.footer-bar {
  background: var(--navy);
  color: #fff;
  padding: 14px 0;
  font-size: 15px;
}
.footer-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.footer-bar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.footer-bar li { margin: 0; }
.footer-bar li + li::before { content: "|"; color: #8094b3; margin: 0 .55em; }
.footer-bar a { color: #fff; }
.footer-bar a:hover, .footer-bar a:focus { color: var(--sky); }

/* ---------- Responsive ---------- */

@media (max-width: 991px) {
  .site-header { background-position: 70% center; }
}

@media (max-width: 767px) {
  body { font-size: 17px; }
  h1 { font-size: 1.7em; }
  .site-header {
    min-height: 120px;
    background:
      linear-gradient(rgba(218, 227, 236, .78), rgba(218, 227, 236, .78)),
      var(--sky) url("../img/Banner_APP_composite_200px_k.jpg") no-repeat 75% center / auto 120px;
  }
  .site-title { font-size: 1.6em; }
  .site-tagline { font-size: 1.05em; }

  .nav-toggle { display: block; }
  .site-nav .container { display: flex; flex-direction: column; }
  .site-nav ul { display: none; flex-direction: column; padding-bottom: 8px; }
  .site-nav.open ul { display: flex; }
  .site-nav a { padding: 10px 12px; }

  .split, .split.half { grid-template-columns: 1fr; }
  .justify { text-align: left; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); gap: 4px 16px; }
  .logo-app { max-width: 220px; }
  .partner { grid-template-columns: 1fr 100px; }
}

@media print {
  .site-nav, .nav-toggle, .footer-bar { display: none; }
  .site-header { background: none; min-height: 0; padding: 1em 0; }
}
