/* ============================================
   KHRC — Atchison Housing Authority
   Hand-crafted. No template bullshit.
   ============================================ */

:root {
    --forest: #1a3c2a;
    --forest-deep: #0f2418;
    --forest-mid: #2a5a3e;
    --sage: #6b8f71;
    --sage-light: #a8c5ad;
    --sage-mist: #dce8de;
    --cream: #f5f0e8;
    --cream-light: #faf8f4;
    --warm: #c8a45c;
    --warm-light: #e8d5a0;
    --warm-glow: #f0e4c4;
    --warm-deep: #7a5a12;
    --copper: #b8734a;
    --text: #2c2c2c;
    --text-light: #5a5a5a;
    --text-muted: #6b6b6b;
    --white: #ffffff;
    --red-soft: #c0392b;
    --green-check: #27ae60;
    --shadow-sm: 0 2px 8px rgba(26,60,42,0.08);
    --shadow-md: 0 8px 30px rgba(26,60,42,0.12);
    --shadow-lg: 0 20px 60px rgba(26,60,42,0.16);
    --shadow-xl: 0 30px 80px rgba(26,60,42,0.2);
    --radius-sm: 0;
    --radius-md: 0;
    --radius-lg: 0;
    --radius-xl: 0;
    --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --font-head: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --gutter: clamp(16px, 3vw, 40px);
    --nav-h: 92px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--cream-light);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.2;
    color: var(--forest);
}

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

/* ====== UTILITY ====== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 0;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn:hover::after { transform: translateX(100%); }

.btn-primary {
    background: var(--forest);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(26,60,42,0.3);
}
.btn-primary:hover {
    background: var(--forest-mid);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(26,60,42,0.4);
}

.btn-warm {
    background: var(--warm);
    color: var(--forest-deep);
    box-shadow: 0 4px 20px rgba(200,164,92,0.3);
}
.btn-warm:hover {
    background: #d4b06a;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(200,164,92,0.4);
}

.btn-outline {
    border: 2px solid var(--forest);
    color: var(--forest);
    background: transparent;
}
.btn-outline:hover {
    background: var(--forest);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 10px 22px; font-size: 0.85rem; }

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--warm-deep);
    margin-bottom: 12px;
}

.hero .section-label,
.page-header .section-label,
.apply-hero .section-label { color: var(--warm-light); }
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    line-height: 1.7;
}

.page-section {
    padding: 80px 24px;
}

.page-section .inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* ====== TOPBAR ====== */
.topbar {
    background: var(--forest-deep);
    color: rgba(255,255,255,0.7);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0;
    position: relative;
    z-index: 1001;
}

.topbar-inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px var(--gutter);
}

.topbar a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}
.topbar a:hover { color: var(--warm-light); }

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.topbar-left i { margin-right: 4px; font-size: 0.75rem; }
.topbar-divider { opacity: 0.3; }

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-right .fab { font-size: 0.9rem; }

.topbar-rent-btn {
    background: var(--warm);
    color: var(--forest-deep) !important;
    padding: 5px 16px;
    border-radius: 0;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
}
.topbar-rent-btn:hover { background: var(--warm-light); }

/* ====== NAVIGATION ====== */
.main-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(26,60,42,0.08);
    transition: var(--transition);
}
.main-nav.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--gutter);
    height: var(--nav-h);
}

.nav-logo img {
    height: 72px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}
.main-nav.scrolled .nav-logo img { height: 64px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 0;
    transition: var(--transition);
    position: relative;
}
.nav-link i { font-size: 0.65rem; margin-left: 4px; transition: var(--transition); }
.nav-link:hover { color: var(--forest); background: var(--sage-mist); }
.nav-link.active {
    color: var(--forest);
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 18px;
    right: 18px;
    height: 3px;
    background: var(--warm);
    border-radius: 0;
}

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: 0;
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
    border: 1px solid rgba(26,60,42,0.06);
}
.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown:hover .nav-link i { transform: rotate(180deg); }
.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
    transition: var(--transition);
}
.dropdown-menu a:hover {
    background: var(--sage-mist);
    color: var(--forest);
    padding-left: 26px;
}

.drawer-brand { display: none; }

/* Mobile nav */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.nav-toggle span {
    width: 26px;
    height: 2.5px;
    background: var(--forest);
    border-radius: 0;
    transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 900px) {
    .topbar-left span:last-of-type,
    .topbar-left a:last-of-type { display: none; }
    
    :root { --nav-h: 76px; }
    .nav-logo img, .main-nav.scrolled .nav-logo img { height: 56px; }
    .drawer-brand { display: block; padding: 0 16px 20px; border-bottom: 1px solid var(--sage-mist); margin-bottom: 4px; }
    .drawer-brand img { height: 64px; width: auto; }
    .nav-toggle { display: flex; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 24px 24px 24px;
        gap: 0;
        box-shadow: var(--shadow-xl);
        transition: var(--transition-slow);
        overflow-y: auto;
        z-index: 999;
    }
    .nav-links { visibility: hidden; }
    .nav-links.open { right: 0; visibility: visible; }
    
    .nav-link {
        padding: 14px 16px;
        font-size: 0.95rem;
        border-radius: 0;
        border-bottom: 1px solid var(--sage-mist);
    }
    .nav-link.active::after { display: none; }
    .nav-link.active { background: var(--sage-mist); }
    
    .nav-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 0 16px;
        display: block;
    }
    .dropdown-menu a { min-height: 44px; display: flex; align-items: center; font-size: 0.95rem; }
    .nav-dropdown .nav-link i { display: none; }
    
    .mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15,36,24,0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    .mobile-overlay.open { opacity: 1; visibility: visible; }
}

