/* Warren Sanitary District — style.css
   Redesigned 2025. Colors from the WSD logo:
     Navy:  #1a2e6e  (logo lettering)
     Gold:  #f5a800  (logo rule / accent)
   Body text: black throughout. Headings/menus in navy or gold.
   Fonts: Libre Baskerville (headings) + Source Sans 3 (body) via Google Fonts.
*/

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Source+Sans+3:wght@400;600&display=swap');

:root {
  --navy:        #1a2e6e;
  --navy-dark:   #111e4a;
  --navy-light:  #dce3f5;
  --gold:        #f5a800;
  --gold-light:  #fff8e1;   /* pale post-it yellow */
  --gold-dark:   #c47f00;
  --black:       #000000;
  --mid:         #333333;
  --muted:       #666666;
  --border:      #c0c8dc;
  --bg-page:     #f2f4fa;
  --white:       #ffffff;
  --font-heading: 'Libre Baskerville', Georgia, serif;
  --font-body:    'Source Sans 3', 'Segoe UI', sans-serif;
  --max-width:    960px;
  --content-pad:  clamp(1rem, 3vw, 1.75rem);
  --radius:       4px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--black);
  background: var(--bg-page);
}

a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--gold-dark); }
img { max-width: 100%; height: auto; display: block; background: white;}

/* ── Page wrapper ── */
#page {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--border);
}

/* ── Top Navigation Bar ── */
#topnav {
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
}

/* Mobile hamburger button — hidden on desktop */
#nav-toggle {
  display: none;
  width: 100%;
  padding: 0.6rem 1rem;
  background: var(--navy);
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  text-align: left;
}
#nav-toggle::after { content: ' ▾'; }
#nav-toggle.open::after { content: ' ▴'; }

#topnav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

#topnav ul li a {
  display: block;
  padding: 0.55rem 0.9rem;
  color: var(--gold-light);   /* pale post-it yellow */
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s;
}

#topnav ul li a:hover,
#topnav ul li a.active {
  background: var(--navy-dark);
  color: var(--gold);
}

/* ── Header — logo banner ── */
#header {
  background: var(--white);
  padding: 1rem var(--content-pad) 0;
  border-bottom: 4px solid var(--gold);
}

#header img.site-logo {
  max-height: 120px;
  background: white;
  width: auto;
}

/* ── Aerial photo strip below logo ── */
#photo-banner {
  height: 190px;
  overflow: hidden;
  background: var(--navy) url('images/header.jpg') center/cover no-repeat;
}

/* ── Main layout: LEFT sidebar + content ── */
#main {
  display: grid;
  grid-template-columns: 210px 1fr;
  align-items: start;
}

/* ── Sidebar (LEFT) ── */
#sidebar {
  padding: 1.25rem 0.85rem;
  background: var(--navy-light);
  border-right: 1px solid var(--border);
  min-height: 400px;
}

#sidebar h2 {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin: 0 0 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--gold);
}

#sidebar h2:not(:first-child) { margin-top: 1.5rem; }

.sidenav { list-style: none; margin-bottom: 1rem; }

.sidenav li { border-bottom: 1px solid #b0b8d0; }
.sidenav li:first-child { border-top: 1px solid #b0b8d0; }

.sidenav li a {
  display: block;
  padding: 0.45rem 0.6rem;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: background 0.12s, padding-left 0.12s, color 0.12s;
}

.sidenav li a:hover,
.sidenav li a.active {
  background: var(--navy);
  color: var(--gold-light);
  padding-left: 1rem;
}

/* Sidebar meeting note box — post-it yellow */
.note-box {
  background: var(--gold-light);
  border: 1px solid var(--gold);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--black);
  margin-bottom: 1rem;
}

.note-box strong {
  color: var(--navy);
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.note-box p { margin-bottom: 0.4rem; color: var(--black); }
.note-box p:last-child { margin-bottom: 0; }

/* ── Content column ── */
#content {
  padding: var(--content-pad);
  min-width: 0;
  color: var(--black);
}

#content h2 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 3px solid var(--gold);
  line-height: 1.25;
}

#content h2:not(:first-child) { margin-top: 2rem; }

#content h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 1.4rem 0 0.35rem;
}

#content p { color: var(--black); margin-bottom: 1rem; }
#content ul, #content ol { color: var(--black); margin: 0 0 1rem 1.5rem; }
#content li { margin-bottom: 0.35rem; }
#content dl { margin: 0 0 1rem 0; }
#content dt { font-weight: 600; color: var(--black); margin-top: 0.75rem; }
#content dd { margin-left: 1.25rem; color: var(--black); }

#content table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-bottom: 1.25rem; }
#content th { background: var(--navy); color: var(--gold-light); text-align: left; padding: 0.5rem 0.75rem; font-weight: 600; }
#content td { color: var(--black); padding: 0.45rem 0.75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
#content tr:nth-child(even) td { background: var(--navy-light); }

hr { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

/* Info / callout box */
.info-box {
  background: var(--navy-light);
  border: 1px solid #a0aad0;
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.info-box h3 { font-family: var(--font-heading); font-size: 1rem; color: var(--navy); margin: 0 0 0.5rem; }
.info-box p, .info-box dl, .info-box dt, .info-box dd { color: var(--black); font-size: 0.92rem; }

/* Two-column split within content */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1rem; }

/* ── Footer ── */
#footer {
  background: var(--navy);
  border-top: 3px solid var(--gold);
  color: var(--gold-light);
  text-align: center;
  padding: 0.85rem var(--content-pad);
  font-size: 0.8rem;
  clear: both;
}

#footer a { color: var(--gold); text-decoration: none; }
#footer a:hover { text-decoration: underline; }

/* ── Utilities ── */
.important { color: #b52020; font-weight: 600; }
.small { font-size: 0.85rem; color: var(--muted); }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.hide        { display: none; }

/* ── Responsive ── */
@media (max-width: 700px) {
  /* Collapsible hamburger nav */
  #nav-toggle { display: block; }
  #topnav ul { display: none; flex-direction: column; }
  #topnav ul.open { display: flex; }
  #topnav ul li a { padding: 0.65rem 1rem; border-top: 1px solid rgba(255,255,255,0.08); }

  /* Stack sidebar BELOW content on small screens */
  #main { grid-template-columns: 1fr; }
  #sidebar { border-right: none; border-top: 3px solid var(--gold); min-height: unset; }
  .split { grid-template-columns: 1fr; }
  #header img.site-logo { max-height: 80px; }
  #photo-banner { height: 130px; }
}
