/* Retired Military Relocation — shared stylesheet */

:root {
  --navy: #0b2545;
  --navy-dark: #071a33;
  --gold: #b8860b;
  --gold-light: #d9a441;
  --slate: #3c4858;
  --paper: #f7f5f0;
  --white: #ffffff;
  --border: #e2ddd0;
  --max-width: 1080px;
  --radius: 6px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--slate);
  background: var(--paper);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }

a { color: var(--navy); }
a:hover { color: var(--gold); }

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

/* Header */
header.site-header {
  background: var(--navy);
  color: var(--white);
  border-bottom: 3px solid var(--gold);
}
header.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  color: var(--white);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.brand span { color: var(--gold-light); }
nav.primary-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 10px 0 0;
  padding: 0;
}
nav.primary-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.92rem;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
nav.primary-nav a:hover { border-bottom-color: var(--gold-light); color: var(--white); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 64px 0 56px;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 16px;
  line-height: 1.25;
}
.hero p.lede {
  font-size: 1.1rem;
  max-width: 640px;
  color: #dbe3ee;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--gold-light);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* Page header (non-home) */
.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 44px 0 38px;
}
.page-header h1 { margin: 0 0 10px; font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.page-header p { color: #dbe3ee; max-width: 680px; margin: 0; }
.breadcrumb {
  font-size: 0.82rem;
  color: #b7c4d8;
  margin-bottom: 14px;
}
.breadcrumb a { color: #b7c4d8; }

/* Main content */
main { padding: 48px 0 64px; }
main .wrap { max-width: 780px; }
main.wide .wrap { max-width: var(--max-width); }

h2 {
  color: var(--navy);
  font-size: 1.5rem;
  margin-top: 2.2em;
}
h3 { color: var(--navy); font-size: 1.15rem; }

.callout {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0;
}
.callout h3 { margin-top: 0; }

.agent-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 32px 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.agent-card .avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.agent-card .details { flex: 1; min-width: 220px; }
.agent-card h3 { margin: 0 0 2px; }
.agent-card .title { color: var(--gold); font-weight: 600; font-size: 0.9rem; margin-bottom: 10px; }
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 14px; }
.badge {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.75rem;
  padding: 3px 10px;
  color: var(--slate);
}

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  text-decoration: none;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
}
.btn:hover { background: var(--gold-light); color: var(--white); }
.btn-outline {
  display: inline-block;
  border: 1.5px solid var(--white);
  color: var(--white);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
}
.btn-outline:hover { border-color: var(--gold-light); color: var(--gold-light); }

/* Card grid (home + hub pages) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin: 32px 0;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin-top: 0; font-size: 1.05rem; }
.card p { font-size: 0.92rem; margin-bottom: 12px; }
.card a.more { font-size: 0.88rem; font-weight: 600; text-decoration: none; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.93rem;
}
th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
th { background: var(--white); color: var(--navy); }

.sources { font-size: 0.85rem; color: #667; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--border); }
.sources a { color: #667; }

/* Footer */
footer.site-footer {
  background: var(--navy-dark);
  color: #b7c4d8;
  padding: 36px 0 30px;
  font-size: 0.88rem;
}
footer.site-footer a { color: #dbe3ee; }
footer.site-footer .foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}
footer.site-footer h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
footer.site-footer ul { list-style: none; margin: 0; padding: 0; }
footer.site-footer li { margin-bottom: 6px; }
footer.site-footer .fine-print { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 16px; font-size: 0.8rem; color: #8fa1bb; }

@media (max-width: 640px) {
  .hero { padding: 48px 0 40px; }
  main { padding: 36px 0 48px; }
}