/* ====== HERO ====== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--forest-deep);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/city-hero-1920.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    filter: saturate(0.6);
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,36,24,0.9) 0%, rgba(26,60,42,0.7) 40%, rgba(42,90,62,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 24px;
}
.hero-text h1 .accent { color: var(--warm-light); }
.hero-text p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 520px;
}
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.hero-stat {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0;
    padding: 28px 24px;
    text-align: center;
    transition: var(--transition);
}
.hero-stat:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-4px);
}
.hero-stat .stat-num {
    font-family: var(--font-head); font-weight: 700;
    font-size: 2.5rem;
    color: var(--warm-light);
    line-height: 1;
    margin-bottom: 8px;
}
.hero-stat .stat-label {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        padding: 100px 24px 60px;
        gap: 40px;
    }
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .page-section [style*="grid-template-columns: 1fr 1fr"],
    .page-section [style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* ====== LOCATION CARDS ====== */
.locations-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}
.locations-grid .location-card {
    flex: 0 1 calc((100% - 48px) / 3);
    min-width: min(300px, 100%);
}

.location-card {
    display: block;
    color: inherit;
    background: var(--white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(26,60,42,0.06);
}
.location-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.location-card-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}
.location-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}
.location-card:hover .location-card-img img { transform: scale(1.06); }
/* The Atchison sign sits in the upper part of a square photo: aim the crop at the lettering, not the middle of the photo. */
.location-card-img img[src$="atchisonhousingsign.jpg"] { object-position: 50% 8%; }
.location-card-img img[src$="holton-1200.webp"] { object-position: 50% 0; }
.location-card-img .location-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--forest);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.location-card-body {
    padding: 24px;
}
.location-card-body h2,
.location-card-body h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}
.location-card-body p {
    color: var(--text-light);
    font-size: 0.92rem;
    margin-bottom: 16px;
    line-height: 1.6;
}
.location-card-body .card-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--forest);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}
.location-card-body .card-link:hover { gap: 12px; color: var(--forest-mid); }

/* ====== ABOUT / TEAM ====== */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}
.team-grid .team-card { flex: 0 1 320px; min-width: min(260px, 100%); }

