/* ============================================================
   TOWN OF LAC DU BONNET - Ultra Modern Municipal Website
   Mobile-First | Award-Winning Design System
   ============================================================ */

/* ── CSS Custom Properties (Design Tokens) ── */
:root {
  /* Brand Colors - AAA Contrast Compliant (7:1 minimum on white) */
  --green-900: #013d20;
  --green-800: #025d30;
  --green-700: #025a2e;  /* AAA: 7.35:1+ on all light backgrounds (was #037b40 at 5.37:1) */
  --green-600: #0f5c35;  /* AAA: 7.08:1+ on all light backgrounds (was #19834d at 4.78:1) */
  --green-500: #2a9d5c;
  --green-400: #4db87a;
  --green-300: #7dd3a0;
  --green-200: #b5e8c9;
  --green-100: #e0f5ea;
  --green-50:  #f0faf4;

  --blue-900: #011e33;
  --blue-800: #013861;
  --blue-700: #0d3d5a;  /* Darkened for AAA on light backgrounds */
  --blue-600: #0e4f78;
  --blue-500: #225384;
  --blue-400: #3a7cb5;
  --blue-300: #6ba3d4;
  --blue-200: #a3cce8;
  --blue-100: #d4e8f5;
  --blue-50:  #edf5fb;

  --neutral-900: #1a1a1a;
  --neutral-800: #2d2d2d;
  --neutral-700: #353535;
  --neutral-600: #525252;
  --neutral-500: #595959;  /* AAA: 7.00:1 on white (was #737373 at 4.74:1) */
  --neutral-400: #595858;  /* AAA: 7.09:1 on white (was #999898 at 2.88:1) */
  --neutral-300: #c4c4c4;
  --neutral-200: #e3e2e1;
  --neutral-100: #f3f3f3;
  --neutral-50:  #fafafa;
  --white: #ffffff;

  --accent-amber: #7c4f05;  /* AAA: 7.05:1 on white (was #f59e0b at 2.15:1) */
  --accent-red: #a32e2e;    /* AAA: 7.03:1 on white (was #ef4444 at 3.76:1) */
  --accent-sky: #0e6e9e;    /* Darkened for AAA */

  /* Typography */
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Font Sizes - Fluid Typography */
  --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.75rem);
  --text-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.875rem);
  --text-base: clamp(0.9rem, 0.85rem + 0.3vw, 1rem);
  --text-lg: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-xl: clamp(1.15rem, 1rem + 0.75vw, 1.25rem);
  --text-2xl: clamp(1.3rem, 1.1rem + 1vw, 1.5rem);
  --text-3xl: clamp(1.6rem, 1.3rem + 1.5vw, 1.875rem);
  --text-4xl: clamp(1.9rem, 1.5rem + 2vw, 2.25rem);
  --text-5xl: clamp(2.2rem, 1.6rem + 3vw, 3rem);
  --text-6xl: clamp(2.8rem, 1.8rem + 5vw, 3.75rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.15);
  --shadow-glow-green: 0 0 20px rgba(3,123,64,0.15);
  --shadow-glow-blue: 0 0 20px rgba(16,74,110,0.15);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;

  /* Layout */
  --container-max: 1280px;
  --container-wide: 1440px;
  --header-height: 72px;
  --sidebar-width: 280px;
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--neutral-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--green-700);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--green-600);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--neutral-900);
}

/* ── Utility Classes ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.container-wide {
  max-width: var(--container-wide);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Announcement Bar ── */
.announcement-bar {
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
  color: var(--white);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  text-align: center;
  position: relative;
  z-index: 100;
  overflow: hidden;
}

.announcement-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  animation: shimmer 8s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(50%); }
}

.announcement-bar__content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.announcement-bar__content a {
  color: var(--white);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.announcement-bar__content a:hover {
  color: var(--white);
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: all var(--duration-normal) var(--ease-out);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: var(--space-4);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo img {
  height: 48px;
  width: auto;
  transition: transform var(--duration-normal) var(--ease-spring);
}

.header-logo:hover img {
  transform: scale(1.05);
}

.header-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.header-logo__title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--green-800);
  letter-spacing: -0.01em;
}

.header-logo__subtitle {
  font-size: var(--text-xs);
  color: var(--neutral-500);
  font-weight: 500;
}

/* Desktop Navigation */
.desktop-nav {
  display: none;
}

.desktop-nav__list {
  display: flex;
  list-style: none;
  gap: var(--space-1);
  align-items: center;
}

.desktop-nav__link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--neutral-700);
  border-radius: var(--radius-lg);
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  position: relative;
}

