/* === 5/20th Infantry Memorial Site === */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Source+Serif+4:ital,wght@0,400;0,600;0,700;1,400&family=IBM+Plex+Sans:wght@300;400;500;600&display=swap');

:root {
  --bg-dark: #1a1d23;
  --bg-card: #22262e;
  --bg-card-hover: #2a2f38;
  --border-subtle: #333842;
  --text-primary: #e8e6e1;
  --text-secondary: #9a9690;
  --text-muted: #6b6660;
  --gold: #c5a55a;
  --gold-dim: #8a7a45;
  --olive: #5a6340;
  --olive-light: #6b7550;
  --sand: #b8a88a;
  --red-muted: #8b4040;
  --white: #f0ece4;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'IBM Plex Sans', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* === NAVIGATION === */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 29, 35, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 2rem;
}
nav .nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
nav .nav-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-decoration: none;
}
nav .nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  flex-wrap: wrap;
}
nav .nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
nav .nav-links a:hover,
nav .nav-links a.active {
  color: var(--gold);
  background: rgba(197, 165, 90, 0.08);
}

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; color: var(--text-secondary); font-size: 1.5rem; cursor: pointer; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  nav .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(26, 29, 35, 0.98);
    flex-direction: column;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-subtle);
  }
  nav .nav-links.open { display: flex; }
  nav .nav-links a { padding: 0.6rem 0; }
}

/* === LAYOUT === */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.page-section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.page-section:last-child { border-bottom: none; }

/* === HERO === */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at center top, rgba(197,165,90,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero-eyebrow {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 8vw, 5rem);
  letter-spacing: 0.06em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.hero h1 span { color: var(--gold); }
.hero-subtitle {
  font-family: 'Source Serif 4', serif;
  font-size: 1.15rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 0.5rem;
}
.hero-unit {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* === STATS BAR === */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* === HEADINGS === */
h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 1.5rem;
}
h2 .accent { color: var(--gold); }

h3 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

h4 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-dim);
  margin-bottom: 0.5rem;
}

/* === PROSE === */
.prose p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}
.prose p:last-child { margin-bottom: 0; }

/* === CARDS === */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--gold-dim); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

/* === DEPLOYMENT CARDS === */
.deployment-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.deployment-tag {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.deployment-dates {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* === KIA TABLE === */
.kia-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
}
.kia-table thead {
  border-bottom: 2px solid var(--gold-dim);
}
.kia-table th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-align: left;
  padding: 0.6rem 0.8rem;
  font-weight: 500;
}
.kia-table td {
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: top;
}
.kia-table tr:last-child td { border-bottom: none; }
.kia-table .name {
  color: var(--text-primary);
  font-weight: 500;
}
.kia-table .posthumous {
  color: var(--gold-dim);
  font-size: 0.75rem;
}

/* === PURPLE HEART LIST === */
.ph-list {
  column-count: 2;
  column-gap: 2rem;
  list-style: none;
  margin-bottom: 1.5rem;
}
.ph-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.3rem 0;
  break-inside: avoid;
  border-bottom: 1px solid rgba(51,56,66,0.5);
}
.ph-list li .ph-name { color: var(--text-primary); font-weight: 500; }
.ph-list li .ph-date { color: var(--text-muted); font-size: 0.78rem; }

@media (max-width: 600px) {
  .ph-list { column-count: 1; }
}

/* === AWARDS CARD === */
.award-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
.award-card .award-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.award-card .award-detail {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* === MEMORIAL ENTRY === */
.memorial-entry {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.memorial-entry .memorial-name {
  font-family: 'Source Serif 4', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
}
.memorial-entry .memorial-meta {
  font-size: 0.8rem;
  color: var(--gold-dim);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}
.memorial-entry .memorial-bio {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* === FOOTER === */
footer {
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  margin-top: 2rem;
}
footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
footer .motto {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  color: var(--gold-dim);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
footer a {
  color: var(--gold-dim);
  text-decoration: none;
}
footer a:hover { color: var(--gold); }

/* === UTILITY === */
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 2rem 0;
}

.note {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-muted);
  padding: 1rem;
  border-left: 2px solid var(--border-subtle);
  margin-top: 1.5rem;
}

/* === LINK STYLING === */
a.page-link {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-dim);
  transition: border-color 0.2s;
}
a.page-link:hover { border-color: var(--gold); }

/* === ABOUT PAGE === */
.about-intro {
  font-family: 'Source Serif 4', serif;
  font-size: 1.1rem;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 2rem;
}