.team-card {
    background: var(--white);
    border-radius: 0;
    overflow: hidden;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(26,60,42,0.06);
    padding: 32px 24px;
}
.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.team-card .team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 4px solid var(--sage-mist);
}
.team-card .team-initials {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--forest), var(--sage));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head); font-weight: 700;
    font-size: 1.8rem;
    color: var(--white);
}
.team-card h3,
.team-card h4 { font-size: 1.1rem; margin-bottom: 4px; }
.team-card .team-role {
    font-size: 0.875rem;
    color: var(--warm-deep);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ====== SERVICES ====== */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.services-grid .service-chip { flex: 0 1 calc((100% - 40px) / 3); min-width: min(260px, 100%); }
.service-chip {
    background: var(--white);
    border-radius: 0;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(26,60,42,0.06);
}
.service-chip:hover {
    border-color: var(--sage-light);
    transform: translateX(4px);
}
.service-chip .chip-icon {
    width: 44px;
    height: 44px;
    border-radius: 0;
    background: linear-gradient(135deg, var(--sage-mist), var(--sage-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--forest);
    font-size: 1.1rem;
    flex-shrink: 0;
}
.service-chip span {
    font-weight: 500;
    font-size: 0.95rem;
}

/* ====== BOARD SECTION ====== */
.board-section {
    background: var(--sage-mist);
    border-radius: 0;
    padding: 40px;
    margin-bottom: 24px;
}
@media (max-width: 500px) { .board-section { padding: 24px 18px; } }
.board-section h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.board-section h3 .location-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--warm);
    display: inline-block;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.board-member {
    background: var(--white);
    padding: 16px 18px;
    border-radius: 0;
    border: 1px solid rgba(26,60,42,0.1);
    border-left: 3px solid var(--warm);
    font-size: 1rem;
    font-weight: 700;
    color: var(--forest);
    line-height: 1.35;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    overflow-wrap: anywhere;
}
.board-member .role {
    display: block;
    color: var(--warm-deep);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: none;
    letter-spacing: 0;
}

/* ====== FAQ ====== */
.faq-wrap { max-width: 920px; }
.faq-tools { margin-bottom: 28px; }
.faq-search { position: relative; }
.faq-search i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--sage); pointer-events: none; }
.faq-search input {
    width: 100%; padding: 16px 18px 16px 48px; font-size: 1rem;
    background: var(--white); border: 1.5px solid rgba(26,60,42,0.18); border-radius: 0; color: var(--text);
}
.faq-search input:focus { border-color: var(--forest-mid); }
.faq-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.faq-chip {
    padding: 9px 16px; min-height: 40px; border-radius: 0; font-size: 0.9rem; font-weight: 600;
    background: var(--white); color: var(--forest); border: 1.5px solid rgba(26,60,42,0.18); transition: var(--transition);
}
.faq-chip:hover { border-color: var(--forest-mid); }
.faq-chip.active { background: var(--forest); color: var(--white); border-color: var(--forest); }
.faq-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 14px; }
.faq-count { font-size: 0.9rem; color: var(--text-muted); margin: 0; }
.faq-allbtns { display: flex; gap: 6px; }
.faq-link-btn { color: var(--forest); font-weight: 600; font-size: 0.9rem; text-decoration: underline; padding: 10px 8px; min-height: 40px; }
.faq-link-btn:hover { color: var(--forest-mid); }
.faq-group { margin-bottom: 32px; }
.faq-group[hidden], .faq-item[hidden], .faq-empty[hidden] { display: none; }
.faq-group-title { font-size: 1.15rem; font-family: var(--font-body); font-weight: 700; color: var(--warm-deep); margin: 0 0 12px; }
.faq-item {
    background: var(--white); border: 1px solid rgba(26,60,42,0.12); border-radius: 0;
    margin-bottom: 10px; transition: background 0.2s ease, border-color 0.2s ease; scroll-margin-top: 90px;
}
.faq-item:hover { border-color: rgba(26,60,42,0.3); }
.faq-item.open { background: var(--cream-light); border-color: var(--sage); }
.faq-heading { margin: 0; font-family: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; }
.faq-question {
    width: 100%; text-align: left; padding: 18px 20px; min-height: 60px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    font-size: 1.05rem; font-weight: 600; line-height: 1.4; color: var(--forest);
}
.faq-question:focus-visible { outline-offset: -3px; border-radius: 0; }
.faq-icon { position: relative; width: 24px; height: 24px; flex-shrink: 0; }
.faq-icon::before, .faq-icon::after {
    content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px;
    background: var(--forest); border-radius: 0; transition: transform 0.25s ease, opacity 0.25s ease;
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item.open .faq-icon::after { transform: rotate(0); opacity: 0; }
.faq-answer { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.3s ease, visibility 0.3s; }
.faq-item.open .faq-answer { grid-template-rows: 1fr; visibility: visible; }
.faq-answer-clip { overflow: hidden; min-height: 0; }
.faq-answer-inner { padding: 0 20px 22px; color: var(--text-light); line-height: 1.75; font-size: 0.98rem; max-width: 70ch; }
.faq-answer-inner ul { padding-left: 1.3em; margin: 0.6em 0; }
.faq-answer-inner li { margin: 0.35em 0; }
.faq-answer-inner a { color: var(--forest); font-weight: 600; text-decoration: underline; }
.faq-answer-inner ul.faq-links {
    list-style: none; padding: 0; margin: 14px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
.faq-answer-inner ul.faq-links li { margin: 0; }
.faq-answer-inner ul.faq-links a {
    display: block; padding: 12px 14px; background: var(--white); border: 1px solid rgba(26,60,42,0.14);
    border-left: 3px solid var(--warm); border-radius: 0; text-decoration: none;
}
.faq-answer-inner ul.faq-links a:hover { border-color: var(--forest-mid); border-left-color: var(--warm); }
.faq-empty { padding: 24px; text-align: center; color: var(--text-light); background: var(--white); border-radius: 0; }
.faq-empty a { color: var(--forest); font-weight: 600; text-decoration: underline; }
@media (max-width: 500px) {
    .faq-answer-inner ul.faq-links { grid-template-columns: 1fr; }
    .faq-question { padding: 16px; }
    .faq-answer-inner { padding: 0 16px 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .faq-answer, .faq-icon::before, .faq-icon::after { transition: none; }
}

/* ====== CONTACT ====== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}
@media (max-width: 768px ) {
    .contact-grid { grid-template-columns: 1fr; }
    .loc-detail-grid { grid-template-columns: 1fr !important; }
}

.contact-form-wrap {
    background: var(--white);
    border-radius: 0;
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(26,60,42,0.06);
}

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--sage-mist);
    border-radius: 0;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--cream-light);
    transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--forest);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(26,60,42,0.08);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
}

.contact-info-block {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-top: 12px;
}
.contact-info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.contact-info-item .ci-icon {
    width: 52px;
    height: 52px;
    border-radius: 0;
    background: linear-gradient(135deg, var(--forest), var(--forest-mid));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    flex-shrink: 0;
}
.contact-info-item h3,
.contact-info-item h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}
.contact-info-item p {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.5;
}
.contact-info-item a {
    color: var(--forest);
    font-weight: 600;
    transition: var(--transition);
}
.contact-info-item a:hover { color: var(--forest-mid); }

/* ====== APPLICATION FORM ====== */
.apply-hero {
    background: linear-gradient(135deg, var(--forest-deep) 0%, var(--forest) 50%, var(--forest-mid) 100%);
    padding: 60px 24px;
    text-align: center;
    border-radius: 0;
    margin-bottom: -20px;
    position: relative;
    z-index: 1;
}
.apply-hero h1 { color: var(--white); margin-bottom: 12px; }
.apply-hero p { color: rgba(255,255,255,0.92); font-size: 1.05rem; }

.apply-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.form-section {
    background: var(--white);
    border-radius: 0;
    padding: 40px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(26,60,42,0.06);
}
.form-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--sage-mist);
}
.form-section-header .fs-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--forest);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.form-section-header h2,
.form-section-header h3 {
    font-size: 1.2rem;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 0;
    background: var(--cream-light);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.92rem;
}
.checkbox-item:hover { background: var(--sage-mist); }
.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--forest);
    cursor: pointer;
}

.household-member {
    background: var(--cream-light);
    border-radius: 0;
    padding: 24px;
    margin-bottom: 16px;
    position: relative;
    border: 1px solid var(--sage-mist);
}
.household-member .remove-member {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 0;
    background: var(--red-soft);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: var(--transition);
}
.household-member .remove-member:hover { transform: scale(1.1); }

.landlord-entry {
    background: var(--cream-light);
    border-radius: 0;
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid var(--sage-mist);
}

