/* =========================================================
   Elite Blue — Components (Header, Footer, Hero, Visuals)
   ========================================================= */

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(7, 21, 38, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
  background: rgba(7, 21, 38, 0.95);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 4px 16px rgba(0, 0, 0, 0.2);
}
.site-header .header-inner {
  max-width: max(var(--max-w), 1440px);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}
.brand:hover { color: var(--white); }
.brand .brand-mark { width: 40px; height: 40px; flex-shrink: 0; color: var(--signal); }
.brand .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand .brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--white);
}
.brand .brand-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
  white-space: nowrap;
}
@media (max-width: 1520px) { .site-header .brand .brand-tag { display: none; } }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}
.primary-nav a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}
.primary-nav a:hover, .primary-nav a.active {
  color: var(--white);
}
.primary-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -22px;
  height: 2px;
  background: var(--signal);
}
.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.header-actions .util-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}
.header-actions .util-link { display: none; } /* same destination as Concept Notes; removed to prevent crowding */
.header-actions .util-link:hover { color: var(--signal); }
.header-actions .btn { padding: 10px 16px; font-size: 0.88rem; }

/* Mobile nav */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.menu-toggle:hover { border-color: var(--signal); color: var(--signal); }

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 99;
  display: none;
  flex-direction: column;
  padding: calc(var(--header-h) + var(--space-5)) var(--space-5) var(--space-5);
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-nav a.util {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}
.mobile-nav .btn { margin-top: var(--space-4); justify-content: center; }

@media (max-width: 1140px) {
  .primary-nav, .header-actions .util-link, .header-actions .btn { display: none; }
  .menu-toggle { display: inline-flex; }
}

main { padding-top: var(--header-h); }

/* Homepage hero */
.home-hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: calc(var(--header-h) + var(--space-9)) 0 var(--space-9);
  overflow: hidden;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(38, 167, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 167, 255, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  mask-image: radial-gradient(ellipse at 70% 40%, black 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, black 25%, transparent 75%);
  pointer-events: none;
}
.home-hero::after {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(11, 92, 173, 0.25) 0%, transparent 60%);
  pointer-events: none;
}
.home-hero .container { position: relative; z-index: 2; }
.home-hero .hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}
.home-hero h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  margin-bottom: var(--space-5);
}
.home-hero .lead { color: rgba(255, 255, 255, 0.78); font-size: 1.2rem; max-width: 56ch; }
.home-hero .hero-actions { display: flex; gap: var(--space-3); margin-top: var(--space-6); flex-wrap: wrap; }
.home-hero .signature-line {
  margin-top: var(--space-7);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal);
}
.home-hero .signature-line::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--signal);
}

@media (max-width: 1000px) {
  .home-hero .hero-grid { grid-template-columns: 1fr; gap: var(--space-7); }
}

/* Blueprint visual (right side of hero) */
.blueprint-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 540px;
  justify-self: end;
}
.blueprint-visual svg { width: 100%; height: 100%; }

/* Capability strip cards (homepage) */
.capability-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--steel);
  border-bottom: 1px solid var(--steel);
}
.capability-row .cap {
  padding: var(--space-6) var(--space-5);
  border-right: 1px solid var(--steel);
  background: var(--white);
  transition: background 0.2s ease;
}
.capability-row .cap:last-child { border-right: none; }
.capability-row .cap:hover { background: var(--ice); }
.capability-row .cap .cap-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--eb-primary);
  margin-bottom: var(--space-3);
}
.capability-row .cap h3 { font-size: 1.2rem; margin-bottom: var(--space-3); }
.capability-row .cap p { color: var(--slate-2); font-size: 0.92rem; margin-bottom: var(--space-4); }
@media (max-width: 1180px) {
  .capability-row { grid-template-columns: repeat(6, 1fr); }
  .capability-row .cap { grid-column: span 2; border-bottom: 1px solid var(--steel); }
  .capability-row .cap:nth-child(3) { border-right: none; }
  .capability-row .cap:nth-child(4), .capability-row .cap:nth-child(5) { grid-column: span 3; border-bottom: none; }
}
@media (max-width: 1000px) {
  .capability-row { grid-template-columns: 1fr 1fr; }
  .capability-row .cap, .capability-row .cap:nth-child(4) { grid-column: auto; border-right: 1px solid var(--steel); border-bottom: 1px solid var(--steel); }
  .capability-row .cap:nth-child(2n) { border-right: none; }
  .capability-row .cap:nth-child(5) { grid-column: span 2; border-right: none; border-bottom: none; }
}
@media (max-width: 600px) {
  .capability-row { grid-template-columns: 1fr; }
  .capability-row .cap { border-right: none; border-bottom: 1px solid var(--steel); }
  .capability-row .cap:last-child { border-bottom: none; }
}

