/* ==========================================================================
   Mars Hill, Maine — Public Site
   Modern town/city government style, inspired by bangormaine.gov
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Source+Serif+4:wght@600;700&display=swap');

:root {
  --navy:        #0b3d6b;
  --navy-dark:   #062444;
  --navy-light:  #1a5a96;
  --gold:        #f4b942;
  --gold-dark:   #d99c1f;
  --red:         #b3261e;
  --red-dark:    #8a1a14;
  --ink:         #0f1623;
  --ink-2:       #1f2937;
  --gray-50:     #f8fafc;
  --gray-100:    #f1f5f9;
  --gray-200:    #e2e8f0;
  --gray-300:    #cbd5e1;
  --gray-400:    #94a3b8;
  --gray-500:    #64748b;
  --gray-600:    #475569;
  --gray-700:    #334155;
  --gray-800:    #1e293b;
  --shadow-xs:   0 1px 2px rgba(15, 22, 35, .05);
  --shadow-sm:   0 1px 3px rgba(15, 22, 35, .08), 0 1px 2px rgba(15, 22, 35, .04);
  --shadow:      0 4px 16px rgba(15, 22, 35, .08);
  --shadow-lg:   0 12px 40px rgba(15, 22, 35, .12);
  --radius:      10px;
  --radius-sm:   6px;
  --radius-lg:   16px;
  --max:         1240px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-light); text-decoration: none; transition: color .15s; }
a:hover { color: var(--navy); text-decoration: underline; }

/* Focus indicators (accessibility) */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid #f4b942;
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  text-decoration: none;
  z-index: 100;
  font-weight: 600;
  transform: translateY(-120%);
  transition: transform .15s ease;
}
.skip-link:focus {
  transform: translateY(0);
}

h1, h2, h3, h4 {
  font-family: 'Source Serif 4', Georgia, "Times New Roman", serif;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 0 0 .75rem;
  font-weight: 700;
}
h1 { font-size: clamp(1.85rem, 3vw, 2.6rem); }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.95rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
hr { border: 0; border-top: 1px solid var(--gray-200); margin: 2rem 0; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* ==========================================================================
   Emergency bar
   ========================================================================== */
.emergency-bar {
  background: linear-gradient(180deg, #c1271e 0%, #9a1814 100%);
  color: #fff;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .005em;
  border-bottom: 1px solid rgba(0, 0, 0, .2);
  border-left: 4px solid #000;
}
.emergency-bar .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: .8rem;
  padding-bottom: .8rem;
}
.emergency-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border: 1.5px solid rgba(255, 255, 255, .85);
  border-radius: 50%;
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
}
.emergency-text {
  font-family: 'Inter', sans-serif;
  flex: 1;
}
.emergency-label {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, .15);
  padding: .25rem .55rem;
  border-radius: 4px;
  margin-right: .5rem;
}

/* ==========================================================================
   Top utility bar
   ========================================================================== */
