/* ================================================================
   MERCED HOUSING AUTHORITY — Shared Stylesheet
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; }
img { max-width: 100%; height: auto; }

/* ================================================================
   ACCESSIBILITY
   ================================================================ */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  padding: 12px 24px;
  background: var(--navy);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  outline: 3px solid var(--gold);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 3px;
}

:root {
  --navy: #1A2B4A;
  --navy-dark: #0F1B30;
  --navy-mid: #243660;
  --gold: #885E14;
  --gold-light: #E8B84B;
  --gold-pale: #FBF3E4;
  --cream: #F9F7F2;
  --white: #FFFFFF;
  --text-primary: #1A2B4A;
  --text-muted: #5C6B84;
  --text-light: #657590;
  --border: #D8E0EA;
  --border-interactive: #6B7D8E;
  --shadow-sm: 0 2px 12px rgba(26,43,74,0.08);
  --shadow-md: 0 6px 32px rgba(26,43,74,0.12);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --status-info-bg: #EEF4FF;
  --status-info-text: #1E40AF;
  --status-success-bg: #F0FDF4;
  --status-success-text: #16A34A;
  --status-warning-bg: #FFF3E0;
  --status-warning-text: #BF4400;
  --status-error-bg: #FEE2E2;
  --status-error-text: #DC2626;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text-primary);
  line-height: 1.6;
}

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }

/* ================================================================
   GOLD BAR
   ================================================================ */
.gold-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
}

/* ================================================================
   TOP BAR
   ================================================================ */
.topbar {
  background: var(--navy-dark);
  padding: 8px 0;
  font-size: 13px;
  color: #9fa3ac;
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar a { color: #9fa3ac; text-decoration: none; transition: color 0.2s; }
.topbar a:hover { color: var(--gold-light); }
.topbar-links { display: flex; gap: 20px; align-items: center; }
.topbar-divider { color: #838b99; }

/* Google Translate Widget */
#google_translate_element {
  display: inline-flex;
  align-items: center;
  position: relative;
}
/* Hide the default Google branding text */
#google_translate_element .goog-te-gadget {
  font-size: 0;
  line-height: 0;
  color: transparent;
}
#google_translate_element .goog-te-gadget > span {
  display: none !important;
}
/* Style the select dropdown */
#google_translate_element .goog-te-gadget .goog-te-combo {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 4px 24px 4px 8px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  background-color: rgba(255,255,255,0.08);
  color: #b7bac0;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(255,255,255,0.5)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 8px;
  transition: all 0.2s;
}
#google_translate_element .goog-te-gadget .goog-te-combo:hover,
#google_translate_element .goog-te-gadget .goog-te-combo:focus {
  border-color: var(--gold);
  background-color: rgba(255,255,255,0.12);
  color: #e7e8ea;
}
#google_translate_element .goog-te-gadget .goog-te-combo option {
  background: var(--navy);
  color: white;
  font-size: 13px;
  padding: 4px 8px;
}
.translate-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  padding: 4px 10px;
  color: #9fa3ac;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.translate-trigger:hover {
  border-color: var(--gold);
  color: #e7e8ea;
}
/* Hide the Google top bar that shifts the page */
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }

/* ================================================================
   NAV
   ================================================================ */
nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  height: 48px;
  width: auto;
  display: block;
  background: white;
  border-radius: 6px;
  padding: 4px 10px;
}
.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--gold);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-icon svg { width: 24px; height: 24px; fill: white; }
.logo-text { line-height: 1.2; }
.logo-text .agency {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.01em;
  margin-bottom: 3px;
}
.logo-text .county {
  font-size: 11px;
  color: #8f97a9;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links > a,
.nav-dropdown > .nav-dropdown-trigger {
  color: #e7e8ea;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
}
.nav-links > a:hover,
.nav-dropdown > .nav-dropdown-trigger:hover { background: rgba(255,255,255,0.1); color: white; }
.nav-links > a.active,
.nav-dropdown > .nav-dropdown-trigger.active { color: var(--gold-light); }

/* Dropdown arrow */
.nav-dropdown-trigger .arrow {
  border: solid rgba(255,255,255,0.5);
  border-width: 0 1.5px 1.5px 0;
  display: inline-block;
  padding: 2.5px;
  transform: rotate(45deg);
  margin-top: -2px;
  transition: transform 0.2s;
}
.nav-dropdown:hover .nav-dropdown-trigger .arrow { transform: rotate(-135deg); }

/* Dropdown container */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 180ms;
  z-index: 200;
  border: 1px solid var(--border);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-primary);
  text-decoration: none;
  transition: background-color 120ms, color 120ms;
}
.nav-dropdown-menu a:hover {
  background: var(--gold-pale);
  color: var(--gold);
}
.nav-dropdown-menu .menu-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

