/* ==========================================================================
   Altos Aviation
   Palette and type follow the Altos Brand Guidelines:
   Altos Navy #152950, Altitude Blue #1973B9, Sky Grey #EAF0F6, Cloud White #FFFFFF.
   Inter is the primary typeface and Libre Baskerville the secondary. Both are
   self-hosted from assets/fonts under the SIL Open Font License.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Libre Baskerville";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/libre-baskerville-latin.woff2") format("woff2");
}

:root {
  --navy: #152950;
  --blue: #1973B9;
  --mist: #EAF0F6;        /* Sky Grey */
  --white: #FFFFFF;       /* Cloud White */

  /* Functional tints of Navy. No new hues. */
  --muted: #46536D;       /* secondary text: 7.7:1 on white, 6.7:1 on Sky Grey */
  --rule: #D5DDE8;        /* hairlines */
  --field: #77839B;       /* form control borders: 3.8:1 on white */
  --error: #B42318;       /* form validation only */

  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 72px;
  --section: clamp(56px, 8vw, 104px);
  --radius: 6px;
}

/* Base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--navy); }

h1, h2 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.9rem); line-height: 1.1; }
h2 { font-size: clamp(1.7rem, 1.35rem + 1.5vw, 2.5rem); }
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.35; }
p { text-wrap: pretty; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--white); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Dark surfaces (navy, and the Altitude Blue closing band) */
.on-dark { background: var(--navy); color: var(--white); }
.on-dark :focus-visible { outline-color: var(--white); }
.on-dark a:not(.btn) { color: var(--white); }
.on-dark a:not(.btn):hover { color: var(--mist); }

/* Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 26px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: .9375rem; }
.btn-lg { min-height: 60px; padding: 14px 34px; font-size: 1.0625rem; }

.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--navy); color: var(--white); }
.on-dark .btn-primary:hover { background: var(--white); color: var(--navy); }
.btn-primary:disabled { opacity: .7; cursor: progress; }

.btn-outline-light { border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn-outline-light:hover { border-color: var(--white); background: var(--white); color: var(--navy); }

.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--mist); color: var(--navy); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 29.99em) {
  .cta-row .btn { flex: 1 1 auto; }
}

.text-link { font-weight: 600; }

/* Eyebrow label */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-family: var(--sans);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before { content: ""; flex: none; width: 28px; height: 2px; background: var(--blue); }
.on-dark .eyebrow { color: rgba(255, 255, 255, .8); }

/* Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 20px;
  min-height: var(--header-h);
}

/* Full primary lockup, never below 180px wide (brand minimum). */
.brand { display: block; flex: none; padding: 10px 0; }
.brand img { width: 180px; }

.menu-toggle { display: none; }
.js .menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1.5px solid var(--navy);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
}
.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform .2s ease, background-color .2s ease;
}
.menu-icon { position: relative; }
.menu-icon::before,
.menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

/* Small screens: without JavaScript the nav simply wraps below the logo. */
.site-nav { flex-basis: 100%; padding: 0 0 16px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: grid; }
.site-nav a:not(.btn) {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--rule);
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"]:not(.btn) { color: var(--blue); }
.nav-cta { padding-top: 16px; }
.nav-cta .btn { width: 100%; }

.js .site-nav {
  display: none;
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  right: 0;
  padding: 4px var(--gutter) 20px;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 18px 24px -18px rgba(21, 41, 80, .35);
}
.js .site-nav.is-open { display: block; }

@media (min-width: 48em) {
  :root { --header-h: 84px; }
  .brand img { width: clamp(190px, 17vw, 224px); }
  .js .menu-toggle { display: none; }
  .site-nav,
  .js .site-nav {
    display: block;
    position: static;
    flex-basis: auto;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .site-nav ul { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 34px); }
  .site-nav a:not(.btn) { min-height: 44px; border-bottom: 0; }
  .site-nav a[aria-current="page"]:not(.btn) {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
  }
  .nav-cta { padding-top: 0; }
  .nav-cta .btn { width: auto; }
}

/* Heroes
   ========================================================================== */

.hero { padding-block: clamp(48px, 8vw, 104px) clamp(56px, 9vw, 112px); overflow: hidden; }
.hero-inner { display: grid; gap: 48px; align-items: center; }
/* Sized from its column so the headline breaks cleanly: three lines on phones, two on wide screens. */
.hero-copy { container-type: inline-size; }
.hero h1 { font-size: clamp(1.75rem, 10.9cqi, 3.6rem); }

.lede {
  max-width: 46ch;
  margin-top: 20px;
  font-size: clamp(1.125rem, 1.02rem + .45vw, 1.3rem);
  line-height: 1.55;
  color: var(--muted);
}
.on-dark .lede { color: rgba(255, 255, 255, .84); }