.utility-bar {
  background: var(--navy-dark);
  color: #ffffff;
  font-size: .85rem;
  font-weight: 500;
}
.utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: .6rem;
  padding-bottom: .6rem;
}
.utility-bar a,
.utility-action {
  color: #ffffff;
  font-weight: 500;
}
.utility-action {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.utility-bar a:hover,
.utility-action:hover { color: #fff9e6; text-decoration: none; }
.utility-bar a:focus,
.utility-action:focus { outline-color: #fff; }
.utility-left, .utility-right {
  display: flex; align-items: center; gap: 1.25rem;
}
.utility-right a { display: inline-flex; align-items: center; gap: .35rem; }
.utility-divider { width: 1px; height: 14px; background: rgba(255,255,255,.6); }

/* ==========================================================================
   Site header
   ========================================================================== */
.site-header {
  background: #fff;
  border-top: 3px solid var(--gold);
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow-xs);
}
/* Sophisticated multi-layer divider between header and announcement banner */
.site-header::after {
  content: "";
  display: block;
  height: 10px;
  background:
    linear-gradient(180deg,
      var(--navy)         0%,
      var(--navy)         55%,
      var(--navy-light)   55%,
      var(--navy-light)   60%,
      rgba(255,255,255,.5) 60%,
      rgba(255,255,255,.5) 70%,
      var(--gold-dark)    70%,
      var(--gold)         100%
    );
  box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  gap: 2rem;
}
.brand { display: flex; align-items: center; gap: 1rem; color: inherit; text-decoration: none; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand img { width: 64px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 700;
  color: var(--ink);
  font-size: 1.45rem;
  letter-spacing: -.01em;
}
.brand-tag {
  font-size: .82rem;
  color: var(--gray-500);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: .15rem;
}

/* Announcement banner (full-width strip below header) */
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(244, 185, 66, .25); }
  50%      { box-shadow: 0 0 0 6px rgba(244, 185, 66, .05); }
}
.announcement-banner {
  background: linear-gradient(180deg, #fffbef 0%, #fff7e0 100%);
  border-bottom: 1px solid #f0e3b8;
  position: relative;
}
.announcement-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at left center, rgba(244, 185, 66, .12), transparent 60%);
  pointer-events: none;
}
.announcement-banner-inner {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 1.1rem 1.5rem;
  position: relative;
}
.ab-flag {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-shrink: 0;
  padding-right: 1.5rem;
  border-right: 1px solid rgba(120, 90, 0, .15);
  align-self: stretch;
}
.ab-dot {
  width: 10px; height: 10px;
  background: var(--gold-dark);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(244, 185, 66, .25);
  animation: pulse 2.2s infinite;
  flex-shrink: 0;
}
.ab-label {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--navy);
}
.ab-date {
  font-size: .72rem;
  font-weight: 600;
  color: #8a6d10;
  letter-spacing: .04em;
  margin-left: .25rem;
}
.ab-body {
  flex: 1;
  min-width: 0;
}
.ab-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin: 0 0 .15rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ab-text {
  font-size: .9rem;
  color: #4a4530;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
}
.ab-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .65rem 1.25rem;
  background: var(--navy);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-radius: 6px;
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
}
.ab-cta:hover {
  background: var(--gold-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .5rem;
}
.nav-toggle span {
  display: block; width: 26px; height: 2.5px; background: var(--ink); margin: 5px 0; border-radius: 2px;
}

/* Main nav (inline beside the brand) */
.main-nav {
  margin-left: auto;
}
.nav-list {
  list-style: none; margin: 0; padding: 0;
  display: flex;
  align-items: center;
  gap: .15rem;
}
.nav-list > li { position: relative; }
.nav-list > li > a,
.nav-list > li > button {
  position: relative;
  display: flex;
  align-items: center;
  padding: 1.5rem .95rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-radius: 4px;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}
.nav-list > li > a::after,
.nav-list > li > button::after {
  content: "";
  position: absolute;
  left: 50%; right: 50%;
  bottom: .75rem;
  height: 2px;
  background: var(--gold);
  transition: left .25s ease, right .25s ease;
}
.nav-list > li > a:hover,
.nav-list > li > button:hover,
.nav-list > li:hover > a,
.nav-list > li:hover > button,
.nav-list > li:focus-within > a,
.nav-list > li:focus-within > button {
  color: var(--navy);
  background: var(--gray-50);
  text-decoration: none;
}
.nav-list > li > a:hover::after,
.nav-list > li > button:hover::after,
.nav-list > li:hover > a::after,
.nav-list > li:hover > button::after,
.nav-list > li:focus-within > a::after,
.nav-list > li:focus-within > button::after {
  left: .95rem;
  right: .95rem;
}
.caret {
  font-size: .6rem;
  opacity: .6;
  margin-left: .35rem;
  display: inline-block;
  transition: transform .25s ease;
}
.has-sub:hover .caret,
.has-sub:focus-within .caret {
  transform: rotate(180deg);
  opacity: 1;
}

.sub-menu {
  list-style: none; margin: 0; padding: .5rem 0;
  position: absolute; top: 100%; left: 0;
  min-width: 280px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  display: none;
  z-index: 60;
}
.has-sub:hover .sub-menu,
.has-sub:focus-within .sub-menu { display: block; }
.sub-menu li a {
  display: block;
  padding: .7rem 1.25rem;
  color: var(--ink-2);
  font-size: .92rem;
  font-weight: 500;
  border-left: 3px solid transparent;
}
.sub-menu li a:hover {
  background: var(--gray-50);
  color: var(--navy);
  border-left-color: var(--gold);
  text-decoration: none;
}

/* ==========================================================================
   Slideshow
   ========================================================================== */
.slideshow {
  position: relative;
  height: 550px;
  max-height: 550px;
  overflow: hidden;
  background: #000;
}
.slideshow .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s ease, visibility 0s linear .9s;
}
.slideshow .slide.active {
  opacity: 1;
  visibility: visible;
  transition: opacity .9s ease, visibility 0s linear 0s;
  z-index: 1;
}
.slideshow .slide img {
  width: 100%; height: 100%; object-fit: cover;
}
.slide-overlay { display: none; }
.slide-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding-bottom: 3.5rem;
  color: #fff;
}
.slide-caption .container { width: 100%; }
.slide-caption-box {
  display: inline-block;
  max-width: 760px;
  padding: 1.25rem 1.75rem 1.4rem;
  background: rgba(6, 21, 41, .68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.slide.active .slide-caption-box {
  opacity: 1;
  transform: none;
  transition: opacity .55s ease .35s, transform .55s ease .35s;
}
.slide-caption .label {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: .35rem .75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.slide-caption h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  margin: 0 0 .35rem;
  line-height: 1.2;
}
.slide-caption p {
  font-size: clamp(.95rem, 1.3vw, 1.1rem);
  margin: 0;
  color: #f1f5f9;
  line-height: 1.45;
}

.slideshow-nav button {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0, 0, 0, .35);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .3);
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all .2s;
}
.slideshow-nav button:hover { background: rgba(0, 0, 0, .65); transform: translateY(-50%) scale(1.05); }
.slideshow-nav button:focus { outline: 3px solid #fff; outline-offset: -3px; }
.slideshow-nav .prev { left: 1.5rem; }
.slideshow-nav .next { right: 1.5rem; }
.slideshow-nav .pause {
  top: auto;
  right: 1.5rem;
  bottom: 1.25rem;
  width: auto;
  height: 36px;
  min-width: 72px;
  padding: 0 .85rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  transform: none;
  z-index: 6;
}
.slideshow-nav .pause:hover { transform: none; }

.slideshow-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex; gap: .5rem;
  z-index: 5;
}
.slideshow-dots button {
  width: 32px; height: 4px;
  border: 0; border-radius: 2px;
  background: rgba(255, 255, 255, .4);
  cursor: pointer; transition: all .2s;
}
.slideshow-dots button:hover { background: rgba(255, 255, 255, .7); }
.slideshow-dots button:focus { outline: 2px solid #fff; outline-offset: 2px; }
.slideshow-dots button.active { background: var(--gold); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.5rem;
  background: var(--gray-100);
  color: var(--ink);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.btn:hover { background: var(--gray-200); text-decoration: none; }
.btn.primary { background: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-dark); color: #fff; }
.btn.gold { background: var(--gold); color: var(--navy-dark); }
.btn.gold:hover { background: var(--gold-dark); color: var(--navy-dark); }
.btn.outline {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .55);
}
.btn.outline:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn.lg { padding: 1rem 1.75rem; font-size: 1rem; }

/* ==========================================================================
   Section headers
   ========================================================================== */
.section {
  padding: 4rem 0;
}
.section.compact { padding: 2.5rem 0; }
.section.alt { background: var(--gray-50); }
.section.dark {
  background: var(--navy-dark);
  color: #e2e8f0;
}
.section.dark h2, .section.dark h3 { color: #fff; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
}
.section-header h2 {
  margin: 0;
  position: relative;
  padding-bottom: .65rem;
}
.section-header h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 60px; height: 3px;
  background: var(--gold);
}
.section-header .lead {
  color: var(--gray-500);
  font-size: .95rem;
  margin: .9rem 0 0;
}
.section-header a.see-all {
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy-light);
}

