/* Orcas Highlands HOA - Contemporary Stylesheet */

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

:root {
    /* Colors from logo */
    --color-maroon: #4a2c2a;
    --color-maroon-light: #6b4442;
    --color-blue: #2b6db0;
    --color-blue-dark: #245a91;
    --color-blue-light: #3a7dc0;
    --color-gray-island: #c5c5c5;

    /* Functional colors */
    --color-primary: var(--color-blue);
    --color-primary-dark: var(--color-blue-dark);
    --color-secondary: var(--color-maroon);
    --color-accent: var(--color-blue-light);

    /* Neutrals */
    --color-text: #333;
    --color-text-light: #666;
    --color-text-muted: #888;
    --color-bg: #fff;
    --color-bg-light: #f8f9fa;
    --color-bg-alt: #f0f2f5;
    --color-border: #e0e0e0;
    --color-border-light: #eee;

    /* Typography */
    --font-family: 'Roboto', system-ui, -apple-system, sans-serif;
    --font-family-heading: 'Roboto', system-ui, sans-serif;

    /* Layout */
    --max-width: 1200px;
    --header-height: 80px;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
    --transition: 0.2s ease;
}

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

body {
    font-family: var(--font-family);
    overflow-x: hidden;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    line-height: 1.3;
    margin-bottom: 0.5em;
    color: var(--color-secondary);
    font-weight: 600;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1em;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-accent);
}

ul, ol {
    margin-bottom: 1em;
    padding-left: 1.5em;
}

li {
    margin-bottom: 0.35em;
}

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