.nav-cta {
  background: var(--gold) !important;
  color: white !important;
  padding: 8px 18px !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--gold-light);
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ================================================================
   HERO — Homepage Slideshow
   ================================================================ */
.hero {
  padding: 80px 32px 72px;
  position: relative;
  overflow: hidden;
  min-height: 520px;
  background-color: var(--navy-dark);
}
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.9s var(--ease-in-out);
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(10,18,34,0.85) 0%, rgba(15,27,48,0.75) 50%, rgba(26,43,74,0.65) 100%);
}
.hero-accent {
  position: absolute;
  right: -60px;
  top: -60px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(200,149,42,0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 2;
}
.slide-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0;
  z-index: 10;
}
.slide-dot {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: none;
}
.slide-dot::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: all 0.3s;
  flex-shrink: 0;
}
.slide-dot.active::before {
  background: var(--gold-light);
  width: 24px;
  border-radius: 4px;
}
.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
@supports (backdrop-filter: blur(1px)) {
  .slide-arrow { backdrop-filter: blur(4px); }
}
.slide-arrow:hover { background: rgba(255,255,255,0.22); }
.slide-arrow.prev { left: 20px; }
.slide-arrow.next { right: 20px; }
.slide-arrow svg { width: 20px; height: 20px; fill: white; }
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,149,42,0.2);
  border: 1px solid rgba(200,149,42,0.4);
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.hero-badge::before { content: ''; width: 6px; height: 6px; background: var(--gold-light); border-radius: 50%; }
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  color: white;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.hero h1 span { color: var(--gold-light); }
.hero p {
  font-size: 17px;
  color: #b7bac0;
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 36px;
  font-weight: 300;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero Card (office hours) */
.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 28px;
}
@supports (backdrop-filter: blur(1px)) {
  .hero-card { backdrop-filter: blur(8px); }
}
.hero-card h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 20px;
}
.hours-list { list-style: none; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 14px;
  color: #d1d5dc;
  gap: 16px;
}
.hours-list li:last-child { border-bottom: none; }
.hours-list .day { font-weight: 500; color: white; }
.hours-list .time { color: #9fa3ac; font-size: 13px; }
.contact-mini {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.contact-mini p {
  font-size: 13px;
  color: #9fa3ac;
  margin-bottom: 6px;
  line-height: 1.5;
}
.contact-mini a { color: var(--gold-light); text-decoration: none; }
.contact-mini a:hover { text-decoration: underline; }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out), transform 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out);
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--gold-light);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200,149,42,0.4);
}
.btn-primary:active { transform: scale(0.97); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 13px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover {
  border-color: #b7bac0;
  background: rgba(255,255,255,0.08);
  color: white;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out), color 160ms var(--ease-out);
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-secondary:hover {
  background: var(--navy-mid);
  color: white;
  transform: translateY(-1px);
}
.btn-secondary:active { transform: scale(0.97); }
.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--navy);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out);
  border: 2px solid var(--border-interactive);
  cursor: pointer;
}
.btn-outline-dark:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: rgba(26,43,74,0.04);
}
.btn-primary-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out);
  border: 2px solid var(--gold);
  cursor: pointer;
}
.btn-primary-sm:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

/* ================================================================
   QUICK ACCESS BAR
   ================================================================ */