/* ==========================================================================
   "I want to..." service grid
   ========================================================================== */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .85rem;
}
.service {
  display: flex;
  align-items: center;
  gap: .9rem;
  text-align: left;
  padding: .9rem 1rem;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  transition: all .15s;
  color: var(--ink);
  min-height: 64px;
}
.service:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
  text-decoration: none;
  color: var(--ink);
}
.service-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.service h3 {
  font-family: 'Inter', sans-serif;
  font-size: .92rem;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
  line-height: 1.25;
}
.service p,
.service .arrow { display: none; }
@media (max-width: 980px) {
  .services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .services { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Homepage layout
   ========================================================================== */
.section.alt {
  display: flex !important;
  gap: 3rem;
  align-items: flex-start;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  border-radius: var(--radius);
}

.section.alt > .container {
  flex: 0 1 60%;
  min-width: 0;
  margin: 0;
  padding: 0;
  max-width: none;
}

.section.alt > aside {
  flex: 0 1 40%;
  min-width: 0;
}

@media (max-width: 960px) {
  .section.alt {
    flex-direction: column;
    gap: 2rem;
  }

  .section.alt > .container,
  .section.alt > aside {
    flex: 1;
  }
}

.home-grid {
  display: contents;
}

/* Announcements */
.announcement {
  background: #fff;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--navy-light);
  box-shadow: var(--shadow-xs);
  margin-bottom: 1rem;
  transition: all .2s;
}
.announcement:hover {
  border-left-color: var(--gold);
  box-shadow: var(--shadow-sm);
}
.announcement h3 {
  margin: 0 0 .35rem;
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}
.announcement .date {
  display: inline-block;
  font-size: .75rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
  margin-bottom: .5rem;
}
.announcement .body { margin: .5rem 0 0; color: var(--gray-700); }

/* Sidebar widgets */
.widget {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-xs);
}
.widget-head {
  background: var(--navy);
  color: #fff;
  padding: .9rem 1.25rem;
  border-bottom: 3px solid var(--gold);
}
.widget-head h3 {
  font-family: 'Inter', sans-serif;
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .01em;
}
.widget-body { padding: 1.25rem; }

/* Weather widget */
.weather-current {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--gray-200);
}
.weather-icon-big { font-size: 2.8rem; line-height: 1; }
.weather-temp {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.weather-desc { color: var(--gray-700); font-weight: 500; margin-top: .25rem; }
.weather-loc { font-size: .78rem; color: var(--gray-500); margin-top: .15rem; }
.weather-forecast {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: .25rem; text-align: center;
}
.weather-day { font-size: .8rem; padding: .35rem 0; }
.weather-day .day {
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  font-size: .68rem;
  letter-spacing: .08em;
}
.weather-day .icon { font-size: 1.4rem; margin: .15rem 0; }
.weather-day .hi { color: var(--ink); font-weight: 700; }
.weather-day .lo { color: var(--gray-600); }

/* Quick contact widget */
.contact-widget p { margin: .35rem 0; font-size: .92rem; }
.contact-widget strong { color: var(--ink); }

.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { border-bottom: 1px solid var(--gray-100); }
.link-list li:last-child { border-bottom: 0; }
.link-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem 0;
  color: var(--ink-2);
  font-weight: 500;
  font-size: .92rem;
}
.link-list a:hover { color: var(--navy); text-decoration: none; }
.link-list a::after { content: "→"; color: var(--gray-400); transition: transform .15s; }
.link-list a:hover::after { transform: translateX(3px); color: var(--gold-dark); }

