/* ==========================================================================
   Marwick Hollow Borough . municipal-v2 design system
   A coherent, accessible, modern .gov system. This stylesheet is the
   coherence anchor every page shares. Per-page <style> blocks should add
   ONLY page-specific tweaks. Build on these tokens; do not fork them.
   ========================================================================== */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand palette (all body text combinations meet WCAG 2.1 AA >=4.5:1) */
  --primary: #1f6573;            /* teal, slightly deepened for contrast */
  --primary-dark: #154852;       /* hero gradient end / hover */
  --primary-darker: #0f343b;     /* deep accents */
  --primary-light: #e6f2f4;      /* tints, icon chips, table heads */
  --primary-tint: #f1f8f9;       /* very light section wash */
  --accent: #8a5417;             /* copper/gold, darkened for AA both as text and white-on-accent (~5:1) */
  --accent-hover: #98591a;
  --accent-light: #f6ecdf;
  --alert: #9a1f1f;              /* emergency red (AA on white text) */
  --success: #1f7a45;            /* status/open dot */

  /* Neutrals */
  --bg: #f4f2ec;                 /* warm cream page */
  --bg-alt: #ece9e1;             /* alternating section */
  --card: #ffffff;
  --text-dark: #1d232b;          /* headings / primary body */
  --text-mid: #444c58;           /* secondary body (AA on white) */
  --text-soft: #5c6470;          /* muted but still AA on white for small text */
  --text-faint: #7a818d;         /* DECORATIVE / large text ONLY (do not use for body) */
  --border: rgba(20,30,40,.10);
  --border-strong: rgba(20,30,40,.16);

  /* Geometry */
  --radius: 8px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(20,30,40,.06), 0 1px 3px rgba(20,30,40,.05);
  --shadow-md: 0 4px 14px rgba(20,30,40,.08);
  --shadow-lg: 0 12px 32px rgba(20,30,40,.12);
  --shadow-xl: 0 20px 48px rgba(20,30,40,.16);

  /* Spacing scale */
  --space-1: .25rem;  --space-2: .5rem;  --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.5rem;  --space-6: 2rem;   --space-7: 3rem;   --space-8: 4rem;
  --space-9: 5.5rem;

  /* Type */
  --font-heading: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Figtree', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Layout */
  --maxw: 1200px;
  --maxw-narrow: 1080px;
  --nav-height: 66px;
  --banner-height: 44px;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
input, select, textarea, button { font: inherit; }

/* ===== TYPOGRAPHY SCALE ===== */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 400; color: var(--text-dark); line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.15rem); line-height: 1.2; }
h3 { font-size: 1.2rem; line-height: 1.3; }
p { color: var(--text-mid); }

/* ===== UTILITIES ===== */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(3rem, 6vw, 5.5rem) 24px; }
.section--alt { background: var(--bg-alt); }
.section--card { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-divider { width: 48px; height: 3px; background: var(--accent); border-radius: 2px; margin-bottom: 16px; }
.section-kicker {
  display: inline-block; font-family: var(--font-body);
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.section-title { font-size: clamp(1.7rem, 3vw, 2.25rem); margin-bottom: 8px; }
.section-sub { color: var(--text-mid); font-size: 1.05rem; max-width: 620px; margin-bottom: 36px; }
.lede { font-size: 1.1rem; color: var(--text-mid); line-height: 1.7; }

/* ===== BUTTONS (shared, single source) ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; font-weight: 600; font-size: .95rem;
  border-radius: var(--radius); border: 1px solid transparent;
  transition: background .2s, transform .15s, box-shadow .2s, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--teal { background: var(--primary); color: #fff; }
.btn--teal:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.32); }
.btn--ghost:hover { background: rgba(255,255,255,.2); }
.btn--outline { background: transparent; color: var(--primary); border-color: var(--border-strong); }
.btn--outline:hover { border-color: var(--primary); background: var(--primary-tint); }
.btn svg { flex-shrink: 0; }
.link-arrow {
  font-size: .9rem; font-weight: 600; color: var(--primary);
  display: inline-flex; align-items: center; gap: 5px; transition: gap .2s;
}
.link-arrow:hover { gap: 10px; }

/* ===== TIER BANNER OFFSET ===== */
/* The BPD tier banner is fixed-height; nav sits below it. */
.site-nav { top: var(--banner-height); }

/* ===== STICKY NAV ===== */
.site-nav {
  position: sticky; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  transition: box-shadow .25s, background .25s;
}
.site-nav.scrolled { box-shadow: 0 4px 18px rgba(20,30,40,.08); background: rgba(255,255,255,.97); }
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 100%;
}
.nav-logo { display: flex; align-items: center; gap: 11px; }
.nav-seal {
  width: 40px; height: 40px; flex-shrink: 0;
  background: linear-gradient(140deg, var(--primary), var(--primary-dark));
  color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 1.2rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), var(--shadow-sm);
}
.nav-title { font-family: var(--font-heading); font-size: 1.2rem; color: var(--primary); line-height: 1.1; }
.nav-title small {
  display: block; font-family: var(--font-body); font-size: .6rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft); margin-top: 2px;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 14px; font-size: .92rem; font-weight: 500; color: var(--text-mid);
  border-radius: var(--radius); transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--primary-light); color: var(--primary); }