.quick-access {
  background: white;
  border-bottom: 1px solid var(--border);
}
.quick-access-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.qa-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 20px;
  text-decoration: none;
  border-right: 1px solid var(--border);
  transition: all 0.2s;
  cursor: pointer;
  color: var(--text-primary);
}
.qa-item:last-child { border-right: none; }
.qa-item:hover { background: var(--cream); }
.qa-item:hover .qa-icon { background: var(--navy); }
.qa-item:hover .qa-icon svg { fill: white; }
.qa-icon {
  width: 44px;
  height: 44px;
  background: var(--gold-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.qa-icon svg { width: 20px; height: 20px; fill: var(--gold); transition: all 0.2s; }
.qa-label { font-size: 14px; font-weight: 600; color: var(--text-primary); line-height: 1.3; }
.qa-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ================================================================
   MAIN CONTENT WRAPPER
   ================================================================ */
.main { max-width: 1200px; margin: 0 auto; padding: 64px 32px; }

/* ================================================================
   SECTION HEADINGS
   ================================================================ */
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 560px;
  font-weight: 300;
}

/* ================================================================
   ANNOUNCEMENTS (homepage, above programs)
   ================================================================ */
.announcements { margin: -40px 0 40px; position: relative; }
.announcements-stage { position: relative; }
.announce-slide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms var(--ease-out);
  position: absolute;
  inset: 0;
}
.announce-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  position: relative;
}
.announcements-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.announcements-controls {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}
.announce-dot {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 10px 16px;
  min-height: 44px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.announce-dot:hover { color: var(--navy); border-color: var(--navy); }
.announce-dot.active { background: var(--navy); color: white; border-color: var(--navy); }
@media (prefers-reduced-motion: reduce) {
  .announce-slide { transition: none; }
  .hero-slide { transition: none; }
  .program-card,
  .program-card::after { transition: none; }
  .btn-primary, .btn-secondary,
  .btn-outline, .btn-outline-dark, .btn-primary-sm { transition: none; }
  .btn-primary:active, .btn-secondary:active { transform: none; }
}
.announce-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--cream);
  border: 1.5px solid rgba(136,94,20,0.22);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.announce-card:hover {
  background: white;
  border-color: rgba(136,94,20,0.45);
  box-shadow: 0 4px 14px rgba(26,43,74,0.08);
  transform: translateY(-1px);
}
.announce-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--gold-pale);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.announce-body { flex: 1; min-width: 0; }
.announce-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 4px;
  line-height: 1.35;
}
.announce-body .announce-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}
.announce-body p {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
}
@media (max-width: 800px) {
  .announcements-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   PROGRAMS GRID (homepage)
   ================================================================ */
.programs { margin-bottom: 72px; }
.programs-header { margin-bottom: 40px; }
.programs-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.programs-grid .program-card {
  flex: 0 0 calc((100% - 32px) / 3);
}
.program-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  text-decoration: none;
  display: block;
  transition: border-color 200ms var(--ease-out), transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
  position: relative;
  overflow: hidden;
  color: var(--text-primary);
}
.program-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 180ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .program-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow-md); }
  .program-card:hover::after { transform: scaleX(1); }
}
.program-icon {
  width: 36px;
  height: 36px;
  background: var(--gold-pale);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.program-icon svg { width: 18px; height: 18px; fill: var(--gold); }
.program-card h3 { font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.program-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.program-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.02em;
}

/* ================================================================
   NOTICES & SIDEBAR (homepage)
   ================================================================ */
.side-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  margin-bottom: 72px;
}
.notices-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.card-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-header h3 { font-size: 16px; font-weight: 600; color: var(--navy); }
.card-header a { font-size: 13px; color: var(--gold); text-decoration: none; font-weight: 500; }
.card-header a:hover { text-decoration: underline; }
.notice-item {
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-decoration: none;
  transition: background 0.15s;
  color: var(--text-primary);
}
.notice-item:last-child { border-bottom: none; }
.notice-item:hover { background: var(--cream); }
.notice-date { flex-shrink: 0; text-align: center; width: 44px; }
.notice-date .month {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7B5510;
  background: var(--gold-pale);
  padding: 3px 6px;
  border-radius: 4px;
  display: block;
  margin-bottom: 3px;
}
.notice-date .day { font-size: 20px; font-weight: 700; color: var(--navy); line-height: 1; }
.notice-content .title { font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 4px; line-height: 1.4; }
.notice-content .desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.notice-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 6px;
}
.tag-info { background: var(--status-info-bg); color: var(--status-info-text); }
.tag-board { background: var(--status-success-bg); color: var(--status-success-text); }
.tag-housing { background: var(--gold-pale); color: #92400E; }
.tag-event { background: #FEF3C7; color: #92400E; }

/* Sidebars */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.contact-sidebar { display: flex; flex-direction: column; gap: 20px; }
.info-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.info-card-header {
  background: var(--navy);
  padding: 16px 22px;
}
.info-card-header h3 { font-size: 14px; font-weight: 600; color: white; letter-spacing: 0.02em; }
.info-card-body { padding: 20px 22px; }
.info-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}
.info-row:last-child { margin-bottom: 0; }
.info-icon { width: 18px; height: 18px; fill: var(--gold); flex-shrink: 0; margin-top: 2px; }
.info-row .label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-light);
  margin-bottom: 3px;
}
.info-row .value { font-size: 14px; color: var(--text-primary); font-weight: 400; line-height: 1.5; }
.info-row a { color: var(--navy); text-decoration: none; }
.info-row a:hover { color: var(--gold); }
.translate-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}
.translate-btn:hover { background: var(--gold-pale); border-color: var(--gold); }
.translate-btn svg { width: 18px; height: 18px; fill: var(--text-muted); }