/* ==========================================================================
   Page hero (interior pages)
   ========================================================================== */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 30% 20%, rgba(244, 185, 66, .12) 0%, transparent 50%);
}
.page-hero .container { position: relative; }
.page-hero .crumbs {
  font-size: .82rem;
  color: rgba(255, 255, 255, .7);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .75rem;
}
.page-hero .crumbs a { color: rgba(255, 255, 255, .85); }
.page-hero h1 { color: #fff; margin: 0; max-width: 820px; }

/* Page content */
.page-content { padding: 3rem 0 4rem; }
.page-content .content {
  font-size: 1.05rem;
  color: var(--gray-700);
  max-width: 820px;
}
.page-content .content h2 {
  margin-top: 2.5rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.page-content .content h3 { margin-top: 1.75rem; color: var(--navy); }
.page-content .content ul, .page-content .content ol {
  padding-left: 1.25rem;
}
.page-content .content li { margin-bottom: .35rem; }
.page-content .content a { color: var(--navy-light); font-weight: 500; }

/* Card grids (used inside pages) */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem; margin: 1.75rem 0;
}
.card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-xs);
  transition: all .2s;
}
.card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  margin: 0 0 .85rem;
  padding-bottom: .65rem;
  border-bottom: 2px solid var(--gold);
  color: var(--ink);
}