.nav-links a[aria-current="page"] { color: var(--primary); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px;
  background: var(--accent); color: #fff !important; font-weight: 600; font-size: .9rem;
  border-radius: var(--radius); transition: background .2s, transform .15s;
}
.nav-cta:hover { background: var(--accent-hover) !important; transform: translateY(-1px); }
.nav-cta svg { flex-shrink: 0; }

/* Mobile toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text-dark); border-radius: 2px; transition: transform .3s, opacity .3s; }

/* ===== EMERGENCY ALERT RIBBON (hidden until .alert-active) ===== */
.muni-alert {
  display: none; background: linear-gradient(90deg, var(--alert), #7a1414);
  color: #fff; padding: 11px 24px; font-size: .9rem; font-weight: 500;
  align-items: center; gap: 14px; flex-wrap: wrap;
}
.muni-alert.alert-active { display: flex; }
.muni-alert__label {
  font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .68rem;
  background: rgba(255,255,255,.18); padding: 4px 10px; border-radius: var(--radius-pill); flex-shrink: 0;
}
.muni-alert__text { flex: 1; min-width: 200px; }
.muni-alert__more { font-weight: 600; text-decoration: underline; color: #fff; white-space: nowrap; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(150deg, var(--primary) 0%, var(--primary-dark) 62%, var(--primary-darker) 100%);
  padding: clamp(3rem, 6vw, 5rem) 24px clamp(3.5rem, 7vw, 5.5rem);
  position: relative; overflow: hidden; color: #fff;
}
.hero::after {
  content: ''; position: absolute; right: -140px; top: -120px; width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%); pointer-events: none;
}
.hero::before {
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 5px;
  background: linear-gradient(90deg, var(--accent), transparent 60%); pointer-events: none;
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 440px; gap: 52px; align-items: center; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  padding: 6px 14px; border-radius: var(--radius-pill); margin-bottom: 20px;
}
.hero-kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 { color: #fff; line-height: 1.08; margin-bottom: 16px; }
.hero-subhead { color: rgba(255,255,255,.9); font-size: clamp(1.05rem, 1.8vw, 1.25rem); font-weight: 500; margin-bottom: 12px; line-height: 1.45; }
.hero p { color: rgba(255,255,255,.85); font-size: 1.02rem; max-width: 540px; line-height: 1.75; margin-bottom: 30px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero search */
.hero-search { margin-top: 26px; max-width: 540px; }
.hero-search form { display: flex; gap: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.hero-search input {
  flex: 1; border: none; padding: 14px 18px; font-size: .98rem; color: var(--text-dark); background: transparent; outline: none;
}
.hero-search input::placeholder { color: var(--text-soft); }
.hero-search button {
  background: var(--primary); color: #fff; padding: 0 22px; font-weight: 600; font-size: .92rem;
  display: inline-flex; align-items: center; gap: 7px; transition: background .2s;
}
.hero-search button:hover { background: var(--primary-dark); }
.hero-search-hint { color: rgba(255,255,255,.82); font-size: .8rem; margin-top: 10px; }
.hero-search-note { color: rgba(255,255,255,.92); font-size: .85rem; line-height: 1.55; margin-top: 12px; max-width: 520px; padding: 10px 14px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); }

/* Hero image card */
.hero-img-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xl); background: var(--primary-light); }
.hero-img-card img { width: 100%; height: 360px; object-fit: cover; display: block; }
.hero-status-pill {
  position: absolute; bottom: 16px; left: 16px; background: rgba(255,255,255,.96);
  border-radius: var(--radius-pill); padding: 8px 15px; display: inline-flex; align-items: center; gap: 9px;
  font-size: .82rem; font-weight: 600; color: var(--text-dark); box-shadow: var(--shadow-md);
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); flex-shrink: 0; animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

