/* ============================================
   City of West Bend — Design System v2
   Custom CSS | No frameworks
   Fonts: DM Serif Display + DM Sans
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=DM+Serif+Display&display=swap');

/* --- FOUC Prevention --- */
html:not([data-theme]) { visibility: hidden; }
html[data-theme] { visibility: visible; }

/* --- Custom Properties — Light --- */
:root,
[data-theme="light"] {
  --bg: #FAFAF8;
  --bg-alt: #F0EDE6;
  --text: #1A2332;
  --text-muted: #5C6B7A;
  --primary: #1E3A5F;
  --primary-light: #2A4F7A;
  --accent: #2E7D6B;
  --accent-light: #3A9A84;
  --gold: #C49A2A;
  --gold-hover: #A8831F;
  --border: #D8D3CA;
  --border-light: #E8E4DC;
  --shadow: rgba(26, 35, 50, 0.08);
  --shadow-md: rgba(26, 35, 50, 0.12);
  --overlay-start: rgba(10, 16, 24, 0.85);
  --overlay-mid: rgba(10, 16, 24, 0.5);
  --overlay-end: rgba(10, 16, 24, 0.2);
  --nav-bg: rgba(250, 250, 248, 0.92);
}

/* --- Custom Properties — Dark --- */
[data-theme="dark"] {
  --bg: #0E1419;
  --bg-alt: #151D26;
  --text: #E8ECF0;
  --text-muted: #8A9AAD;
  --primary: #6B9FD4;
  --primary-light: #82B0DE;
  --accent: #4DBFA8;
  --accent-light: #66CCBB;
  --gold: #D4AE3A;
  --gold-hover: #E0BD50;
  --border: #253040;
  --border-light: #1E2836;
  --shadow: rgba(0, 0, 0, 0.25);
  --shadow-md: rgba(0, 0, 0, 0.35);
  --overlay-start: rgba(6, 10, 16, 0.9);
  --overlay-mid: rgba(6, 10, 16, 0.6);
  --overlay-end: rgba(6, 10, 16, 0.3);
  --nav-bg: rgba(14, 20, 25, 0.92);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  padding-bottom: 2.25rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; font-family: 'DM Sans', sans-serif; font-weight: 600; }

p { max-width: 65ch; }

.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.7;
}

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

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: 5rem 0; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border-radius: 4px;
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
  min-height: 44px;
  text-decoration: none;
  cursor: pointer;
}

.btn--primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn--primary:hover { background: var(--primary-light); border-color: var(--primary-light); color: #fff; }
.btn--gold { background: var(--gold); color: #1A2332; border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); color: #1A2332; }
.btn--outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn--outline:hover { border-color: var(--primary); color: var(--primary); }
.btn--white { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.25); backdrop-filter: blur(4px); }
.btn--white:hover { background: rgba(255,255,255,0.22); color: #fff; }
.btn--sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; min-height: 36px; }

/* --- Header / Nav --- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 8px var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav__logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.15;
}

.nav__logo-city {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  color: var(--primary);
}

.nav__logo-tagline {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav__links li { position: relative; }

.nav__links > li > a {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.875rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s ease;
  min-height: 44px;
}

.nav__links > li > a:hover,
.nav__links > li > a.active { color: var(--primary); }

/* Dropdown */
.nav__dropdown-toggle { gap: 0.25rem; }
.nav__dropdown-toggle svg { width: 14px; height: 14px; transition: transform 0.2s ease; }

.nav__dropdown-menu {
  position: absolute;
  top: 100%; left: 0;
  min-width: 220px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 8px 24px var(--shadow-md);
  padding: 0.5rem 0;
  opacity: 0; visibility: hidden;
  transform: translateY(4px);
  transition: all 0.2s ease;
  z-index: 50;
}

.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown.open .nav__dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}

.nav__dropdown:hover .nav__dropdown-toggle svg { transform: rotate(180deg); }

.nav__dropdown-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--text);
}

.nav__dropdown-menu li a:hover { background: var(--bg-alt); color: var(--primary); }

/* Nav actions */
.nav__actions { display: flex; align-items: center; gap: 0.75rem; }

.nav__phone {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.875rem; font-weight: 600; color: var(--primary);
  min-height: 44px; text-decoration: none;
}

.nav__phone svg { width: 16px; height: 16px; }

.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 6px;
  color: var(--text-muted); transition: color 0.2s ease, background 0.2s ease;
}

