/* Global light glassmorphism theme for American Independents */
:root {
  /* Warm civic palette */
  --bg: #f5f3ef;
  --text: #111827;
  --muted: #6b7280;

  --primary: #1e3a8a;
  --primary-600: #111827;

  --accent: #b45309;
  --accent-soft: #fef3c7;

  --card-bg: rgba(255, 255, 255, 0.75);
  --glass: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(15, 23, 42, 0.10);
  --border-subtle: rgba(15, 23, 42, 0.08);
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  --radius: 16px;
}

/* Reset-ish */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
html, body { height: 100%; }
body {
  margin: 0;
  padding-top: 72px;
  color: var(--text);
  background: radial-gradient(circle at top, #f9fafb 0, var(--bg) 55%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: "Libre Franklin", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Typography */
h1, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  letter-spacing: -0.02em;
}
.lead { color: var(--muted); }

/* Elegant reading experience */
.prose {
  line-height: 1.8;
  font-size: 1.05rem;
  font-family: "Source Serif 4", "Merriweather", "Georgia", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
}
.prose p { margin: 0 0 1.1rem; }
.prose .lead {
  font-size: 1.15rem;
  color: var(--muted);
}
.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.01em;
}
.prose h1 { font-size: 1.8rem; }
.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.25rem; }
.prose h4 { font-size: 1rem; font-style: italic; color: var(--muted); }

/* Hero */
.hero {
  padding: 56px 0 24px;
  text-align: center;
}
.hero h1 { margin: .4rem 0; }
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: .5rem;
}
.hero .kicker {
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-top: .75rem;
  text-transform: uppercase;
  color: var(--primary);
}

/* Media card */
.media-card { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--glass-border); background: #fff; }
.media-card .ratio { border-radius: 0; }

/* Dividers and bands */
.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 40px 0;
}
.cta-band { padding: 32px 0 16px; text-align: center; }

/* Layout helpers */
.container-narrow {
  max-width: 72ch;
}
.section {
  padding: 56px 0;
}

/* Page hero for content pages */
.section-hero {
  padding: 40px 0 24px;
}
.section-hero-inner {
  max-width: 72ch;
  margin: 0 auto;
}
.section-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.section-hero-title {
  font-size: clamp(1.8rem, 2.6vw + 1rem, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 .75rem;
}
.section-hero-summary {
  max-width: 60ch;
  color: var(--muted);
}

/* Glassy top nav */
.site-nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
  border-bottom: 1px solid var(--glass-border);
}
.navbar-brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-top: 1rem;
  text-decoration: none;
}
.navbar-brand-title {
  font-weight: 700;
  letter-spacing: -0.02em;
}
.navbar-brand-tagline {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.nav-link, .dropdown-item {
  position: relative;
  color: var(--text);
  font-size: 0.95rem;
}
.nav-link:hover, .dropdown-item:hover {
  color: var(--primary);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
  transition: width 0.18s ease-out;
}
.nav-link:hover::after {
  width: 100%;
}
.nav-link.active {
  color: var(--primary) !important;
  font-weight: 600;
}
.nav-link.active::after {
  width: 100%;
}

/* Hero and content cards (used sparingly) */
.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Buttons */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-600);
  border-color: var(--primary-600);
}

/* Footer */
.site-footer {
  background: var(--glass);
  border-top: 1px solid var(--glass-border);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  padding: 1rem;
}
.site-footer .muted { color: var(--muted); }

/* Media */
img, iframe { border-radius: 12px; }

/* Utilities */
.max-w-prose { max-width: 75ch; }
.text-muted-strong { color: var(--muted); font-weight: 500; }

/* Spacing harmonization with Bootstrap */
.container { padding-left: 1rem; padding-right: 1rem; }

/* Dropdown tweaks for better touch targets */
.dropdown-menu { border-radius: 12px; box-shadow: var(--shadow); }

/* Mobile nav overrides */
@media (max-width: 992px) {
  .navbar .tagline { display: none; }
}