.page-hero { padding-block: clamp(48px, 8vw, 96px) clamp(48px, 7vw, 88px); }
.page-hero h1 { max-width: 14.5em; }

@media (min-width: 60em) {
  .hero-inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); }
  .hero h1 { font-size: clamp(2.25rem, 8.9cqi, 3.6rem); }
}

/* Vertical profile illustration (decorative) */
.profile { width: 100%; max-width: 480px; justify-self: center; }
@media (min-width: 60em) {
  .profile { max-width: 560px; }
}
.profile-svg { width: 100%; overflow: visible; }
.profile-grid line { stroke: rgba(255, 255, 255, .14); stroke-width: 1; stroke-dasharray: 4 8; }
.profile-ground { stroke: rgba(255, 255, 255, .4); stroke-width: 2; }
.profile-path { fill: none; stroke: var(--blue); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.fix circle { fill: var(--navy); stroke: var(--blue); stroke-width: 3; }
.fix-final circle { fill: var(--white); stroke: var(--white); }
.fix text { fill: rgba(255, 255, 255, .92); font-family: var(--sans); font-size: 17px; font-weight: 600; }

@media (max-width: 39.99em) {
  .fix text { font-size: 22px; }
}

@media (prefers-reduced-motion: no-preference) {
  .profile-path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: climb 1.8s .25s cubic-bezier(.55, 0, .25, 1) forwards;
  }
  .fix { opacity: 0; animation: appear .35s ease forwards; }
  .fix:nth-child(1) { animation-delay: .35s; }
  .fix:nth-child(2) { animation-delay: 1s; }
  .fix:nth-child(3) { animation-delay: 1.3s; }
  .fix:nth-child(4) { animation-delay: 1.85s; }
}
@keyframes climb { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

/* Sections
   ========================================================================== */

.section { padding-block: var(--section); }
.section-tint { background: var(--mist); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.service-num {
  display: block;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--blue);
}

.card-title {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.15rem + .6vw, 1.55rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.005em;
}

/* Home service strip: each item is one large link target. */
.service-strip { list-style: none; padding: 0; display: grid; border-top: 2px solid var(--navy); }
.service-strip li { position: relative; display: flex; flex-direction: column; padding: 24px 0 28px; border-bottom: 1px solid var(--rule); }
.service-strip .card-title { margin-top: 10px; }
.service-strip .card-title a { color: var(--navy); text-decoration: none; }
.service-strip .card-title a::after { content: ""; position: absolute; inset: 0; }
.service-strip li:hover .card-title a { color: var(--blue); }
.service-strip p { max-width: 34ch; margin-top: 8px; color: var(--muted); }
.card-arrow { margin-top: 16px; color: var(--blue); }
.card-arrow svg { width: 22px; height: 22px; transition: transform .15s ease; }
.service-strip li:hover .card-arrow svg { transform: translateX(4px); }

@media (min-width: 48em) {
  .service-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-strip li { padding: 28px 28px 32px; }
  .service-strip li + li { border-left: 1px solid var(--rule); }
  .service-strip li:first-child { padding-left: 0; }
  .service-strip li:last-child { padding-right: 0; }
  .card-arrow { margin-top: auto; padding-top: 20px; }
}

/* Proof strip */
.proof { padding-block: clamp(48px, 7vw, 88px); background: var(--mist); }
.proof-inner { display: grid; gap: 14px; }
.proof .eyebrow { margin-bottom: 0; color: var(--navy); }
.proof-line {
  max-width: 42ch;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.05rem + 1vw, 1.8rem);
  line-height: 1.5;
}
@media (min-width: 60em) {
  .proof-inner { grid-template-columns: 200px minmax(0, 1fr); gap: 48px; align-items: baseline; }
}

/* Closing band */
.closing { padding-block: clamp(48px, 7vw, 80px); background: var(--blue); }
.closing-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.closing-title { max-width: 15em; font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.3rem); }
.closing .cta-row { margin-top: 0; }

/* About
   ========================================================================== */

.split { display: grid; gap: clamp(48px, 6vw, 88px); }
@media (min-width: 60em) {
  .split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
}

.prose > * + * { margin-top: 18px; }
.prose > h2 + p { margin-top: 24px; }
.prose p { max-width: 60ch; }

.callout {
  margin-top: 32px;
  padding: 22px 24px;
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--mist);
}
.callout-title { font-family: var(--sans); font-size: 1.0625rem; font-weight: 700; letter-spacing: 0; line-height: 1.4; }
.callout p { margin-top: 6px; color: var(--muted); }

