/* ================================================================
   Denver Avionics — stylesheet
   Single file, no build step, no external font deps.
   ================================================================ */

:root {
  --bg: #0b1220;
  --bg-elev: #111a2e;
  --bg-alt: #f5f7fb;
  --ink: #0b1220;
  --ink-soft: #3b465c;
  --muted: #6b7792;
  --line: #e4e8f1;
  --line-dark: #1f2b45;
  --accent: #38bdf8;         /* sky-400 */
  --accent-hot: #0ea5e9;     /* sky-500 */
  --accent-ink: #061826;
  --paper: #ffffff;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 10px 30px rgba(11, 18, 32, 0.08);
  --shadow-lg: 0 20px 60px rgba(11, 18, 32, 0.18);
  --maxw: 1140px;
  --fs-h1: clamp(2.25rem, 4.6vw, 3.75rem);
  --fs-h2: clamp(1.75rem, 3vw, 2.5rem);
  --fs-h3: 1.2rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,h2,h3 { line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.015em; }
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--accent-hot); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-hot);
  margin: 0 0 1em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: #ffffff; color: var(--accent-ink);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}
.btn-primary:hover { background: #f1f5fa; }
.btn-ghost {
  background: transparent; color: #fff;
  border-color: rgba(255,255,255,0.3);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.92rem; }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.9rem; padding-bottom: 0.9rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: #fff; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; color: var(--accent); }
.brand-text { font-weight: 700; letter-spacing: 0.01em; }
.site-header nav { display: flex; align-items: center; gap: 1.5rem; }
.site-header nav a { color: rgba(255,255,255,0.78); font-size: 0.95rem; }
.site-header nav a:hover { color: #fff; text-decoration: none; }
.site-header nav a.btn { color: var(--accent-ink); }

@media (max-width: 640px) {
  .site-header nav a:not(.btn) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 7rem 0 5rem;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;            /* override UA inline default — otherwise some engines leave whitespace that pushes flex siblings */
  pointer-events: none;      /* text is still selectable; video doesn't steal clicks */
  border: 0;
  z-index: 0;
}
.hero-bg {
  position: absolute; inset: 0;
  /* Gradient overlay — darkens video so the hero text stays legible top-to-bottom. */
  background:
    linear-gradient(180deg, rgba(11,18,32,0.55) 0%, rgba(11,18,32,0.9) 100%);
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero-bg {
    background:
      linear-gradient(180deg, rgba(11,18,32,0.55) 0%, rgba(11,18,32,0.9) 100%),
      url('hero-poster.jpg') center/cover no-repeat,
      linear-gradient(135deg, #0b1220 0%, #1e3a5f 100%);
  }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 30%, rgba(56,189,248,0.15), transparent 60%);
  z-index: 2;
}
.hero-inner { position: relative; z-index: 3; }
.hero .eyebrow { color: var(--accent); }
.hero h1 { color: #fff; max-width: 20ch; }
.lede {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
  max-width: 58ch;
  margin-bottom: 2rem;
}
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--bg-elev);
  color: #fff;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 1.5rem 1.5rem;
}
.trust-row > div { text-align: center; }
.trust-row strong { display: block; font-size: 1.1rem; color: var(--accent); }
.trust-row span { color: rgba(255,255,255,0.65); font-size: 0.88rem; }
@media (max-width: 720px) {
  .trust-row { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg); color: #fff; }
.section-dark h2, .section-dark .eyebrow { color: #fff; }
.section-dark .eyebrow { color: var(--accent); }
.section-dark p { color: rgba(255,255,255,0.78); }
.section-head { max-width: 42rem; margin: 0 auto 3rem; text-align: center; }

/* ---------- Service cards ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 920px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .service-grid { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #cfd6e5;
}
.card-icon {
  font-size: 1.6rem;
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
  border-radius: 12px;
  margin-bottom: 1rem;
}
.card h3 { color: var(--ink); }
.card p { color: var(--ink-soft); margin-bottom: 1rem; }
.card-list {
  list-style: none; padding: 0; margin: 0;
  font-size: 0.93rem; color: var(--muted);
}
.card-list li {
  padding: 0.3rem 0 0.3rem 1.3rem;
  position: relative;
}
.card-list li::before {
  content: "→";
  position: absolute; left: 0;
  color: var(--accent-hot);
  font-weight: 700;
}

/* ---------- Process ---------- */
.process {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
@media (max-width: 860px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .process { grid-template-columns: 1fr; } }

.process li {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--line);
}
.step-num {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-hot);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.process h3 { margin-bottom: 0.4rem; }
.process p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* ---------- Credentials / two-col ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 2.5rem; } }

.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.checklist li {
  padding: 0.6rem 0 0.6rem 2rem;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "✓";
  position: absolute; left: 0;
  width: 22px; height: 22px;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 800;
  top: 0.6rem;
}

.badge-stack {
  display: grid;
  gap: 1rem;
}
.badge {
  background: linear-gradient(135deg, #0b1220, #1e3a5f);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow);
}
.badge strong {
  font-size: 1.8rem;
  color: var(--accent);
  letter-spacing: -0.02em;
  min-width: 70px;
}
.badge span { color: rgba(255,255,255,0.85); font-size: 0.95rem; line-height: 1.35; }

/* ---------- Contact ---------- */
.contact-direct {
  list-style: none; padding: 0; margin: 2rem 0 0;
}
.contact-direct li {
  display: grid;
  grid-template-columns: 120px 1fr;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  align-items: center;
}
.contact-direct li span {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.contact-direct a { color: var(--accent); }

.contact-form {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.hp { position: absolute; left: -9999px; }

.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.4rem;
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.1);
}
.field textarea { resize: vertical; min-height: 110px; }
.field select option { color: var(--ink); }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 500px) { .field-row { grid-template-columns: 1fr; } }

.form-note {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin: 1rem 0 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg);
  color: rgba(255,255,255,0.6);
  padding: 2rem 0;
  border-top: 1px solid var(--line-dark);
  font-size: 0.9rem;
}
.footer-row {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-row a { color: rgba(255,255,255,0.75); }
.footer-row p { margin: 0; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