/* Header */
.site-header {
    background: var(--color-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.site-header .container {
    display: flex;
    flex-direction: column;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo img {
    height: 100px;
    width: auto;
}

.site-logo h1,
.site-logo .tagline {
    display: none;
}

.header-right {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

/* Header Search */
.header-search {
    display: flex;
    align-items: center;
    background: #e6e6e6;
    border-radius: 50px;
    overflow: hidden;
}

.header-search input {
    background: transparent;
    border: none;
    padding: 0.5rem 0.75rem;
    color: var(--color-text);
    font-size: 0.85rem;
    width: 150px;
    outline: none;
    height: 32px;
    box-sizing: border-box;
}

.header-search input::placeholder {
    color: var(--color-text-muted);
}

.header-search button {
    background: var(--color-blue);
    border: none;
    padding: 0.5rem 0.75rem;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    height: 32px;
    box-sizing: border-box;
}

.header-search button:hover {
    background: var(--color-blue-dark);
}

.btn-reach-out {
    background: var(--color-blue);
    color: #fff;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: background var(--transition), transform var(--transition);
    height: 32px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.btn-reach-out:hover {
    background: var(--color-blue-dark);
    transform: scale(1.05);
}

.header-login-text {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.header-login-link {
    color: var(--color-primary);
    font-size: 0.82rem;
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--transition);
}

.header-login-link:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.header-island-wrap {
    position: relative;
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.header-actions {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: stretch;
}

.header-actions-top {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-actions-bottom {
    text-align: right;
}

.header-island-wrap:hover .header-island {
    opacity: 0.8;
}

.weather-temp {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-weight: 400;
    color: var(--color-blue);
    font-size: 28px;
    text-shadow: 1px 1px 3px rgba(255,255,255,0.9);
}

@media (max-width: 768px) {
    .header-island-wrap {
        display: none;
    }
}

.header-island {
    height: 100px;
    width: auto;
    opacity: 0.6;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-blue);
    position: relative;
    transition: background var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--color-blue);
    left: 0;
    transition: transform var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

.mobile-menu-toggle.is-active .hamburger {
    background: transparent;
}

.mobile-menu-toggle.is-active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-toggle.is-active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Navigation */
.main-nav {
    background: linear-gradient(180deg, #3a7dc0 0%, #2b6db0 50%, #1e5a8a 100%);
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    padding: 0 calc((100vw - var(--max-width)) / 2 + 1.5rem);
}

.nav-menu {
    display: flex;
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    display: block;
    padding: 1rem 1.5rem;
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition);
    line-height: 1;
}

.nav-item > a:hover,
.nav-item.active > a {
    background: rgba(255,255,255,0.15);
    color: #fff;
    text-decoration: none;
}

/* Nav auth button — right-aligned flush to edge */
.nav-item-auth { margin-left: auto; display: flex; align-items: center; }
.nav-btn-auth {
    display: block;
    padding: 0.3rem 0.85rem !important;
    margin: 0;
    background: #fff;
    color: var(--color-primary) !important;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
}
.nav-btn-auth:hover {
    background: var(--color-bg-alt);
    color: var(--color-primary-dark) !important;
    text-decoration: none;
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--color-bg);
    box-shadow: var(--shadow-lg);
    list-style: none;
    padding: 0.5rem 0;
    z-index: 100;
    border-radius: 0 0 var(--radius) var(--radius);
}

.has-dropdown > a::after {
    content: '';
    display: inline-block;
    margin-left: 6px;
    border: 4px solid transparent;
    border-top-color: currentColor;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.has-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--color-text);
    font-size: 0.9rem;
}

.dropdown-menu li a:hover,
.dropdown-menu li.active a {
    background: var(--color-bg-alt);
    color: var(--color-primary);
}

/* Main Content */
.site-main {
    flex: 1;
    padding: 1.5rem 0 0 0;
}

.site-main.has-background {
    background: #fff;
}

.page-header {
    margin-bottom: 1.5rem;
}

.page-header h1 {
    margin-bottom: 0;
    color: var(--color-blue);
}

.page-content {
    padding: 0;
}

.page-content img {
    border-radius: var(--radius);
    margin: 1rem 0;
}

.float-right-image {
    float: right;
    border-radius: var(--radius);
}

.entry-content {
    max-width: 100%;
}

.entry-content a {
    text-decoration: underline;
    text-decoration-color: var(--color-border);
    text-underline-offset: 2px;
}

.entry-content a:hover {
    text-decoration-color: var(--color-primary);
}

/* Link Lists */
.link-list {
    list-style: none;
    margin: 1.5rem 0;
}

.link-list li {
    margin-bottom: 0.75rem;
}

.link-list a {
    display: inline-block;
    padding: 0.5rem 0;
    font-size: 1.1rem;
    color: var(--color-blue);
    text-decoration: none;
}

.link-list a:hover {
    text-decoration: underline;
}

.link-list a::before {
    content: '→ ';
    color: var(--color-blue);
}

/* Utility Widget - 30/70 Split */
.utility-widget {
    display: flex;
    background: var(--color-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border-light);
    overflow: hidden;
    min-height: 400px;
}

.utility-nav {
    width: 30%;
    background: var(--color-bg-light);
    border-right: 1px solid var(--color-border-light);
    flex-shrink: 0;
}

.utility-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.utility-nav li {
    margin: 0;
    padding: 0;
}

.utility-link {
    display: block;
    padding: 1rem 1.25rem;
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border-light);
    transition: background var(--transition), color var(--transition);
}

.utility-link:hover {
    background: var(--color-bg);
    color: var(--color-blue);
}

.utility-link.active {
    background: var(--color-blue);
    color: #fff;
    font-weight: 500;
}

.utility-content {
    width: 70%;
    padding: 1.5rem;
}

.utility-section {
    display: none;
}

.utility-section.active {
    display: block;
}

.utility-section h2 {
    color: var(--color-blue);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.utility-section h3 {
    color: var(--color-blue);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.utility-logo {
    max-width: 120px;
    height: auto;
}

.utility-image {
    max-width: 300px;
    height: auto;
    border-radius: var(--radius);
    margin: 1rem 0;
}

.utility-splash-image {
    max-width: 400px;
    height: auto;
    border-radius: var(--radius);
    margin: 1rem 0 0 0;
    box-shadow: var(--shadow);
}

.alert-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: var(--radius);
    padding: 1rem;
    margin: 1rem 0;
}

/* Year Grid for Meeting Minutes */
.year-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 0.5rem;
    margin: 1rem 0;
    clear: both;
}

.year-grid a {
    display: block;
    padding: 0.5rem;
    text-align: center;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius);
    color: var(--color-blue);
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
}

.year-grid a:hover {
    background: var(--color-blue);
    color: #fff;
    border-color: var(--color-blue);
}

/* Document Lists */
.doc-list {
    list-style: none;
    margin: 0.5rem 0 1.5rem;
    padding: 0;
}

.doc-list li {
    margin-bottom: 0.4rem;
    padding: 0;
}

.doc-list a {
    color: var(--color-blue);
    text-decoration: none;
}

.doc-list a:hover {
    text-decoration: underline;
}


/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--color-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.data-table thead {
    background: var(--color-blue);
    color: #fff;
}

.data-table th {
    padding: 0.4rem 0.75rem;
    text-align: left;
    font-weight: 600;
}

.data-table td {
    padding: 0.15rem 0.75rem;
    border-bottom: 1px solid var(--color-border-light);
    line-height: 1.2;
}

.data-table tbody tr:hover {
    background: var(--color-bg-light) !important;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Small Button */
.btn-small {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: var(--color-blue);
    color: #fff;
    border-radius: var(--radius);
    font-size: 0.85rem;
    text-decoration: none;
    transition: background var(--transition);
}

.btn-small:hover {
    background: var(--color-blue-dark);
    color: #fff;
}

/* PDF Link */
.pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--color-blue);
    text-decoration: none;
}

.pdf-link:hover {
    text-decoration: underline;
}

.pdf-icon {
    width: 24px;
    height: 24px;
}

/* Doc Link (legacy) */
.doc-link {
    color: var(--color-blue);
    text-decoration: none;
}

.doc-link:hover {
    text-decoration: underline;
}


/* Back Link */
.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--color-blue);
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