/* ================================================================
   PAGE HERO — Inner Pages
   ================================================================ */
.page-hero {
  background: var(--navy);
  padding: 48px 32px 44px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200,149,42,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #c5cad1;
  margin-bottom: 16px;
}
.breadcrumb a { color: #c5cad1; text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb .sep { color: #8f97a6; }
.breadcrumb .current { color: var(--gold-light); }
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: 12px;
}
.page-hero .subtitle {
  font-size: 17px;
  color: #adb3be;
  max-width: 600px;
  line-height: 1.7;
  font-weight: 300;
}

/* ================================================================
   CONTENT LAYOUTS — Inner Pages
   ================================================================ */
.content-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px 64px;
}
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}
.content-full { max-width: 860px; }

/* Content Card */
.content-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px;
  margin-bottom: 28px;
}
.content-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 18px;
  line-height: 1.3;
}
.content-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
  margin-top: 28px;
}
.content-card h3:first-child { margin-top: 0; }
.content-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.content-card p:last-child { margin-bottom: 0; }
.content-card ul, .content-card ol {
  margin: 12px 0 16px 20px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
}
.content-card li { margin-bottom: 6px; }

/* Highlight Box */
.highlight-box {
  background: var(--gold-pale);
  border: 1px solid rgba(136,94,20,0.28);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 24px 0;
}
.highlight-box p {
  color: var(--text-primary);
  font-size: 15px;
  margin-bottom: 0;
}
.highlight-box strong { color: var(--navy); }

/* Info Box */
.info-box {
  background: var(--status-info-bg);
  border: 1px solid rgba(37,99,235,0.22);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 24px 0;
}
.info-box p { color: var(--status-info-text); font-size: 14px; margin-bottom: 0; }

/* ================================================================
   ABOUT PAGE — Mission & Values
   ================================================================ */