/* ===== TOP TASKS (the launchpad) ===== */
.tasks-section { background: var(--bg); padding: clamp(2.5rem, 5vw, 4rem) 24px clamp(3rem, 6vw, 4.5rem); }
.tasks-head { text-align: center; margin-bottom: 36px; }
.tasks-head .section-divider { margin: 0 auto 16px; }
.tasks-head .section-sub { margin: 6px auto 0; }
.tasks-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.task-tile {
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px 22px 20px; color: inherit;
  transition: box-shadow .22s, transform .22s, border-color .22s;
  position: relative; overflow: hidden;
}
.task-tile::before {
  content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent)); transform: scaleY(0);
  transform-origin: top; transition: transform .25s ease;
}
.task-tile:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; }
.task-tile:hover::before { transform: scaleY(1); }
.task-tile__icon {
  width: 52px; height: 52px; border-radius: var(--radius); background: var(--primary-light);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--primary);
  transition: background .22s, color .22s;
}
.task-tile:hover .task-tile__icon { background: var(--primary); color: #fff; }
.task-tile__icon svg { width: 26px; height: 26px; }
.task-tile h3 { font-size: 1.12rem; margin-bottom: 5px; }
.task-tile p { font-size: .86rem; color: var(--text-soft); line-height: 1.5; }
.task-tile__go { margin-top: 14px; font-size: .82rem; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 5px; transition: gap .2s; }
.task-tile:hover .task-tile__go { gap: 9px; }

/* ===== MAYOR / WELCOME SPLIT ===== */
.mayor-section { background: var(--card); border-bottom: 1px solid var(--border); }
.mayor-inner { max-width: var(--maxw-narrow); margin: 0 auto; display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: start; }
.mayor-img-wrap img { width: 100%; max-width: 360px; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.mayor-content h2 { margin-bottom: 20px; }
.mayor-content p { color: var(--text-mid); font-size: 1rem; line-height: 1.85; margin-bottom: 18px; }
.mayor-sig { font-family: var(--font-heading); font-style: italic; color: var(--text-soft); font-size: 1.1rem; margin: 6px 0 20px; }

/* ===== MEETINGS / TABLES ===== */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.muni-table { width: 100%; border-collapse: collapse; font-size: .93rem; margin-bottom: 24px; }
.muni-table caption { text-align: left; }
.muni-table th {
  text-align: left; font-family: var(--font-body); font-size: .7rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft);
  padding: 12px 16px; border-bottom: 2px solid var(--border-strong); background: var(--primary-tint);
}
.muni-table td { padding: 15px 16px; border-bottom: 1px solid var(--border); color: var(--text-mid); vertical-align: top; }
.muni-table tr:hover td { background: var(--primary-tint); }
.muni-table td:first-child { font-weight: 600; color: var(--text-dark); white-space: nowrap; }

/* ===== NEWS ===== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: var(--card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: box-shadow .22s, transform .22s; display: flex; flex-direction: column; }
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.news-accent-bar { height: 4px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.news-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.news-badge {
  align-self: flex-start; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: 4px 10px; border-radius: var(--radius-pill); color: #fff; margin-bottom: 12px;
}
.badge-event { background: var(--success); }
.badge-meeting { background: var(--primary); }
.badge-notice { background: var(--accent); }
.news-date { font-size: .76rem; color: var(--text-soft); font-weight: 600; letter-spacing: .03em; margin-bottom: 8px; }
.news-card-body h3 { font-size: 1.15rem; line-height: 1.35; margin-bottom: 10px; }
.news-card-body p { font-size: .9rem; color: var(--text-mid); line-height: 1.65; flex: 1; margin-bottom: 16px; }

/* ===== TRUST STRIP ===== */
.trust-strip { background: var(--primary-darker); color: rgba(255,255,255,.85); padding: clamp(2.5rem,5vw,3.5rem) 24px; }
.trust-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.trust-item { display: flex; flex-direction: column; gap: 8px; }
.trust-item svg { width: 30px; height: 30px; color: var(--accent); }
.trust-item h3 { color: #fff; font-size: 1.05rem; }
.trust-item p { color: rgba(255,255,255,.7); font-size: .88rem; line-height: 1.6; }

/* ===== CTA BAND ===== */
.cta-band { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; padding: clamp(2.5rem,5vw,3.5rem) 2rem; text-align: center; border-radius: var(--radius-lg); margin: clamp(3rem,6vw,5rem) auto; max-width: var(--maxw); }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.85); margin-bottom: 24px; max-width: 540px; margin-left: auto; margin-right: auto; }
.cta-band .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== PAGE HERO (sub-pages) ===== */
.page-hero { background: linear-gradient(150deg, var(--primary), var(--primary-dark)); color: #fff; padding: clamp(3rem,5vw,4.5rem) 24px clamp(2.5rem,4vw,3.5rem); position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; right: -120px; top: -100px; width: 460px; height: 460px; background: radial-gradient(circle, rgba(255,255,255,.06), transparent 70%); }
.page-hero-inner { max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 1; }
.page-hero .kicker { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.85); font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.page-hero .kicker::before { content: ''; width: 28px; height: 2px; background: var(--accent); }
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,.78); max-width: 640px; line-height: 1.7; font-size: 1.05rem; }