.desktop-nav__link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: var(--green-600);
  border-radius: var(--radius-full);
  transition: transform var(--duration-normal) var(--ease-spring);
}

.desktop-nav__link:hover,
.desktop-nav__link.active {
  color: var(--green-700);
  background: var(--green-50);
}

.desktop-nav__link:hover::after,
.desktop-nav__link.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.header-search-btn,
.header-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--neutral-100);
  border-radius: var(--radius-lg);
  cursor: pointer;
  color: var(--neutral-600);
  transition: all var(--duration-fast) var(--ease-out);
}

.header-search-btn:hover,
.header-menu-btn:hover {
  background: var(--green-50);
  color: var(--green-700);
}

.header-search-btn svg,
.header-menu-btn svg {
  width: 20px;
  height: 20px;
}

/* ── Mobile Navigation Drawer ── */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(85vw, 380px);
  background: var(--white);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform var(--duration-slow) var(--ease-out);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--neutral-100);
  flex-shrink: 0;
}

.mobile-nav__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--neutral-100);
  border-radius: var(--radius-lg);
  cursor: pointer;
  color: var(--neutral-600);
}

.mobile-nav__body {
  flex: 1;
  padding: var(--space-4) var(--space-5);
  overflow-y: auto;
}

.mobile-nav__list {
  list-style: none;
}

.mobile-nav__item {
  border-bottom: 1px solid var(--neutral-100);
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--neutral-800);
  transition: all var(--duration-fast) var(--ease-out);
}

.mobile-nav__link:hover,
.mobile-nav__link.active {
  color: var(--green-700);
}

.mobile-nav__link .nav-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-50);
  border-radius: var(--radius-lg);
  color: var(--green-700);
  flex-shrink: 0;
}

.mobile-nav__sub {
  list-style: none;
  padding-left: calc(40px + var(--space-3));
  padding-bottom: var(--space-3);
  display: none;
}

.mobile-nav__item.expanded .mobile-nav__sub {
  display: block;
}

.mobile-nav__sub a {
  display: block;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--neutral-600);
}

.mobile-nav__sub a:hover {
  color: var(--green-700);
}

.mobile-nav__footer {
  padding: var(--space-5);
  border-top: 1px solid var(--neutral-100);
  flex-shrink: 0;
}

.mobile-nav__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--neutral-600);
}

.mobile-nav__contact a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--neutral-600);
}

.mobile-nav__contact a:hover {
  color: var(--green-700);
}

/* ── Search Modal ── */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

.search-modal.active {
  opacity: 1;
  visibility: visible;
}

.search-modal__inner {
  width: min(90vw, 640px);
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
  transform: translateY(-20px) scale(0.95);
  transition: transform var(--duration-slow) var(--ease-spring);
}

.search-modal.active .search-modal__inner {
  transform: translateY(0) scale(1);
}

.search-modal__input-wrap {
  display: flex;
  align-items: center;
  padding: var(--space-4) var(--space-5);
  gap: var(--space-3);
  border-bottom: 1px solid var(--neutral-100);
}

.search-modal__input-wrap svg {
  width: 24px;
  height: 24px;
  color: var(--neutral-500);
  flex-shrink: 0;
}

.search-modal__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: var(--text-xl);
  font-family: var(--font-body);
  color: var(--neutral-800);
  background: transparent;
}

.search-modal__input::placeholder {
  color: var(--neutral-500);
}

.search-modal__shortcuts {
  padding: var(--space-4) var(--space-5);
}

.search-modal__shortcuts h4 {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--neutral-500);
  margin-bottom: var(--space-3);
}

.search-shortcuts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.search-shortcut {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--neutral-600);
  background: var(--neutral-50);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
}

.search-shortcut:hover {
  background: var(--green-50);
  color: var(--green-700);
}

/* ── Hero Section ── */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--green-900);
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(1,61,32,0.97) 0%,
    rgba(1,61,32,0.92) 30%,
    rgba(1,61,32,0.85) 60%,
    rgba(1,61,32,0.75) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: var(--space-8) var(--space-5) var(--space-10);
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: rgba(1,61,32,0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-full);
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-4);
}

.hero__badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--green-400);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero__title {
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
  max-width: 700px;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--white);
  max-width: 560px;
  margin-bottom: var(--space-8);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--white);
  color: var(--green-800);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--green-50);
  color: var(--green-800);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: rgba(255,255,255,0.2);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.3);
  color: var(--white);
  transform: translateY(-1px);
}

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

.btn-green:hover {
  background: var(--green-600);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow-green);
}

