/* ALM Aerospace site styles (design A, U22; Barlow, U23). White page, charcoal type, ALM red for accents and buttons. */

/* Barlow, latin subset, self-hosted. SIL Open Font License 1.1: /assets/fonts/OFL.txt */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-700.woff2") format("woff2"); }
:root {
  --red: #d0121a;          /* logo red; 5.5:1 on white */
  --red-dark: #a50e14;
  --charcoal: #434348;     /* logo "AEROSPACE" grey */
  --ink: #1d1d20;
  --muted: #5a5a60;
  --line: #e3e3e7;
  --bg-alt: #f4f4f6;
  --head: "Barlow", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #fff; color: var(--ink); font: 1.0625rem/1.6 var(--body); }
img { max-width: 100%; height: auto; }
a { color: var(--red-dark); }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--head); color: var(--charcoal); line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h2::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 12px; background: var(--red); border-radius: 2px; }
h3 { font-size: 1.15rem; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
.band { background: var(--bg-alt); }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--charcoal); }
.brand img { width: 64px; }
.brand span { font: 600 1.35rem var(--head); letter-spacing: .02em; }
.brand b { color: var(--red); font-weight: 600; }
nav { display: flex; gap: 8px; flex-wrap: wrap; }
nav a { padding: 10px 14px; border-radius: 6px; color: var(--charcoal); text-decoration: none; font-weight: 600; }
nav a:hover { background: var(--bg-alt); color: var(--ink); }
nav .nav-cta { background: var(--red); color: #fff; }
nav .nav-cta:hover { background: var(--red-dark); color: #fff; }

/* Hero */
.hero { padding: 64px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.eyebrow { margin: 0 0 12px; font: 600 .9rem var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--red-dark); }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); color: var(--ink); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-logo { justify-self: center; width: 100%; max-width: 380px; }

.btn { display: inline-block; padding: 14px 26px; border: 2px solid var(--red); border-radius: 6px; background: var(--red);
       color: #fff; font: 600 1rem var(--body); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--red-dark); }
.btn-ghost:hover { background: #fff; color: var(--red-dark); }

/* Services */
.cards { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.cards li { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 8px; padding: 24px; }
.cards p { margin: 0; color: var(--muted); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; }
.team { background: var(--bg-alt); border-radius: 8px; padding: 28px; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 8px 0 8px 28px; border-bottom: 1px solid var(--line); }
.ticks li:last-child { border-bottom: 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 17px; width: 12px; height: 6px; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.contact-line { margin: 12px 0; font-size: 1.1rem; }
.label { display: inline-block; min-width: 92px; font-weight: 600; color: var(--charcoal); }
form { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 28px; display: grid; gap: 6px; }
form label { font-weight: 600; color: var(--charcoal); margin-top: 8px; }
.opt { font-weight: 400; color: var(--muted); }
input, textarea { width: 100%; padding: 12px; font: inherit; border: 1px solid #b9b9c0; border-radius: 6px; }
input:focus, textarea:focus { border-color: var(--red); outline: 2px solid var(--red); outline-offset: 0; }
form .btn { justify-self: start; margin-top: 16px; }
.fine { margin: 8px 0 0; font-size: .9rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; }

/* Footer */
.foot { background: var(--charcoal); color: #fff; padding: 24px 0; font-size: .95rem; }
.foot a { color: #fff; }
.foot-row { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Phones and small tablets */
@media (max-width: 820px) {
  section { padding: 56px 0; }
  .wrap { padding: 0 16px; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-logo { order: -1; max-width: 240px; }
  .top-row { min-height: 64px; }
  .brand img { width: 48px; }
  .brand span { font-size: 1.15rem; }
  nav a { padding: 8px 10px; }
}
@media (max-width: 520px) {
  .top-row { flex-direction: column; align-items: stretch; padding-top: 8px; padding-bottom: 8px; gap: 4px; }
  nav { justify-content: space-between; }
  html { scroll-padding-top: 130px; }
}

/* Simple pages: privacy notice, thank-you, not found */
.page { padding: 56px 0 72px; min-height: 60vh; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); color: var(--charcoal); }
.page h2 { font-size: 1.35rem; margin-top: 1.6em; }
.page h2::after { width: 40px; height: 3px; margin-top: 8px; }
.page .updated { color: var(--muted); }
.page ul { padding-left: 1.2em; }
.page li { margin: 4px 0; }
.centered { text-align: center; }
.centered .wrap > img { width: 200px; }
.centered h1::after { content: ""; display: block; width: 56px; height: 4px; margin: 14px auto 0; background: var(--red); border-radius: 2px; }
.centered .actions { justify-content: center; }