/* Responsive Data Tables */
@media (max-width: 600px) {
    .data-table thead {
        display: none;
    }

    .data-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid var(--color-border-light);
        border-radius: var(--radius);
    }

    .data-table td {
        display: flex;
        justify-content: space-between;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--color-border-light);
    }

    .data-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--color-text-light);
    }

    .data-table td:last-child {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .utility-widget {
        flex-direction: column;
    }

    .utility-nav {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--color-border-light);
    }

    .utility-nav ul {
        display: flex;
        flex-wrap: wrap;
    }

    .utility-nav li {
        flex: 1;
        min-width: 50%;
    }

    .utility-link {
        text-align: center;
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .utility-content {
        width: 100%;
    }
}

/* Page Layout with Sidebar Image */
.page-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.page-layout .page-main {
    flex: 1;
    min-width: 0;
}

.page-layout .page-sidebar {
    width: 480px;
    flex-shrink: 0;
}

.sidebar-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.image-well {
    background: var(--color-bg);
    padding: 0.75rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border-light);
}

.image-well img {
    width: 100%;
    height: auto;
    border-radius: calc(var(--radius) - 4px);
    display: block;
}

@media (max-width: 768px) {
    .page-layout {
        flex-direction: column;
    }

    .page-layout .page-sidebar {
        width: 100%;
        max-width: 300px;
    }

    .float-right-image {
        float: none;
        display: block;
        max-width: 100% !important;
        margin: 1rem auto !important;
    }
}

/* Content Tables */
.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--color-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.page-content table td,
.page-content table th {
    padding: 0.875rem 1rem;
    border: 1px solid var(--color-border-light);
}

.page-content table:not(.data-table):not(.admin-table) tr:first-child td,
.page-content table:not(.data-table):not(.admin-table) tr:first-child th {
    background: var(--color-blue) !important;
    color: #fff !important;
    font-weight: 600;
}

.page-content table tr:nth-child(even) {
    background: var(--color-bg-light);
}

/* Map Container */
.map-container {
    margin: 1.5rem 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    display: block;
    max-width: 100%;
}

/* Home Page Hero */
.hero {
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-dark) 100%);
    color: #fff;
    padding: 4rem 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><polygon fill="rgba(255,255,255,0.03)" points="0,100 100,0 100,100"/></svg>');
    background-size: cover;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: #fff;
    font-size: 2.75rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* Home Page Hero Split */