.btn-outline {
  background: transparent;
  color: var(--green-700);
  border: 2px solid var(--green-200);
}

.btn-outline:hover {
  background: var(--green-50);
  border-color: var(--green-700);
  color: var(--green-700);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  border-radius: var(--radius-lg);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-xl);
}

/* ── Quick Access Cards (Below Hero) ── */
.quick-access {
  position: relative;
  z-index: 10;
  margin-top: -60px;
  padding: 0 var(--space-5);
  margin-bottom: var(--space-12);
}

.quick-access__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  max-width: var(--container-max);
  margin: 0 auto;
}

.quick-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  transition: all var(--duration-normal) var(--ease-out);
  border: 1px solid rgba(0,0,0,0.04);
}

.quick-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.quick-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  flex-shrink: 0;
  font-size: 1.5rem;
}

.quick-card__icon--green { background: var(--green-100); color: var(--green-700); }
.quick-card__icon--blue { background: var(--blue-100); color: var(--blue-700); }
.quick-card__icon--amber { background: #fef3c7; color: #7c4f05; }  /* AAA compliant */
.quick-card__icon--red { background: #fee2e2; color: #a32e2e; }    /* AAA compliant */

.quick-card__content h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--neutral-800);
  margin-bottom: 2px;
}

.quick-card__content p {
  font-size: var(--text-sm);
  color: var(--neutral-500);
}

/* ── Section Styles ── */
.section {
  padding: var(--space-16) var(--space-5);
}

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

.section--green {
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
  color: var(--white);
}

.section--green h2,
.section--green h3 {
  color: var(--white);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-600);
  margin-bottom: var(--space-3);
}

.section--green .section__eyebrow {
  color: var(--white);
}

.section__title {
  font-size: var(--text-4xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

.section__desc {
  font-size: var(--text-lg);
  color: var(--neutral-500);
  max-width: 600px;
  margin: 0 auto;
}

.section--green .section__desc {
  color: var(--white);
}

/* ── News & Events ── */
.news-events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  max-width: var(--container-max);
  margin: 0 auto;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-100);
  transition: all var(--duration-normal) var(--ease-out);
}

.news-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.news-card__header {
  padding: var(--space-5) var(--space-5) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.news-card__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-full);
}

.news-card__tag--notice {
  background: var(--blue-100);
  color: var(--blue-700);
}

.news-card__tag--event {
  background: var(--green-100);
  color: var(--green-700);
}

.news-card__tag--alert {
  background: #fee2e2;
  color: #a32e2e;  /* AAA compliant */
}

.news-card__date {
  font-size: var(--text-xs);
  color: var(--neutral-500);
  font-weight: 500;
}

.news-card__body {
  padding: var(--space-4) var(--space-5) var(--space-5);
}

.news-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--neutral-800);
  margin-bottom: var(--space-2);
}

.news-card__excerpt {
  font-size: var(--text-sm);
  color: var(--neutral-500);
  line-height: 1.6;
}

.news-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--green-700);
}

.news-card__link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--duration-fast) var(--ease-out);
}

.news-card__link:hover svg {
  transform: translateX(3px);
}

/* Event list style */
.events-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.event-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--neutral-100);
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-out);
}

.event-item:hover {
  border-color: var(--green-200);
  box-shadow: var(--shadow-sm);
}

.event-item__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 56px;
  background: var(--green-50);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}

.event-item__date .month {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--green-700);
  letter-spacing: 0.05em;
}

.event-item__date .day {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--green-800);
  line-height: 1;
}

.event-item__info h4,
.event-item__info .event-item__title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--neutral-800);
  margin-bottom: 2px;
}

.event-item__info p {
  font-size: var(--text-sm);
  color: var(--neutral-500);
}

/* ── Services Grid ── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  max-width: var(--container-max);
  margin: 0 auto;
}

.service-card {
  position: relative;
  padding: var(--space-6);
  background: var(--white);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--neutral-100);
  text-decoration: none;
  transition: all var(--duration-normal) var(--ease-out);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-600), var(--blue-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-normal) var(--ease-out);
}

.service-card:hover {
  border-color: var(--green-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-50);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-4);
  font-size: 1.4rem;
  color: var(--green-700);
}

.service-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--neutral-800);
  margin-bottom: var(--space-2);
}

.service-card p {
  font-size: var(--text-sm);
  color: var(--neutral-500);
  line-height: 1.6;
}

.service-card__arrow {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--neutral-100);
  border-radius: var(--radius-full);
  color: var(--neutral-600);
  transition: all var(--duration-fast) var(--ease-out);
}

.service-card:hover .service-card__arrow {
  background: var(--green-100);
  color: var(--green-700);
  transform: translateX(2px);
}

/* ── Fire Rating Widget ── */
.fire-rating {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--neutral-100);
}

