/* ============================================================
   DMWR.AS.GOV — Static Site Stylesheet
   Primary: #067f63  |  Font: System stack
   ============================================================ */

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

:root {
  --green: #067f63;
  --green-dark: #055a46;
  --green-light: #e8f5f1;
  --text: #1a1a1a;
  --text-muted: #555;
  --border: #ddd;
  --white: #fff;
  --gray-bg: #f5f7f6;
  --max-w: 1200px;
  --radius: 6px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HEADER & NAV ─────────────────────────────────────────── */

header {
  background: var(--white);
  border-bottom: 3px solid var(--green);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 0 0;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-bottom: 8px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo img { height: 52px; width: auto; }

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text .abbr {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.2;
}

.logo-text .full {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1.3;
}

nav {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  border-top: 1px solid var(--border);
  padding: 4px 0;
}

nav a, .nav-dropdown > button {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius);
  border: none;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s;
}

nav a:hover, .nav-dropdown > button:hover,
nav a.active, .nav-dropdown > button.active {
  background: var(--green-light);
  color: var(--green);
  text-decoration: none;
}


/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .2s;
}

/* ── HERO / PAGE BANNER ───────────────────────────────────── */

.hero {
  position: relative;
  height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--green-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .55;
}

.hero-content {
  position: relative;
  color: var(--white);
  max-width: 640px;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 28px;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
  opacity: .95;
}

.page-banner {
  position: relative;
  height: 280px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--green-dark);
}

.page-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .45;
}

.page-banner-content {
  position: relative;
  color: var(--white);
  padding-bottom: 36px;
}

.page-banner-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}

/* ── BUTTONS ──────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
  text-decoration: none;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  text-decoration: none;
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--green);
  text-decoration: none;
}

/* ── SECTIONS ─────────────────────────────────────────────── */

section { padding: 64px 0; }

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 40px;
}

.section-bg { background: var(--gray-bg); }

/* ── DIVISION GRID (Home) ─────────────────────────────────── */

.division-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.division-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 200px;
  text-decoration: none;
}

.division-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .3s;
}

.division-card:hover .division-card-bg { transform: scale(1.04); }

.division-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,127,99,.85) 0%, rgba(6,127,99,.3) 60%, transparent 100%);
}

.division-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ── ABOUT / INTRO BLOCK ──────────────────────────────────── */

.about-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-block img {
  border-radius: var(--radius);
  width: 100%;
  height: 380px;
  object-fit: cover;
}

/* ── CALLOUT BANNER ───────────────────────────────────────── */

.callout {
  background: var(--green);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}

.callout h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 12px;
}

.callout p {
  font-size: 1.05rem;
  opacity: .9;
  max-width: 680px;
  margin: 0 auto 28px;
}

/* ── STAFF GRID ───────────────────────────────────────────── */

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 24px;
}

.staff-card {
  text-align: center;
}

.staff-card img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  margin: 0 auto 12px;
  border: 3px solid var(--green-light);
}

.staff-card .staff-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 4px;
}

.staff-card .staff-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ── PAGE CONTENT ─────────────────────────────────────────── */

.page-content { max-width: 800px; }

.page-content h2 {
  font-size: 1.5rem;
  margin: 32px 0 12px;
  color: var(--green-dark);
}

.page-content p {
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* ── CONTACT ──────────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 { font-size: 1.6rem; margin-bottom: 16px; }

.contact-info p { color: var(--text-muted); margin-bottom: 12px; }

.contact-detail {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.contact-detail .icon {
  font-size: 1.2rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  transition: border-color .15s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(6,127,99,.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* ── PERMITS ──────────────────────────────────────────────── */

.permit-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.permit-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  background: var(--white);
  transition: box-shadow .2s;
}

.permit-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); }

.permit-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--green-dark);
}

.permit-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* ── FOOTER ───────────────────────────────────────────────── */

footer {
  background: var(--green-dark);
  color: rgba(255,255,255,.85);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand img { height: 48px; margin-bottom: 16px; }

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  opacity: .8;
}

footer h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 14px;
}

footer ul { list-style: none; }

footer ul li { margin-bottom: 8px; }

footer ul a {
  color: rgba(255,255,255,.8);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color .15s;
}

footer ul a:hover { color: var(--white); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 20px;
  font-size: 0.8rem;
  opacity: .6;
  text-align: center;
}

/* ── UTILITIES ────────────────────────────────────────────── */

.text-center { text-align: center; }
.text-center .section-intro { margin-left: auto; margin-right: auto; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */

/* Collapse nav to hamburger */
@media (max-width: 1100px) {
  nav { display: none; }
  nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  nav.open a, nav.open .nav-dropdown > button {
    padding: 10px 16px;
    border-radius: 0;
  }
  .nav-toggle { display: flex; }
  .nav-dropdown .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: var(--gray-bg);
  }
}

@media (max-width: 900px) {
  .about-block,
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .hero { height: 380px; }
  .page-banner { height: 200px; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .staff-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

/* ── BULLETIN BOARD ───────────────────────────────────────── */

.bulletin-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.bulletin-btn { white-space: nowrap; }

.bulletin-cork {
  background: var(--gray-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  min-height: 200px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bulletin-empty {
  text-align: center;
  color: var(--text-muted);
}

.bulletin-pin {
  width: 16px;
  height: 16px;
  background: var(--green-dark);
  border-radius: 50%;
  margin: 0 auto 16px;
  box-shadow: 0 2px 4px rgba(0,0,0,.3);
}

.bulletin-empty p { font-size: 1rem; font-style: italic; }

.bulletin-cover-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  gap: 10px;
  max-width: 180px;
  transition: transform .2s;
}

.bulletin-cover-link:hover {
  transform: translateY(-3px);
  text-decoration: none;
}

.bulletin-cover-img {
  display: block;
  height: 240px;
  width: auto;
  border-radius: var(--radius);
  box-shadow: 0 3px 10px rgba(0,0,0,.25);
}

.bulletin-cover-caption {
  font-size: 0.75rem;
  color: var(--green-dark);
  text-align: center;
  line-height: 1.4;
  font-weight: 600;
}