/* Document lists */
.doc-list { list-style: none; padding: 0; margin: 1.25rem 0; }
.doc-list li {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  margin-bottom: .5rem;
  transition: all .15s;
}
.doc-list li:hover {
  border-color: var(--navy-light);
  box-shadow: var(--shadow-sm);
  transform: translateX(2px);
}
.doc-icon {
  width: 44px; height: 52px;
  border-radius: 4px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 800; color: #fff;
  position: relative;
}
.doc-icon::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 12px; height: 12px;
  background: rgba(255, 255, 255, .3);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}
.doc-icon.pdf { background: #d32f2f; }
.doc-icon.doc { background: #1565c0; }
.doc-icon.xls { background: #2e7d32; }
.doc-icon.ppt { background: #ef6c00; }
.doc-icon.img { background: #6a1b9a; }
.doc-icon.file { background: var(--gray-500); }
.doc-info { flex: 1; min-width: 0; }
.doc-info .doc-title {
  font-weight: 600;
  color: var(--ink);
  font-size: .98rem;
}
.doc-info .doc-meta {
  font-size: .78rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: .15rem;
}
.doc-list a.btn-download {
  background: var(--navy);
  color: #fff;
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  flex-shrink: 0;
  transition: background .15s;
}
.doc-list a.btn-download:hover { background: var(--navy-dark); }

/* ==========================================================================
   Officials & Boards — Civic Directory layout
   ========================================================================== */
.directory-intro { margin-bottom: 2.5rem; }

.page-content .container { max-width: 1080px; }

.directory-section {
  margin-bottom: 2.75rem;
}
.directory-section:last-child { margin-bottom: 0; }

.directory-header {
  display: flex;
  align-items: baseline;
  gap: .9rem;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--gray-200);
  position: relative;
}
.directory-header::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 56px; height: 3px;
  background: var(--gold);
}
.directory-eyebrow {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--gold-dark);
  white-space: nowrap;
}
.directory-header h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.55rem;
  color: var(--navy);
  margin: 0;
  line-height: 1.15;
}
.directory-header p {
  margin: 0 0 0 auto;
  color: var(--gray-500);
  font-size: .85rem;
  font-style: italic;
}

/* Key Personnel — compact 2-column card grid */
.directory-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}
.directory-row {
  display: block;
  padding: .9rem 1.1rem;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--navy);
  border-radius: 6px;
  transition: all .15s ease;
  position: relative;
}
.directory-row:hover {
  background: #fafbfd;
  border-left-color: var(--gold);
  transform: translateX(2px);
}
.dr-position {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gray-500);
  margin-bottom: .15rem;
}
.dr-name {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: .5rem;
}
.dr-contact {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.dr-contact:empty { display: none; }
.dr-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .6rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  font-size: .75rem;
  color: var(--ink-2, #334155);
  text-decoration: none;
  font-weight: 500;
  transition: all .15s ease;
}
.dr-pill:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  text-decoration: none;
}
.dr-pill svg { color: var(--gold-dark); transition: color .15s ease; flex-shrink: 0; }
.dr-pill:hover svg { color: var(--gold); }