/* Pathway cards (audience routes) */
.pathway {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}
.pathway .card {
  display: flex;
  flex-direction: column;
}
.pathway .card .card-foot {
  margin-top: auto;
  padding-top: var(--space-5);
}
@media (max-width: 900px) { .pathway { grid-template-columns: 1fr; } }

/* Featured case study */
.featured-case {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  border: 1px solid var(--steel);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}
.featured-case .case-content { padding: var(--space-7); }
.featured-case .case-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--eb-primary);
  margin-bottom: var(--space-3);
}
.featured-case h3 { font-size: 1.7rem; margin-bottom: var(--space-4); }
.featured-case .case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin: var(--space-5) 0;
  padding: var(--space-5) 0;
  border-top: 1px solid var(--steel);
  border-bottom: 1px solid var(--steel);
}
.featured-case .case-grid > div .label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-3);
  margin-bottom: 6px;
}
.featured-case .case-grid > div .val { color: var(--navy); font-weight: 500; font-size: 0.95rem; }
.featured-case .case-visual {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.featured-case .case-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(38, 167, 255, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(38, 167, 255, 0.1) 1px, transparent 1px);
  background-size: 32px 32px;
}
.featured-case .case-visual svg { position: relative; z-index: 1; width: 80%; max-width: 360px; }
@media (max-width: 900px) {
  .featured-case { grid-template-columns: 1fr; }
  .featured-case .case-visual { min-height: 220px; }
}

/* Governance stack */
.gov-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--navy);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
}
.gov-stack .layer {
  background: var(--navy-2);
  border: 1px solid rgba(38, 167, 255, 0.2);
  border-left: 3px solid var(--signal);
  padding: var(--space-4) var(--space-5);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  color: var(--white);
}
.gov-stack .layer .layer-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--signal);
}
.gov-stack .layer .layer-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
}
.gov-stack .arrow {
  text-align: center;
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  opacity: 0.5;
}

/* Engagement model cards */
.eng-models {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--steel);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}
.eng-models .em {
  padding: var(--space-6);
  border-right: 1px solid var(--steel);
}
.eng-models .em:last-child { border-right: none; }
.eng-models .em .em-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--eb-primary);
  margin-bottom: var(--space-4);
}
.eng-models .em h3 { margin-bottom: var(--space-3); }
.eng-models .em p { color: var(--slate-2); font-size: 0.95rem; }
@media (max-width: 900px) {
  .eng-models { grid-template-columns: 1fr; }
  .eng-models .em { border-right: none; border-bottom: 1px solid var(--steel); }
  .eng-models .em:last-child { border-bottom: none; }
}

/* Filter chips */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.filter-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--steel);
  background: var(--white);
  color: var(--slate-2);
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-chip:hover { border-color: var(--eb-primary); color: var(--eb-primary); }
.filter-chip.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* Inquiry path cards */
.path-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-7);
}
.path-cards .path-card {
  background: var(--white);
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  padding: var(--space-5);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}
.path-cards .path-card:hover { border-color: var(--eb-primary); background: var(--ice); }
.path-cards .path-card.selected {
  border-color: var(--eb-primary);
  background: var(--ice);
  box-shadow: 0 0 0 3px rgba(11, 92, 173, 0.1);
}
.path-cards .path-card .check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--steel);
  flex-shrink: 0;
  margin-top: 4px;
  position: relative;
  transition: all 0.15s ease;
}
.path-cards .path-card.selected .check {
  background: var(--eb-primary);
  border-color: var(--eb-primary);
}
.path-cards .path-card.selected .check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.path-cards .path-card h4 { margin-bottom: 4px; font-size: 1rem; }
.path-cards .path-card p { font-size: 0.88rem; color: var(--slate-2); margin: 0; }
@media (max-width: 700px) { .path-cards { grid-template-columns: 1fr; } }

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-8) 0 var(--space-5);
}
.site-footer .footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-footer .col h4 {
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: var(--space-4);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: var(--space-2); }
.site-footer a { color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; }
.site-footer a:hover { color: var(--signal); }
.site-footer .brand-block .brand .brand-name { color: var(--white); }
.site-footer .brand-block p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-top: var(--space-4);
  max-width: 38ch;
}
.site-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-5);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
  gap: var(--space-3);
}
@media (max-width: 900px) {
  .site-footer .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .site-footer .footer-top { grid-template-columns: 1fr; }
}

/* EPO steps */
.epo-steps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--space-5); }
.epo-steps div {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px; border: 1px solid var(--steel); border-radius: var(--radius-sm);
  background: var(--white); font-size: 0.9rem; font-weight: 500; color: var(--navy);
}
.epo-steps span { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; color: var(--eb-primary); }
