/* Orion Veterans Memorial — base stylesheet */

:root {
  --navy-900: #0a2540;
  --navy-800: #122c4f;
  --navy-700: #1a3b6b;
  --navy-50:  #eef2f8;

  --red-600:  #c8102e;
  --red-700:  #a30d24;

  --gold-500: #d4a64a;

  --ink-900:  #1a1f2e;
  --ink-700:  #3a4256;
  --ink-500:  #6b7280;
  --ink-300:  #c9ced9;
  --ink-100:  #eef0f4;
  --bg:       #ffffff;
  --bg-soft:  #f7f8fb;

  --font-body:    "Lato", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;

  --maxw: 1200px;
  --maxw-narrow: 880px;
  --gap: clamp(1rem, 2.5vw, 2rem);
  --radius: 4px;

  --shadow-1: 0 1px 3px rgba(10, 37, 64, 0.08), 0 1px 2px rgba(10, 37, 64, 0.06);
  --shadow-2: 0 6px 16px rgba(10, 37, 64, 0.10), 0 2px 6px rgba(10, 37, 64, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--bg);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--red-600); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; font-family: var(--font-body); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--navy-700); }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--ink-700); }

/* Layout */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gap); }
.container-narrow { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 var(--gap); }
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
section.alt { background: var(--bg-soft); }

/* Topper notice bar */
.topper {
  background: var(--navy-900);
  color: #fff;
  font-size: 0.9375rem;
  text-align: center;
  padding: 0.65rem var(--gap);
}
.topper a { color: #fff; border-bottom: 1px solid rgba(255,255,255,0.4); }
.topper a:hover { color: var(--gold-500); border-color: var(--gold-500); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-900);
  border-bottom: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
  gap: 1.5rem;
}
.site-header .brand {
  display: flex;
  align-items: center;
}
.site-header .brand img { height: 70px; width: auto; display: block; }

.main-nav { display: flex; align-items: center; }
.main-nav ul { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.main-nav li { position: relative; margin: 0; }
.main-nav a {
  display: block;
  padding: 0.6rem 0.95rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--red-600);
}
.main-nav .submenu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  min-width: 240px;
  background: #fff;
  box-shadow: var(--shadow-2);
  border-radius: var(--radius);
  padding: 0.5rem 0;
}
.main-nav li:hover > .submenu,
.main-nav li:focus-within > .submenu { display: block; }
.main-nav .submenu li { display: block; }
.main-nav .submenu a {
  padding: 0.5rem 1rem;
  border-bottom: none;
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--ink-900);
  white-space: nowrap;
}
.main-nav .submenu a:hover { background: var(--bg-soft); color: var(--red-600); }

.nav-cta { background: var(--red-600); color: #fff !important; padding: 0.6rem 1.4rem !important; border-radius: var(--radius); border-bottom: none !important; margin-left: 0.5rem; }
.nav-cta:hover { background: var(--red-700); color: #fff !important; border-bottom-color: transparent !important; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 1rem;
  color: #fff;
  font-weight: 700;
}

/* Mobile nav */
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.5rem; }
  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 85vw);
    background: #fff;
    box-shadow: var(--shadow-2);
    flex-direction: column;
    align-items: stretch;
    padding: 5rem 1.25rem 2rem;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .main-nav[data-open="true"] { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 0; align-items: stretch; }
  .main-nav a {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--ink-100);
    color: var(--ink-900);
    white-space: normal;
  }
  .main-nav .submenu {
    position: static; display: block;
    box-shadow: none; padding: 0 0 0 1rem;
  }
  .main-nav .submenu a { color: var(--ink-700); }
  .nav-cta { display: inline-block; align-self: flex-start; margin: 0.75rem 0 0; color: #fff !important; }
  body.nav-open { overflow: hidden; }
  body.nav-open::after {
    content: "";
    position: fixed; inset: 0;
    background: rgba(10, 37, 64, 0.45);
    z-index: 40;
  }
  .site-header { z-index: 60; }
  .main-nav { z-index: 70; }
}

/* Hero */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  padding: clamp(5rem, 12vw, 9rem) var(--gap);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--hero-bg, none);
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.4); margin-bottom: 0.5rem; }
.hero .lead { color: #f0f4fa; font-size: clamp(1.05rem, 2vw, 1.4rem); margin: 0 auto 2rem; max-width: 720px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red-600); color: #fff; }
.btn-primary:hover { background: var(--red-700); color: #fff; }
.btn-secondary { background: transparent; color: #fff; border-color: #fff; }
.btn-secondary:hover { background: #fff; color: var(--navy-900); }
.btn-outline { background: transparent; color: var(--navy-900); border-color: var(--navy-900); }
.btn-outline:hover { background: var(--navy-900); color: #fff; }

/* Section title */
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title .eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red-600);
  margin-bottom: 0.5rem;
}
.section-title h2 { margin: 0; }

/* Card grid */
.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.card .card-img { aspect-ratio: 16 / 10; background: var(--ink-100); background-size: cover; background-position: center; }
.card .card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card h3 { margin-top: 0; }
.card p { color: var(--ink-700); flex: 1; }
.card .card-link {
  margin-top: 1rem;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--red-600);
}
.card .card-link::after { content: " →"; }

/* CTA band */
.cta-band {
  background: var(--navy-900);
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #d6dde9; max-width: 640px; margin: 0 auto 1.75rem; }

/* Prose (page-content with body copy) */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2, .prose h3 { margin-top: 2em; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose li { margin-bottom: 0.4em; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.prose figure { margin: 1.75em 0; }
.prose figure figcaption { font-size: 0.9rem; color: var(--ink-500); text-align: center; margin-top: 0.5rem; }
.prose blockquote {
  margin: 1.75em 0;
  padding: 0.5em 1.25em;
  border-left: 4px solid var(--red-600);
  color: var(--ink-700);
  font-style: italic;
}

/* Forms */
.form {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: 1.1rem;
}
.form .row { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form .row.two { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-weight: 700; font-size: 0.9375rem; color: var(--navy-900); }
.field .hint { font-size: 0.8125rem; color: var(--ink-500); }
.field input, .field textarea, .field select {
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--ink-300);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink-900);
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--navy-700);
}
.field.has-error input, .field.has-error textarea, .field.has-error select {
  border-color: var(--red-600);
  background: #fff7f7;
}
.field .error {
  font-size: 0.8125rem;
  color: var(--red-700);
  min-height: 1.2em;
}
.required-mark { color: var(--red-600); }
.form-status {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.form-status.success { background: #e7f5ec; color: #1f6f3c; border: 1px solid #b8e0c5; }
.form-status.error   { background: #fdecec; color: #8a1d1d; border: 1px solid #f3b4b4; }

/* Brick lookup table */
.brick-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  overflow: hidden;
}
.brick-table th {
  background: var(--navy-900);
  color: #fff;
  text-align: left;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}
.brick-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--ink-100);
  font-size: 0.95rem;
}
.brick-table tbody tr:nth-child(even) { background: var(--bg-soft); }
.brick-table tbody tr:hover { background: var(--navy-50); }

/* Footer */
.site-footer {
  background: var(--navy-900);
  color: #c9d4e6;
  padding: 3.5rem 0 1.5rem;
  font-size: 0.9375rem;
}
.site-footer a { color: #c9d4e6; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 2.5rem;
}
.footer-col h4 { color: #fff; margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: #8b9bb8;
}

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