@media (max-width: 760px) {
  .directory-list { grid-template-columns: 1fr; }
  .directory-header { flex-wrap: wrap; gap: .5rem; }
  .directory-header p { margin-left: 0; flex-basis: 100%; }
}

/* Boards — aligned roster grid */
.roster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .75rem;
}
.roster-item {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .85rem 1rem;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--navy);
  border-radius: 6px;
  transition: all .15s ease;
}
.roster-item:hover {
  background: #fafbfd;
  transform: translateX(2px);
}
.roster-item.is-chair {
  background: linear-gradient(180deg, #fffaeb 0%, #fff 70%);
  border-left-color: var(--gold-dark);
}
.roster-item.is-chair::before {
  content: "★ Chair";
  color: var(--gold-dark);
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: .15rem;
}
.roster-name {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.roster-role {
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gray-500);
}
.roster-item.is-chair .roster-role { display: none; }

/* ==========================================================================
   Office hours panel
   ========================================================================== */
.hours-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--navy);
  margin: 1rem 0 .5rem;
}
.hours-section-heading {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.5rem;
  color: var(--navy);
  margin: 2.5rem 0 1rem;
  position: relative;
  padding-bottom: .5rem;
}
.hours-section-heading::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 50px; height: 3px;
  background: var(--gold);
}
.hours-panel {
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .65rem .9rem;
  border-bottom: 1px solid var(--gray-100, #f1f5f9);
  font-size: .9rem;
  transition: background .15s;
}
.hours-row:last-child { border-bottom: 0; }
.hours-day {
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.hours-time {
  color: var(--gray-600, #475569);
  font-variant-numeric: tabular-nums;
}
.hours-row.is-closed .hours-time {
  color: var(--gray-500);
  font-style: italic;
}
.hours-row.is-today {
  background: linear-gradient(90deg, rgba(244, 185, 66, .15) 0%, rgba(244, 185, 66, .04) 100%);
  border-left: 3px solid var(--gold);
  padding-left: calc(.9rem - 3px);
}
.hours-row.is-today .hours-day,
.hours-row.is-today .hours-time { color: var(--navy); font-weight: 700; }
.hours-today-badge {
  background: var(--gold);
  color: var(--navy-dark);
  font-size: .6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .15rem .4rem;
  border-radius: 3px;
}

/* Sidebar widget variant — slightly more compact */
.hours-widget .hours-row {
  padding: .55rem .75rem;
  font-size: .85rem;
}
/* Town Office Information page — hours main + address sidebar */
.office-info-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}
.office-info-side .card-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.office-info-side .card {
  margin: 0;
}
@media (max-width: 900px) {
  .office-info-layout { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* Page variant — featured "today" hero card + clean week list */
.hours-block {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 1.75rem;
  align-items: start;
  margin-bottom: 1.5rem;
}
.office-info-main .hours-block { grid-template-columns: 1fr; }
@media (max-width: 760px) {
  .hours-block { grid-template-columns: 1fr; gap: 1.25rem; }
}
.hours-today-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  border-radius: 14px;
  padding: 1.6rem 1.75rem 1.75rem;
  box-shadow: 0 18px 40px -22px rgba(15, 23, 42, .6), 0 2px 0 var(--gold) inset;
  position: relative;
  overflow: hidden;
}
.hours-today-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, #f7cd6b 50%, var(--gold) 100%);
}
.hours-today-card::after {
  content: "";
  position: absolute;
  right: -40px; bottom: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(244,185,66,.18) 0%, transparent 70%);
  pointer-events: none;
}
.hours-today-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  position: relative;
}
.hours-today-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--gold);
}
.hours-today-status {
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--navy-dark);
  background: var(--gold);
  padding: .3rem .6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.hours-today-card.is-closed .hours-today-status {
  background: #fca5a5;
  color: #7f1d1d;
}
.hours-today-time {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  position: relative;
}
.hours-today-card.is-closed .hours-today-time {
  font-style: italic;
  opacity: .85;
}

