:root {
  /* Colors */
  --cream:          #F5F0E8;
  --cream-dark:     #EBE5D8;
  --cream-border:   #D8D1C4;
  --forest:         #1E3A24;
  --forest-mid:     #2D5436;
  --forest-light:   #3D6B47;
  --gold:           #8C7248;
  --gold-light:     #B8976A;
  --charcoal:       #2C2C28;
  --red:            #7A2828;
  --text-dark:      #18251C;
  --text-mid:       #4A4A45;

  /* Typography */
  --font: 'Outfit', system-ui, sans-serif;

  /* Spacing */
  --section-pad: clamp(4rem, 7vw, 6rem) clamp(1.25rem, 6vw, 5rem);
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;

  /* Shadows */
  --shadow-sm: 0 2px 12px rgba(18, 32, 22, 0.07);
  --shadow-md: 0 8px 32px rgba(18, 32, 22, 0.11);
  --shadow-lg: 0 20px 60px rgba(18, 32, 22, 0.17);

  /* Motion */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur:         0.35s;
}

/* CSS Reset and Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 17px;
}

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: none;
}

/* Accessibility Base Styles */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--forest);
  color: var(--cream);
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  z-index: 9999;
  border-radius: 0 0 6px 6px;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* Global focus ring — WCAG 2.1 AA */
*:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Screen reader only */
.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;
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* Alert Banner */
#alert-banner {
  position: static;
  background: #C0392B;
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 0.65rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: auto;
}

#alert-banner.hidden {
  display: none;
}

.alert__inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  flex-wrap: wrap;
}

