/* ==========================================================================
   Belmont Place — Main Stylesheet
   Mobile-first, clean, accessible
   ========================================================================== */

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

:root {
    --color-primary: #2C5F2D;
    --color-primary-dark: #1E4220;
    --color-accent: #D4A843;
    --color-bg: #FAFAF7;
    --color-surface: #FFFFFF;
    --color-text: #2D2D2D;
    --color-text-light: #6B6B6B;
    --color-border: #E2E2E2;
    --color-error: #D63638;
    --color-success: #00A32A;
    --font-heading: Georgia, 'Times New Roman', serif;
    --font-body: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --container-width: 1200px;
    --container-narrow: 640px;
    --radius: 6px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.3;
    color: var(--color-text);
}

h1 { font-size: 2rem; margin-bottom: 0.5rem; }
h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

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

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

.section {
    padding: 3rem 0;
}

.section--alt {
    background: var(--color-surface);
}

.section__title {
    text-align: center;
    margin-bottom: 0.25rem;
}

.section__subtitle {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.section__cta {
    text-align: center;
    margin-top: 2rem;
}

/* ---------- Skip Link ---------- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    padding: 0.5rem 1rem;
    background: var(--color-primary);
    color: #fff;
}

.skip-link:focus {
    left: 0;
}

/* ---------- Header ---------- */
.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 1rem;
}

.site-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}

.site-title:hover {
    color: var(--color-primary-dark);
    text-decoration: none;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-nav__list {
    list-style: none;
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.site-nav__list a {
    font-size: 0.9375rem;
    color: var(--color-text);
    font-weight: 500;
    padding: 0.25rem 0;
}

.site-nav__list a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a {
    color: var(--color-primary);
}

.site-nav__auth {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

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

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

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

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

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-text);
    color: #ccc;
    padding: 2rem 0;
    margin-top: 3rem;
}

.site-footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-nav__list {
    list-style: none;
    display: flex;
    gap: 1.25rem;
}

.footer-nav__list a {
    color: #ccc;
    font-size: 0.875rem;
}

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

.site-footer__copy p {
    font-size: 0.8125rem;
    color: #999;
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.hero__title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 0.75rem;
}

.hero__subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Page Header ---------- */
.page-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 2rem 0;
}

.page-header--residents {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    border-bottom: none;
}

.page-header--residents h1 {
    color: #fff;
}

.page-header--residents p {
    opacity: 0.9;
}

/* ---------- Two Column ---------- */
.two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* ---------- Back Link ---------- */
.back-link {
    display: inline-block;
    font-size: 0.9375rem;
    margin: 1.5rem 0;
}

/* ---------- Entry Content ---------- */
.entry-content p { margin-bottom: 1rem; }
.entry-content ul,
.entry-content ol { margin: 0 0 1rem 1.5rem; }
.entry-content li { margin-bottom: 0.25rem; }

/* ---------- Pagination ---------- */
.pagination {
    margin-top: 2rem;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin: 0 0.125rem;
    font-size: 0.875rem;
}

.pagination .page-numbers.current {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* ---------- Empty State ---------- */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-text-light);
}

/* ---------- Error 404 ---------- */
.error-404 {
    text-align: center;
    padding: 4rem 1rem;
}

.error-404 h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-404__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
    .hero { padding: 6rem 0; }
    .hero__title { font-size: 3rem; }
    .two-col { grid-template-columns: 1fr 1fr; }
    h1 { font-size: 2.25rem; }
}

@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: block;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--color-surface);
        border-bottom: 1px solid var(--color-border);
        flex-direction: column;
        padding: 1rem 1.25rem;
        box-shadow: var(--shadow-lg);
    }

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

    .site-nav__list {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .site-nav__list li {
        width: 100%;
    }

    .site-nav__list a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--color-border);
    }

    .site-nav__auth {
        width: 100%;
        flex-direction: column;
        padding-top: 0.75rem;
    }

    .site-nav__auth .btn {
        width: 100%;
        text-align: center;
    }
}