.hours-week {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 1.25rem 1.5rem 1.4rem;
}
.hours-week-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--gray-500, #64748b);
  margin-bottom: .85rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid var(--gray-100, #f1f5f9);
}
.hours-week-list .hours-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: .75rem;
  padding: .55rem 0;
  border-bottom: 0;
  font-size: .95rem;
}
.hours-week-list .hours-row + .hours-row { border-top: 1px dashed var(--gray-100, #f1f5f9); }
.hours-week-list .hours-day {
  font-weight: 600;
  color: var(--ink);
}
.hours-week-list .hours-dots {
  border-bottom: 2px dotted var(--gray-200);
  transform: translateY(-4px);
}
.hours-week-list .hours-time {
  font-variant-numeric: tabular-nums;
  color: var(--gray-700, #334155);
  font-weight: 500;
}
.hours-week-list .hours-row.is-today {
  background: linear-gradient(90deg, rgba(244,185,66,.18) 0%, rgba(244,185,66,.04) 100%);
  border-radius: 8px;
  padding: .6rem .75rem;
  margin: .2rem -.75rem;
}
.hours-week-list .hours-row.is-today + .hours-row { border-top: 0; }
.hours-week-list .hours-row.is-today .hours-day,
.hours-week-list .hours-row.is-today .hours-time {
  color: var(--navy);
  font-weight: 700;
}
.hours-week-list .hours-row.is-today .hours-dots {
  border-bottom-color: rgba(244,185,66,.5);
}
.hours-week-list .hours-row.is-closed .hours-time {
  color: var(--gray-500);
  font-style: italic;
  font-weight: 400;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-dark);
  color: #cbd5e1;
  margin-top: 0;
}
.footer-top {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  border-top: 4px solid var(--gold);
  padding: 3.5rem 0 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { width: 60px; margin-bottom: 1rem; }
.footer-brand .name {
  font-family: 'Source Serif 4', Georgia, serif;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.footer-brand p { font-size: .9rem; line-height: 1.6; color: #94a3b8; }

.site-footer h4 {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin: 0 0 1rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.site-footer a { color: #94a3b8; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: .35rem 0; font-size: .9rem; }
.footer-links a { text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 1.25rem 0;
  font-size: .82rem;
  color: #fff;
}
.footer-bottom .container {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem;
}
.footer-bottom a {
  color: #fff;
  text-decoration: underline;
}

.muted { color: var(--gray-500); }

/* ==========================================================================
   Mobile
   ========================================================================== */
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    margin-left: 0;
  }
  .main-nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list > li { width: 100%; border-bottom: 1px solid var(--gray-100, #f1f5f9); }
  .nav-list > li > a,
  .nav-list > li > button { padding: 1rem 1.5rem; border-bottom: 0; width: 100%; }
  .sub-menu { position: static; box-shadow: none; padding-left: 1rem; background: var(--gray-50); border-top: 0; }
  .sub-menu li a { color: var(--ink-2); }
  .sub-menu li a:hover { background: #fff; color: var(--navy); border-left-color: var(--gold); }
  .has-sub:hover .sub-menu { display: none; }
  .has-sub.open .sub-menu { display: block; }
  .header-inner { position: relative; }
  .brand { flex-shrink: 1; min-width: 0; }
  .brand-text { overflow: hidden; }
  .brand-name { font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand-tag { font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand img { width: 48px; }
  .nav-toggle { flex-shrink: 0; }
  .utility-bar .container { flex-direction: column; gap: .35rem; padding: .5rem; }
  .slideshow .slide, .slideshow { height: 360px; max-height: 360px; }
  .slide-caption { padding-bottom: 3rem; }
  .section { padding: 2.5rem 0; }
  .announcement-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
    padding: 1rem;
  }
  .ab-flag {
    border-right: 0;
    padding-right: 0;
  }
  .ab-cta { width: 100%; justify-content: center; }
}
