/*
Theme Name: Town of Grove
Theme URI: https://www.townofgrove.gov
Author: Joe Cox / AllSupport
Author URI: https://allsupport.co
Description: A sharp, modern municipal theme for the Town of Grove, Allegany County, New York. Built and maintained by Joe Cox at AllSupport. The theme provides the visual shell — header, footer, typography, colors, components, and responsive layout. All page content lives in normal, editable WordPress Pages. No page builder required.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: town-of-grove
*/

/* ═══════════════════════════════════════════════════════════
   1. FONT IMPORTS
═══════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Inter:wght@400;500;600;700&display=swap');

/* ═══════════════════════════════════════════════════════════
   2. DESIGN TOKENS
═══════════════════════════════════════════════════════════ */
:root {
    --navy:           #0B1F3A;
    --navy-mid:       #1A5C8A;
    --navy-light:     #2A7AB8;
    --navy-dim:       #0D2744;
    --gold:           #C8973A;
    --gold-light:     #E0B05A;
    --gold-soft:      rgba(200, 151, 58, 0.12);
    --bg:             #F4F7FA;
    --bg-soft:        #EEF3F8;
    --white:          #FFFFFF;
    --text:           #1E2B38;
    --text-muted:     rgba(30, 43, 56, 0.62);
    --border:         rgba(30, 43, 56, 0.12);
    --border-solid:   #D0DCE8;

    --font-display:   'Playfair Display', Georgia, serif;
    --font-body:      'Inter', system-ui, -apple-system, sans-serif;

    --radius-card:    6px;
    --radius-btn:     4px;
    --container-w:    1040px;
    --section-pad:    clamp(3rem, 6vw, 5.5rem);
    --gutter:         clamp(1rem, 4vw, 2rem);

    --shadow-sm:      0 1px 3px rgba(11,31,58,0.07), 0 4px 12px rgba(11,31,58,0.06);
    --shadow-md:      0 2px 6px rgba(11,31,58,0.08), 0 12px 32px rgba(11,31,58,0.10);
    --transition:     0.2s ease;
}

/* ═══════════════════════════════════════════════════════════
   3. RESET & BASE
═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    width: 100%;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--navy-mid);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition);
}

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

ul, ol { padding-left: 1.4em; margin: 0 0 1.2em; }
li { margin-bottom: 0.4em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }

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

blockquote {
    margin: 1.5em 0;
    padding: 1.1rem 1.5rem;
    border-left: 4px solid var(--gold);
    background: var(--bg-soft);
    border-radius: 0 var(--radius-card) var(--radius-card) 0;
    font-style: italic;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   4. TYPOGRAPHY
═══════════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
    margin: 0 0 0.5em;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; }

/* ═══════════════════════════════════════════════════════════
   5. WORDPRESS DEFAULTS
═══════════════════════════════════════════════════════════ */
.site-main, .site-header, .site-footer { width: 100%; }
.alignleft  { float: left;  margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }
.screen-reader-text {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); border: 0;
}

/* ═══════════════════════════════════════════════════════════
   6. LAYOUT
═══════════════════════════════════════════════════════════ */
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-content { flex: 1; }

.container {
    width: min(100% - (var(--gutter) * 2), var(--container-w));
    margin-inline: auto;
}

.page-section {
    padding-block: var(--section-pad);
}