.mission-block {
  background: var(--navy);
  border-radius: 14px;
  padding: 40px;
  margin-bottom: 28px;
  text-align: center;
}
.mission-block .section-label { color: var(--gold-light); }
.mission-block blockquote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 2.5vw, 24px);
  color: white;
  line-height: 1.6;
  font-style: italic;
  max-width: 720px;
  margin: 0 auto 20px;
}
.mission-block p { color: #c5cad1; font-size: 15px; }

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.value-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  transition: all 0.25s;
}
.value-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.value-icon {
  width: 56px;
  height: 56px;
  background: var(--gold-pale);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.value-icon svg { width: 24px; height: 24px; fill: var(--gold); }
.value-card h3 { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.value-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ================================================================
   HISTORY TIMELINE
   ================================================================ */
.timeline { position: relative; padding-left: 32px; margin-top: 28px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding-bottom: 28px;
  padding-left: 24px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--gold);
}
.timeline-year {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.timeline-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.timeline-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ================================================================
   HOUSING SERVICES — Program Cards (inner page)
   ================================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.service-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  display: flex;
  gap: 20px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s;
}
.service-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.service-card:hover::after { transform: scaleX(1); }
.service-card .program-icon { flex-shrink: 0; }
.service-card h3 { font-size: 18px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin-bottom: 12px; }

/* ================================================================
   BOARD OF COMMISSIONERS
   ================================================================ */
.commissioners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.commissioner-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  transition: all 0.25s;
}
.commissioner-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.commissioner-avatar {
  width: 72px;
  height: 72px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.commissioner-avatar svg { width: 32px; height: 32px; fill: rgba(255,255,255,0.5); }
.commissioner-card h3 { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.commissioner-card .role { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.commissioner-card .email { font-size: 13px; color: var(--gold); word-break: break-all; }

/* Meeting Info Box */
.meeting-info {
  background: var(--navy);
  border-radius: 14px;
  padding: 32px;
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.meeting-stat { text-align: center; }
.meeting-stat .label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  margin-bottom: 8px;
}
.meeting-stat .value {
  font-size: 16px;
  font-weight: 500;
  color: white;
  line-height: 1.5;
}

/* ================================================================
   PLANS & DOCUMENTS
   ================================================================ */
.documents-list { margin-top: 28px; }
.document-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--text-primary);
}
.document-item:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.doc-icon {
  width: 44px;
  height: 44px;
  background: var(--gold-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.doc-icon svg { width: 20px; height: 20px; fill: var(--gold); }
.doc-icon.navy { background: var(--navy); }
.doc-icon.navy svg { fill: white; }
.doc-info { flex: 1; }
.doc-info h3 { font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 3px; }
.doc-info p { font-size: 13px; color: var(--text-muted); }
.doc-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}
.doc-badge.pdf { background: var(--status-error-bg); color: var(--status-error-text); }
.doc-badge.current { background: var(--status-success-bg); color: var(--status-success-text); }

/* ================================================================
   HUMAN RESOURCES — Job Listings
   ================================================================ */
.job-listing {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: all 0.2s;
}
.job-listing:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.job-info h3 { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.job-info p { font-size: 13px; color: var(--text-muted); }
.job-meta { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }

/* ================================================================
   CONTACT PAGE
   ================================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 40px;
}
.contact-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-card-icon {
  width: 48px;
  height: 48px;
  background: var(--gold-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-card-icon svg { width: 22px; height: 22px; fill: var(--gold); }
.contact-card h3 { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.contact-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }
.contact-card a { color: var(--navy); font-weight: 500; }
.contact-card a:hover { color: var(--gold); }

/* Contact Form */
.contact-form { margin-top: 8px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-interactive);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--cream);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  background: white;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Staff Directory Table */
.staff-section { margin-top: 40px; }
.staff-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}
.dept-group { margin-bottom: 28px; }
.dept-group h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  padding: 10px 16px;
  background: var(--navy);
  color: white;
  border-radius: 8px 8px 0 0;
}
.staff-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: white;
  border: 1px solid var(--border);
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}
.staff-table td {
  padding: 10px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.staff-table tr:last-child td { border-bottom: none; }
.staff-table .name { font-weight: 600; color: var(--navy); width: 40%; }
.staff-table .email { width: 40%; }
.staff-table .email a { color: var(--gold); font-size: 13px; }
.staff-table .phone { width: 20%; font-size: 13px; white-space: nowrap; }

/* ================================================================
   INCOME TABLE
   ================================================================ */
.income-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  margin: 20px 0;
  border: 1px solid var(--border);
}
.income-table th {
  background: var(--navy);
  color: white;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  letter-spacing: 0.02em;
}
.income-table td {
  padding: 10px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.income-table tr:last-child td { border-bottom: none; }
.income-table tr:hover td { background: var(--cream); }

/* ================================================================
   FOOTER
   ================================================================ */
footer {
  background: var(--navy-dark);
  padding: 52px 32px 24px;
  color: #9fa3ac;
  margin-top: 20px;
}
footer a { color: #9fa3ac; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-minimal {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.footer-brand { flex: 1; min-width: 260px; }
.footer-brand p { font-size: 14px; line-height: 1.75; max-width: 340px; margin-top: 12px; }
.footer-contact { flex: 1; min-width: 280px; display: flex; flex-direction: column; gap: 16px; padding-top: 8px; }
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
}
.footer-contact-item svg { flex-shrink: 0; }
.footer-contact-item a { text-decoration: none; }
.footer-contact-item a:hover { color: var(--gold-light); text-decoration: underline; }
/* Legacy support for pages still using old footer */
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 40px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: white;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: #9299a5; text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom a { color: #9299a5; text-decoration: none; }
.footer-bottom a:hover { color: var(--gold-light); }
.footer-links { display: flex; gap: 20px; }

/* ================================================================
   RESPONSIVE — Tablets
   ================================================================ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .quick-access-inner { grid-template-columns: repeat(2, 1fr); }
  .qa-item:nth-child(2) { border-right: none; }
  .programs-grid .program-card { flex: 0 0 calc((100% - 16px) / 2); }
  .side-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-minimal { flex-direction: column; gap: 36px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .commissioners-grid { grid-template-columns: repeat(2, 1fr); }
  .meeting-info { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }

  /* Mobile nav */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 16px 24px 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    gap: 4px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.open a,
  .nav-links.open .nav-dropdown-trigger {
    padding: 12px 14px;
    width: 100%;
  }
  .nav-links.open .nav-dropdown { width: 100%; }
  .nav-links.open .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    background: rgba(255,255,255,0.08);
    border: none;
    border-radius: 8px;
    padding: 4px 0;
    min-width: 0;
    display: none;
  }
  .nav-links.open .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }
  .nav-links.open .nav-dropdown-menu a {
    color: #e7e8ea;
    padding: 8px 20px 8px 28px;
    white-space: normal;
  }
  .nav-links.open .nav-dropdown-menu a:hover {
    background: rgba(255,255,255,0.08);
    color: var(--gold-light);
    padding-left: 32px;
  }
  .logo-img { height: 40px; }
}

