/* ────────────────────────────────────────────────────────────────────────
   Aero Technic BG — design system
   Single source of truth for the public marketing site.
   ──────────────────────────────────────────────────────────────────────── */

:root {
  --red:        #C0001A;
  --red-dark:   #8E0013;
  --red-light:  #E2334A;
  --ink:        #14181E;
  --ink-soft:   #3A434E;
  --ink-mute:   #6B7785;
  --line:       #E1E5EA;
  --paper:      #FFFFFF;
  --paper-alt:  #F5F7FA;
  --paper-dark: #0B0F15;

  --font-display: "Barlow Condensed", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(20,24,30,.08);
  --shadow-md: 0 6px 24px rgba(20,24,30,.10);
  --shadow-lg: 0 20px 60px rgba(20,24,30,.15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 .4em;
}
h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(26px, 3.5vw, 40px); }
h3 { font-size: clamp(20px, 2.5vw, 26px); }
h4 { font-size: 18px; }
p  { margin: 0 0 1em; max-width: 70ch; }
.lead { font-size: clamp(18px, 1.6vw, 22px); color: var(--ink-soft); }

/* ─── Containers ───────────────────────────────────────────────────────── */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--alt { background: var(--paper-alt); }
.section--dark {
  background: var(--paper-dark);
  color: #E5E9EF;
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #B5BCC8; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--red);
  padding: 4px 10px;
  background: rgba(192, 0, 26, .08);
  border-radius: 99px;
  margin-bottom: 14px;
}
.section--dark .eyebrow { background: rgba(192, 0, 26, .25); }

/* ─── Top bar / nav ────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand img { width: 44px; height: 44px; }
.brand__text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .04em;
  color: var(--ink);
  line-height: 1;
}
.brand__text small {
  display: block;
  font-size: 9px;
  color: var(--ink-mute);
  letter-spacing: .18em;
  font-weight: 600;
  margin-top: 3px;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--red); text-decoration: none; border-bottom-color: var(--red); }
.nav a.active { color: var(--red); border-bottom-color: var(--red); }

.lang { display: flex; gap: 4px; margin-left: 8px; padding-left: 16px; border-left: 1px solid var(--line); }
.lang a { padding: 4px 8px; font-size: 12px; border-bottom: none; color: var(--ink-mute); font-weight: 700; }
.lang a.active { color: var(--red); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter);
    gap: 0;
    box-shadow: var(--shadow-md);
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .lang { border-left: none; padding: 12px 0 0; margin-left: 0; }
}

/* ─── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 2px solid var(--red);
  background: var(--red);
  color: #fff;
  cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s;
  text-decoration: none;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--red); }
.btn--ghost:hover { background: var(--red); color: #fff; }
.btn--dark { background: var(--ink); border-color: var(--ink); }
.btn--dark:hover { background: #000; border-color: #000; }
.btn--aog { background: #B5121A; border-color: #B5121A; box-shadow: 0 0 0 4px rgba(181, 18, 26, .15); }
.btn--aog::before { content: "📡"; }

/* ─── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0B0F15 0%, #1A2230 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 80% 30%, rgba(192,0,26,.25), transparent 60%),
    radial-gradient(40% 40% at 20% 80%, rgba(0,160,255,.10), transparent 60%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 48px;
  padding: clamp(64px, 10vw, 120px) var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
}
.hero h1 {
  color: #fff;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.05;
}
.hero p { color: #C7D0DC; font-size: clamp(17px, 1.5vw, 20px); margin-bottom: 28px; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__stats {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 28px;
}
@media (max-width: 700px) { .hero__stats { grid-template-columns: repeat(2, 1fr); } }
.stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--red-light);
  line-height: 1;
  margin-bottom: 4px;
}
.stat__lbl { font-size: 11px; color: #8A97A8; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }

.hero__visual {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #1A2230, #0B0F15);
  border: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__visual img { width: 75%; opacity: .9; }

/* ─── Service tiles ────────────────────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.card:hover { border-color: var(--red); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { margin-top: 8px; }
.card__icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(192, 0, 26, .10);
  color: var(--red);
  border-radius: 8px;
  font-size: 22px;
  margin-bottom: 12px;
}
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 13px;
  color: var(--red);
  margin-top: 6px;
}
.card__link::after { content: "→"; transition: transform .15s; }
.card__link:hover::after { transform: translateX(3px); }

/* ─── Trust strip (logos / certs) ─────────────────────────────────────── */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  justify-content: center;
  padding: 24px 0;
}
.trust__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: .04em;
}
.trust__item span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 11px;
}

/* ─── CTA strip ────────────────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  padding: 56px var(--gutter);
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0 auto 24px; }
.cta-band .btn { background: #fff; color: var(--red); border-color: #fff; }
.cta-band .btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ─── Footer ───────────────────────────────────────────────────────────── */
.footer {
  background: #0B0F15;
  color: #B5BCC8;
  padding: 56px var(--gutter) 24px;
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 800px) { .footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer__inner { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.footer a { color: #B5BCC8; display: block; padding: 4px 0; font-size: 14px; }
.footer a:hover { color: #fff; text-decoration: none; }
.footer__bottom {
  max-width: var(--maxw);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 12px;
  color: #6B7785;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ─── Floating AOG button ─────────────────────────────────────────────── */
.aog-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  background: var(--red);
  color: #fff;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(192,0,26,.4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  animation: pulse 2.2s infinite;
}
.aog-fab:hover { text-decoration: none; background: var(--red-dark); }
.aog-fab::before { content: "📡"; font-size: 18px; }
@keyframes pulse {
  0%   { box-shadow: 0 8px 24px rgba(192,0,26,.4), 0 0 0 0 rgba(192,0,26,.5); }
  70%  { box-shadow: 0 8px 24px rgba(192,0,26,.4), 0 0 0 16px rgba(192,0,26,0); }
  100% { box-shadow: 0 8px 24px rgba(192,0,26,.4), 0 0 0 0 rgba(192,0,26,0); }
}
@media (max-width: 500px) { .aog-fab { padding: 12px 16px; font-size: 12px; right: 12px; bottom: 12px; } }

/* ─── Page header (inner pages) ───────────────────────────────────────── */
.page-header {
  padding: clamp(48px, 8vw, 96px) var(--gutter) clamp(32px, 5vw, 48px);
  background: linear-gradient(180deg, var(--paper-alt) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}
.page-header__inner { max-width: var(--maxw); margin: 0 auto; }
.crumbs { font-size: 13px; color: var(--ink-mute); margin-bottom: 14px; }
.crumbs a { color: var(--ink-mute); }
.crumbs a:hover { color: var(--red); }

/* ─── Forms (used on /quote, /contact for mailto fallback) ────────────── */
.form { display: grid; gap: 16px; max-width: 580px; }
.form label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.form input, .form textarea, .form select {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(192,0,26,.15);
}
.form textarea { resize: vertical; min-height: 120px; }

/* ─── Utilities ────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.muted { color: var(--ink-mute); }
.divider { height: 1px; background: var(--line); margin: 32px 0; border: none; }
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(192,0,26,.08);
  color: var(--red);
  padding: 4px 8px;
  border-radius: 4px;
}

/* Accessible focus rings */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 4px;
}