.page-section.bg-soft  { background: var(--bg-soft); }
.page-section.bg-navy  { background: var(--navy); color: #fff; }
.page-section.bg-navy h2,
.page-section.bg-navy h3 { color: #fff; }

.section-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.6rem;
    background: var(--gold-soft);
    padding: 0.25rem 0.7rem;
    border-radius: 2rem;
    border: 1px solid rgba(200,151,58,0.25);
}

.section-intro {
    max-width: 600px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.section-intro h2 { color: var(--navy); margin-bottom: 0.4em; }
.section-intro p  { color: var(--text-muted); font-size: 1.05rem; }

/* ═══════════════════════════════════════════════════════════
   7. HEADER
═══════════════════════════════════════════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 31, 58, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 2px 16px rgba(11,31,58,0.25);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 72px;
    width: min(100% - (var(--gutter) * 2), var(--container-w));
    margin-inline: auto;
}

.site-branding { flex: 0 0 auto; }

.site-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
}

.site-title a { color: #fff; text-decoration: none; }
.site-title a:hover { color: var(--gold-light); }

.site-tagline {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(180,210,240,0.7);
    margin: 2px 0 0;
}

/* Desktop nav */
.site-nav {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    justify-content: flex-end;
}

.main-navigation {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: clamp(0.1rem, 1vw, 0.25rem);
}

.main-navigation li { position: relative; }

.main-navigation li a {
    display: block;
    padding: 0.6rem 0.85rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(180,210,240,0.9);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.main-navigation li a:hover,
.main-navigation li.current-menu-item > a,
.main-navigation li.current_page_item > a {
    color: #fff;
    border-bottom-color: var(--gold);
    background: rgba(255,255,255,0.05);
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(200,151,58,0.4);
    border-radius: var(--radius-btn);
    cursor: pointer;
}

.hamburger-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    margin: 0 auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--navy-dim);
    border-bottom: 2px solid rgba(200,151,58,0.3);
    padding: 0.75rem 1.5rem 1.25rem;
}

.mobile-nav.is-open { display: flex; }

.mobile-nav ul {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
}

.mobile-nav li a {
    display: block;
    padding: 0.75rem 0;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(180,210,240,0.9);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mobile-nav li a:hover { color: #fff; }

/* ═══════════════════════════════════════════════════════════
   8. BUTTONS
═══════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1;
    border-radius: var(--radius-btn);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: background var(--transition), color var(--transition),
                border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn-primary {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}
.btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: var(--navy);
    box-shadow: 0 6px 20px rgba(200,151,58,0.35);
}

.btn-outline {
    background: transparent;
    color: var(--navy-mid);
    border-color: var(--navy-mid);
}
.btn-outline:hover {
    background: var(--navy-mid);
    color: #fff;
}

.btn-ghost {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; }
.btn-lg { padding: 0.95rem 2rem; font-size: 1rem; }

/* ═══════════════════════════════════════════════════════════
   9. HERO (front page — PHP injected)
═══════════════════════════════════════════════════════════ */
.grove-hero {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, var(--navy) 0%, #1A3A60 55%, #0D2744 100%);
    padding: clamp(4rem, 9vw, 7rem) 0 clamp(3.5rem, 7vw, 6rem);
    overflow: hidden;
}

/* Subtle radial accent — always present */
.grove-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 30%, rgba(200,151,58,0.09) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 80%, rgba(42,122,184,0.12) 0%, transparent 45%);
    pointer-events: none;
    z-index: 1;
}

/* Photo background — active when .grove-hero--has-image is present */
.grove-hero--has-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Dark overlay sits on top of the photo, behind the content */
.grove-hero--has-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(11, 31, 58, 0.82) 0%,
        rgba(11, 31, 58, 0.70) 50%,
        rgba(11, 31, 58, 0.60) 100%
    );
    z-index: 1;
}

/* Ensure hero content sits above both pseudo-elements */
.grove-hero .container { position: relative; z-index: 2; }

.grove-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.grove-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.1rem;
    padding: 0.3rem 0.8rem;
    background: rgba(200,151,58,0.12);
    border: 1px solid rgba(200,151,58,0.3);
    border-radius: 2rem;
}

.grove-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    color: #fff;
    line-height: 1.05;
    margin-bottom: 0.2em;
    letter-spacing: -0.02em;
}

.grove-hero h1 .accent {
    color: var(--gold);
    position: relative;
}

.grove-hero-sub {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.18rem);
    color: rgba(180,210,240,0.88);
    margin: 1.1rem 0 2rem;
    max-width: 480px;
    line-height: 1.65;
}

.grove-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.grove-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.grove-hero-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.grove-hero-meta-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}

.grove-hero-meta-value {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   10. PAGE HERO (inner pages)
═══════════════════════════════════════════════════════════ */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dim) 100%);
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    border-bottom: 3px solid var(--gold);
}

.page-hero h1 {
    color: #fff;
    margin: 0;
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
}

.page-hero .breadcrumb {
    font-size: 0.78rem;
    color: rgba(180,210,240,0.65);
    margin-bottom: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════
   11. CONTENT AREA
═══════════════════════════════════════════════════════════ */
.site-main { padding: clamp(2rem, 5vw, 4rem) 0; }

/* ═══════════════════════════════════════════════════════════
   12. GRIDS
═══════════════════════════════════════════════════════════ */
.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: start;
}

.three-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2.5vw, 1.75rem);
}

.four-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1rem, 2vw, 1.5rem);
}