.alert__dot {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

.alert__message {
  flex: 1;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #fff;
}

.alert__message strong {
  font-weight: 600;
  color: #fff;
}

.alert__link {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: underline;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.alert__link:hover {
  opacity: 0.75;
}

.alert__dismiss {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  padding: 0.25rem 0.4rem;
  flex-shrink: 0;
  border-radius: 3px;
  cursor: pointer;
  transition: color 0.2s;
}

.alert__dismiss:hover {
  color: #fff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  #alert-banner {
    padding: 0.6rem 0.75rem;
  }
  
  .alert__inner {
    gap: 0.5rem;
  }
  
  .alert__message {
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .alert__link {
    font-size: 0.72rem;
  }
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 500;
  height: 68px;
  background: var(--forest);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
  backdrop-filter: blur(12px);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.town-seal {
  width: 48px;
  height: 48px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.seal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seal-initials {
  color: var(--gold);
  font-weight: 600;
  font-size: 1.1rem;
}

.town-info {
  display: flex;
  flex-direction: column;
}

.town-name {
  color: white;
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.2;
}

.town-location {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.nav-links {
  display: none;
}

.nav-link {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color 0.2s var(--ease);
}

.nav-link:hover {
  color: white;
}

.nav-link.nav-link--active {
  color: white;
}

.nav-phone {
  display: none;
}

.phone-pill {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: all 0.2s var(--ease);
}

.phone-pill:hover {
  background: var(--cream);
  color: var(--forest);
  border-color: var(--cream);
}

.nav-toggle {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  height: 48px;
  padding: 0 0.75rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.nav-toggle__lines {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 22px;
  height: 20px;
}

.hamburger-line {
  width: 22px;
  height: 2px;
  background: white;
  margin: 2px 0;
  transition: all 0.3s var(--ease);
  transform-origin: center;
}

.nav-toggle__text {
  color: white;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(18, 36, 22, 0.97);
  backdrop-filter: blur(16px);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
  pointer-events: none;
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-content {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-link {
  color: white;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color 0.2s var(--ease);
}

.mobile-nav-link:hover {
  color: var(--gold-light);
}

.mobile-nav-phone {
  color: white;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 1rem;
  background: var(--gold);
  border-radius: var(--radius-md);
  text-align: center;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease);
}

.mobile-nav-phone:hover {
  background: var(--gold-light);
}

.mobile-nav-status {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  text-align: center;
  margin-bottom: 0.5rem;
}

.mobile-nav-status--open {
  color: #7BC67E;
  background: rgba(123, 198, 126, 0.15);
  border: 1px solid rgba(123, 198, 126, 0.3);
}

.mobile-nav-status--closed {
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Universal Layout - All Screen Sizes */
.nav-search {
  display: flex;
  flex: 1;
  max-width: 280px;
  margin: 0 1rem;
}

.nav-search__input {
  width: 100%;
  min-width: 120px;
}

/* Tablet adjustments */
@media (max-width: 1024px) {
  .navbar {
    height: 64px;
  }
  
  .nav-container {
    padding: 0 1rem;
    gap: 0.75rem;
  }
  
  .nav-search {
    max-width: 240px;
    margin: 0 auto;
  }
  
  /* Compress brand */
  .town-name {
    font-size: 0.95rem;
  }
  
  .town-location {
    font-size: 0.6rem;
  }
  
  .town-seal {
    width: 40px;
    height: 40px;
  }
  
  .seal-initials {
    font-size: 1rem;
  }
}

/* Small mobile - hide Menu text, show only hamburger */
@media (max-width: 480px) {
  .nav-toggle__text {
    display: none;
  }
  
  .nav-toggle {
    padding: 0;
    width: 44px;
    background: transparent;
    border: none;
  }
  
  .nav-search {
    max-width: 200px;
    margin: 0 0.5rem;
  }
  
  .town-name {
    font-size: 0.85rem;
  }
  
  .town-location {
    font-size: 0.55rem;
  }
}

/* Desktop - slightly larger search */
@media (min-width: 1025px) {
  .nav-search {
    max-width: 320px;
  }
}

/* Hero Section */
#hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #1a2e1e;
  background-image: url('../middlefield-hero-background.jpeg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(
      to right,
      rgba(8, 16, 10, 0.82) 0%,
      rgba(8, 16, 10, 0.75) 45%,
      rgba(8, 16, 10, 0.30) 75%,
      rgba(8, 16, 10, 0.10) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(10, 20, 12, 0.25) 0%,
      rgba(10, 20, 12, 0.45) 100%
    );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(1.5rem, 8vw, 7rem);
  max-width: 680px;
}

.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
}

.hero__h1 {
  font-family: var(--font);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.hero__h1--light {
  font-style: normal;
  font-weight: 300;
  color: var(--cream);
  display: block;
}

.hero__desc {
  font-size: clamp(1.1rem, 1.8vw, 1.25rem);
  font-weight: 300;
  color: rgba(245, 240, 232, 0.75);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cream);
  color: var(--forest);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  min-height: 48px;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.hero__cta:hover {
  background: var(--forest);
  color: var(--cream);
  transform: none;
  box-shadow: none;
}

.hero__cta::after {
  content: '↓';
}

.hero__strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  padding: 1.2rem clamp(1.5rem, 8vw, 7rem);
  background: rgba(10, 20, 12, 0.55);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero__strip-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero__strip-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.hero__strip-val {
  font-size: 0.95rem;
  font-weight: 400;
  color: #fff;
  transition: color 0.2s var(--ease);
}

.hero__strip-val:hover {
  color: var(--gold-light);
}

.hero__strip-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 2rem;
}

.hero__pause {
  position: absolute;
  bottom: 1.2rem;
  right: 1.5rem;
  z-index: 4;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease);
}

.hero__pause:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Hero Mobile Responsive */
@media (max-width: 768px) {
  .hero__content {
    padding: 0 1.25rem;
  }
  
  .hero__strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .hero__strip-divider {
    display: none;
  }
  
  .hero__pause {
    bottom: auto;
    top: 1rem;
    right: 1rem;
  }
}

/* Quick Access Tiles Section */
.section--cream {
  background: var(--cream);
  padding: clamp(5rem, 9vw, 8rem) 0 clamp(4rem, 7vw, 6rem) 0;
}

.section--cream .section__header,
.section--cream .tiles {
  max-width: 78vw;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

.section--cream .section__header {
  margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

.section--cream,
.section--cream-dark {
  position: relative;
  border-radius: 20px;
  box-shadow:
    0 20px 80px rgba(18, 32, 22, 0.22),
    0 8px 32px rgba(18, 32, 22, 0.16),
    0 2px 8px rgba(18, 32, 22, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  margin: 2.5rem clamp(0.5rem, 2vw, 2rem);
}

.section--cream::before,
.section--cream-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  border-radius: 20px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(140, 114, 72, 0.3) 20%,
    rgba(140, 114, 72, 0.3) 80%,
    transparent
  );
}

.section {
  padding: clamp(2.5rem, 4vw, 3.5rem) clamp(1.25rem, 6vw, 5rem);
}

.section__eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 0.6rem;
}

.section__heading {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section__heading--dark { color: var(--text-dark); }

.section__sub {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.65;
  max-width: 520px;
  margin: 0;
}

.section__sub--dark { color: var(--text-mid); }

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.tile {
  background: #fff;
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--text-dark);
  cursor: pointer;
  transition:
    transform 0.4s var(--ease-spring),
    box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.tile:hover,
.tile:focus {
  transform: none;
  box-shadow: var(--shadow-sm);
  border-color: var(--forest);
  background: var(--forest);
  outline: none;
}

.tile:hover .tile__label,
.tile:focus .tile__label {
  color: var(--cream);
}

.tile:hover .tile__desc,
.tile:focus .tile__desc {
  color: rgba(245, 240, 232, 0.7);
}

.tile:hover .tile__arrow,
.tile:focus .tile__arrow {
  opacity: 1;
  color: var(--cream);
  transform: translate(4px, -4px);
}

.tile:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

.tile__icon {
  font-size: 1.75rem;
  line-height: 1;
  display: flex;
  align-items: center;
}

.tile__icon svg {
  fill: var(--forest);
  transition: fill 0.3s var(--ease);
}

.tile:hover .tile__icon svg,
.tile:focus .tile__icon svg {
  fill: #ffffff;
}

.tile__label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}

.tile__desc {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.6;
  flex: 1;
}

.tile__arrow {
  font-size: 1rem;
  color: var(--forest);
  align-self: flex-end;
  opacity: 0.35;
  transition: opacity 0.3s, transform 0.3s var(--ease-spring);
}

.tile:hover .tile__arrow,
.tile:focus .tile__arrow {
  opacity: 1;
  transform: translate(4px, -4px);
}

/* Tablet — 2 columns */
@media (max-width: 900px) {
  .tiles {
    grid-template-columns: repeat(2, 1fr);
    max-width: 92vw;
  }
}

/* Mobile — 1 column */
@media (max-width: 540px) {
  .tiles {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════
   MEETINGS SECTION
═══════════════════════════════════════════════════════════ */
.section--cream-dark {
  background: var(--cream-dark);
  padding: clamp(4rem, 7vw, 6rem) 0;
}

.meetings__header {
  max-width: 78vw;
  margin: 0 auto clamp(2rem, 3vw, 2.5rem) auto;
}

.meetings__grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  max-width: 78vw;
  margin: 0 auto;
}

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

.meetings__right {
  position: sticky;
  top: 88px;
}

/* Meeting cards */
.meeting-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.meeting-card:hover {
  box-shadow: var(--shadow-sm);
  transform: none;
  border-color: var(--forest-mid);
}

/* Date badge */
.meeting-card__date {
  background: var(--forest);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 56px;
}

.meeting-card__day {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  line-height: 1;
}

.meeting-card__month {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.65);
  margin-top: 0.2rem;
}

/* Card info */
.meeting-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.meeting-card__badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
  background: rgba(30, 58, 36, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  align-self: flex-start;
}

.meeting-card__badge--alt {
  color: var(--forest);
  background: rgba(140, 114, 72, 0.1);
}

.meeting-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}

.meeting-card__meta {
  font-size: 1rem;
  color: var(--text-mid);
  font-weight: 300;
}

.meeting-card__link {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--forest);
  text-decoration: none;
  border-bottom: 1px solid rgba(30, 58, 36, 0.3);
  padding-bottom: 1px;
  align-self: flex-start;
  transition: color 0.2s, border-color 0.2s;
  margin-top: 0.25rem;
}

.meeting-card__link:hover {
  color: var(--forest);
  border-color: var(--forest);
}

.meeting-card__link:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 3px;
  border-radius: 2px;
}

.meetings__note {
  font-size: 0.75rem;
  color: var(--text-mid);
  font-weight: 300;
  font-style: italic;
  opacity: 0.7;
}

/* Right column — Calendar */
.meetings__right {
  position: sticky;
  top: 88px;
}

.calendar__wrapper {
  background: #fff;
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.calendar__header {
  padding: 1rem 1.25rem;
  background: var(--forest);
  display: flex;
  align-items: center;
}

.calendar__label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.85);
}

.calendar__wrapper iframe {
  display: block;
  width: 100%;
}

/* Responsive */
@media (max-width: 900px) {
  .meetings__grid {
    grid-template-columns: 1fr;
    max-width: 92vw;
  }
}

@media (max-width: 540px) {
  .meetings__grid {
    max-width: 100%;
    padding: clamp(3rem, 6vw, 5rem) 1.25rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   NOTICES SECTION
═══════════════════════════════════════════════════════════ */
.notices__header {
  max-width: 78vw;
  margin: 0 auto clamp(2rem, 3vw, 2.5rem) auto;
}

.notices__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 78vw;
  margin: 0 auto;
}

/* Notice card base */
.notice-card {
  display: flex;
  gap: 0;
  background: #fff;
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.notice-card:hover {
  box-shadow: var(--shadow-sm);
  transform: none;
  border-color: var(--forest-mid);
}

/* Colored left accent bar */
.notice-card__accent {
  width: 5px;
  flex-shrink: 0;
}

/* High importance — red */
.notice-card--high .notice-card__accent {
  background: var(--red);
}

/* Medium importance — forest green */
.notice-card--medium .notice-card__accent {
  background: var(--forest);
}

/* Low importance — forest green */
.notice-card--low .notice-card__accent {
  background: var(--forest);
}

/* Remove old warning/info rules */
.notice-card--warning .notice-card__accent,
.notice-card--info .notice-card__accent {
  background: none;
}

.notice-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.notice-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}

.notice-card__text {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.65;
}

.notice-card__link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--forest);
  text-decoration: none;
  border-bottom: 1px solid rgba(30, 58, 36, 0.3);
  padding-bottom: 1px;
  align-self: flex-start;
  margin-top: 0.25rem;
  transition: color 0.2s, border-color 0.2s;
}