/* ================================================================
   CIVICCA — Meeting & Agenda Components
   ================================================================ */

/* Badges */
.civicca-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.civicca-badge-upcoming { background: var(--status-success-bg); color: var(--status-success-text); }
.civicca-badge-today { background: var(--gold); color: white; }
.civicca-badge-soon { background: var(--status-warning-bg); color: var(--status-warning-text); }
.civicca-badge-past { background: var(--cream); color: var(--text-muted); border: 1px solid var(--border); }
.civicca-badge-agenda { background: var(--status-info-bg); color: var(--status-info-text); }
.civicca-badge-pending { background: var(--cream); color: var(--text-muted); border: 1px solid var(--border); }

/* Section label */
.civicca-section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 16px;
}

/* Meeting card (board page) */
.civicca-meeting-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 16px;
  overflow: hidden;
}
.civicca-meeting-card.civicca-upcoming {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), var(--shadow-sm);
}
.civicca-meeting-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
}
.civicca-meeting-date-block {
  width: 56px;
  min-width: 56px;
  text-align: center;
  background: var(--navy);
  border-radius: 10px;
  padding: 8px 0;
  color: white;
}
.civicca-date-month {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
}
.civicca-date-day {
  display: block;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}
.civicca-meeting-info { flex: 1; min-width: 0; }
.civicca-meeting-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.civicca-meeting-meta {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.civicca-portal-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
}
.civicca-portal-link:hover { color: var(--gold-light); text-decoration: underline; }

/* Agenda toggle */
.civicca-agenda {
  border-top: 1px solid var(--border);
}
.civicca-agenda-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  background: var(--cream);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  text-align: left;
}
.civicca-agenda-toggle:hover { background: var(--gold-pale); }
.civicca-chevron {
  transition: transform 0.2s;
  flex-shrink: 0;
}
.civicca-agenda-toggle[aria-expanded="true"] .civicca-chevron {
  transform: rotate(180deg);
}
.civicca-agenda-body {
  padding: 0 24px 20px;
}

/* Agenda sections */
.civicca-agenda-section {
  margin-bottom: 16px;
}
.civicca-agenda-section:last-child { margin-bottom: 0; }
.civicca-agenda-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  padding: 10px 0 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.civicca-agenda-item {
  padding: 8px 0 8px 16px;
  border-left: 2px solid var(--border);
  margin-bottom: 4px;
}
.civicca-agenda-item-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.5;
}
.civicca-agenda-item-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 2px;
}
.civicca-agenda-pending {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-light);
  font-style: italic;
  background: var(--cream);
}