.theme-toggle:hover { color: var(--text); background: var(--bg-alt); }
.theme-toggle svg { width: 18px; height: 18px; }

.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px; padding: 10px;
}

.nav__hamburger span {
  display: block; width: 100%; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all 0.25s ease;
}

.nav__hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__hamburger.active span:nth-child(2) { opacity: 0; }
.nav__hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  padding: 0;
  overflow: hidden;
  margin-top: 68px;
}

.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: 0;
}

.hero__bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    var(--overlay-start) 0%,
    var(--overlay-mid) 40%,
    var(--overlay-end) 100%
  );
}

.hero__content {
  position: relative; z-index: 2;
  padding: 0 0 5rem;
  max-width: 640px;
}

.hero h1 { color: #fff; margin-bottom: 1rem; font-size: clamp(2.5rem, 5.5vw, 3.75rem); }
.hero .lead { color: rgba(255,255,255,0.8); margin-bottom: 2rem; max-width: 100%; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* --- Page Hero (interior pages) --- */
.page-hero {
  padding: 7.5rem 0 3rem;
  background: var(--primary);
  position: relative;
  overflow: hidden;
  margin-top: 68px;
}

[data-theme="dark"] .page-hero { background: #14212E; }

.page-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.page-hero h1 { color: #fff; margin-bottom: 0.5rem; }
.page-hero .lead { color: rgba(255,255,255,0.75); max-width: 100%; }

.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; margin-bottom: 1rem; }
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,0.4); }
.breadcrumb .current { color: rgba(255,255,255,0.85); }

/* --- Quick Access Bar --- */
.quick-access {
  background: var(--primary);
  padding: 0;
}

[data-theme="dark"] .quick-access { background: #14212E; }

.quick-access__grid { display: grid; grid-template-columns: repeat(5, 1fr); }

.quick-access__item {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: 1.25rem 0.75rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.8125rem; font-weight: 500; text-align: center;
  transition: all 0.2s ease;
  border-right: 1px solid rgba(255,255,255,0.1);
  min-height: 44px; text-decoration: none;
}

.quick-access__item:last-child { border-right: none; }
.quick-access__item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.quick-access__item svg { width: 22px; height: 22px; opacity: 0.9; }

/* --- About / Community Split --- */
.about-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.about-split__content {
  border-left: 3px solid var(--accent);
  padding-left: 2rem;
}

.about-split__content h2 { margin-bottom: 1rem; }
.about-split__content p { margin-bottom: 1.5rem; }

.about-split__features { display: flex; flex-direction: column; gap: 0.875rem; margin-top: 1.5rem; }

.about-split__feature {
  display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.95rem;
}

.about-split__feature svg {
  width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 2px;
}

.about-split__image { border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; }
.about-split__image img { width: 100%; height: 100%; object-fit: cover; }

/* --- Departments (Staggered List) --- */
.departments { background: var(--bg-alt); }

.departments h2 { margin-bottom: 2.5rem; }

.dept-list { display: flex; flex-direction: column; gap: 0; }

.dept-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}

.dept-item:last-child { border-bottom: none; }
.dept-item:hover { background: var(--bg); }

.dept-item:nth-child(even) { background: rgba(0,0,0,0.015); }
[data-theme="dark"] .dept-item:nth-child(even) { background: rgba(255,255,255,0.02); }
.dept-item:nth-child(even):hover { background: var(--bg); }

.dept-item__icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); border-radius: 8px; color: var(--primary);
  border: 1px solid var(--border);
}

.dept-item__icon svg { width: 22px; height: 22px; }

.dept-item__info h3 { font-size: 1.125rem; margin-bottom: 0.25rem; }
.dept-item__info p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; max-width: 100%; }

.dept-item__link {
  font-size: 0.875rem; font-weight: 600; color: var(--primary);
  display: flex; align-items: center; gap: 0.35rem;
  white-space: nowrap; min-height: 44px; text-decoration: none;
}

.dept-item__link svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.dept-item__link:hover svg { transform: translateX(3px); }