.notice-card__link:hover {
  color: var(--forest);
  border-color: var(--forest);
}

.notice-card__link:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ═══════════════════════════════════════════════════
   EVENT CARDS
═══════════════════════════════════════════════════ */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.events-empty {
  text-align: center;
  color: var(--cream);
  font-size: 1.1rem;
  padding: 3rem;
}

.event-card {
  display: flex;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease);
}

.event-card:hover {
  box-shadow: var(--shadow-md);
}

.event-card__accent {
  width: 5px;
  flex-shrink: 0;
}

/* Category Colors - Blue: Town Board */
.event-card--town-board .event-card__accent {
  background: #4A90E2;
}

.event-card--town-board .event-card__badge {
  background: rgba(74, 144, 226, 0.15);
  color: #4A90E2;
}

/* Category Colors - Green: Planning Board */
.event-card--planning-board .event-card__accent {
  background: #7BC67E;
}

.event-card--planning-board .event-card__badge {
  background: rgba(123, 198, 126, 0.15);
  color: #2d5a30;
}

/* Category Colors - Yellow/Orange: ZBA */
.event-card--zba .event-card__accent {
  background: #F5A623;
}

.event-card--zba .event-card__badge {
  background: rgba(245, 166, 35, 0.15);
  color: #b37a1a;
}