.hero-banner {
    position: relative;
    padding: 2.5rem 0 5.5rem 0;
    margin-bottom: -10px;
    color: #fff;
    /* Break out of container to full width */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: -1.5rem;
    padding-left: calc(50vw - 50% + 1.5rem);
    padding-right: calc(50vw - 50% + 1.5rem);
    overflow: hidden;
    min-height: 300px;
    background: #fff;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    filter: blur(8px);
    transform: scale(1.05);
    transition: opacity 1.5s ease, filter 1.5s ease;
}

.hero-slide.active {
    opacity: 1;
    filter: blur(0);
}

.hero-slide.no-transition {
    transition: none !important;
    opacity: 0 !important;
}

.hero-slide.no-transition.loaded {
    opacity: 1 !important;
    transition: opacity 1.5s ease-in !important;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
    opacity: 0;
    transition: opacity 1.5s ease-in;
}

.hero-overlay.loaded {
    opacity: 1 !important;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.hero-left {
    text-align: left;
    animation: swoopInLeft 1.5s ease-out forwards;
    animation-delay: 1.2s;
    opacity: 0;
}

.hero-right {
    text-align: right;
    max-width: 500px;
    animation: swoopInRight 1.5s ease-out forwards;
    animation-delay: 1.5s;
    opacity: 0;
}

@keyframes swoopInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes swoopInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-banner h1 {
    color: #fff;
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 0;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.hero-banner p {
    margin-bottom: 0;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.read-more-white {
    color: #fff;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.read-more-white:hover {
    opacity: 0.85;
}

@media (max-width: 768px) {
    .hero-banner {
        padding: 2rem 0 3rem 0;
        padding-left: calc(50vw - 50% + 1rem);
        padding-right: calc(50vw - 50% + 1rem);
    }

    .hero-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-left {
        animation: swoopInTop 1.5s ease-out forwards;
        animation-delay: 1.2s;
    }

    .hero-right {
        text-align: left;
        max-width: 100%;
        animation: swoopInBottom 1.5s ease-out forwards;
        animation-delay: 1.5s;
    }

    @keyframes swoopInTop {
        from {
            opacity: 0;
            transform: translateY(-30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes swoopInBottom {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .hero-banner h1 {
        font-size: 1.75rem;
    }
}

/* Announcements Banner — overlaps hero */
.announcements-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: -4.5rem;
    position: relative;
    z-index: 3;
}

.announcements-banner + .quick-links {
    margin-top: 28px;
}

.announcement-card {
    display: block;
    background: linear-gradient(135deg, #43803a 0%, #33652a 50%, #265020 100%);
    border-radius: var(--radius);
    padding: 1.1rem 1.3rem;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all var(--transition);
}

.announcement-card:hover {
    background: linear-gradient(135deg, #3a7232 0%, #2a5522 50%, #1e4418 100%);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    transform: translateY(-2px);
}

.announcement-icon {
    display: inline-block;
    vertical-align: -2px;
    margin-right: 0.4rem;
    flex-shrink: 0;
}

.announcement-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.3rem;
}

.announcement-title {
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
}

.announcement-date {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
    flex-shrink: 0;
}

.announcement-excerpt {
    display: block;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
}

/* Quick Links Grid */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 35px 0 40px 0;
    position: relative;
    z-index: 1;
}

.quick-link-card {
    background: linear-gradient(135deg, #3a80c4 0%, #2b6db0 50%, #1e5a8a 100%);
    color: #fff;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.quick-link-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #4a90d0 0%, #3580c4 50%, #2468a0 100%);
}

.quick-link-card h3 {
    margin-bottom: 0.75rem;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.quick-link-card p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.quick-link-card a {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    background: rgba(255,255,255,0.95);
    color: var(--color-blue-dark);
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background var(--transition);
}

.quick-link-card a:hover {
    background: #fff;
    color: var(--color-blue);
    text-decoration: none;
}

/* Intro Section */
.intro {
    background: var(--color-bg);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.intro h2 {
    margin-bottom: 1rem;
}

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

/* Contact Info */
.contact-info {
    background: var(--color-bg-alt);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
    border-left: 4px solid var(--color-primary);
}

.contact-info h3 {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

/* Document Links */
.document-list {
    list-style: none;
    padding: 0;
}

.document-list li {
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--color-border-light);
}

.document-list li:last-child {
    border-bottom: none;
}

.document-list a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.document-list a::before {
    content: '📄';
}

/* Community Page */
.community-intro {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.community-intro-text {
    flex: 1;
}

.community-intro-image {
    flex: 1;
}

.community-intro-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

@media (max-width: 768px) {
    .community-intro {
        flex-direction: column;
    }
}

/* Noxious Weeds Page */
.weed-link:hover,
.blog-link:hover {
    background: var(--color-primary) !important;
    color: #fff !important;
}

.contact-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-header-row p {
    margin: 0;
}

.contact-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 2rem;
    font-size: 0.95rem;
}

.contact-table th,
.contact-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border-light);
}

.contact-table th {
    background: var(--color-blue);
    color: #fff;
    font-weight: 600;
}

.contact-table tr:hover td {
    background: var(--color-bg-light);
}

.contact-table a {
    color: var(--color-primary);
}

.text-muted {
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin-top: 1.5rem;
    padding-bottom: 50px;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text);
}

.form-group .required {
    color: #c00;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(43, 109, 176, 0.15);
}

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

.btn-submit {
    background: var(--color-blue);
    color: #fff;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.btn-submit:hover {
    background: var(--color-blue-dark);
    transform: translateY(-2px);
}

.success-message {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-left: 4px solid #4caf50;
    padding: 1.5rem;
    border-radius: var(--radius);
    margin: 1rem 0;
}

.success-message p {
    margin: 0.5rem 0;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Search Page */
.search-page {
    max-width: 800px;
}

.search-form-large {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.search-form-large input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 1.1rem;
    outline: none;
    transition: border-color var(--transition);
}

.search-form-large input:focus {
    border-color: var(--color-blue);
}

.search-form-large button {
    padding: 0.875rem 1.5rem;
    background: var(--color-blue);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition);
}

.search-form-large button:hover {
    background: var(--color-blue-dark);
}

.search-summary {
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border-light);
}

.results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.result-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border-light);
}

.result-item:last-child {
    border-bottom: none;
}

.result-type {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: var(--color-bg-light);
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 0.25rem;
}

.result-type.pdf,
.result-type.meeting_minutes {
    background: #fce4ec;
    color: #c62828;
}

.result-type.page {
    background: #e3f2fd;
    color: #1565c0;
}

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

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

.result-item h3 a:hover {
    text-decoration: underline;
}

.result-snippet {
    color: var(--color-text-light);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0 0 0.25rem 0;
}

.result-item mark {
    background: #fff59d;
    padding: 0.1rem 0.2rem;
    border-radius: 2px;
}

.result-item h3 mark {
    background: #fff59d;
}

.result-url {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.no-results {
    background: var(--color-bg-light);
    padding: 1.5rem;
    border-radius: var(--radius);
}

.no-results ul {
    margin: 1rem 0 0 1.5rem;
}

.no-results li {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .header-search {
        display: none;
    }
}

@media (max-width: 600px) {
    .search-form-large {
        flex-direction: column;
    }
}

/* Legacy board card styles - keep for other pages if needed */
.board-card {
    background: var(--color-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border-light);
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.board-card-header {
    background: linear-gradient(135deg, #2b6db0 0%, #245a91 100%);
    color: #fff;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.board-card-header.green {
    background: linear-gradient(135deg, #3d8b40 0%, #2d6a30 100%);
}

.board-card-body {
    padding: 1.25rem;
}

.board-card-body h3 {
    color: var(--color-secondary);
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

.board-card-body .term {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.board-contact p {
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

.board-contact a {
    color: var(--color-blue);
}

@media (max-width: 600px) {
    .contact-methods {
        flex-direction: column;
        gap: 1rem;
    }

    .board-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, #1e5a8a 0%, #2b6db0 50%, #1e5a8a 100%);
    color: #fff;
    padding: 3rem 0 1.5rem;
    margin-top: auto;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3d8b40, #2b6db0, #3d8b40);
}

.footer-content {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: stretch;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-right: 2rem;
}

.footer-logo {
    height: 90px;
    width: auto;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    background: #fff;
    padding: 5px;
}

.footer-tagline {
    font-size: 0.85rem;
    opacity: 0.9;
    font-style: italic;
    text-align: center;
}

.footer-brand-right {
    padding-right: 0;
    padding-left: 2rem;
    flex-shrink: 0;
}

.footer-brand-right a {
    display: block;
    line-height: 0;
}

.footer-brand-right .footer-logo {
    height: 90px;
    margin-bottom: 0;
}

.footer-brand-right .footer-tagline {
    margin-top: 0.5rem;
}

.footer-columns {
    flex: 1;
    display: flex;
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius);
    padding: 1.25rem 0;
}

.footer-col {
    flex: 1;
    padding: 0 1.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.footer-col:first-child {
    border-left: none;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 0.75rem;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col p {
    opacity: 0.9;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer-col a {
    color: #fff;
    text-decoration: none;
    transition: opacity var(--transition);
}

.footer-col a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 0.35rem;
}

.footer-col li a {
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    transition: all var(--transition);
    text-decoration: none;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
}

.footer-bottom p {
    margin-bottom: 0.25rem;
    opacity: 0.8;
}

.footer-location {
    opacity: 0.6;
    font-size: 0.8rem;
}

@media (max-width: 900px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-brand {
        padding-right: 0;
        padding-left: 0;
        padding-bottom: 1.5rem;
    }

    .footer-brand-right {
        padding-bottom: 0;
        padding-top: 1.5rem;
    }

    .footer-columns {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .footer-columns {
        flex-direction: column;
        padding: 0;
    }

    .footer-col {
        border-left: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding: 1rem 1.5rem;
        text-align: center;
    }

    .footer-col:last-child {
        border-bottom: none;
    }
}

/* Responsive Design */
@media (max-width: 900px) {
    .nav-menu {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-item > a {
        padding: 1rem;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: auto;
    }

    .btn-reach-out {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(180deg, #2b6db0 0%, #245a91 100%);
        box-shadow: var(--shadow-lg);
        margin: 0;
        padding: 0;
    }

    .main-nav.is-open {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
    }

    .nav-item > a {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-item > a:hover,
    .nav-item.active > a {
        background: rgba(255,255,255,0.15);
    }

    .dropdown-menu {
        display: none;
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: rgba(0,0,0,0.15);
        padding: 0;
    }

    .has-dropdown.dropdown-open .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        padding: 0.875rem 1.5rem 0.875rem 2.5rem;
        color: rgba(255,255,255,0.9);
    }

    .dropdown-menu li a:hover {
        background: rgba(255,255,255,0.1);
        color: #fff;
    }

    .hero {
        padding: 3rem 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .page-content {
        padding: 1.5rem;
        border-radius: var(--radius);
    }

    .page-content table {
        font-size: 0.875rem;
    }

    .page-content table td,
    .page-content table th {
        padding: 0.625rem 0.75rem;
    }

    .quick-link-card {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header-island {
        display: none;
    }

    .contact-table {
        font-size: 0.85rem;
    }

    .contact-table th,
    .contact-table td {
        padding: 0.5rem;
    }

    .contact-table th:nth-child(3),
    .contact-table td:nth-child(3) {
        display: none;
    }
}

@media (max-width: 480px) {
    .site-logo img {
        height: 70px;
    }

    .hero {
        padding: 2.5rem 1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .mobile-menu-toggle {
        display: none;
    }

    .site-main {
        padding: 0;
    }

    .page-content {
        box-shadow: none;
        padding: 0;
    }

    a {
        color: inherit;
        text-decoration: underline;
    }
}
