/* ==========================================================================
   Town of Stephenville Crossing — site styles
   Layout modelled on cityoflancasterpa.gov (Wallace's scaffold); colours from the town crest:
   royal blue, crest beige, cream, railway red, fish green.
   ========================================================================== */
:root {
  --blue: #1d4f9c;
  --blue-dark: #143a75;
  --navy: #0e2a4f;
  --beige: #e9dfc8;
  --beige-mid: #d9cba8;
  --beige-dark: #b8a272;
  --tan: #b8975a;
  --cream: #f8f4ea;
  --red: #c62828;
  --red-dark: #9f1f1f;
  --green: #2e7d4f;
  --gold: #f2c230;
  --ink: #1d232b;
  --text: #2c333b;
  --muted: #5f6b76;
  --line: #e2ddd1;
  --gray-bg: #f3f1ec;
  --white: #fff;
  --heading-font: 'Oswald', 'Arial Narrow', sans-serif;
  --body-font: 'Open Sans', Arial, Helvetica, sans-serif;
  --maxw: 1240px;
  --shadow: 0 4px 18px rgba(14, 42, 79, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body-font); font-size: 16px; color: var(--text); background: var(--white); line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--red); }
h1, h2, h3, h4, h5 { font-family: var(--heading-font); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 600; }
p { margin: 0 0 1em; }
button { font-family: inherit; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 900px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 2000; font-weight: 700; }
.skip-link:focus { top: 12px; color: #fff; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
section.band { padding: 64px 0; }

/* ---------- buttons: square corners like Lancaster ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--heading-font); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 14px;
  padding: 12px 26px; border: 2px solid transparent; cursor: pointer; border-radius: 0; line-height: 1.2; text-align: center;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #071a33; color: #fff; }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: var(--cream); color: var(--blue-dark); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { display: flex; width: 100%; }

/* ---------- section headings: uppercase + tan rule ---------- */
.section-title {
  font-family: var(--heading-font); font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  font-size: 26px; color: var(--ink); margin-bottom: 26px; padding-bottom: 10px;
  border-bottom: 3px solid var(--tan); display: inline-block;
}
.section-title.full { display: block; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-head .more { font-family: var(--heading-font); text-transform: uppercase; letter-spacing: 1px; font-size: 14px; font-weight: 600; margin-bottom: 30px; }

/* ======================= STICKY TOP (utility bar + header) ======================= */
html { scroll-padding-top: 190px; }
.site-top { position: sticky; top: 0; z-index: 1000; background: #fff; box-shadow: 0 2px 10px rgba(14,42,79,.08); }
.site-top .header-inner, .site-top .brand img, .site-top .brand-name { transition: padding .2s ease, height .2s ease, font-size .2s ease; }
.site-top.scrolled .header-inner { min-height: 0; padding-top: 8px; padding-bottom: 8px; }
.site-top.scrolled .brand img { height: 58px; }
@media (min-width: 1021px) { .site-top.scrolled .brand-name { font-size: 21px; } }
.site-top.scrolled .brand-tag { display: none; }
.site-top.scrolled .header-search { display: none; }
.site-top.scrolled .header-right { gap: 0; }

/* ======================= EMERGENCY BARS ======================= */
.emergency-bar { background: var(--red-dark); color: #fff; text-align: center; padding: 10px 16px; font-weight: 700; font-size: 14px; line-height: 1.4; border-bottom: 2px solid #7d1717; }
.emergency-bar a { color: #fff; text-decoration: underline; margin-left: 10px; }
.emergency-bar .when { font-weight: 400; opacity: .85; margin-left: 10px; }

/* ======================= UTILITY STRIP (beige) ======================= */
.utility-bar { background: var(--beige); color: var(--ink); font-size: 13px; border-bottom: 1px solid var(--beige-mid); }
.utility-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 0 0 24px; display: flex; align-items: stretch; gap: 18px; min-height: 48px; }
.util-left { display: flex; align-items: center; gap: 14px; }
.util-social a {
  width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy); color: #fff; font-size: 13px;
}
.util-social a:hover { background: var(--blue); color: #fff; }
.util-date { font-weight: 600; color: var(--navy); white-space: nowrap; }
.util-links { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.util-links a { color: var(--ink); font-weight: 600; white-space: nowrap; }
.util-links a i { color: var(--blue); margin-right: 5px; }
.util-links a:hover { color: var(--red); }
.util-buttons { display: flex; align-items: stretch; }
.util-btn {
  display: flex; align-items: center; gap: 9px; padding: 0 20px; font-family: var(--heading-font); font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px; font-size: 14px; white-space: nowrap;
}
.util-btn.map { background: var(--navy); color: var(--gold); }
.util-btn.map:hover { background: #071a33; color: #ffd84d; }
.util-btn.alerts { background: #eb4141; color: #fff; text-transform: none; font-family: var(--body-font); font-size: 15px; letter-spacing: 0; }
.util-btn.alerts:hover { background: var(--red); color: #fff; }
.util-btn.pay { background: var(--beige-dark); color: #fff; }
.util-btn.pay:hover { background: #9c8657; color: #fff; }
.radar-pulse { animation: radar 2s infinite; }
@keyframes radar { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(1.18); } }

/* ======================= MAIN HEADER (white, +50% height) ======================= */
.site-header { background: #fff; position: relative; box-shadow: 0 1px 0 var(--line); }
.header-inner { max-width: var(--maxw); margin: 0 auto; padding: 22px 24px; min-height: 120px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand img { height: 92px; width: auto; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--heading-font); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; line-height: 1.02; font-size: 25px; color: var(--navy); }
.brand-name small { display: block; font-size: 15px; letter-spacing: 3px; color: var(--blue); font-weight: 600; }
.brand-tag { font-size: 13px; font-style: italic; color: var(--muted); margin-top: 5px; }
.header-right { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.header-search { display: flex; width: 340px; max-width: 100%; border: 2px solid var(--beige-mid); background: #fff; }
.header-search input { flex: 1; border: 0; padding: 9px 12px; font-size: 14px; font-family: inherit; min-width: 0; background: transparent; }
.header-search input:focus { outline: none; }
.header-search:focus-within { border-color: var(--blue); }
.header-search button { border: 0; background: var(--blue); color: #fff; padding: 0 14px; cursor: pointer; font-size: 15px; }
.header-search button:hover { background: var(--blue-dark); }

.primary-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.primary-nav > ul > li { position: relative; }
.primary-nav > ul > li > a {
  display: block; padding: 8px 12px; font-family: var(--heading-font); font-weight: 600; font-size: 16px; text-transform: uppercase;
  letter-spacing: 1px; color: var(--ink); border-bottom: 3px solid transparent;
}
.primary-nav > ul > li > a:hover, .primary-nav > ul > li.open > a, .primary-nav > ul > li.active > a { color: var(--blue); border-bottom-color: var(--tan); }
.primary-nav .has-sub > a::after { content: '\f107'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-left: 6px; font-size: 12px; }
.primary-nav .sub {
  position: absolute; top: 100%; left: 0; min-width: 270px; background: #fff; list-style: none; margin: 0; padding: 10px 0;
  box-shadow: var(--shadow); border-top: 3px solid var(--blue); display: none; z-index: 1000;
}
.primary-nav > ul > li:last-child .sub, .primary-nav > ul > li:nth-last-child(2) .sub { left: auto; right: 0; }
.primary-nav li.open > .sub, .primary-nav li:hover > .sub, .primary-nav li:focus-within > .sub { display: block; }
.primary-nav .sub a { display: block; padding: 8px 20px; color: var(--text); font-size: 15px; font-weight: 600; }
.primary-nav .sub a:hover { background: var(--cream); color: var(--blue); }
.primary-nav .sub a.current { background: var(--cream); color: var(--blue); box-shadow: inset 4px 0 0 var(--tan); }
.menu-toggle { display: none; margin-left: auto; background: var(--navy); color: #fff; border: 0; width: 48px; height: 48px; font-size: 22px; cursor: pointer; }

/* ---------- header callouts (Wallace: moved up into the header) ---------- */
.gateway-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; width: 100%; margin: 34px auto 0; text-align: left; }
.gateway-card { background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.gateway-head { padding: 11px 20px; color: #fff; display: flex; align-items: center; justify-content: center; gap: 10px; }
.gateway-head h2 { font-family: var(--heading-font); font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; font-size: 19px; color: #fff; margin: 0; }
.gateway-head a { color: #fff; }
.gateway-head i { opacity: .85; }
.band-red { background: var(--red); }
.band-blue { background: var(--blue); }
.band-gold { background: var(--beige-dark); }
.gateway-body { padding: 4px 20px 12px; }
.gateway-body a { display: block; text-align: center; padding: 10px 0; border-bottom: 2px solid var(--tan); font-size: 16px; font-weight: 600; color: var(--text); }
.gateway-body a:last-child { border-bottom: 0; }
.gateway-body a:hover { color: var(--blue); }

/* ======================= HERO (+33% height) ======================= */
.hero { position: relative; min-height: 680px; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; overflow: hidden; background: var(--navy); }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.active { opacity: 1; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,42,79,.40) 0%, rgba(14,42,79,.20) 40%, rgba(14,42,79,.45) 100%); }
.hero-inner { position: relative; z-index: 2; padding: 40px 24px; max-width: var(--maxw); width: 100%; }
.hero h1 { color: #fff; font-weight: 700; text-transform: uppercase; font-size: clamp(34px, 5vw, 60px); letter-spacing: 2px; margin-bottom: 12px; text-shadow: 0 2px 14px rgba(0,0,0,.5); }
.hero p.lead { font-size: clamp(17px, 2vw, 22px); font-style: italic; text-shadow: 0 1px 8px rgba(0,0,0,.6); margin-bottom: 0; }
.hero-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.hero-dots button { width: 13px; height: 13px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0; }
.hero-dots button.active { background: #fff; }

/* ======================= SPOTLIGHT + POPULAR ======================= */
.spotlight { background: var(--gray-bg); }
.cols-spot { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; }
.spot-grid { display: grid; grid-template-columns: 210px 1fr 1fr; gap: 20px; align-items: stretch; }
.status-panel { background: var(--blue); color: #fff; padding: 18px 16px; }
.status-date { font-family: var(--heading-font); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 22px; line-height: 1.1; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.4); }
.status-date small { display: block; font-size: 14px; opacity: .85; }
.status-row { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.25); font-size: 13px; line-height: 1.35; }
.status-row:last-child { border-bottom: 0; }
.status-row strong { display: block; font-size: 13px; }
.status-row a { color: #fff; text-decoration: underline; }
.status-row i { width: 20px; text-align: center; font-size: 16px; margin-top: 2px; color: var(--beige); }
.status-row .ok { color: #9be3b4; font-weight: 700; }
.status-row .warn { color: #ffd2d2; font-weight: 700; }
.img-card { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.08); display: flex; flex-direction: column; color: var(--text); }
.img-card:hover { color: var(--text); box-shadow: var(--shadow); }
.img-card .img { aspect-ratio: 4 / 3; background-size: cover; background-position: center; }
.img-card-text { padding: 16px 18px 20px; flex: 1; }
.img-card-text h3 { text-transform: uppercase; letter-spacing: 1px; font-size: 18px; margin-bottom: 8px; color: var(--blue); }
.img-card-text p { font-size: 14px; color: var(--muted); margin: 0; }
.link-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.link-card { background: #fff; padding: 16px 18px; display: flex; align-items: center; gap: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.06); color: var(--blue); }
.link-card i.ico { width: 38px; height: 38px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--cream); color: var(--blue); font-size: 17px; }
.link-card span { font-family: var(--heading-font); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; font-size: 15px; line-height: 1.2; flex: 1; }
.link-card .arr { color: var(--tan); }
.link-card:hover { box-shadow: var(--shadow); color: var(--red); }

/* ======================= EVENTS + NEWS ======================= */
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.event-row { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.event-row:hover h3 { color: var(--blue); }
.date-block { text-align: center; min-width: 66px; }
.date-block .m { display: block; color: var(--blue); font-family: var(--heading-font); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 15px; }
.date-block .d { display: block; font-family: var(--heading-font); font-weight: 700; font-size: 42px; line-height: 1; color: var(--ink); }
.date-block .y { display: block; color: var(--muted); font-size: 13px; }
.event-info h3 { font-family: var(--body-font); font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.event-info p { font-size: 14px; color: var(--muted); margin: 0; }
.news-featured { position: relative; margin-bottom: 18px; display: block; color: #fff; }
.news-featured .img { aspect-ratio: 16 / 8; background-size: cover; background-position: center; }
.news-featured-card { background: var(--blue); color: #fff; padding: 18px 22px; margin: -46px 24px 0; position: relative; box-shadow: var(--shadow); }
.news-featured-card h3 { color: #fff; text-transform: uppercase; letter-spacing: 1px; font-size: 19px; margin-bottom: 6px; }
.news-featured-card p { font-size: 14px; margin: 0; }
.news-featured:hover .news-featured-card { background: var(--blue-dark); }
.news-item { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: baseline; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #fff; background: var(--muted); padding: 3px 8px; white-space: nowrap; }
.tag.notice { background: var(--red); }
.tag.news { background: var(--blue); }
.tag.public-notice { background: var(--beige-dark); }
.tag.event { background: var(--green); }
.news-item a { font-weight: 600; font-size: 15px; color: var(--text); }
.news-item a:hover { color: var(--blue); }
.news-item .date { color: var(--muted); font-size: 13px; white-space: nowrap; margin-left: auto; }
.events-news .btn { margin-top: 22px; }
.empty-note { color: var(--muted); font-style: italic; padding: 12px 0; }

/* ======================= PHOTO STRIP (Lancaster social strip) ======================= */
.photo-strip { display: grid; grid-template-columns: repeat(7, 1fr); }
.photo-strip a { aspect-ratio: 1; background-size: cover; background-position: center; position: relative; cursor: zoom-in; }
.photo-strip a::after { content: ''; position: absolute; inset: 0; background: rgba(14,42,79,0); transition: background .2s; }
.photo-strip a:hover::after { background: rgba(14,42,79,.35); }

/* ======================= PROMO CAROUSEL ======================= */
.promo .container { position: relative; }
.promo-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.promo-panel { flex: 0 0 78%; display: flex; scroll-snap-align: start; min-height: 330px; box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.promo-text { flex: 1; padding: 44px 40px; }
.promo-text h3 { font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; font-size: 28px; margin-bottom: 12px; }
.promo-text p { font-size: 15px; margin-bottom: 22px; }
.promo-img { flex: 1; background-size: cover; background-position: center; min-height: 260px; }
.tint-1 { background: var(--cream); }
.tint-2 { background: #e3ecf7; }
.tint-3 { background: #f6e6e2; }
.promo-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.2); font-size: 20px; color: var(--ink); z-index: 2; }
.promo-arrow.left { left: 2px; }
.promo-arrow.right { right: 2px; }

/* ======================= INTEL-ALERT FEATURE ======================= */
.alert-feature { background: var(--navy); color: #fff; }
.alert-feature .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.alert-feature .pic { position: relative; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.alert-feature .pic img { width: 100%; }
.alert-feature .pic .overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 26px 24px; background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,0)); text-align: center; }
.alert-feature .pic .overlay p { color: #fff; font-size: 17px; line-height: 1.45; margin-bottom: 14px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.alert-feature h2 { color: #fff; font-size: 38px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.alert-feature .sub { font-size: 20px; color: var(--gold); margin-bottom: 18px; font-family: var(--heading-font); }
.alert-feature .txt { color: #d7e1ee; font-size: 16px; }
.alert-feature .btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.ia-badge { margin-top: 26px; background: #fff; color: var(--ink); padding: 18px 20px; display: flex; gap: 16px; align-items: center; }
.ia-badge .logo-ia { font-weight: 800; font-size: 20px; color: #000; white-space: nowrap; }
.ia-badge .logo-ia span { color: #f7941d; }
.ia-badge .logo-ia i { color: #eb4141; }
.ia-badge .t1 { font-size: 13px; font-weight: 700; color: #0081ce; text-transform: uppercase; }
.ia-badge .t2 { font-size: 18px; font-weight: 800; color: #f7941d; line-height: 1.1; }
.ia-badge .t3 { font-size: 12px; color: #555; margin: 4px 0 0; }

/* ======================= WETLANDS SCROLLER ======================= */
.wetlands { background: var(--cream); padding: 44px 0 0; }
.wetlands .head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.marquee { position: relative; }
.marquee-track { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x proximity; scroll-behavior: smooth; scrollbar-width: none; }
.marquee-track::-webkit-scrollbar { display: none; }
.marquee-track a { flex: none; width: 320px; height: 220px; background-size: cover; background-position: center; position: relative; scroll-snap-align: start; }
.marquee-track a span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 8px; color: #fff; font-size: 13px; font-weight: 600; background: linear-gradient(to top, rgba(0,0,0,.7), transparent); opacity: 0; transition: opacity .2s; }
.marquee-track a:hover span, .marquee-track a:focus span { opacity: 1; }
.marquee-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,255,255,.92); color: var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,.3); font-size: 18px; }
.marquee-arrow:hover { background: #fff; color: var(--blue); }
.marquee-arrow.left { left: 12px; }
.marquee-arrow.right { right: 12px; }
.marquee-arrow[disabled] { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .marquee-track { scroll-behavior: auto; } .hero-slide { transition: none; } }

/* ======================= FOOTER ======================= */
.site-footer { background: var(--navy); color: #d9e2ee; padding: 56px 0 0; font-size: 15px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--gold); }
.site-footer .btn-white { color: var(--blue); }
.site-footer .btn-white:hover { color: var(--blue-dark); }
.site-footer .btn-red, .site-footer .btn-red:hover { color: #fff; }
.foot-contact a { overflow-wrap: normal; }
.footer-cols { display: grid; grid-template-columns: 1fr .85fr 1.45fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.foot-crest img { width: 128px; height: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); }
.foot-crest p { margin-top: 14px; font-size: 14px; color: #b9c7d8; }
.foot-title { font-family: var(--heading-font); text-transform: uppercase; letter-spacing: 1.5px; font-size: 18px; color: #fff; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--tan); display: inline-block; }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links li { padding: 4px 0; }
.foot-links a { font-family: var(--heading-font); text-transform: uppercase; letter-spacing: 1px; font-size: 14px; }
.foot-contact-list { list-style: none; margin: 0; padding: 0; }
.foot-contact-list li { display: grid; grid-template-columns: 22px 1fr; column-gap: 12px; align-items: start; margin-bottom: 12px; line-height: 1.5; }
.foot-contact-list i { color: var(--beige-mid); text-align: center; line-height: inherit; padding-top: 1px; }
.foot-contact-list span { min-width: 0; }
.nowrap { white-space: nowrap; }
.foot-social { display: flex; gap: 10px; margin-top: 14px; }
.foot-social a { width: 36px; height: 36px; border: 1px solid #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.foot-signup { background: rgba(255,255,255,.06); padding: 20px; border-left: 4px solid #eb4141; margin-top: 4px; }
.foot-signup h3 { color: #fff; font-size: 19px; text-transform: uppercase; letter-spacing: 1px; }
.foot-signup p { font-size: 14px; color: #c9d4e2; }
.footer-meta { border-top: 1px solid rgba(255,255,255,.15); padding: 14px 0; font-size: 13px; color: #9fb0c4; }
.footer-meta .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
/* white bottom bar (same as North River) */
.copyright-bar { background: #fff; padding: 30px 0; border-top: 1px solid rgba(0,0,0,.05); }
.copyright-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.copyright-bar p { margin: 0; color: #777; font-size: 14px; }
.copyright-bar .powered { display: flex; align-items: center; gap: 16px; }
.copyright-bar .powered span { font-weight: 700; font-size: 11px; color: #777; letter-spacing: 1px; text-transform: uppercase; }
.copyright-bar .powered img { height: 50px; width: auto; }

/* ======================= INTERIOR PAGES ======================= */
.page-banner {
  position: relative; background-color: var(--blue); color: #fff; text-align: center; padding: 70px 24px; overflow: hidden;
  background-image: url("../img/stock/nl-coast.jpg"); background-size: cover; background-position: center 50%;
}
.page-banner::before { content: ''; position: absolute; inset: 0; background: rgba(14,42,79,.30); }
.page-banner.has-photo { background-size: cover; }
.page-banner.has-photo::before { content: ''; position: absolute; inset: 0; background: rgba(14,42,79,.62); }
.page-banner h1 { position: relative; color: #fff; text-transform: uppercase; font-weight: 700; letter-spacing: 2px; font-size: clamp(30px, 4.4vw, 52px); margin: 0; }
.breadcrumbs { background: var(--cream); border-bottom: 1px solid var(--line); font-size: 13px; }
.breadcrumbs ol { list-style: none; margin: 0 auto; padding: 10px 24px; max-width: var(--maxw); display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: '\203A'; margin-right: 6px; color: var(--muted); }
.breadcrumbs a { color: var(--blue); }
.page-body { padding: 52px 0 64px; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 52px; }
.page-grid.full { grid-template-columns: minmax(0, 1fr); }
.content { font-size: 16px; }
.content h2 { font-size: 26px; text-transform: uppercase; letter-spacing: .5px; margin-top: 1.4em; }
.content h3 { font-size: 21px; color: var(--blue); margin-top: 1.3em; }
.content h4 { font-size: 18px; margin-top: 1.2em; }
.content ul, .content ol { padding-left: 1.4em; margin: 0 0 1em; }
.content li { margin-bottom: .35em; }
.content img { max-width: 100%; height: auto; display: inline-block; }
.content img[style*="float: left"], .content img.align-left { margin: 0 20px 12px 0; }
.content img[style*="float: right"], .content img.align-right { margin: 0 0 12px 20px; }
.content table { border-collapse: collapse; width: 100%; margin: 0 0 1.2em; font-size: 15px; }
.content th, .content td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.content th { background: var(--cream); }
.content blockquote { border-left: 4px solid var(--tan); margin: 0 0 1em; padding: 6px 18px; background: var(--cream); }
.content a { text-decoration: underline; text-underline-offset: 2px; }
.content iframe { max-width: 100%; }
.content > *:first-child { margin-top: 0; }

.sidebar .box { background: var(--gray-bg); padding: 24px; margin-bottom: 24px; }
.sidebar .box h2 { font-size: 18px; text-transform: uppercase; letter-spacing: 1px; padding-bottom: 10px; border-bottom: 2px solid var(--tan); margin-bottom: 14px; }
.sidebar .box h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 1px; margin: 14px 0 4px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.sidebar .box p { font-size: 14px; margin-bottom: 6px; }
.sidebar .nav-list { list-style: none; padding: 0; margin: 0; }
.sidebar .nav-list a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15px; color: var(--text); }
.sidebar .nav-list a:hover, .sidebar .nav-list a.current { color: var(--blue); }
.sidebar .nav-list a.current { border-left: 3px solid var(--tan); padding-left: 10px; }
.sidebar .alert-cta { background: #eb4141; color: #fff; padding: 22px; margin-bottom: 24px; }
.sidebar .alert-cta h2 { color: #fff; font-size: 20px; text-transform: uppercase; margin-bottom: 8px; }
.sidebar .alert-cta p { font-size: 14px; }

/* documents, minutes, tenders */
.doc-list { list-style: none; margin: 0 0 30px; padding: 0; border-top: 1px solid var(--line); }
.doc-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.doc-list .ficon { font-size: 26px; color: var(--red); width: 30px; text-align: center; flex: none; }
.doc-list .ficon.fa-file-word { color: #2b579a; }
.doc-list .ficon.fa-file-excel { color: #217346; }
.doc-list .meta { color: var(--muted); font-size: 13px; }
.doc-list a.title { font-weight: 700; color: var(--text); }
.doc-list a.title:hover { color: var(--blue); }
.doc-list .desc { font-size: 14px; margin: 4px 0 0; color: var(--muted); }
.year-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.year-tabs a { padding: 6px 14px; border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--text); background: #fff; }
.year-tabs a.active, .year-tabs a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.status-pill { display: inline-block; padding: 2px 9px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.status-pill.open { background: #e2f3e8; color: var(--green); }
.status-pill.closed { background: #eee; color: #666; }
.status-pill.awarded { background: #e3ecf7; color: var(--blue); }

/* council */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; margin-bottom: 30px; }
.person { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.08); text-align: center; padding-bottom: 18px; }
.person .ph { aspect-ratio: 1; background: var(--cream) center / cover no-repeat; display: flex; align-items: center; justify-content: center; color: var(--beige-dark); font-size: 64px; }
.person h3 { margin: 14px 12px 2px; font-size: 19px; }
.person .role { color: var(--red); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.person .contact { font-size: 14px; margin-top: 8px; padding: 0 12px; }
.person .contact a { display: block; overflow-wrap: anywhere; }

/* businesses */
.biz-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.biz-tools input, .biz-tools select { padding: 10px 12px; border: 1px solid #c9c2b2; font-size: 15px; font-family: inherit; }
.biz-tools input { flex: 1; min-width: 220px; }
.biz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.biz-card { border: 1px solid var(--line); border-top: 4px solid var(--blue); padding: 18px; background: #fff; }
.biz-card h3 { font-size: 18px; margin-bottom: 4px; }
.biz-card .cat { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--tan); }
.biz-card p { font-size: 14px; margin: 6px 0 0; }
.biz-card i { width: 18px; color: var(--blue); }

/* gallery */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.album { display: block; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.08); color: var(--text); }
.album .img { aspect-ratio: 4/3; background: var(--cream) center / cover no-repeat; }
.album h3 { font-size: 18px; margin: 12px 14px 2px; }
.album p { font-size: 13px; color: var(--muted); margin: 0 14px 14px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.photo-grid a { aspect-ratio: 1; background: var(--cream) center / cover no-repeat; display: block; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); display: none; align-items: center; justify-content: center; z-index: 3000; padding: 40px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 86vh; max-width: 92vw; box-shadow: 0 0 40px rgba(0,0,0,.6); }
.lightbox .cap { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #fff; }
.lightbox button { position: absolute; background: rgba(255,255,255,.15); color: #fff; border: 0; width: 50px; height: 50px; font-size: 22px; cursor: pointer; }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; }
.lightbox .lb-next { right: 16px; top: 50%; }

/* news list */
.news-list { display: grid; gap: 24px; }
.news-card { display: grid; grid-template-columns: 240px 1fr; gap: 22px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.news-card .img { aspect-ratio: 4/3; background: var(--cream) center / cover no-repeat; display: block; }
.news-card h2 { font-size: 22px; margin: 6px 0; text-transform: none; letter-spacing: 0; }
.news-card h2 a { color: var(--ink); }
.news-card h2 a:hover { color: var(--blue); }
.news-card .date { color: var(--muted); font-size: 13px; margin-left: 8px; }
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 26px; }
.filter-tabs a { padding: 8px 16px; background: var(--gray-bg); font-weight: 600; font-size: 14px; color: var(--text); }
.filter-tabs a.active, .filter-tabs a:hover { background: var(--blue); color: #fff; }
.article-meta { color: var(--muted); font-size: 14px; margin-bottom: 20px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.article-hero { margin-bottom: 24px; }
.pagination { display: flex; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 14px; border: 1px solid var(--line); font-weight: 600; color: var(--text); }
.pagination .current { background: var(--blue); color: #fff; border-color: var(--blue); }

/* events */
#calendar { background: #fff; margin-bottom: 30px; }
.fc .fc-toolbar-title { font-family: var(--heading-font); text-transform: uppercase; }
.fc .fc-button-primary { background: var(--blue); border-color: var(--blue); border-radius: 0; }
.fc .fc-button-primary:hover, .fc .fc-button-primary:not(:disabled).fc-button-active { background: var(--blue-dark); border-color: var(--blue-dark); }
.fc-event { cursor: pointer; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: none; align-items: center; justify-content: center; z-index: 3000; padding: 20px; }
.modal.open { display: flex; }
.modal-box { background: #fff; max-width: 620px; width: 100%; max-height: 88vh; overflow: auto; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.modal-head { background: var(--blue); color: #fff; padding: 16px 22px; display: flex; justify-content: space-between; gap: 10px; }
.modal-head h2 { color: #fff; font-size: 20px; margin: 0; }
.modal-head button { background: none; border: 0; color: #fff; font-size: 24px; cursor: pointer; line-height: 1; }
.modal-body { padding: 22px; }

/* forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 5px; }
.field input, .field textarea, .field select { width: 100%; padding: 11px 12px; border: 1px solid #c9c2b2; font-size: 15px; font-family: inherit; background: #fff; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); outline: 2px solid rgba(29,79,156,.2); }
.field textarea { min-height: 160px; resize: vertical; }
.req { color: var(--red); }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 12px 16px; margin-bottom: 16px; font-weight: 600; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: #e2f3e8; color: #1d5c36; border-left: 4px solid var(--green); }
.form-msg.err { background: #fdecec; color: #8a1c1c; border-left: 4px solid var(--red); }
.recaptcha-note { font-size: 12px; color: var(--muted); margin-top: 10px; }
.inline-search { display: flex; gap: 10px; max-width: 560px; margin-top: 20px; }
.inline-search input { flex: 1; padding: 12px; border: 1px solid #c9c2b2; font-size: 15px; }
.map-embed { position: relative; padding-top: 60%; margin-bottom: 20px; }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* search + sitemap */
.search-results { list-style: none; padding: 0; margin: 0; }
.search-results li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.search-results a { font-weight: 700; font-size: 18px; }
.search-results .type { font-size: 12px; text-transform: uppercase; font-weight: 700; color: var(--tan); letter-spacing: 1px; }
.search-results p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.sitemap-cols { columns: 3 260px; column-gap: 40px; }
.sitemap-cols > div { break-inside: avoid; margin-bottom: 26px; }
.sitemap-cols ul { list-style: none; padding: 0; margin: 0; }
.sitemap-cols li { padding: 3px 0; }

/* ======================= INTEL-ALERT PAGES ======================= */
.ia-status { padding: 20px; color: #fff; display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.ia-status.clear { background: #198754; }
.ia-status.active { background: var(--red-dark); }
.ia-status i { font-size: 32px; }
.ia-status h2 { color: #fff; font-size: 22px; margin: 0; }
.ia-status p { margin: 0; font-size: 14px; }
.ia-alert { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.ia-alert .head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; font-weight: 800; margin-bottom: 10px; }
.ia-active-badge { background: var(--red); color: #fff; padding: 4px 10px; font-size: 12px; margin-right: 8px; }
#ia-map { height: 500px; width: 100%; border: 1px solid #ddd; background: #e9eef2; }
.ia-recent .item { padding: 10px 0; border-bottom: 1px solid var(--line); }
.ia-recent small { color: var(--red); font-weight: 700; display: block; }

/* signup form (ported from North River) */
.ia-card { background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.1); margin-bottom: 36px; }
.ia-card-head { background: #eb4141; color: #fff; padding: 25px; text-align: center; }
.ia-card-head h2 { color: #fff; margin: 0 0 4px; font-size: 28px; }
.ia-card-head p { margin: 0; opacity: .9; }
.ia-card-body { background: #f8f9fa; padding: 26px; }
.ia-section { background: #fff; padding: 25px; margin-bottom: 20px; border: 1px solid #dee2e6; border-left: 6px solid var(--blue); }
.ia-section.emergency { border-left-color: #dc3545; }
.ia-section h3 { font-family: var(--body-font); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 15px; color: var(--blue); margin-bottom: 18px; }
.ia-section.emergency h3 { color: #dc3545; }
.ia-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.field-wrapper { display: flex; width: 100%; height: 48px; margin-bottom: 15px; border: 1px solid #ced4da; overflow: hidden; background: #fff; }
.field-wrapper .ico { flex: 0 0 50px; background: #f4f4f4; display: flex; align-items: center; justify-content: center; border-right: 1px solid #ced4da; color: #666; }
.field-wrapper input { flex: 1; border: 0; padding: 0 15px; height: 100%; font-size: 15px; background: transparent; min-width: 0; font-family: inherit; }
.field-wrapper input:focus { outline: none; }
.field-wrapper:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,79,156,.12); }
.field-wrapper.disabled { opacity: .5; }
.field-wrapper.is-invalid { border: 2px solid #dc3545; }
.method-box { display: flex; align-items: center; gap: 12px; border: 1px solid #ced4da; padding: 12px; background: #fff; min-height: 55px; cursor: pointer; font-weight: 700; font-size: 14px; }
.method-box input { width: 22px; height: 22px; cursor: pointer; }
.info-box { background: #f0f7ff; border: 1px solid var(--blue); padding: 14px 15px; margin-bottom: 15px; display: flex; gap: 14px; align-items: center; font-size: 14px; }
.info-box > i { font-size: 24px; color: var(--blue); width: 26px; text-align: center; flex: none; }
.info-box strong { color: var(--blue); }
.email-row { background: #e7f1ff; border: 1px solid var(--blue); padding: 12px 15px; margin-bottom: 10px; display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 14px; }
.email-row input { width: 22px; height: 22px; }
.ia-smsok { display: flex; gap: 12px; align-items: flex-start; background: #f8fafc; border: 1px solid #ced4da; padding: 12px 15px; margin-bottom: 15px; }
.ia-smsok input { width: 22px; height: 22px; flex: 0 0 22px; margin: 1px 0 0; cursor: pointer; }
.ia-smsok label { font-weight: 700; font-size: 14px; color: #212529; cursor: pointer; line-height: 1.4; }
.ia-smsok .opt { font-weight: 400; color: #6c757d; }
.ia-smsok .fine { display: block; font-weight: 400; font-size: 13px; color: #6c757d; margin-top: 4px; }
.ia-smsok.is-asking { border: 2px solid #dc3545; background: #fdecec; }
.ia-ask { background: #fff8e6; border: 1px solid #f1d38a; color: #5c4400; padding: 10px 15px; font-size: 14px; line-height: 1.4; margin-bottom: 15px; }
.ia-ask .btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ia-done { display: none; text-align: center; padding: 40px 20px; }
.ia-done i.big { font-size: 80px; }
.verify-input { width: 100%; text-align: center; font-size: 32px; letter-spacing: 10px; height: 70px; border: 1px solid #ced4da; margin: 18px 0 10px; }
.btn-success { background: #198754; color: #fff; }
.btn-success:hover { background: #146c43; color: #fff; }

/* ======================= RESPONSIVE ======================= */
@media (max-width: 1180px) {
  .util-links { display: none; }
  .primary-nav > ul > li > a { padding: 8px 8px; font-size: 15px; }
  .brand-name { font-size: 22px; }
}
@media (max-width: 1020px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-inner { flex-wrap: wrap; min-height: 0; padding: 14px 20px; gap: 14px 16px; }
  .brand img { height: 70px; }
  .header-right { order: 3; width: 100%; align-items: stretch; margin-left: 0; display: none; }
  .site-header.nav-open .header-right { display: flex; max-height: calc(100vh - 150px); overflow-y: auto; padding-bottom: 12px; }
  .site-top.scrolled .site-header.nav-open .header-search { display: flex; }
  html { scroll-padding-top: 150px; }
  .site-top.scrolled .utility-bar { display: none; }
  .site-top.scrolled .brand img { height: 48px; }
  .brand { min-width: 0; flex: 1 1 0; }
  .brand-text { min-width: 0; }
  .menu-toggle { flex: none; }
  .header-search { width: 100%; }
  .primary-nav > ul { flex-direction: column; gap: 0; }
  .primary-nav > ul > li > a { border-bottom: 1px solid var(--line); padding: 12px 4px; }
  .primary-nav .sub { position: static; box-shadow: none; border-top: 0; padding: 0 0 8px 14px; min-width: 0; }
  .primary-nav li:hover > .sub { display: none; }
  .primary-nav li.open > .sub { display: block; }
  .gateway-cards { grid-template-columns: 1fr; }
  .cols-spot, .cols-2, .alert-feature .wrap { grid-template-columns: 1fr; }
  .spot-grid { grid-template-columns: 1fr 1fr; }
  .status-panel { grid-column: 1 / -1; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .photo-strip { grid-template-columns: repeat(4, 1fr); }
  .photo-strip a:nth-child(n+9) { display: none; }
  .promo-panel { flex-basis: 92%; flex-direction: column; }
  .page-grid { grid-template-columns: 1fr; }
  .hero { min-height: 420px; }
  .hero-inner { padding: 40px 16px; }
  .util-date { display: none; }
}
@media (max-width: 680px) {
  .utility-inner { padding: 0; flex-wrap: wrap; gap: 0; min-height: 0; }
  .util-left { padding: 0; }
  .util-social { padding: 8px 16px; }
  .util-buttons { width: 100%; }
  .util-btn { flex: 1; justify-content: center; padding: 10px 8px; font-size: 12px; text-align: center; white-space: normal; }
  .util-btn.alerts { font-size: 13px; }
  .brand img { height: 58px; }
  .brand { gap: 10px; }
  .brand-name { font-size: clamp(15px, 4.6vw, 18px); letter-spacing: 1px; }
  .brand-name small { font-size: 12px; }
  .brand-tag { display: none; }
  .container { padding: 0 16px; }
  .link-cards, .spot-grid, .form-grid, .ia-row { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: repeat(3, 1fr); }
  .photo-strip a:nth-child(n+7) { display: none; }
  .news-card { grid-template-columns: 1fr; }
  section.band { padding: 44px 0; }
  .promo-text { padding: 28px 22px; }
  .marquee-track a { width: 240px; height: 165px; }
  .marquee-arrow { width: 38px; height: 38px; font-size: 15px; }
  .copyright-bar .container { justify-content: center; text-align: center; }
  .copyright-bar .powered { flex-direction: column; gap: 8px; }
}
@media print {
  .utility-bar, .site-header .header-right, .header-callouts, .site-footer, .copyright-bar, .wetlands, .menu-toggle, .sidebar { display: none !important; }
  .page-banner { background: none !important; color: #000; padding: 10px 0; }
  .page-banner h1 { color: #000; }
}