/* Category Colors - Orange: Community */
.event-card--community .event-card__accent {
  background: #F5A623;
}

.event-card--community .event-card__badge {
  background: rgba(245, 166, 35, 0.15);
  color: #b37a1a;
}

.event-card__content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.event-card__badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  align-self: flex-start;
}

.event-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
  margin: 0;
}

.event-card__datetime {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--forest);
  margin: 0;
}

.event-card__location {
  font-size: 0.9rem;
  color: var(--text-mid);
  margin: 0;
}

.event-card__desc {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.5;
  margin: 0.5rem 0 0 0;
}

.event-card__agenda {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--forest);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.2s var(--ease);
}

.event-card__agenda:hover {
  background: var(--forest-mid);
}

/* Responsive */
@media (max-width: 900px) {
  .notices__grid {
    grid-template-columns: 1fr;
    max-width: 92vw;
  }
  .notices__header {
    max-width: 92vw;
  }
}

@media (max-width: 540px) {
  .notices__grid {
    max-width: 100%;
  }
  .notices__header {
    max-width: 100%;
  }
}

/* ═══════════════════════════════════════════════════
   DEPARTMENTS SECTION
═══════════════════════════════════════════════════ */
.departments__header {
  max-width: 78vw;
  margin: 0 auto clamp(2rem, 3vw, 2.5rem) auto;
}