.fire-rating__indicator {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.fire-rating__indicator--low {
  background: #dcfce7;
  color: #0d6e2e;  /* AAA compliant on #dcfce7 */
}

.fire-rating__indicator--moderate {
  background: #fef3c7;
  color: #7c4f05;  /* AAA compliant */
}

.fire-rating__indicator--high {
  background: #fee2e2;
  color: #a32e2e;  /* AAA compliant */
}

.fire-rating__info h4,
.fire-rating__info .fire-rating__title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--neutral-800);
}

.fire-rating__info p {
  font-size: var(--text-sm);
  color: var(--neutral-500);
}

/* ── Connect / CTA Section ── */
.cta-section {
  text-align: center;
  padding: var(--space-16) var(--space-5);
}

.cta-section .cta-card {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--space-10) var(--space-6);
  background: linear-gradient(135deg, var(--green-800), var(--blue-700));
  border-radius: var(--radius-3xl);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
  border-radius: 50%;
}

.cta-card h2 {
  font-size: var(--text-3xl);
  color: var(--white);
  margin-bottom: var(--space-3);
  position: relative;
}

.cta-card p {
  font-size: var(--text-base);
  color: var(--white);
  margin-bottom: var(--space-6);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-card .btn {
  position: relative;
}

/* ── Footer ── */
.site-footer {
  background: var(--neutral-900);
  color: var(--neutral-300);
  padding: var(--space-16) var(--space-5) var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  max-width: var(--container-max);
  margin: 0 auto;
  padding-bottom: var(--space-10);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
  max-width: 320px;
}

.footer-brand__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer-brand__logo img {
  height: 48px;
  width: auto;
  filter: brightness(1.2);
}

.footer-brand__logo span {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--white);
}

.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: #b0b0b0;  /* AAA: 8.03:1 on neutral-900 */
}

.footer-links h4,
.footer-links .footer-heading {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-4);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links a {
  font-size: var(--text-sm);
  color: #b0b0b0;  /* AAA: 8.03:1 on neutral-900 */
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-links a:hover {
  color: var(--green-400);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-contact__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: #b0b0b0;  /* AAA: 8.03:1 on neutral-900 */
}

.footer-contact__item svg {
  width: 18px;
  height: 18px;
  color: var(--green-500);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact__item a {
  color: #b0b0b0;  /* AAA: 8.03:1 on neutral-900 */
}

.footer-contact__item a:hover {
  color: var(--green-400);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  color: #b0b0b0;  /* AAA: 8.03:1 on neutral-900 */
  transition: all var(--duration-fast) var(--ease-out);
}

.footer-social a:hover {
  background: var(--green-700);
  color: var(--white);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  max-width: var(--container-max);
  margin: 0 auto;
  padding-top: var(--space-6);
  text-align: center;
}

.footer-bottom p {
  font-size: var(--text-xs);
  color: #b0b0b0;  /* AAA: 8.03:1 on neutral-900 */
}

.footer-bottom__links {
  display: flex;
  gap: var(--space-4);
}

.footer-bottom__links a {
  font-size: var(--text-xs);
  color: #b0b0b0;  /* AAA: 8.03:1 on neutral-900 */
}

.footer-bottom__links a:hover {
  color: var(--green-400);
}

/* ── Subpage Styles ── */
.page-hero {
  position: relative;
  padding: calc(var(--header-height) + var(--space-12)) var(--space-5) var(--space-10);
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
  color: var(--white);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.05), transparent 70%);
  border-radius: 50%;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--green-200);
  margin-bottom: var(--space-4);
}

.page-hero__breadcrumb a {
  color: var(--green-200);
}

.page-hero__breadcrumb a:hover {
  color: var(--white);
}

.page-hero__breadcrumb .separator {
  color: rgba(255,255,255,0.5);
}

.page-hero h1 {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.page-hero p {
  font-size: var(--text-lg);
  color: var(--white);
  margin-top: var(--space-3);
  max-width: 600px;
}

/* Subpage Content Layout */
.page-content {
  padding: var(--space-10) var(--space-5);
}

.page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  max-width: var(--container-max);
  margin: 0 auto;
}

/* Sidebar */
.page-sidebar {
  order: -1;
}

.sidebar-nav {
  background: var(--white);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--neutral-100);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-height) + var(--space-4));
}

