/* Festus Data Center — single-page stylesheet
   Palette
   --brand-1: #0d4a8f  Deep blue   (primary)
   --brand-2: #047857  Emerald     (accent — growth / investment)
   Neutrals: slate scale; AA/AAA contrast on white.
*/

:root {
  --brand-1: #0d4a8f;
  --brand-1-dark: #0a3a72;
  --brand-2: #047857;
  --ink:     #0f172a;
  --ink-2:   #334155;
  --muted:   #475569;
  --line:    #e2e8f0;
  --bg:      #ffffff;
  --bg-alt:  #f6f8fb;
  --warn:    #b45309;
  --danger:  #b91c1c;
  --ok:      #047857;

  --maxw: 1120px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 4px 12px rgba(15,23,42,.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-1); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--brand-1-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 2px;
  border-radius: 4px;
}

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -40px; left: 0; background: var(--ink); color: #fff;
  padding: 8px 12px; z-index: 100; text-decoration: none;
}
.skip-link:focus { top: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { border-radius: 8px; }
.brand-text strong { font-size: 16px; display: block; line-height: 1.1; }
.brand-text small { font-size: 12px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 4px;
}
.site-nav a {
  display: inline-block; padding: 8px 10px; border-radius: 6px;
  color: var(--ink-2); text-decoration: none; font-size: 15px;
}
.site-nav a:hover { color: var(--brand-1); background: #eef2f8; }

.nav-toggle {
  display: none;
  background: transparent; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px; color: var(--ink); cursor: pointer;
}

/* Hero */
.hero {
  background:
    radial-gradient(60% 80% at 80% 10%, #e8f0fb 0%, transparent 60%),
    radial-gradient(50% 70% at 10% 100%, #e8f6ee 0%, transparent 60%),
    #fff;
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
}
.eyebrow {
  display: inline-block; margin: 0 0 12px;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-2); font-weight: 600;
  border: 1px solid #bfe3d2; background: #ecfdf5;
  padding: 4px 10px; border-radius: 999px;
}
.hero h1 {
  font-size: clamp(28px, 4.6vw, 46px);
  line-height: 1.1; margin: 0 0 16px; letter-spacing: -.01em;
  color: var(--ink);
}
.lede { font-size: 18px; color: var(--ink-2); margin: 0 0 14px; max-width: 60ch; }
.lede-secondary { font-size: 15px; color: var(--muted); margin: 0 0 24px; max-width: 60ch; }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 18px; border-radius: 8px;
  font-weight: 600; text-decoration: none; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--brand-1); color: #fff; }
.btn-primary:hover { background: var(--brand-1-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--brand-1); border-color: var(--brand-1); }
.btn-secondary:hover { background: #eef2f8; }

.hero-figure { margin: 0; }
.hero-figure img { border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-caption {
  font-size: 12px; color: var(--muted); margin-top: 8px; font-style: italic;
}

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 0 0 8px; letter-spacing: -.01em; }
.section h3 { font-size: 18px; margin: 18px 0 8px; }
.section-lede { color: var(--muted); max-width: 70ch; margin: 0 0 24px; }

.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

/* Facts grid */
.facts-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.facts-grid li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 4px;
}
.fact-num { font-size: 26px; font-weight: 700; color: var(--brand-1); letter-spacing: -.02em; }
.fact-label { font-size: 13px; color: var(--ink-2); }

.bullets { padding-left: 18px; margin: 0; color: var(--ink-2); }
.bullets li { margin: 6px 0; }

.footnote { margin-top: 18px; color: var(--muted); font-size: 14px; }

.placeholder {
  background: #fff7ed; color: var(--warn);
  border: 1px dashed #fdba74; padding: 1px 6px; border-radius: 4px;
  font-style: italic; font-size: 13px;
}

/* Map figure */
.map-figure { margin: 24px 0 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.map-figure img { width: 100%; }
.map-figure figcaption { font-size: 13px; color: var(--muted); padding: 8px 4px 0; }

/* Impacts */
.impacts-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin: 8px 0 24px;
}
.impacts-grid article {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
.impacts-grid h3 { margin-top: 0; color: var(--brand-1); }
.commit { font-size: 14px; color: var(--ink-2); border-left: 3px solid var(--brand-2); padding-left: 10px; margin-top: 10px; }

.disclosure {
  margin-top: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px;
}
.disclosure summary { font-weight: 600; cursor: pointer; }
.disclosure[open] summary { margin-bottom: 8px; }

/* Status table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.status-table {
  width: 100%; border-collapse: collapse; font-size: 14.5px;
}
.status-table th, .status-table td {
  text-align: left; padding: 12px 14px; vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.status-table thead th {
  background: #eef2f8; color: var(--ink); font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
}
.status-table tbody tr:last-child th,
.status-table tbody tr:last-child td { border-bottom: none; }

.pill {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
}
.pill-complete { background: #ecfdf5; color: var(--ok); border: 1px solid #bfe3d2; }
.pill-pending  { background: #fff7ed; color: var(--warn); border: 1px solid #fed7aa; }
.pill-active   { background: #eff6ff; color: var(--brand-1); border: 1px solid #c3d8f4; }
.pill-closed   { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }
.pill-unknown  { background: #f1f5f9; color: var(--ink-2); border: 1px solid var(--line); }

/* FAQ */
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 16px; margin: 8px 0;
}
.faq summary { font-weight: 600; cursor: pointer; }
.faq details[open] summary { margin-bottom: 8px; }

/* Glossary — card grid, brand-tinted terms, hover lift */
.glossary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 8px 0 0;
}
.glossary > div {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-1);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
}
.glossary > div:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(15,23,42,.06), 0 8px 18px rgba(15,23,42,.08);
}
.glossary dt {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-1);
  letter-spacing: .02em;
  text-transform: uppercase;
  margin: 0 0 4px;
}
.glossary dd {
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.5;
}
@media (max-width: 720px) {
  .glossary { grid-template-columns: 1fr; }
}