/* ═══════════════════════════════════════════════════════════
   13. SERVICE / QUICK-LINK CARDS (home page)
═══════════════════════════════════════════════════════════ */
.service-card {
    background: var(--white);
    border: 1px solid var(--border-solid);
    border-left: 4px solid transparent;
    border-radius: var(--radius-card);
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    border-left-color: var(--gold);
    transform: translateY(-3px);
}

/* WordPress wraps bare emoji in <p> — neutralise that */
.service-card > p { margin: 0; }

.service-card-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    display: block;
    line-height: 1;
}

.service-card h3 {
    font-size: 1.05rem;
    color: var(--navy);
    margin-bottom: 0.35em;
    margin-top: 0;
}

.service-card h3 a {
    color: var(--navy);
    text-decoration: none;
}

.service-card h3 a:hover { color: var(--gold); }

.service-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   14. OFFICIAL CARD  (editor class: official-card)
   Used on Government page — name, title, phone, email
═══════════════════════════════════════════════════════════ */
.officials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.official-card {
    background: var(--white);
    border: 1px solid var(--border-solid);
    border-top: 4px solid var(--navy-mid);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.official-card .official-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 0.2em;
}

.official-card .official-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.85rem;
    display: block;
}

.official-card .official-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.official-card .official-contact li {
    color: var(--text-muted);
    margin: 0;
}

.official-card .official-contact a {
    color: var(--navy-mid);
    text-decoration: none;
    font-weight: 500;
}

.official-card .official-contact a:hover { color: var(--gold); }

/* ═══════════════════════════════════════════════════════════
   15. DOCUMENT ROW  (editor class: doc-list / doc-item)
   Used on Minutes & Agendas, Local Laws & Forms pages
═══════════════════════════════════════════════════════════ */
.doc-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.doc-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    background: var(--white);
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.doc-item:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
}

.doc-item-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--navy);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--gold);
    text-transform: uppercase;
}

.doc-item-info {
    flex: 1;
    min-width: 0;
}

.doc-item-title {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--navy);
    font-size: 0.93rem;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doc-item-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.doc-item-link {
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--navy-mid);
    text-decoration: none;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-btn);
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    white-space: nowrap;
}

.doc-item-link:hover {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

/* ═══════════════════════════════════════════════════════════
   16. MEETING INFO BLOCK  (editor class: meeting-block)
═══════════════════════════════════════════════════════════ */
.meeting-block {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: var(--white);
    border: 1px solid var(--border-solid);
    border-left: 5px solid var(--gold);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
}

.meeting-block-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--gold-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.meeting-block-body h4 {
    color: var(--navy);
    margin: 0 0 0.3em;
    font-size: 1rem;
}

.meeting-block-body p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════
   17. NOTICE / ANNOUNCEMENT BANNER  (editor class: notice-banner)
═══════════════════════════════════════════════════════════ */
.notice-banner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.4rem;
    border-radius: var(--radius-card);
    margin-bottom: 1.25rem;
    font-size: 0.92rem;
    line-height: 1.55;
}

.notice-banner.notice-info {
    background: rgba(26,92,138,0.08);
    border: 1px solid rgba(26,92,138,0.22);
    border-left: 4px solid var(--navy-mid);
    color: var(--navy);
}

.notice-banner.notice-alert {
    background: rgba(200,151,58,0.09);
    border: 1px solid rgba(200,151,58,0.28);
    border-left: 4px solid var(--gold);
    color: var(--text);
}

.notice-banner.notice-urgent {
    background: rgba(180,30,30,0.07);
    border: 1px solid rgba(180,30,30,0.22);
    border-left: 4px solid #b41e1e;
    color: #5a0e0e;
}

.notice-banner-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.notice-banner strong {
    display: block;
    margin-bottom: 0.15rem;
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════
   18. INFO SPLIT  (editor class: info-split)
   Two-column layout for community info, departments, etc.
═══════════════════════════════════════════════════════════ */
.info-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: start;
}

.info-block {
    background: var(--white);
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-card);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.info-block h3 {
    margin-top: 0;
    font-size: 1.1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--border-solid);
    margin-bottom: 0.85rem;
    position: relative;
}

.info-block h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gold);
}

.info-block p, .info-block ul { font-size: 0.92rem; }

/* ═══════════════════════════════════════════════════════════
   19. CONTACT BLOCK  (editor class: contact-block)
═══════════════════════════════════════════════════════════ */
.contact-block {
    background: var(--white);
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-card);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.contact-block h3 { margin-top: 0; }