.add-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px dashed var(--sage-light);
    border-radius: 0;
    color: var(--forest);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    background: transparent;
    cursor: pointer;
}
.add-btn:hover {
    border-color: var(--forest);
    background: var(--sage-mist);
}

/* Progress bar */
.apply-progress {
    position: sticky;
    top: var(--nav-h);
    z-index: 50;
    background: var(--white);
    padding: 16px 24px;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--sage-mist);
}
.progress-bar {
    max-width: 800px;
    margin: 0 auto;
}
.progress-track {
    height: 6px;
    background: var(--sage-mist);
    border-radius: 0;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--forest), var(--warm));
    border-radius: 0;
    transition: width 0.5s ease;
    width: 0%;
}
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.progress-steps span.active { color: var(--forest); }

/* ====== GALLERY ====== */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}
.gallery-grid .gallery-item { flex: 0 1 calc((100% - 48px) / 4); min-width: min(220px, 100%); width: auto; }
.gallery-item {
    display: block;
    width: 100%;
    padding: 0;
    color: inherit;
    text-align: left;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4 / 3;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
}
.gallery-item:hover::after { opacity: 1; }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 0;
    box-shadow: var(--shadow-xl);
}
.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 0;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 0;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.92);
    font-size: 0.9rem;
    font-family: var(--font-body);
}

/* ====== PAGE HEADER (location pages etc) ====== */
.page-header {
    background: linear-gradient(135deg, var(--forest-deep) 0%, var(--forest) 60%, var(--forest-mid) 100%);
    padding: 100px 24px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(200,164,92,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.page-header h1 {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 12px;
}
.page-header p {
    color: rgba(255,255,255,0.92);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}
.page-header .breadcrumb {
    margin-top: 16px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.88);
}
.page-header .breadcrumb a {
    color: rgba(255,255,255,0.92);
    transition: var(--transition);
}
.page-header .breadcrumb a:hover { color: var(--white); text-decoration: underline; }

/* ====== CTA BANNER ====== */
.cta-banner {
    background: linear-gradient(135deg, var(--forest) 0%, var(--forest-mid) 100%);
    border-radius: 0;
    padding: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -20%;
    width: 50%;
    height: 180%;
    background: radial-gradient(ellipse, rgba(200,164,92,0.1) 0%, transparent 60%);
}
.cta-banner h2 {
    color: var(--white);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin-bottom: 16px;
    position: relative;
}
.cta-banner p {
    color: rgba(255,255,255,0.92);
    font-size: 1.05rem;
    margin-bottom: 32px;
    position: relative;
}
.cta-banner .btn { position: relative; }

/* ====== FEATURES ROW ====== */
.features-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: -40px;
    position: relative;
    z-index: 2;
}
@media (max-width: 768px) {
    .features-row { grid-template-columns: 1fr; margin-top: 0; }
}
.feature-card {
    background: var(--white);
    border-radius: 0;
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(26,60,42,0.06);
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.feature-card .feat-icon {
    width: 64px;
    height: 64px;
    border-radius: 0;
    background: linear-gradient(135deg, var(--sage-mist), var(--sage-light));
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--forest);
}
.feature-card h2,
.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}
.feature-card p {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ====== ADMIN ====== */
.admin-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,36,24,0.7);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.admin-login-card {
    background: var(--white);
    border-radius: 0;
    padding: 48px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-xl);
    text-align: center;
    position: relative;
}
.admin-close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 1.8rem;
    color: var(--text-muted);
    transition: var(--transition);
}
.admin-close:hover { color: var(--text); }
.admin-login-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--forest), var(--forest-mid));
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
}
.admin-login-card h2 {
    font-size: 1.5rem;
    margin-bottom: 6px;
}
.admin-login-card > p {
    color: var(--text-muted);
    margin-bottom: 28px;
    font-size: 0.92rem;
}
.admin-login-card form { text-align: left; }
.admin-login-card input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--sage-mist);
    border-radius: 0;
    font-size: 0.95rem;
    margin-bottom: 14px;
    transition: var(--transition);
    transition: var(--transition);
    background: var(--cream-light);
}
.admin-login-card input:focus {
    border-color: var(--forest);
    background: var(--white);
}
.admin-error {
    color: var(--red-soft);
    font-size: 0.85rem;
    margin-top: 12px;
    min-height: 1.2em;
}

/* Admin Dashboard */
.admin-bar {
    background: var(--forest-deep);
    color: var(--white);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    position: sticky;
    top: var(--nav-h);
    z-index: 100;
}
.admin-bar .admin-user {
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-bar .admin-user i {
    color: var(--warm);
}
.admin-bar button {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 0;
    font-size: 0.82rem;
    font-weight: 600;
    transition: var(--transition);
}
.admin-bar button:hover {
    background: rgba(255,255,255,0.2);
}

.admin-tabs {
    display: flex;
    gap: 4px;
    padding: 16px 24px;
    background: var(--white);
    border-bottom: 1px solid var(--sage-mist);
    flex-wrap: wrap;
}
.admin-tab {
    padding: 10px 20px;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition);
    cursor: pointer;
}
.admin-tab:hover { background: var(--sage-mist); color: var(--forest); }
.admin-tab.active {
    background: var(--forest);
    color: var(--white);
}

.admin-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-top: 16px;
}
.data-table th {
    background: var(--forest);
    color: var(--white);
    padding: 14px 18px;
    text-align: left;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}