.audience-title { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
.audience-list { list-style: none; padding: 0; margin-top: 24px; display: grid; gap: 12px; }
.audience-list li { padding: 14px 0 14px 20px; border-left: 3px solid var(--blue); }
.audience-list p { margin-top: 4px; color: var(--muted); }

/* Services
   ========================================================================== */

.service-cards { list-style: none; padding: 0; display: grid; gap: 20px; }
.service-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--navy);
  border-radius: var(--radius);
  background: var(--white);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.service-card .card-title { font-size: clamp(1.35rem, 1.2rem + .6vw, 1.6rem); }
.service-card p { color: var(--muted); }
.service-card .service-for {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  color: var(--navy);
  font-size: .9375rem;
}
.service-for strong {
  display: block;
  margin-bottom: 4px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
@media (min-width: 60em) {
  .service-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}

/* Contact
   ========================================================================== */

.contact-hero-inner { display: grid; gap: 36px; }
.contact-actions { display: grid; gap: 12px; justify-items: start; }
.contact-label {
  margin-top: 12px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
}
.contact-emails { list-style: none; padding: 0; display: grid; gap: 6px; font-size: 1.0625rem; }
.contact-emails a { font-weight: 600; overflow-wrap: break-word; }
@media (min-width: 60em) {
  .contact-hero-inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; }
  .contact-actions { justify-self: end; }
}

.contact-grid { display: grid; gap: clamp(32px, 5vw, 72px); }
@media (min-width: 60em) {
  .contact-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; }
}
.contact-aside h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); }
.contact-aside > p { max-width: 40ch; margin-top: 16px; color: var(--muted); }
.note {
  max-width: 40ch;
  margin-top: 24px;
  padding: 16px 18px;
  border-left: 3px solid var(--blue);
  background: var(--mist);
  font-size: .9375rem;
}

/* Contact form */
.contact-form,
.form-success {
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--navy);
  border-radius: var(--radius);
  background: var(--white);
}
.contact-form { display: grid; gap: 20px; }
.field-row { display: grid; gap: 20px; }
@media (min-width: 40em) {
  .field-row { grid-template-columns: 1fr 1fr; align-items: start; }
}
.field { display: grid; gap: 6px; min-width: 0; }
.field label,
.role-field legend { font-size: .9375rem; font-weight: 600; color: var(--navy); }
.optional { font-weight: 400; color: var(--muted); }
.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1.5px solid var(--field);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  font: inherit;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field textarea:focus { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error,
.form-error { color: var(--error); font-size: .9rem; font-weight: 500; }

.role-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.role-field legend { padding: 0; margin-bottom: 10px; }
.role-options { display: flex; flex-wrap: wrap; gap: 8px; }
.role-option { position: relative; display: inline-flex; }
.role-option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.role-option span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1.5px solid var(--field);
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 500;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.role-option input:hover + span { border-color: var(--blue); }
.role-option input:checked + span { border-color: var(--navy); background: var(--navy); color: var(--white); }
.role-option input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.role-field.invalid .role-option span { border-color: var(--error); }

.contact-form .btn { justify-self: start; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-mailto {
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--mist);
  font-size: .9375rem;
}
.form-mailto a { color: var(--navy); font-weight: 600; overflow-wrap: break-word; }
.form-success { border-top-color: var(--blue); }
.form-success p { font-size: clamp(1.2rem, 1.1rem + .5vw, 1.4rem); font-weight: 600; }
.form-mailto:focus,
.form-success:focus { outline: none; }

/* Footer
   ========================================================================== */

.site-footer { padding-block: 56px 32px; font-size: .9375rem; color: rgba(255, 255, 255, .8); }
.footer-grid { display: grid; gap: 36px; }
.footer-logo { width: 200px; }
.footer-brand p { max-width: 44ch; margin-top: 14px; }
.footer-brand .footer-note { color: var(--white); }
.footer-label {
  margin-bottom: 12px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}
.footer-links { list-style: none; padding: 0; display: grid; gap: 8px; }
.site-footer .footer-links a { text-decoration: none; overflow-wrap: break-word; }
.site-footer .footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-legal {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: .875rem;
  color: rgba(255, 255, 255, .7);
}
@media (min-width: 40em) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 48px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (min-width: 60em) {
  .footer-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, .7fr) minmax(0, 1fr); }
  .footer-brand { grid-column: auto; }
}

/* Modes
   ========================================================================== */

@media (forced-colors: active) {
  .role-option input:checked + span { forced-color-adjust: none; background: Highlight; color: HighlightText; }
  .eyebrow::before { background: CanvasText; }
}

@media print {
  .site-header, .profile, .cta-row, .closing, .skip-link { display: none !important; }
  .on-dark, .closing, .proof { background: none; color: #000; }
  .on-dark .lede, .on-dark .eyebrow, .on-dark a:not(.btn) { color: #000; }
  .footer-logo { display: none; }
}
