/* ── Boreal Avionics — borealavionics.ca stylesheet ──────────────────── */
/* Brand colours: Boreal Teal #0E7490 · Deep Sky #155E75 · Graphite #1F2937 */
/* Ice #E0F2FE                                                             */

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

:root {
  --teal:     #0E7490;
  --teal-300: #7DD3E8;
  --sky:      #155E75;
  --graph:    #1F2937;
  --ice:      #E0F2FE;
  --white:    #FFFFFF;
  --off-wh:   #F8FAFC;
  --grey-50:  #F1F5F9;
  --grey-100: #E2E8F0;
  --grey-300: #CBD5E1;
  --grey-500: #64748B;
  --grey-700: #334155;
  --radius:   8px;
  --font:     'Inter', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  color: var(--graph);
  background: var(--white);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 2px;
}

img, svg { display: block; }

/* ── Layout helpers ──────────────────────────────────────────────────── */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navigation ──────────────────────────────────────────────────────── */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--grey-100);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo:hover { text-decoration: none; }

.logo-mark { width: 34px; height: 34px; flex-shrink: 0; }

.logo-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--graph);
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--grey-700);
  padding: 7px 14px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.nav-links a:hover {
  background: var(--grey-50);
  color: var(--graph);
  text-decoration: none;
}

.nav-links a.btn-nav {
  background: var(--teal);
  color: var(--white);
  font-weight: 600;
  margin-left: 8px;
}

.nav-links a.btn-nav:hover {
  background: var(--sky);
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--graph) 0%, #0d3545 55%, var(--sky) 100%);
  color: var(--white);
  padding: 130px 0 120px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg svg {
  width: 100%;
  height: 100%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-300);
  margin-bottom: 28px;
}

.hero-dash {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--teal);
}

.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.6px;
  margin-bottom: 28px;
}

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.75;
  color: #C5DFE8;
  max-width: 680px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--sky);
}

.btn-secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.02);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 860px;
  margin-bottom: 34px;
}

.stat-card {
  padding: 18px 18px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.stat-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-300);
}

.stat-card strong {
  font-size: 1rem;
  line-height: 1.4;
  color: var(--white);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: #94A3B8;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 680px;
}

.hero-meta-sep {
  color: var(--teal);
}

/* ── Pillars strip ───────────────────────────────────────────────────── */
.pillars {
  background: var(--white);
  border-bottom: 1px solid var(--grey-100);
  padding: 72px 0;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.pillar {
  position: relative;
  padding-top: 14px;
  border-top: 2px solid var(--teal);
}

.pillar-num {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--teal);
  margin-bottom: 8px;
}

.pillar h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--graph);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.pillar p {
  font-size: 0.95rem;
  color: var(--grey-700);
  line-height: 1.7;
}

/* ── Sections ────────────────────────────────────────────────────────── */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--grey-50);
}

.section-dark {
  background: var(--graph);
}

.section-label {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--teal);
}

.section-label.light {
  color: var(--teal-300);
  border-color: var(--teal);
}

.section h2 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--graph);
  margin-bottom: 32px;
  line-height: 1.2;
}

.section h2.light { color: var(--white); }

.section-intro {
  font-size: 1.05rem;
  color: var(--grey-500);
  max-width: 680px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.section-intro.light { color: #C5DFE8; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 28px 24px;
  border: 1px solid var(--grey-100);
  border-radius: 14px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.feature-kicker {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: -0.2px;
  margin-bottom: 12px;
  color: var(--graph);
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.72;
  color: var(--grey-700);
}

.company-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: start;
}

/* ── Prose blocks ────────────────────────────────────────────────────── */
.prose {
  max-width: 680px;
}

.prose p {
  font-size: 1rem;
  color: var(--grey-700);
  line-height: 1.75;
  margin-bottom: 18px;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* ── Info grid (Collaboration sub-items) ─────────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--grey-100);
}

.info-item {
  min-width: 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--grey-100);
}

.info-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--grey-100);
}

.info-item p {
  font-size: 0.92rem;
  color: var(--grey-700);
  line-height: 1.65;
}

/* ── Contact card ────────────────────────────────────────────────────── */
.contact-card {
  max-width: 520px;
  padding: 32px 36px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
}

@media (max-width: 640px) {
  .contact-card {
    padding: 28px;
  }
}

.contact-item {
  min-width: 0;
}

.contact-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-300);
  margin-bottom: 8px;
}

.contact-link {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--white);
  transition: color 0.15s;
}

.contact-link:hover {
  color: var(--teal-300);
  text-decoration: none;
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer {
  background: #0E1420;
  color: #94A3B8;
  padding: 36px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand .logo-text { color: var(--white); }

.footer-notice {
  font-size: 0.8rem;
  color: #64748B;
  line-height: 1.7;
  text-align: right;
}

@media (max-width: 560px) {
  .footer-notice { text-align: left; }
}

.footer-copy {
  color: #475569;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

/* ── Responsive tweaks ───────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links li:not(:last-child) { display: none; }
  .hero { padding: 80px 0 72px; }
  .section { padding: 64px 0; }
  .pillars { padding: 56px 0; }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    width: 100%;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .pillar-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .feature-grid,
  .company-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
