@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=Barlow+Condensed:wght@600;700&display=swap");

:root {
  --navy: #13284d;
  --navy-2: #1d3a6e;
  --blue: #2457a6;
  --red: #d7262e;
  --red-dark: #b01c23;
  --ink: #1b2330;
  --muted: #5d6878;
  --line: #dde3eb;
  --bg: #f4f6f9;
  --card: #ffffff;
  --ok: #1e7b34;
  --bad: #b00020;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(19, 40, 77, 0.06), 0 4px 16px rgba(19, 40, 77, 0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

h1, h2, h3, .site-name {
  font-family: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  letter-spacing: 0.01em;
}

a { color: var(--blue); }

/* ---- Header ---- */

header {
  background: var(--navy);
  color: #fff;
  border-bottom: 4px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.header-inner img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #fff;
}

.site-name {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  line-height: 1;
}

nav { margin-left: auto; display: flex; gap: 2px; flex-wrap: wrap; }
nav a {
  color: #dfe7f3;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 500;
}
nav a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }

/* ---- Home hero ---- */

.hero-band {
  background:
    radial-gradient(circle at 85% 20%, rgba(215, 38, 46, 0.25), transparent 45%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
}

.hero-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 56px 16px 64px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffb3b6;
  margin-bottom: 8px;
}

.hero-band h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.02;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.hero-band p.lead { font-size: 1.2rem; color: #dfe7f3; margin: 0 0 24px; max-width: 34ch; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-photo {
  background: #fff;
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: rotate(1.5deg);
}
.hero-photo img { display: block; width: 100%; height: auto; border-radius: 6px; }
.hero-photo figcaption { text-align: center; font-size: 0.85rem; color: var(--muted); padding-top: 8px; }

/* ---- Layout ---- */

main { max-width: 1040px; margin: 0 auto; padding: 32px 16px 48px; }

h1 { color: var(--navy); margin-top: 0; font-size: 2.3rem; text-transform: uppercase; }
h2 { color: var(--navy); font-size: 1.8rem; text-transform: uppercase; margin: 0 0 12px; }

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title::before {
  content: "";
  width: 6px;
  height: 1.4em;
  background: var(--red);
  border-radius: 3px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 24px;
}

/* ---- Spec tiles ---- */

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 8px 0 20px;
}
.spec {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
}
.spec .label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.spec .value {
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
}
.spec .sub { font-size: 0.9rem; color: var(--muted); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.two-col .card { margin-bottom: 0; }

.kcwi {
  display: inline-block;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  background: var(--navy);
  color: #fff;
  padding: 1px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

/* ---- Buttons ---- */

.button {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.button:hover { background: var(--red-dark); }
.button.light { background: #fff; color: var(--navy); }
.button.light:hover { background: #e9eef6; }
.button.secondary { background: #e6eaf0; color: var(--ink); }
.button.secondary:hover { background: #d9dfe8; }

/* ---- Tables ---- */

table { width: 100%; border-collapse: collapse; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { background: #eef2f7; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
tbody tr:hover td { background: #f9fbfd; }
td.num, th.num { text-align: right; }

.table-wrap { overflow-x: auto; }

/* ---- Weight and balance ---- */

.wb input {
  width: 90px;
  padding: 5px 7px;
  font: inherit;
  text-align: right;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.wb input:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.wb tr.subtotal td { font-weight: 700; background: #f2f5fa; }
.wb .note { color: var(--muted); font-size: 0.85rem; }

.status { font-weight: 700; }
.status.ok { color: var(--ok); }
.status.bad { color: var(--bad); }

.warning {
  background: #fff4e5;
  border: 1px solid #f0b45a;
  border-left: 6px solid #e08a00;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 24px;
}

.envelope svg { width: 100%; height: auto; max-width: 640px; display: block; }

/* ---- Footer ---- */

footer {
  background: var(--navy);
  color: #b9c6da;
  text-align: center;
  font-size: 0.9rem;
  padding: 24px 16px;
  border-top: 4px solid var(--red);
}
footer a { color: #fff; }

@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; padding: 36px 16px 44px; }
  .hero-photo { transform: none; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  nav { margin-left: 0; width: 100%; }
  header { position: static; }
}