.resource-list { padding-left: 18px; color: var(--ink-2); }
.resource-list li { margin: 6px 0; }

/* Forms */
.signup-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
  display: grid; gap: 12px;
}
.signup-form label {
  display: grid; gap: 4px; font-size: 14px; color: var(--ink-2); font-weight: 600;
}
.signup-form input[type=text], .signup-form input[type=email] {
  width: 100%; padding: 10px 12px; font-size: 15px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  font-family: inherit; color: var(--ink);
}
.signup-form input:focus { border-color: var(--brand-1); }
.signup-form fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 0; }
.signup-form legend { font-size: 13px; color: var(--muted); padding: 0 6px; }
.signup-form .check { display: flex; align-items: center; gap: 8px; font-weight: 400; color: var(--ink-2); }
.signup-form .optional { color: var(--muted); font-weight: 400; }
.form-fallback { font-size: 13px; color: var(--muted); margin: 0; }
.form-status { font-size: 14px; color: var(--ok); margin: 0; min-height: 1em; }
.form-status.error { color: var(--danger); }

/* Events / contact */
.events, .contact-list { padding-left: 0; list-style: none; }
.events li, .contact-list li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; margin: 8px 0;
}

/* Footer */
.site-footer { background: var(--ink); color: #e2e8f0; padding: 32px 0; margin-top: 24px; }
.site-footer .container { display: grid; gap: 16px; }
.site-footer a { color: #fff; }
.site-footer .muted { color: #94a3b8; }
.site-footer .small { font-size: 13px; }
.foot-links { list-style: none; padding: 0; margin: 0; display: flex; gap: 16px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .cols-2 { grid-template-columns: 1fr; }
  .impacts-grid { grid-template-columns: 1fr 1fr; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .site-nav ul {
    display: none;
    position: absolute; right: 12px; top: 60px;
    background: #fff; flex-direction: column;
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 8px; min-width: 200px; box-shadow: var(--shadow);
  }
  .site-nav ul.open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .impacts-grid { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 40px 0 28px; }
  .section { padding: 40px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