.contact-detail-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.contact-detail-list li {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
    font-size: 0.9rem;
    color: var(--text);
    margin: 0;
}

.contact-detail-list .detail-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    flex-shrink: 0;
    min-width: 60px;
}

.contact-detail-list a {
    color: var(--navy-mid);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   20. HIGHLIGHT BOX  (editor class: highlight-box)
═══════════════════════════════════════════════════════════ */
.highlight-box {
    background: var(--gold-soft);
    border: 1px solid rgba(200,151,58,0.25);
    border-left: 5px solid var(--gold);
    border-radius: var(--radius-card);
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.25rem;
}

.highlight-box h3, .highlight-box h4 { margin-top: 0; }

/* ═══════════════════════════════════════════════════════════
   21. STAT BAND  (editor class: stat-band)
   Row of 3–4 key facts — used on home page
═══════════════════════════════════════════════════════════ */
.stat-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: var(--navy);
    border-top: 3px solid var(--gold);
}

.stat-band-item {
    padding: 1.75rem 1.5rem;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.stat-band-item:last-child { border-right: none; }

.stat-band-number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-band-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(180,210,240,0.75);
}

/* ═══════════════════════════════════════════════════════════
   21b. CARD IMAGES
   Images inside info-block and business-card components
═══════════════════════════════════════════════════════════ */
.info-block img,
.business-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-card);
    margin-bottom: 1.1rem;
    display: block;
}

/* ═══════════════════════════════════════════════════════════
   22. BUSINESS CARD  (editor class: business-card)
═══════════════════════════════════════════════════════════ */
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.business-card {
    background: var(--white);
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-card);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}

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

.business-card h3 {
    font-size: 1.1rem;
    margin: 0 0 0.2em;
    color: var(--navy);
}

.business-card .business-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    background: var(--gold-soft);
    padding: 0.15rem 0.55rem;
    border-radius: 2rem;
    margin-bottom: 0.85rem;
}

.business-card .business-info {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.business-card .business-info li { color: var(--text-muted); margin: 0; }
.business-card .business-info a { color: var(--navy-mid); font-weight: 500; }
.business-card .business-info a:hover { color: var(--gold); }

/* ═══════════════════════════════════════════════════════════
   23. CTA BANNER  (editor class: cta-banner)
═══════════════════════════════════════════════════════════ */
.cta-banner {
    background: var(--navy);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius-card);
    padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
    text-align: center;
    color: #fff;
}

.cta-banner h2, .cta-banner h3 { color: #fff; margin-top: 0; }
.cta-banner p { color: rgba(180,210,240,0.85); margin-bottom: 1.5rem; font-size: 1.05rem; }

.cta-banner-actions {
    display: flex;
    gap: 0.85rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════
   24. SECTION DIVIDER  (editor class: section-divider)
═══════════════════════════════════════════════════════════ */
.section-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0 1.5rem;
}

.section-divider h2,
.section-divider h3 {
    margin: 0;
    white-space: nowrap;
    font-size: 1.15rem;
}

.section-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--border-solid);
    border-radius: 1px;
}

.section-divider.with-gold::before {
    content: '';
    width: 4px;
    height: 1.2em;
    background: var(--gold);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   25. SEARCH
═══════════════════════════════════════════════════════════ */

/* Search form — used on 404 page */
.tog-search-wrap {
    max-width: 560px;
    margin: 0 auto 2rem;
}

.tog-search-wrap label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.tog-search-form {
    display: flex;
    gap: 0;
    border: 2px solid var(--border-solid);
    border-radius: var(--radius-btn);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.tog-search-form:focus-within {
    border-color: var(--navy-mid);
    box-shadow: 0 0 0 3px rgba(26, 92, 138, 0.12);
}

.tog-search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    border: none;
    outline: none;
    -webkit-appearance: none;
}

.tog-search-form input[type="search"]::placeholder {
    color: var(--text-muted);
}

.tog-search-form button[type="submit"] {
    flex-shrink: 0;
    padding: 0.75rem 1.25rem;
    background: var(--navy);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: background var(--transition);
    white-space: nowrap;
}

.tog-search-form button[type="submit"]:hover {
    background: var(--gold);
    color: var(--navy);
}

/* Search results page */
.search-results-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-result-item {
    background: var(--white);
    border: 1px solid var(--border-solid);
    border-left: 4px solid var(--navy-mid);
    border-radius: var(--radius-card);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.search-result-item:hover {
    border-left-color: var(--gold);
    box-shadow: var(--shadow-md);
}

.search-result-item h3 {
    font-size: 1rem;
    margin: 0 0 0.25em;
}

.search-result-item h3 a {
    color: var(--navy);
    text-decoration: none;
}

.search-result-item h3 a:hover { color: var(--gold); }

.search-result-item .search-result-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.search-result-item p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.55;
}

.search-no-results {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-muted);
}