/* View all link */
.civicca-view-all {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--gold);
  text-decoration: none;
  padding: 10px 24px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  transition: all 0.2s;
}
.civicca-view-all:hover { background: var(--gold); color: white; }

/* Homepage meeting item override */
.civicca-meeting-item { cursor: pointer; }
.civicca-meeting-item:hover { background: var(--gold-pale) !important; }

/* Powered by badge */
.civicca-powered {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-light);
  margin-top: 12px;
}
.civicca-powered a {
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: none;
}
.civicca-powered a:hover { color: var(--gold); }

@media (max-width: 900px) {
  .civicca-meeting-header { flex-wrap: wrap; gap: 12px; padding: 16px; }
  .civicca-agenda-body { padding: 0 16px 16px; }
  .civicca-agenda-toggle { padding: 12px 16px; }
}

/* ================================================================
   RESPONSIVE — Mobile
   ================================================================ */
@media (max-width: 600px) {
  .programs-grid .program-card { flex: 0 0 100%; }
  .quick-access-inner { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .topbar-links { display: none; }
  .commissioners-grid { grid-template-columns: 1fr; }
  .meeting-info { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .job-listing { flex-direction: column; align-items: flex-start; }
  .service-card { flex-direction: column; }
  .content-card { padding: 24px; }
  .page-hero { padding: 36px 24px 32px; }
  .page-hero h1 { font-size: 1.4rem; }
  .content-layout { padding: 32px 20px 48px; }
  .footer-links { flex-wrap: wrap; }

  /* Tables: horizontal scroll wrapper */
  .staff-table, .income-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .staff-table .name { min-width: auto; }

  /* Nav toggle more visible */
  .nav-toggle { padding: 10px; }
}
@media (max-width: 400px) {
  .quick-access-inner { grid-template-columns: 1fr; }
  .qa-item { border-right: none !important; }
}

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

/* ================================================================
   ACCORDION (program detail pages: HCV, etc.)
   ================================================================ */
.accordion-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.accordion-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  background: white;
  border: none;
  width: 100%;
  text-align: left;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  transition: background 0.15s;
}
.accordion-header:hover { background: var(--cream); }
.accordion-header .acc-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s;
  font-size: 18px;
  color: var(--gold);
  font-weight: 700;
  line-height: 1;
}
.accordion-item.open .accordion-header .acc-icon { transform: rotate(45deg); }
.accordion-body {
  display: none;
  padding: 0 20px 20px;
}
.accordion-item.open .accordion-body { display: block; }
.accordion-body p {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 1rem;
  max-width: 72ch;
}
.accordion-body ul {
  margin: 0.5rem 0 1rem 1.5rem;
  list-style-type: disc;
}
.accordion-body li {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 0.4rem;
}
.accordion-body h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin: 1.5rem 0 0.5rem;
}
.accordion-body .notice-box {
  background: var(--status-warning-bg);
  border: 1px solid rgba(191,68,0,0.2);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 1rem 0;
}
.accordion-body .notice-box p {
  margin-bottom: 0;
  font-size: 14px;
  color: var(--status-warning-text);
}


/* ================================================================
   MOBILE CONTACT STRIP (below hero on small screens)
   ================================================================ */
.hero-contact-mobile {
  display: none;
  background: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 0 20px;
  gap: 0;
  align-items: stretch;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .hero-contact-mobile { display: flex; }
}
.hcm-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gold-light);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 16px 12px 0;
  transition: color 0.15s;
  min-height: 44px;
}
.hcm-link:hover { color: white; }
.hcm-link svg { flex-shrink: 0; }
.hcm-divider {
  width: 1px;
  background: rgba(255,255,255,0.15);
  margin: 8px 16px 8px 0;
  align-self: stretch;
}
.hcm-hours {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.6);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  padding: 12px 0;
  min-height: 44px;
}
.hcm-hours svg { flex-shrink: 0; fill: rgba(255,255,255,0.4); }