.sidebar-nav__title {
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--neutral-800);
  border-bottom: 1px solid var(--neutral-100);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sidebar-nav__list {
  list-style: none;
  padding: var(--space-2);
}

.sidebar-nav__link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-3);
  font-size: var(--text-sm);
  color: var(--neutral-600);
  border-radius: var(--radius-lg);
  transition: all var(--duration-fast) var(--ease-out);
}

.sidebar-nav__link:hover,
.sidebar-nav__link.active {
  background: var(--green-50);
  color: var(--green-700);
  font-weight: 600;
}

.sidebar-nav__link.active {
  background: var(--green-100);
}

/* Content Area */
.page-main {
  min-width: 0;
}

.content-block {
  margin-bottom: var(--space-10);
}

.content-block h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--green-100);
}

.content-block h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  color: var(--green-800);
}

.content-block p {
  margin-bottom: var(--space-4);
  line-height: 1.8;
}

.content-block ul, .content-block ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.content-block li {
  margin-bottom: var(--space-2);
  line-height: 1.7;
}

/* Info Cards */
.info-card {
  padding: var(--space-5);
  background: var(--neutral-50);
  border-radius: var(--radius-xl);
  border-left: 4px solid var(--green-600);
  margin-bottom: var(--space-4);
}

.info-card h4,
.info-card .info-card__title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--neutral-800);
  margin-bottom: var(--space-2);
}

.info-card p {
  font-size: var(--text-sm);
  color: var(--neutral-600);
  margin-bottom: 0;
}

/* Contact Cards */
.contact-card {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--neutral-100);
  margin-bottom: var(--space-4);
  transition: all var(--duration-fast) var(--ease-out);
}

.contact-card:hover {
  border-color: var(--green-200);
  box-shadow: var(--shadow-sm);
}

.contact-card__avatar {
  width: 56px;
  height: 56px;
  background: var(--green-100);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-card__info h4,
.contact-card__info .contact-card__name,
.contact-card__name {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--neutral-800);
}

.contact-card__info .role {
  font-size: var(--text-sm);
  color: var(--green-700);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.contact-card__info p {
  font-size: var(--text-sm);
  color: var(--neutral-500);
  margin-bottom: 0;
}

/* Data Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
}

.data-table thead {
  background: var(--green-50);
}

.data-table th {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-weight: 700;
  color: var(--green-800);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.data-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--neutral-100);
  color: var(--neutral-600);
}

.data-table tbody tr:hover {
  background: var(--neutral-50);
}

/* ── Additional Heading Styles for Accessibility ── */
.biz-category__title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--neutral-800);
  margin-bottom: var(--space-2);
}

.news-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--neutral-800);
  margin-bottom: var(--space-2);
}

/* ── Responsive Breakpoints ── */

/* Tablet (640px+) */
@media (min-width: 640px) {
  .quick-access__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-events-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .search-shortcuts-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .header-menu-btn {
    display: none;
  }

  .desktop-nav {
    display: flex;
  }

  .quick-access__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  }

  .page-layout {
    grid-template-columns: 260px 1fr;
  }

  .page-sidebar {
    order: 0;
  }

  .hero__content {
    padding: var(--space-16) var(--space-5) var(--space-16);
  }

  .hero__title {
    font-size: var(--text-6xl);
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Large Desktop (1280px+) */
@media (min-width: 1280px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-layout {
    grid-template-columns: 280px 1fr;
    gap: var(--space-12);
  }
}

/* ── Animations ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-in {
  animation: fadeInUp 0.6s var(--ease-out) forwards;
  opacity: 0;
}

.animate-in:nth-child(1) { animation-delay: 0.05s; }
.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.15s; }
.animate-in:nth-child(4) { animation-delay: 0.2s; }
.animate-in:nth-child(5) { animation-delay: 0.25s; }
.animate-in:nth-child(6) { animation-delay: 0.3s; }

/* ── Print Styles ── */
@media print {
  .site-header,
  .announcement-bar,
  .mobile-nav,
  .mobile-nav-overlay,
  .search-modal,
  .header-actions {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: var(--space-8);
  }

  body {
    font-size: 12pt;
    color: #000;
  }
}

/* ── Accessibility ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

:focus-visible {
  outline: 3px solid var(--green-700);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ── WordPress CMS Integration Markers ── */
/* These classes are designed for WordPress template integration */
.wp-content { /* WordPress content area */ }
.wp-sidebar { /* WordPress widget area */ }
.wp-nav-menu { /* WordPress navigation menu */ }
.wp-post-list { /* WordPress post loop */ }
.wp-custom-field { /* WordPress custom field output */ }