.search-no-results p { font-size: 1rem; }

/* ═══════════════════════════════════════════════════════════
   26. FOOTER
═══════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--navy);
    color: rgba(180,210,240,0.75);
    padding: clamp(3rem, 6vw, 5rem) 0 1.5rem;
    border-top: 3px solid var(--gold);
    font-family: var(--font-body);
    font-size: 0.875rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    margin-bottom: clamp(2rem, 4vw, 3rem);
    align-items: start;
}

.footer-brand-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.6rem;
}

.footer-brand p {
    color: rgba(180,210,240,0.65);
    font-size: 0.875rem;
    line-height: 1.65;
    margin-bottom: 0.5rem;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold);
    margin-bottom: 1.1rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-col ul li { margin: 0; }

.footer-col ul a {
    color: rgba(180,210,240,0.75);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-col ul a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(180,210,240,0.45);
}

/* ═══════════════════════════════════════════════════════════
   27. RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .site-nav { display: none; }
    .nav-toggle { display: flex; }
    .four-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-band { grid-template-columns: repeat(2, 1fr); }
    .officials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .split-grid,
    .three-grid,
    .info-split,
    .officials-grid,
    .footer-inner { grid-template-columns: 1fr; }

    .footer-inner { gap: 2rem; }
}

@media (max-width: 640px) {
    .four-grid,
    .stat-band { grid-template-columns: repeat(2, 1fr); }

    .grove-hero-actions { flex-direction: column; }
    .grove-hero-actions .btn { width: 100%; }

    .stat-band-item { padding: 1.25rem 1rem; }

    .doc-item { flex-wrap: wrap; }
    .doc-item-link { width: 100%; text-align: center; }

    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .four-grid,
    .stat-band { grid-template-columns: 1fr; }

    .official-card,
    .info-block,
    .contact-block,
    .business-card { padding: 1.25rem; }

    .meeting-block { flex-direction: column; gap: 0.75rem; }
}

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

/* ═══════════════════════════════════════════════════════════
   28. HISTORY TIMELINE  (editor class: history-timeline)
   Left-rail vertical timeline for the Our Community history section.
   Each era gets a .timeline-entry with a .timeline-year marker
   and a .timeline-content block.
═══════════════════════════════════════════════════════════ */
.history-timeline {
    position: relative;
    padding-left: 2.5rem;
    margin: 0;
    list-style: none;
}

/* The vertical gold rail */
.history-timeline::before {
    content: '';
    position: absolute;
    left: 0.55rem;
    top: 0.4rem;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), rgba(200,151,58,0.15));
    border-radius: 2px;
}

.timeline-entry {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-entry:last-child {
    margin-bottom: 0;
}

/* Gold dot on the rail */
.timeline-entry::before {
    content: '';
    position: absolute;
    left: -2.05rem;
    top: 0.55rem;
    width: 12px;
    height: 12px;
    background: var(--gold);
    border: 2px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--gold);
    z-index: 1;
}

.timeline-year {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    background: var(--gold-soft);
    border: 1px solid rgba(200,151,58,0.25);
    border-radius: 2rem;
    padding: 0.2rem 0.65rem;
    margin-bottom: 0.5rem;
}

.timeline-content {
    background: var(--white);
    border: 1px solid var(--border-solid);
    border-left: 4px solid var(--navy-mid);
    border-radius: var(--radius-card);
    padding: 1.5rem 1.75rem;
    box-shadow: var(--shadow-sm);
}

.timeline-content h3 {
    font-size: 1.1rem;
    margin: 0 0 0.6em;
    color: var(--navy);
}

.timeline-content p {
    font-size: 0.92rem;
    color: var(--text);
    margin-bottom: 0.85em;
}

.timeline-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .history-timeline {
        padding-left: 2rem;
    }

    .timeline-content {
        padding: 1.25rem;
    }
}