/* --- Pull Quote Band --- */
.pull-quote {
  background: var(--primary);
  padding: 4.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .pull-quote { background: #14212E; }

.pull-quote blockquote {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: #fff; line-height: 1.4;
  max-width: 800px; margin: 0 auto;
  position: relative;
}

.pull-quote blockquote::before {
  content: '';
  display: block; width: 48px; height: 3px;
  background: var(--gold);
  margin: 0 auto 1.5rem;
}

/* --- News & Events (Ledger Layout) --- */
.news-section h2 { margin-bottom: 2.5rem; }

.news-ledger { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }

.news-featured { border-radius: 6px; overflow: hidden; background: var(--bg-alt); }

.news-featured__image { aspect-ratio: 16 / 9; overflow: hidden; }
.news-featured__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.news-featured:hover .news-featured__image img { transform: scale(1.03); }

.news-featured__body { padding: 1.5rem; }

.news-featured__date,
.news-card__date {
  font-size: 0.8rem; font-weight: 500; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.5rem;
}

.news-featured__body h3 { margin-bottom: 0.75rem; }
.news-featured__body p { font-size: 0.9375rem; color: var(--text-muted); }

.news-stack { display: flex; flex-direction: column; gap: 1.5rem; }

.news-card {
  display: grid; grid-template-columns: 120px 1fr; gap: 1rem;
  align-items: start; padding: 1rem; border-radius: 6px;
  background: var(--bg-alt); transition: box-shadow 0.2s ease;
}

.news-card:hover { box-shadow: 0 2px 12px var(--shadow); }

.news-card__image { aspect-ratio: 1; border-radius: 4px; overflow: hidden; }
.news-card__image img { width: 100%; height: 100%; object-fit: cover; }

.news-card__date { margin-bottom: 0.25rem; }
.news-card__body h4 { font-size: 1rem; margin-bottom: 0.35rem; }
.news-card__body p { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.5; max-width: 100%; }

/* --- CTA Band --- */
.cta-band { background: var(--gold); padding: 2.75rem 0; }
[data-theme="dark"] .cta-band { background: #3A2A0A; }

.cta-band__inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 1.25rem; text-align: center;
}

.cta-band h3 { color: #1A2332; font-size: 1.5rem; }
[data-theme="dark"] .cta-band h3 { color: var(--gold); }

.cta-band__phone { font-size: 1.25rem; font-weight: 600; color: #1A2332; text-decoration: none; }
[data-theme="dark"] .cta-band__phone { color: var(--text); }

/* --- Footer --- */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 1.5rem;
}

[data-theme="dark"] .site-footer { background: #0A0F14; border-top: 1px solid var(--border); }

.footer__grid {
  display: grid; grid-template-columns: 1fr;
  gap: 2.5rem; margin-bottom: 3rem;
}

.footer__brand p {
  font-size: 0.875rem; line-height: 1.6;
  color: rgba(255,255,255,0.65); margin-top: 0.75rem; max-width: 300px;
}

.footer__heading {
  font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 0.9rem;
  color: #fff; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem;
}

.footer__links li + li { margin-top: 0.5rem; }

.footer__links a { font-size: 0.875rem; color: rgba(255,255,255,0.65); transition: color 0.2s ease; }
.footer__links a:hover { color: #fff; }

.footer__contact-item {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.875rem; color: rgba(255,255,255,0.65); margin-bottom: 0.75rem;
}

.footer__contact-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: rgba(255,255,255,0.5); }
.footer__contact-item a { color: rgba(255,255,255,0.65); }
.footer__contact-item a:hover { color: #fff; }

.footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-direction: column; align-items: center;
  gap: 0.5rem; text-align: center;
}

.footer__copyright { font-size: 0.8125rem; color: rgba(255,255,255,0.45); }

.footer__credit { font-size: 0.85rem; color: rgba(255,255,255,0.4); }
.footer__credit a { color: rgba(255,255,255,0.6); }
.footer__credit a:hover { color: #fff; }

/* --- River Line Divider --- */
.river-line { display: block; width: 100%; height: 40px; overflow: visible; }

.river-line path {
  fill: none; stroke: var(--accent); stroke-width: 1.5;
  opacity: 0.3;
  stroke-dasharray: 1200; stroke-dashoffset: 1200;
  transition: stroke-dashoffset 1.8s ease;
}

.river-line.drawn path { stroke-dashoffset: 0; }

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

.reveal-left {
  opacity: 0; transform: translateX(-24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

/* --- Contact Page --- */
.contact-grid {
  display: grid; grid-template-columns: 1fr; gap: 3rem;
}

.contact-info-block {
  background: var(--bg-alt);
  border-radius: 6px; padding: 2rem; margin-bottom: 1.5rem;
}

.contact-info-block h3 { margin-bottom: 1.25rem; font-size: 1.25rem; }

.contact-info-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.625rem 0; border-bottom: 1px solid var(--border-light);
}

.contact-info-item:last-child { border-bottom: none; }

.contact-info-item svg {
  width: 18px; height: 18px; color: var(--primary);
  flex-shrink: 0; margin-top: 2px;
}

.contact-info-item strong {
  display: block; font-size: 0.8125rem; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.04em; margin-bottom: 0.15rem;
}

.contact-info-item span,
.contact-info-item a { font-size: 0.9375rem; color: var(--text); }

.map-embed { border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* --- Forms --- */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block; font-size: 0.875rem; font-weight: 600;
  color: var(--text); margin-bottom: 0.375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 0.75rem 1rem;
  font-family: 'DM Sans', sans-serif; font-size: 0.9375rem;
  color: var(--text); background: var(--bg);
  border: 1.5px solid var(--border); border-radius: 4px;
  transition: border-color 0.2s ease; min-height: 44px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--primary); }

.form-group textarea { min-height: 140px; resize: vertical; }

.form-row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }

.form-status {
  padding: 1rem; border-radius: 4px; font-size: 0.9375rem;
  font-weight: 500; margin-top: 1rem; display: none;
}

.form-status.success {
  display: block; background: #E8F5E9; color: #2E7D32; border: 1px solid #C8E6C9;
}

.form-status.error {
  display: block; background: #FFEBEE; color: #C62828; border: 1px solid #FFCDD2;
}

[data-theme="dark"] .form-status.success { background: #1B3B1F; color: #81C784; border-color: #2E5932; }
[data-theme="dark"] .form-status.error { background: #3B1B1B; color: #E57373; border-color: #5C2828; }

/* --- Service Pages --- */
.service-layout {
  display: grid; grid-template-columns: 1fr; gap: 3rem; padding: 3rem 0;
}

.service-content h2 { margin-bottom: 1rem; }
.service-content h3 { margin-top: 2rem; margin-bottom: 0.75rem; }
.service-content p { margin-bottom: 1rem; color: var(--text-muted); }
.service-content p:last-child { margin-bottom: 0; }

.service-list { margin: 1rem 0; padding-left: 0; }

.service-list li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  padding: 0.375rem 0; font-size: 0.9375rem; color: var(--text-muted);
}

.service-list li svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }

.sidebar-nav {
  background: var(--bg-alt); border-radius: 6px;
  padding: 1.5rem; position: sticky; top: 84px;
}

.sidebar-nav h4 {
  font-size: 0.8125rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.75rem;
}

.sidebar-nav ul li + li { margin-top: 0.125rem; }

.sidebar-nav a {
  display: flex; align-items: center;
  padding: 0.5rem 0.75rem; font-size: 0.9rem; color: var(--text-muted);
  border-radius: 4px; transition: all 0.15s ease; min-height: 44px;
}

.sidebar-nav a:hover { color: var(--primary); background: var(--bg); }

.sidebar-nav a.active {
  color: var(--primary); background: var(--bg); font-weight: 600;
  border-left: 3px solid var(--accent);
  padding-left: calc(0.75rem - 3px);
}

.sidebar-cta {
  background: var(--primary); border-radius: 6px;
  padding: 1.5rem; margin-top: 1.5rem; color: #fff;
}

.sidebar-cta h4 { color: #fff; margin-bottom: 0.5rem; }
.sidebar-cta p { font-size: 0.875rem; color: rgba(255,255,255,0.7); margin-bottom: 1rem; max-width: 100%; }
.sidebar-cta .btn--gold { width: 100%; justify-content: center; }

/* --- Service CTA --- */
.service-cta {
  background: var(--bg-alt); border-radius: 6px;
  padding: 2.5rem; margin-top: 3rem;
  border-left: 3px solid var(--accent);
}

.service-cta h3 { margin-bottom: 0.5rem; }
.service-cta p { margin-bottom: 1.25rem; }

/* --- Timeline (About page) --- */
.timeline { position: relative; padding-left: 2.5rem; }

.timeline::before {
  content: ''; position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}

.timeline__item { position: relative; padding-bottom: 2.5rem; }
.timeline__item:last-child { padding-bottom: 0; }

.timeline__item::before {
  content: ''; position: absolute;
  left: -2.5rem; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
  z-index: 1;
}

.timeline__year {
  font-size: 0.8rem; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.25rem;
}

.timeline__item h3 { font-size: 1.125rem; margin-bottom: 0.375rem; }
.timeline__item p { font-size: 0.9375rem; color: var(--text-muted); max-width: 100%; }

/* --- Priorities (About page, staggered) --- */
.priorities { display: flex; flex-direction: column; gap: 2rem; }

.priority-item {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
  align-items: center; padding: 2rem;
  background: var(--bg-alt); border-radius: 6px;
  border-left: 3px solid var(--accent);
}

.priority-item__number {
  font-family: 'DM Serif Display', serif;
  font-size: 3rem; color: var(--border); line-height: 1;
}

.priority-item h3 { margin-bottom: 0.5rem; }
.priority-item p { color: var(--text-muted); font-size: 0.9375rem; max-width: 100%; }

/* --- Leadership Grid --- */
.leadership-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 1.5rem; }

.leader-card { padding: 1.5rem; background: var(--bg-alt); border-radius: 6px; }
.leader-card h4 { margin-bottom: 0.15rem; }
.leader-card .role { font-size: 0.85rem; color: var(--accent); font-weight: 500; }
.leader-card p { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.5rem; max-width: 100%; }

/* --- 404 Page --- */
.error-page {
  min-height: calc(100vh - 200px);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 7rem 1.25rem 4rem;
}

.error-page__code {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(5rem, 15vw, 10rem);
  color: var(--border); line-height: 1; margin-bottom: 0.5rem;
}

.error-page h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
.error-page p { color: var(--text-muted); margin: 0 auto 2rem; max-width: 480px; }

/* --- Demo Disclaimer Bar --- */
.disclaimer-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 101; background: #2C1810;
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem; text-align: center;
  padding: 0.5rem 1rem; line-height: 1.4;
}

.disclaimer-bar a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(196,154,42,0.4);
}

.disclaimer-bar a:hover { color: #fff; }

/* ============================================
   Responsive
   ============================================ */

@media (min-width: 480px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .news-card { grid-template-columns: 140px 1fr; }
  .leadership-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .nav__hamburger { display: none; }
  .nav__links { display: flex; }

  .about-split { grid-template-columns: 3fr 2fr; }
  .news-ledger { grid-template-columns: 3fr 2fr; }
  .contact-grid { grid-template-columns: 1fr 380px; }
  .service-layout { grid-template-columns: 1fr 280px; }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
  .footer__bottom { flex-direction: row; justify-content: space-between; }
  .cta-band__inner { flex-direction: row; text-align: left; justify-content: center; }
  .priority-item { grid-template-columns: 80px 1fr; }
}

@media (max-width: 767px) {
  .nav__hamburger { display: flex; }

  .nav__menu {
    position: fixed;
    top: 68px; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    padding: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto; z-index: 99;
  }

  .nav__menu.open { transform: translateX(0); }

  .nav__links { flex-direction: column; align-items: stretch; }

  .nav__links > li > a {
    text-align: left; padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light); font-size: 1rem;
  }

  .nav__dropdown-menu {
    position: static; opacity: 1; visibility: visible;
    transform: none; box-shadow: none; border: none;
    padding: 0 0 0 1rem; display: none; background: transparent;
  }

  .nav__dropdown.open .nav__dropdown-menu { display: block; }

  .nav__dropdown-menu li a {
    border-bottom: 1px solid var(--border-light); padding: 0.625rem 0;
  }

  .nav__phone { display: none; }

  .quick-access__grid { grid-template-columns: repeat(3, 1fr); }
  .quick-access__item:nth-child(n+4) { border-top: 1px solid rgba(255,255,255,0.1); }

  .dept-item { grid-template-columns: 44px 1fr; gap: 1rem; }
  .dept-item__link { grid-column: 2; margin-top: -0.5rem; }

  .hero { min-height: 75vh; }
  .hero__content { padding-bottom: 3.5rem; }
}

@media (min-width: 1024px) {
  section { padding: 6rem 0; }
  .dept-item { padding: 1.75rem 1.5rem; }
  .service-layout { grid-template-columns: 1fr 300px; gap: 4rem; }
}

/* --- Print --- */
@media print {
  .site-header, .disclaimer-bar, .theme-toggle, .nav__hamburger { display: none !important; }
  body { padding-bottom: 0; }
  section { padding: 1.5rem 0; }
}