.departments__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 78vw;
  margin: 0 auto;
}

/* Department card */
.dept-card {
  background: #fff;
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.dept-card:hover {
  box-shadow: var(--shadow-sm);
  transform: none;
  border-color: var(--forest-mid);
}

.dept-card__header {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--cream-border);
}

.dept-card__name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}

.dept-card__hours {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--forest);
  line-height: 1.4;
}

.dept-card__desc {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.6;
  flex: 1;
}

.dept-card__footer {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--cream-border);
}

.dept-card__phone,
.dept-card__email,
.dept-card__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--forest);
  text-decoration: none;
  transition: color 0.2s;
  align-self: stretch;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0.25rem 0;
}

.dept-card__phone:hover,
.dept-card__email:hover,
.dept-card__link:hover {
  color: var(--gold);
}

.dept-card__phone:focus-visible,
.dept-card__email:focus-visible,
.dept-card__link:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Responsive */
@media (max-width: 1100px) {
  .departments__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .departments__grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 92vw;
  }
  .departments__header {
    max-width: 92vw;
  }
}

@media (max-width: 540px) {
  .departments__grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .departments__header {
    max-width: 100%;
  }
}

/* ═══════════════════════════════════════════════════
   EMERGENCY STRIP
═══════════════════════════════════════════════════ */
.section--emergency {
  background: var(--forest);
  border-radius: 20px;
  margin: 0 clamp(0.5rem, 2vw, 2rem);
  box-shadow:
    0 20px 80px rgba(18, 32, 22, 0.22),
    0 8px 32px rgba(18, 32, 22, 0.16),
    0 2px 8px rgba(18, 32, 22, 0.1);
}

.emergency__inner {
  max-width: 78vw;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2rem, 4vw, 4rem);
  flex-wrap: wrap;
}

.emergency__text {
  flex: 1;
  min-width: 260px;
}

.emergency__eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.7);
  margin-bottom: 0.6rem;
}