/* ===== SUB-PAGE SECTION ===== */
.sub-sec { max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem,5vw,4.5rem) 24px; }
.sub-sec h2 { margin-bottom: 10px; }
.sub-sec h3 { margin-bottom: 6px; }
.sub-sec p { color: var(--text-mid); line-height: 1.8; margin-bottom: 16px; }
ul.bullets { margin: 16px 0; }
ul.bullets li { padding: 9px 0 9px 26px; position: relative; font-size: .95rem; color: var(--text-mid); border-bottom: 1px solid var(--border); }
ul.bullets li::before { content: ''; position: absolute; left: 0; top: 17px; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }

/* ===== CARD GRID (depts, payments, permits, directory) ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.muni-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .22s, transform .22s; display: flex; flex-direction: column; }
.muni-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.muni-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.muni-card-body { padding: 22px 24px; flex: 1; display: flex; flex-direction: column; }
.muni-card .eyebrow { font-family: var(--font-body); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }
.muni-card h3 { margin-bottom: 8px; }
.muni-card .meta { font-size: .84rem; color: var(--text-soft); margin-bottom: 6px; }
.muni-card .meta strong { color: var(--text-mid); font-weight: 600; }
.muni-card p { font-size: .9rem; color: var(--text-mid); line-height: 1.6; flex: 1; }
.muni-card .card-action { margin-top: 16px; }

/* ===== ACCORDION ===== */
.accordion { border-top: 1px solid var(--border); }
.accordion details { border-bottom: 1px solid var(--border); }
.accordion summary { padding: 18px 4px; font-family: var(--font-heading); font-size: 1.1rem; color: var(--text-dark); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; font-size: 1.5rem; color: var(--accent); transition: transform .2s; flex-shrink: 0; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion details > *:not(summary) { padding: 0 4px 20px; font-size: .94rem; color: var(--text-mid); line-height: 1.8; }

/* ===== QUICKLINKS SIDEBAR ===== */
.quicklinks { position: sticky; top: calc(var(--nav-height) + var(--banner-height) + 16px); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 24px; }
.quicklinks h4 { font-family: var(--font-heading); font-size: 1rem; color: var(--primary); margin-bottom: 12px; }
.quicklinks a { display: block; padding: 9px 0; color: var(--text-mid); font-size: .92rem; border-bottom: 1px solid var(--border); transition: color .2s, padding .2s; }
.quicklinks a:last-child { border-bottom: none; }
.quicklinks a:hover { color: var(--primary); padding-left: 6px; }

/* ===== TWO COLUMN ===== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.two-col--sidebar { grid-template-columns: 1fr 320px; }
@media (max-width: 880px) { .two-col, .two-col--sidebar { grid-template-columns: 1fr; gap: 32px; } }

/* ===== FORMS ===== */
.muni-form { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--text-mid); margin-bottom: 6px; }
.form-group label .req { color: var(--alert); }
.form-group label .opt { color: var(--text-soft); font-weight: 400; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px; font-size: .95rem; color: var(--text-dark);
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31,101,115,.16); background: #fff;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-status { margin-top: 16px; font-size: .9rem; }
.form-status[data-state="ok"] { color: var(--success); font-weight: 600; }
.form-status[data-state="err"] { color: var(--alert); font-weight: 600; }
.checklist label { display: flex; align-items: flex-start; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: .92rem; color: var(--text-mid); cursor: pointer; }
.checklist input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }

/* ===== FOOTER ===== */
.site-footer { background: var(--text-dark); color: rgba(255,255,255,.72); padding: clamp(3rem,5vw,3.5rem) 24px 0; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 44px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand-name { font-family: var(--font-heading); font-size: 1.35rem; color: #fff; margin-bottom: 10px; }
.footer-tagline { font-size: .88rem; color: rgba(255,255,255,.58); margin-bottom: 18px; line-height: 1.65; }
.footer-contact-line { font-size: .9rem; color: rgba(255,255,255,.68); line-height: 1.85; }
.footer-contact-line a { color: rgba(255,255,255,.68); transition: color .2s; }
.footer-contact-line a:hover { color: #fff; }
.footer-col-head { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.6); margin-bottom: 16px; }
.footer-hours { font-size: .9rem; color: rgba(255,255,255,.68); line-height: 2; }
.footer-links a { display: block; font-size: .9rem; color: rgba(255,255,255,.68); padding: 5px 0; transition: color .2s, padding .2s; }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.demo-fictional-note { font-size: .76rem; color: rgba(255,255,255,.5); text-align: center; letter-spacing: .04em; margin: 22px 0 0; padding-top: 22px; line-height: 1.6; }

/* ===== ACCESSIBILITY ===== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: 8px; top: -56px; z-index: 200; background: var(--primary); color: #fff; padding: 11px 18px; border-radius: 0 0 var(--radius) var(--radius); font-weight: 600; font-size: .9rem; transition: top .15s ease; }
.skip-link:focus { top: 0; outline: 3px solid var(--accent); outline-offset: 2px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 2px; }
#main-content { scroll-margin-top: calc(var(--nav-height) + var(--banner-height) + 16px); }
#main-content:focus { outline: none; }

/* ===== REVEAL ANIMATION (no reduced-motion guard, per owner preference) ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== LIVESTREAM / 404 ===== */
.livestream-placeholder { background: #16202e; color: #8a93a3; border-radius: var(--radius-lg); aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; text-align: center; font-size: .9rem; padding: 2rem; }
.notfound { min-height: 56vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 4rem 1.5rem; }
.notfound .kicker { color: var(--primary); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 14px; font-weight: 700; }
.notfound h1 { margin-bottom: 14px; }
.notfound .actions { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-img-card img { height: 300px; }
  .mayor-inner { grid-template-columns: 1fr; gap: 36px; }
  .mayor-img-wrap img { max-width: 420px; }
  .tasks-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --nav-height: 58px; }
  .nav-links {
    display: none; position: absolute; top: var(--nav-height); left: 0; right: 0;
    background: var(--card); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
    flex-direction: column; padding: 12px 24px 18px; gap: 4px; align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 14px; width: 100%; }
  .nav-cta { width: 100%; justify-content: center; margin-top: 6px; }
  .nav-toggle { display: flex; }
  .nav-title { font-size: 1.08rem; }
  .hero h1 { font-size: clamp(1.9rem, 7vw, 2.4rem); }
  .news-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
  .muni-table { font-size: .85rem; }
  .muni-table th, .muni-table td { padding: 11px 10px; }
  .trust-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .tasks-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .form-row { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; }
  .hero-search form { flex-direction: column; }
  .hero-search button { padding: 13px; }
}

/* Tap targets >=44px on touch */
@media (pointer: coarse) {
  .nav-links a, .footer-links a, .quicklinks a, .link-arrow, .muni-alert__more { min-height: 44px; display: flex; align-items: center; }
}

/* phone numbers stay on one line on a phone (14 Nov 2026) */
a[href^="tel:"] { white-space: nowrap; }