/* -------------------------------------------------- */
/* Bootstrap-like utilities to drop the Bootstrap dep */
/* -------------------------------------------------- */
/* Layout */
.container { max-width: 1120px; margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.mx-auto { margin-left: auto; margin-right: auto; }
.me-3 { margin-right: 1rem; }
.me-4 { margin-right: 1.5rem; }
.mb-2 { margin-bottom: .5rem; }
.mt-5 { margin-top: 3rem; }
.d-grid { display: grid; }
.gap-2 { gap: .5rem; }
.col-6 { width: 50%; }
@media (max-width: 768px) { .col-6 { width: 100%; } }

/* Text utilities */
.text-muted { color: var(--muted); }
.fst-italic { font-style: italic; }
.fw-bold { font-weight: 700; }
.display-6 {
  font-size: clamp(1.7rem, 3vw + 1rem, 2.4rem);
  font-weight: 700;
}
.lead { font-size: 1.1rem; }

/* Callouts and key idea boxes */
.callout {
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  padding: 1rem 1.15rem;
  background: #ffffff;
  margin: 1.25rem 0;
}
.callout--key-idea {
  border-color: rgba(180, 83, 9, 0.35);
  background: var(--accent-soft);
}
.callout-title {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: .35rem;
}

/* Step list / timeline */
.step-list {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
}
.step-list-item {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  margin-bottom: 1rem;
}
.step-list-badge {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 600;
}
.step-list-content p {
  margin: 0;
}

/* Media helpers */
.img-fluid { max-width: 100%; height: auto; }
.img-constrained { max-width: 460px; width: 100%; display: block; margin: 0 auto; }
.ratio { position: relative; width: 100%; overflow: hidden; }
.ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ratio-16x9 { aspect-ratio: 16 / 9; }

/* Buttons */
.btn { display: inline-block; border: 1px solid transparent; padding: .6rem 1rem; border-radius: 12px; font-weight: 600; cursor: pointer; transition: all .15s ease; }
.btn:focus { outline: none; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); border-color: var(--primary-600); }
.btn-lg { padding: .8rem 1.25rem; font-size: 1.1rem; }

/* Outline buttons */
.btn-outline-primary {
  background: transparent;
  border-color: rgba(30, 58, 138, 0.3);
  color: var(--primary);
}
.btn-outline-primary:hover {
  background: rgba(30, 58, 138, 0.06);
  border-color: var(--primary);
}

/* Navbar (custom) */
.navbar { min-height: 64px; }
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand { text-decoration: none; color: var(--text); }
.navbar-toggler { background: transparent; border: 1px solid var(--glass-border); border-radius: 8px; padding: .6rem .5rem; display: none; width: 40px; height: 40px; }
.navbar-toggler .burger { display: inline-block; width: 22px; height: 2px; background: var(--text); position: relative; }
.navbar-toggler .burger::before, .navbar-toggler .burger::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--text); }
.navbar-toggler .burger::before { top: -6px; }
.navbar-toggler .burger::after { top: 6px; }

.navbar-collapse {
  display: flex;
  flex: 1;
  justify-content: flex-end;
}
.navbar-nav {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding-left: 0;
  padding-top: .5rem;
  margin: 0 0 0 2.5rem; /* space between brand and first nav item */
  align-items: center;
}
.nav-item { position: relative; }
.nav-link { text-decoration: none; padding: .5rem .25rem; display: inline-block; }

/* Dropdown */
.dropdown-toggle::after { content: "▾"; margin-left: .25rem; font-size: .8em; }
.dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: #ffffff;                 /* opaque for legibility */
  border: 1px solid rgba(2, 8, 20, 0.08);
  padding: .5rem; display: none; list-style: none; margin: 0;
}
.dropdown-item { display: block; padding: .5rem .65rem; text-decoration: none; border-radius: 8px; }
.dropdown-item:hover { background: #f1f5f9; }
.dropdown.open > .dropdown-menu { display: block; }

/* Responsive navbar behavior */
@media (max-width: 992px) {
  .navbar-toggler { display: inline-flex; align-items: center; justify-content: center; }
  .navbar-collapse { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(255, 255, 255, 0.98); border-bottom: 1px solid var(--glass-border); }
  .navbar-collapse.open { display: block; }
  .navbar-nav { flex-direction: column; align-items: stretch; gap: .25rem; padding: .75rem 1rem; margin: 0; }
  .dropdown-menu { position: relative; border-radius: 10px; box-shadow: none; border: none; padding-left: 1rem; }
}