.data-table th:hover { background: var(--forest-mid); }
.data-table th i { margin-left: 6px; font-size: 0.7rem; }
.data-table td {
    padding: 14px 18px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--sage-mist);
    color: var(--text);
}
.data-table tbody tr:hover { background: var(--cream-light); }
.data-table .status-badge {
    padding: 4px 12px;
    border-radius: 0;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.status-new { background: #e8f5e9; color: #2e7d32; }
.status-reviewed { background: #e3f2fd; color: #1565c0; }
.status-approved { background: #f3e5f5; color: #7b1fa2; }
.status-denied { background: #fce4ec; color: #c62828; }

.admin-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.admin-filters select,
.admin-filters input {
    padding: 10px 16px;
    border: 2px solid var(--sage-mist);
    border-radius: 0;
    font-size: 0.88rem;
    background: var(--white);
    transition: var(--transition);
}
.admin-filters select:focus,
.admin-filters input:focus {
    border-color: var(--forest);
}

/* Property photos admin */
.photo-upload-zone {
    border: 2px dashed var(--sage-light);
    border-radius: 0;
    padding: 48px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    margin-bottom: 24px;
}
.photo-upload-zone:hover,
.photo-upload-zone.dragover {
    border-color: var(--forest);
    background: var(--sage-mist);
}
.photo-upload-zone i {
    font-size: 2.5rem;
    color: var(--sage);
    margin-bottom: 12px;
}
.photo-upload-zone p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.admin-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.admin-photo-item {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    aspect-ratio: 4/3;
}
.admin-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.admin-photo-item .photo-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 0;
    background: var(--red-soft);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    opacity: 0;
    transition: var(--transition);
}
.admin-photo-item:hover .photo-delete { opacity: 1; }

/* ====== FOOTER ====== */
.site-footer {
    position: relative;
    margin-top: 80px;
}
.footer-wave {
    position: relative;
    height: 80px;
    overflow: hidden;
}
.footer-wave svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
}
.footer-body {
    background: var(--forest);
    padding: 60px var(--gutter) 0;
}
.footer-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 40px;
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-col h4 {
    color: var(--warm-light);
    font-size: 0.9rem;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}
.footer-col a {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    padding: 4px 0;
    transition: var(--transition);
}
.footer-col a:hover {
    color: var(--white);
    padding-left: 4px;
}
.footer-col p {
    color: rgba(255,255,255,0.55);
    font-size: 0.9rem;
    line-height: 1.6;
}
.footer-col p i {
    color: var(--warm);
    margin-right: 8px;
    width: 16px;
}

.footer-brand p { margin-top: 16px; }
/* The logo art is dark on an opaque light field, so it needs a light chip on the
   dark footer. Inverting it turned the whole plate into a white block. */
.footer-logo {
    height: 100px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    background: var(--white);
    padding: 10px 16px;
    border-radius: 0;
}
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 0;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.9rem;
    transition: var(--transition);
    padding: 0;
}
.footer-social a:hover {
    background: var(--warm);
    color: var(--forest-deep);
    padding: 0;
}

.footer-contact-col p { margin-bottom: 10px; }
.footer-contact-col a {
    display: inline;
    padding: 0;
}
.footer-contact-col a:hover { padding: 0; color: var(--warm-light); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 48px;
    padding: 24px 0;
}
.footer-bottom-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-eho {
    height: 50px;
    width: auto;
    object-fit: contain;
    border-radius: 0;
    background: var(--white);
    padding: 4px;
}
.footer-bottom p {
    color: rgba(255,255,255,0.72);
    font-size: 0.82rem;
}
.footer-credit a {
    display: inline;
    color: var(--warm);
    padding: 0;
}
.footer-credit a:hover { color: var(--warm-light); padding: 0; }

/* ====== ALERT / SUCCESS MESSAGES ====== */
.alert {
    padding: 16px 20px;
    border-radius: 0;
    font-size: 0.92rem;
    font-weight: 500;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}
.alert-error {
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #f8bbd0;
}

/* ====== ANIMATIONS ====== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.animate-in {
    opacity: 1;
    animation: fadeInUp 0.6s ease both;
}
.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.2s; }
.animate-in:nth-child(4) { animation-delay: 0.3s; }
.animate-in:nth-child(5) { animation-delay: 0.4s; }

/* ====== PRINT ====== */
@media print {
    .topbar, .main-nav, .site-footer, .admin-bar, .admin-tabs,
    .admin-filters, .btn, .admin-overlay { display: none !important; }
    body { background: white; }
    .data-table { box-shadow: none; }
    .data-table th { background: #333; -webkit-print-color-adjust: exact; }
}

/* ====== LOADING SPINNER ====== */
.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--sage-mist);
    border-top-color: var(--forest);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ====== TOAST ====== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 4000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toast {
    background: var(--forest-deep);
    color: var(--white);
    padding: 16px 24px;
    border-radius: 0;
    box-shadow: var(--shadow-lg);
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.3s ease;
    min-width: 280px;
}
.toast.success { border-left: 4px solid var(--green-check); }
.toast.error { border-left: 4px solid var(--red-soft); }
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.topbar-inner { flex-wrap: wrap; gap: 8px; }
.footer-col .footer-heading {
    color: var(--warm-light);
    font-size: 0.9rem;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    font-weight: 700;
}
.footer-legal a {
    display: inline;
    color: var(--warm);
    margin-right: 14px;
    padding: 0;
}
.footer-legal a:hover { color: var(--warm-light); padding: 0; }
.skip-link {
    position: fixed;
    left: 12px;
    top: -48px;
    z-index: 10000;
    background: var(--warm);
    color: var(--forest-deep);
    padding: 8px 14px;
    font-weight: 700;
}
.skip-link:focus { top: 8px; }
.hp-field {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.nav-link:focus-visible {
    outline: 2px solid var(--warm);
    outline-offset: 3px;
}
.admin-login-card label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}
.legal-main {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}
.legal-main h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
.legal-main h2 { font-size: 1.45rem; margin: 1.6em 0 0.4em; }
.legal-main h3 { font-size: 1.15rem; margin: 1.2em 0 0.4em; }
.legal-lead { color: var(--text-light); font-size: 1.05rem; margin-bottom: 8px; }
.legal-main p, .legal-main li { color: var(--text); margin: 0.55em 0; }
.legal-main a:not(.btn) { color: var(--forest); text-decoration: underline; }
.legal-main ul { padding-left: 1.2em; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Drawer fix (Claude 2026-09-22): the closed .nav-links drawer sits at right:-100% (position:fixed)
   and Chrome/iOS count it in the page's horizontal overflow, so phones could pan 376px sideways.
   clip on BOTH html and body: clip is not a scroll container, so the sticky .main-nav keeps working
   (body's old overflow-x:hidden would otherwise stop propagating and turn body into one). */
@media (max-width: 900px) {
    html, body { overflow-x: clip; }
}

/* chrome.js injects the top bar + main nav into #site-header. That wrapper is only as tall as its
   contents, so the sticky nav had no room to travel and scrolled away. With display: contents the
   wrapper vanishes from layout: the top bar scrolls off and the nav pins (2026-09-29). */
#site-header { display: contents; }

/* ===== 2026-10-04 perfection pass ===== */
.dropdown-menu a { padding-top: 12px; padding-bottom: 12px; }
.nav-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
@media (max-width: 900px) {
    .nav-dropdown:focus-within .dropdown-menu { transform: none; }
}

/* Focus rings: dark green on light areas, gold on dark areas (3:1 against the background either way) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.nav-link:focus-visible {
    outline: 3px solid var(--forest-mid);
    outline-offset: 3px;
}
.topbar a:focus-visible,
.site-footer a:focus-visible,
.site-footer button:focus-visible,
.hero a:focus-visible,
.page-header a:focus-visible,
.apply-hero a:focus-visible,
.cta-banner a:focus-visible,
.lightbox button:focus-visible,
.skip-link:focus-visible {
    outline: 3px solid var(--warm-light);
    outline-offset: 3px;
}

/* FAQ: headings wrap the buttons; closed answers are hidden from keyboard and screen readers */

/* People */
.person-email { margin-top: 12px; font-size: 0.9rem; }
.person-email a, .member-email { color: var(--forest); font-weight: 600; text-decoration: underline; }
.member-email { display: inline-block; font-size: 0.875rem; font-weight: 600; margin-top: 6px; align-self: flex-start; }
.board-label { font-weight: 700; color: var(--forest); margin: 0 0 12px; font-size: 1.05rem; font-family: var(--font-body); line-height: 1.3; }
.board-label small { display: block; margin-top: 3px; font-size: 0.85rem; font-weight: 500; color: var(--text-light); }
.board-group { margin-bottom: 28px; }
.board-group:last-child { margin-bottom: 0; }

/* Contact page offices */
.office-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.office-card { flex: 0 1 calc((100% - 40px) / 3); min-width: min(280px, 100%); background: var(--white); border-radius: 0; padding: 24px; box-shadow: var(--shadow-sm); border: 1px solid rgba(26,60,42,0.06); }
.office-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.office-card h3 a { color: var(--forest); }
.office-card p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 10px; }
.office-card a { color: var(--forest); text-decoration: underline; }

/* Apply page: paper applications */
.paper-box { background: var(--white); border-radius: 0; padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--sage-mist); margin-bottom: 24px; }
.paper-box h2 { font-size: 1.35rem; margin-bottom: 12px; }
.paper-box p, .paper-box li { color: var(--text-light); line-height: 1.7; margin-bottom: 12px; }
.paper-box a:not(.btn) { color: var(--forest); text-decoration: underline; font-weight: 600; }
.paper-box h2 + p, .paper-box ul + h2, .paper-box p + h2 { margin-top: 0; }
.paper-box .paper-box-spacer { height: 8px; }
.paper-box-note h2:not(:first-child) { margin-top: 24px; }
.paper-list { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 16px; }
.paper-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0; }
.paper-list .btn { min-height: 48px; }
.paper-box-note ul { padding-left: 1.2em; }
.file-meta { color: var(--text-light); font-size: 0.9rem; }
/* Apply page: local offices (paper PDFs taken off 2026-12-05) */
.office-list { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.office-list .office-item { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 14px 16px; border: 1px solid var(--sage-mist); border-left: 4px solid var(--forest); border-radius: 0; background: var(--white); }
.paper-box .office-list a.office-name { font-size: 1.1rem; font-weight: 700; color: var(--forest); }
.paper-box .office-list a.office-phone { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.office-list .office-address { color: var(--text-light); font-size: 0.95rem; line-height: 1.5; }

/* Form status line */
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 0; font-weight: 600; }
.form-status-success { background: #e6f3ea; color: #174a2a; border: 1px solid #9cc7aa; }
.form-status-error { background: #fdecea; color: #8c1d13; border: 1px solid #e3a39d; }
.form-status:empty { display: none; }

/* Location card without a photo */
.location-card-logo { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--sage-mist); }
.location-card-logo img { width: auto; height: 60%; max-width: 70%; object-fit: contain; }
.location-card-img img { background: var(--sage-mist); }

/* Footer */
.footer-eho-wrap { display: inline-flex; align-items: center; gap: 12px; }
.footer-eho-text { color: rgba(255,255,255,0.85); font-size: 0.875rem; font-weight: 600; }
.footer-col a { min-height: 24px; }
.topbar-social { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; }

/* Phone: nothing under 14px, taps at least 44px */
@media (max-width: 768px) {
    .topbar { font-size: 0.875rem; }
    .topbar a { display: inline-flex; align-items: center; min-height: 44px; }
    .topbar-social { min-width: 44px; min-height: 44px; }
    .topbar-rent-btn { font-size: 0.875rem; padding: 0 16px; }
    .section-label { font-size: 0.875rem; }
    .hero-stat .stat-label { font-size: 0.875rem; }
    .location-badge { font-size: 0.875rem !important; }
    .footer-col a { display: inline-block; padding: 10px 0; min-height: 44px; }
    .footer-legal a { display: inline-flex; align-items: center; min-height: 44px; }
    .footer-credit a { display: inline-flex; align-items: center; min-height: 44px; }
    .footer-social a { min-width: 44px; min-height: 44px; }
    .nav-toggle { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
    .btn { min-height: 44px; }
    .person-email a, .member-email { display: inline-flex; align-items: center; min-height: 44px; }
    .gallery-grid .gallery-item { flex-basis: calc((100% - 16px) / 2); }
    .gallery-grid .gallery-item { min-width: 0; }
    .office-card, .locations-grid .location-card, .services-grid .service-chip { flex-basis: 100%; }
}

/* Minimum text size 14px everywhere (the earlier sizes were 12 to 13.6px) */
.topbar, .topbar a, .topbar-rent-btn,
.section-label, .hero-stat .stat-label, .location-badge,
.location-card-body .card-link,
.page-header .breadcrumb, .page-header .breadcrumb a,
.footer-bottom p, .footer-legal a, .footer-credit a,
.form-group label, .checkbox-item, .form-group label span[style],
.apply-progress .progress-steps span { font-size: 0.875rem !important; }
.page-header .breadcrumb a { display: inline-block; padding: 12px 4px; margin: -12px 0; }
.checkbox-item { min-height: 44px; }
.checkbox-item input[type="checkbox"] { flex: 0 0 22px; width: 22px; height: 22px; }
.skip-link { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 768px) {
    .contact-info-item p a, .office-card p a { display: inline-block; padding: 10px 0; min-height: 44px; line-height: 24px; }
    .footer-col a, .footer-legal a, .footer-credit a { min-width: 44px; justify-content: center; }
    .footer-legal { display: flex; flex-wrap: wrap; gap: 0 6px; }
    .footer-legal a { margin-right: 0; padding: 0 8px; }
}
.office-card h3 a { display: inline-block; padding: 11px 0; }

/* ===== pass 2: hero, gaps, footer links, gallery placeholder ===== */
.hero { min-height: 0; }
.hero-content { padding: 64px 24px 104px; }
@media (max-width: 768px) { .hero-content { padding: 48px 24px 56px; } }
.hero-stat { background: rgba(15,36,24,0.66); border: 1px solid rgba(255,255,255,0.2); }
.hero-stat:hover { background: rgba(15,36,24,0.74); }
.hero-stat .stat-label { color: rgba(255,255,255,0.92); }
.hero-text p { color: rgba(255,255,255,0.92); }

.page-section:has(.cta-banner) { padding-bottom: 24px; }
.site-footer { margin-top: 0; }

.gallery-item { background: var(--sage-light); }
.paper-plain { padding-left: 1.2em; margin: 8px 0 14px; }
.paper-plain li { margin-bottom: 6px; }

@media (max-width: 768px) {
    .footer-col a { display: flex; align-items: center; min-height: 44px; padding: 4px 0; }
    .footer-col .footer-social a { display: flex; width: 44px; height: 44px; padding: 0; justify-content: center; }
    .footer-social { gap: 12px; }
}
.office-card h3 a { min-width: 44px; }

@media (max-width: 768px) {
    .footer-col a { justify-content: flex-start; }
    .footer-col.footer-contact-col p { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
    .footer-col.footer-contact-col p a { min-height: 44px; }
    .footer-col.footer-contact-col p i { flex: 0 0 auto; }
}

/* Site-wide notice (from khrc_settings via js/settings.js). Only exists when staff turn it on. */
.site-notice { background: #fff4d6; color: #1a1a1a; border-bottom: 3px solid var(--warm); border-radius: 0; padding: 10px var(--gutter, 20px); text-align: center; font-weight: 600; line-height: 1.4; }
.site-notice p { margin: 0 auto; max-width: 1100px; overflow-wrap: anywhere; white-space: pre-line; text-wrap: balance; }

/* Optional photo on a staff / board card */
.board-member .member-photo { display: block; width: 64px; height: 64px; object-fit: cover; border-radius: 0; margin-bottom: 8px; background: var(--sage-mist); }

/* ===== 2026-12-02: footer bottom row = copyright left, legal links center, credit right; Equal Housing mark sits in the brand column above the divider ===== */
.footer-brand .footer-eho-wrap { display: flex; margin-top: 22px; }
.footer-bottom-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.footer-bottom-inner > p:first-of-type { justify-self: start; }
.footer-bottom-inner .footer-legal { justify-self: center; text-align: center; }
.footer-bottom-inner .footer-legal a { margin: 0 9px; }
.footer-bottom-inner .footer-credit { justify-self: end; text-align: right; }
@media (max-width: 900px) {
    .footer-bottom-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 8px; }
    .footer-bottom-inner > p:first-of-type, .footer-bottom-inner .footer-credit { justify-self: center; text-align: center; }
    .footer-bottom-inner .footer-legal { justify-content: center; }
    .footer-bottom-inner .footer-legal a { margin: 0; }
}

/* ===== 2026-12-02: email links sit on the bottom edge of every team, staff and board card, so they line up across a row ===== */
.team-grid { align-items: stretch; }
.team-card { display: flex; flex-direction: column; }
.team-card .person-email { margin-top: auto; padding-top: 12px; }
.board-grid { align-items: stretch; }
.board-member { display: flex; flex-direction: column; }
.board-member .member-email { margin-top: auto; padding-top: 6px; }

/* ===== 2026-12-02: About > Staff and Boards runs the full window width so five people fit on one row ===== */
#staff .inner { max-width: none; }
@media (min-width: 1200px) {
    #staff .board-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ===== 2026-12-02: home hero has no stat tiles (removed per Eddie); text takes one column ===== */
.hero-content { grid-template-columns: 1fr; width: 100%; }
.hero-text { max-width: 760px; margin-left: 0; margin-right: auto; justify-self: start; }

/* Online application form (drawn from the saved question set by js/application.js) */
.form-group label .req { color: var(--red-soft); }
.field-help { font-weight: 400; font-size: 0.8rem; text-transform: none; letter-spacing: 0; color: var(--text-muted); }
.field-error { color: #9b2c1f; font-size: 0.9rem; font-weight: 600; margin-top: 4px; }
.field-error:empty { display: none; }
.form-group.has-error input, .form-group.has-error select, .form-group.has-error textarea { border-color: #9b2c1f; outline: 2px solid #9b2c1f; }
.app-statement p { font-size: 0.9rem; color: var(--text-light); line-height: 1.8; background: var(--cream-light); border-radius: 0; padding: 24px; border: 1px solid var(--sage-mist); white-space: pre-wrap; }
.app-signature { font-style: italic; font-family: var(--font-head); font-size: 1.2rem; }
.app-agree { display: flex; align-items: center; gap: 10px; text-transform: none; letter-spacing: 0; font-size: 0.95rem; }
.app-agree input { width: 22px; height: 22px; accent-color: var(--forest); }
.section-help, .app-intro { color: var(--text-light); margin-bottom: 20px; font-size: 0.92rem; white-space: pre-wrap; }
.group-title { font-weight: 600; margin-bottom: 8px; }
.app-chooser-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.app-chooser-btns .btn[aria-pressed="true"] { background: var(--forest-deep); outline: 3px solid var(--warm); outline-offset: 2px; }
.form-group .checkbox-item { display: flex; align-items: center; gap: 10px; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 0.92rem; margin: 0; }
.form-group .app-agree { margin: 0; }
.app-ssn-note { background: #fff4d6; color: #1a1a1a; border-left: 5px solid var(--warm); border-radius: 0; padding: 12px 16px; margin: 0 0 20px; font-weight: 600; }

/* Facebook links (Eddie 12-02): larger mark with a word beside it, square tile in the footer */
.topbar-social { gap: 7px; font-weight: 600; }
.topbar-right .topbar-social .fab { font-size: 1.15rem; }
@media (max-width: 520px) { .topbar-social-label { display: none; } }
.footer-col .footer-social a.footer-fb {
    width: auto; height: auto; min-height: 44px; padding: 0; gap: 12px;
    background: none; color: var(--white);
    font-size: 0.95rem; font-weight: 600; text-decoration: none; justify-content: flex-start;
}
.footer-fb .fb-tile {
    width: 44px; height: 44px; flex: 0 0 44px;
    display: flex; align-items: center; justify-content: center;
    background: var(--warm); color: var(--forest-deep);
    font-size: 1.45rem; transition: var(--transition);
}
.footer-col .footer-social a.footer-fb:hover { background: none; color: var(--warm-light); padding: 0; }
.footer-fb:hover .fb-tile { background: var(--white); }

/* Visit counting notice (js/analytics.js). Bottom left, kept clear of the eG Access button at bottom right and of the toasts. */
.ga-notice {
    position: fixed; left: 16px; bottom: 16px; z-index: 3500;
    max-width: 420px; width: calc(100% - 112px);
    background: var(--forest-deep); color: var(--white); border-top: 4px solid var(--warm);
    padding: 14px 16px; box-shadow: var(--shadow-md);
    font-family: var(--font-body); font-size: 0.9rem; line-height: 1.5; border-radius: 0;
}
.ga-notice p { margin: 0 0 10px; color: var(--white); }
.ga-notice a { color: var(--warm-light); text-decoration: underline; }
.ga-notice-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ga-notice button {
    font: inherit; font-weight: 600; min-height: 40px; padding: 6px 18px; cursor: pointer; border-radius: 0;
    border: 2px solid var(--warm); background: var(--warm); color: var(--forest-deep);
}
.ga-notice button.ga-notice-decline { background: transparent; color: var(--white); border-color: var(--white); }
.ga-notice button:hover { background: var(--warm-light); border-color: var(--warm-light); color: var(--forest-deep); }
.ga-notice button:focus-visible, .ga-notice a:focus-visible { outline: 3px solid var(--warm-light); outline-offset: 2px; }
@media (max-width: 520px) { .ga-notice { left: 8px; bottom: 8px; width: calc(100% - 92px); font-size: 0.85rem; padding: 12px; } }
@media print { .ga-notice { display: none; } }