.emergency__heading {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.emergency__desc {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(245, 240, 232, 0.7);
  line-height: 1.7;
  max-width: 520px;
}

.emergency__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.emergency__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  color: var(--forest);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 1rem 2.25rem;
  border-radius: 999px;
  text-decoration: none;
  min-height: 52px;
  white-space: nowrap;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.emergency__btn:hover {
  background: var(--cream-dark);
  color: var(--forest);
  transform: none;
  box-shadow: none;
}

.emergency__btn:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

.emergency__note {
  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(245, 240, 232, 0.4);
  letter-spacing: 0.05em;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .emergency__inner {
    flex-direction: column;
    align-items: flex-start;
    max-width: 92vw;
  }

  .emergency__action {
    align-items: flex-start;
    width: 100%;
  }

  .emergency__btn {
    width: 100%;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
footer {
  background: var(--charcoal);
  margin-top: 2.5rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  max-width: 78vw;
  margin: 0 auto;
  padding: clamp(3.5rem, 6vw, 5rem) 0 clamp(2.5rem, 4vw, 3.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Brand column */
.footer__col--brand {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__seal {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.footer__seal-text {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.footer__town-name {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.footer__town-sub {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.4);
  margin-bottom: 0.5rem;
}

.footer__address {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(245, 240, 232, 0.55);
  line-height: 1.8;
}

.footer__address a {
  color: rgba(245, 240, 232, 0.55);
  transition: color 0.2s;
}

.footer__address a:hover { color: var(--gold-light); }

.footer__hours {
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(245, 240, 232, 0.4);
  margin-top: 0.25rem;
}

/* Nav columns */
.footer__col-heading {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.1rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer__links a {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(245, 240, 232, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__links a:hover { color: #fff; }

.footer__links a:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Contact column */
.footer__links--contact li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.footer__contact-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.3);
}

/* Bottom bar */
.footer__bottom {
  max-width: 78vw;
  margin: 0 auto;
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer__copy {
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(245, 240, 232, 0.3);
}

.footer__credit {
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(245, 240, 232, 0.3);
}

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

.footer__credit a:hover { color: #fff; }

.footer__credit a:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Responsive */
@media (max-width: 1100px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer__inner {
    grid-template-columns: 1fr;
    max-width: 92vw;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    max-width: 92vw;
  }
}

/* ═══════════════════════════════════════════════════
   ACCESSIBILITY TOOLBAR
═══════════════════════════════════════════════════ */
#a11y-toolbar {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.a11y-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--cream);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(18, 32, 22, 0.25);
  transition:
    background 0.2s var(--ease),
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.a11y-btn:hover {
  background: var(--forest-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(18, 32, 22, 0.3);
}

.a11y-btn:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

.a11y-btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* High contrast mode */
#hc-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 850;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.001);
}

body.high-contrast #hc-overlay {
  display: block;
  backdrop-filter: contrast(1.5) brightness(0.92);
  -webkit-backdrop-filter: contrast(1.5) brightness(0.92);
}

.a11y-btn[aria-pressed="true"] {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--forest);
}

/* Mobile — move slightly so it doesn't overlap content */
@media (max-width: 540px) {
  #a11y-toolbar {
    bottom: 1rem;
    right: 1rem;
  }
}

/* ═══════════════════════════════════════════════════
   SEARCH BAR STYLES
═══════════════════════════════════════════════════ */
/* Search bar */
.nav-search {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  overflow: hidden;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav-search:focus-within {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

.nav-search__input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font);
  font-size: 0.85rem;
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  width: 160px;
  min-height: 36px;
}

.nav-search__input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.nav-search__input::-webkit-search-cancel-button {
  display: none;
}

.nav-search__btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  padding: 0 0.75rem;
  min-height: 36px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: color 0.2s;
  order: -1;
}

.nav-search__btn svg {
  fill: currentColor;
}

.nav-search__btn:hover {
  color: #fff;
}

@media (max-width: 1024px) {
  .nav-search--desktop {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════
   OFFICE STATUS STYLES
═══════════════════════════════════════════════════ */
/* Office hours status indicator */
.office-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-right: 0.75rem;
}

.office-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.office-status--open {
  color: #7BC67E;
}

.office-status--open::before {
  background: #7BC67E;
}

.office-status--closed {
  color: rgba(255, 255, 255, 0.45);
}

.office-status--closed::before {
  background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 900px) {
  .office-status {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════
   NOTICE DATE STYLES
═══════════════════════════════════════════════════ */
.notice-card__date {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-mid);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  opacity: 0.7;
}

/* ═══════════════════════════════════════════════════
   CALENDAR MINUTES LINK STYLES
═══════════════════════════════════════════════════ */
.calendar__header {
  padding: 1rem 1.25rem;
  background: var(--forest);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calendar__minutes-link {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(245, 240, 232, 0.7);
  text-decoration: none;
  margin-left: auto;
  transition: color 0.2s;
}

.calendar__minutes-link:hover {
  color: var(--cream);
}

/* ═══════════════════════════════════════════════════
   REDUCED MOTION — WCAG 2.1 AA
   Respects user's OS accessibility settings
═══════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
