/* ===================================
   WILSONDALE APARTMENTS - GLOBAL STYLES
   Brand: Maroon primary, slate secondary, olive tertiary (aligned with moderndale.svg)
   =================================== */

:root {
    /* --- Semantic palette --- */
    --color-accent-maroon: #7E2228;
    --color-accent-maroon-hover: #6B1D22;
    --color-accent-maroon-muted: rgba(126, 34, 40, 0.12);
    --color-accent-slate: #7690A8;
    --color-accent-olive: #9DA774;

    /* Legacy name: slate blue (used throughout as chrome / secondary UI) */
    --color-oak-teal: var(--color-accent-slate);
    --color-sage: var(--color-accent-olive);

    /* Primary CTA = maroon */
    --color-btn-primary: var(--color-accent-maroon);
    --color-btn-primary-hover: var(--color-accent-maroon-hover);
    /* Secondary outline / ghost buttons = slate */
    --color-btn-secondary-border: var(--color-accent-slate);
    --color-btn-secondary-hover-bg: rgba(118, 144, 168, 0.18);

    --color-charcoal: #2C3338;
    --color-warm-cream: #F9F8F5;
    --color-surface-white: #FFFFFF;
    --color-bg-page: #FFFFFF;
    --color-bg-muted: #F4F6F8;

    /* --- Legacy aliases (existing pages reference these) --- */
    --color-primary-navy: var(--color-charcoal);
    --color-accent-lime: var(--color-accent-slate);
    --color-accent-sky: var(--color-accent-olive);
    --color-text-cream: var(--color-warm-cream);
    --color-text-body: var(--color-charcoal);
    --color-bg-white: var(--color-bg-page);
    --color-bg-light: var(--color-bg-muted);
    --color-primary-black: var(--color-charcoal);
    --color-primary-white: var(--color-surface-white);
    --color-accent-teal: var(--color-accent-slate);
    --color-dark-grey: var(--color-charcoal);
    --color-overlay: rgba(44, 51, 56, 0.55);
    --color-slate-rgb: 118, 144, 168;

    /* Typography: Merriweather headings; Open Sans body */
    --font-heading-serif: 'Merriweather', Georgia, 'Times New Roman', serif;
    --font-body: 'Open Sans', system-ui, sans-serif;
    --font-header: var(--font-heading-serif);

    --radius-button: 12px;
    --radius-card: 14px;
    --radius-pill: 999px;

    --shadow-soft: 0 4px 28px rgba(44, 51, 56, 0.06);
    --shadow-card: 0 2px 20px rgba(44, 51, 56, 0.04);
    --shadow-nav-cta: 0 2px 14px rgba(126, 34, 40, 0.18);

    /* Glass header */
    --header-glass-bg: rgba(255, 255, 255, 0.78);
    --header-glass-bg-fallback: rgba(255, 255, 255, 0.96);
    --header-blur: 20px;
    --header-border: rgba(118, 144, 168, 0.12);
    --header-highlight: rgba(255, 255, 255, 0.55);

    --container-width: 1200px;
    --header-height: 80px;
    --spacing-unit: 22px;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */

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

body {
    margin: 0;
    padding: 0;
    background-color: #FAFBFC;
    font-family: var(--font-body);
    color: var(--color-text-body);
    line-height: 1.65;
    padding-top: 0; /* Default padding */
    transition: padding-top 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Add padding to body when banner is active to push content down */
body.banner-active {
    padding-top: 60px; /* Adjust based on banner height */
}

html {
    scroll-behavior: smooth;
}

/* ===================================
   TYPOGRAPHY
   =================================== */

h1, h2, h3 {
    font-family: var(--font-heading-serif);
    text-transform: none;
    letter-spacing: 0.01em;
    font-weight: 700;
    line-height: 1.22;
    color: var(--color-accent-maroon);
}

h4, h5, h6 {
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: 0.02em;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-charcoal);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* ===================================
   HEADER & NAVIGATION (glassmorphism)
   =================================== */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    background: var(--header-glass-bg);
    -webkit-backdrop-filter: blur(var(--header-blur)) saturate(1.12);
    backdrop-filter: blur(var(--header-blur)) saturate(1.12);
    border-bottom: 1px solid var(--header-border);
    box-shadow:
        0 1px 0 var(--header-highlight) inset,
        var(--shadow-soft);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    header {
        background: var(--header-glass-bg-fallback);
    }
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px clamp(1.25rem, 4vw, 2.5rem);
    flex-wrap: wrap;
    gap: 10px;
}

.logo-text {
    color: var(--color-charcoal);
    font-family: var(--font-heading-serif);
    font-size: 1.05rem;
    text-transform: none;
    letter-spacing: 0.03em;
    text-decoration: none;
    font-weight: 700;
    max-width: 280px;
    line-height: 1.3;
}

/* Header logo link — no background box; mark sits on cream bar */
a.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
    flex-shrink: 0;
}

a.logo-link:focus-visible {
    outline: 3px solid var(--color-accent-slate);
    outline-offset: 2px;
}

.site-logo-img {
    height: 52px;
    width: auto;
    max-width: min(320px, 58vw);
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: flex-end;
}

nav ul li a {
    color: rgba(44, 51, 56, 0.88);
    font-family: var(--font-body);
    text-transform: none;
    font-size: 14px;
    letter-spacing: 0.01em;
    padding: 8px 10px;
    display: block;
    transition: color 0.2s ease, background-color 0.2s ease;
    font-weight: 500;
    border-radius: 10px;
}

nav ul li a:hover {
    color: var(--color-accent-maroon);
    background-color: rgba(126, 34, 40, 0.06);
}

nav ul li a[aria-current="page"]:not(.btn-primary) {
    color: var(--color-accent-maroon);
    font-weight: 600;
    background-color: var(--color-accent-maroon-muted);
    box-shadow: none;
}

nav ul li a[aria-current="page"]:not(.btn-primary):hover {
    color: var(--color-accent-maroon-hover);
    background-color: rgba(126, 34, 40, 0.14);
    box-shadow: none;
}

nav ul li a.btn-primary[aria-current="page"] {
    background-color: var(--color-btn-primary-hover);
    color: var(--color-surface-white);
    box-shadow: var(--shadow-nav-cta);
}

nav ul li a.btn-primary[aria-current="page"]:hover {
    background-color: #5a1a1f;
    color: var(--color-surface-white);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(126, 34, 40, 0.32);
}

nav ul li a.btn-apply {
    background-color: var(--color-btn-primary);
    color: var(--color-surface-white);
    padding: 10px 18px;
    border-radius: var(--radius-button);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

nav ul li a.btn-apply:hover {
    background-color: var(--color-btn-primary-hover);
    color: var(--color-surface-white);
}

@supports (background-color: color-mix(in srgb, red, blue)) {
    nav ul li a.btn-apply:hover {
        background-color: color-mix(in srgb, var(--color-btn-primary) 90%, black);
    }
}

nav ul li a.btn-primary {
    background-color: var(--color-btn-primary);
    color: var(--color-surface-white);
    padding: 10px 18px;
    border-radius: var(--radius-button);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transform: none;
    box-shadow: var(--shadow-nav-cta);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

nav ul li a.btn-primary:hover {
    background-color: var(--color-btn-primary-hover);
    color: var(--color-surface-white);
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(126, 34, 40, 0.28);
}

@supports (background-color: color-mix(in srgb, red, blue)) {
    nav ul li a.btn-primary:hover {
        background-color: color-mix(in srgb, var(--color-btn-primary) 90%, black);
    }
}

nav ul li a.btn-primary:focus-visible {
    outline: 3px solid var(--color-accent-maroon);
    outline-offset: 3px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: rgba(118, 144, 168, 0.1);
    border: 1px solid rgba(118, 144, 168, 0.2);
    border-radius: 12px;
    color: var(--color-charcoal);
    font-size: 24px;
    line-height: 1;
    padding: 10px 14px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(118, 144, 168, 0.16);
    border-color: rgba(118, 144, 168, 0.28);
}

/* ===================================
   BUTTONS
   =================================== */

.btn-primary {
    background-color: var(--color-btn-primary);
    color: var(--color-surface-white);
    padding: 14px 36px;
    border: none;
    border-radius: var(--radius-button);
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    font-size: 15px;
    display: inline-block;
    text-decoration: none;
    box-shadow: var(--shadow-nav-cta);
}

.btn-primary:hover {
    background-color: var(--color-btn-primary-hover);
    color: var(--color-surface-white);
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(126, 34, 40, 0.26);
}

@supports (background-color: color-mix(in srgb, red, blue)) {
    .btn-primary:hover {
        background-color: color-mix(in srgb, var(--color-btn-primary) 90%, black);
    }
}

.btn-primary:focus-visible {
    outline: 3px solid var(--color-accent-maroon);
    outline-offset: 3px;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-charcoal);
    padding: 14px 36px;
    border: 1.5px solid var(--color-btn-secondary-border);
    border-radius: var(--radius-button);
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    font-size: 15px;
    display: inline-block;
    font-weight: 600;
    box-shadow: none;
}

.btn-secondary:hover {
    background-color: var(--color-btn-secondary-border);
    color: var(--color-surface-white);
    border-color: var(--color-btn-secondary-border);
    box-shadow: var(--shadow-card);
}

/* Inverse Secondary Button (for dark backgrounds) */
.btn-secondary-inverse {
    display: inline-block;
    padding: 15px 40px;
    background-color: transparent;
    color: var(--color-warm-cream);
    border: 2px solid var(--color-warm-cream);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 700;
    font-size: 15px;
    border-radius: var(--radius-button);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.btn-secondary-inverse:hover {
    background-color: var(--color-warm-cream);
    color: var(--color-charcoal);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}

/* ===================================
   SCROLL REVEAL (IntersectionObserver adds .reveal-on-scroll + .is-revealed)
   =================================== */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ===================================
   CARD HOVER LIFT (amenities, landmarks, home intro features)
   =================================== */

.amenities-card {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.amenities-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(44, 51, 56, 0.12);
}

.contact-location-section .nb-card {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.contact-location-section .nb-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(44, 51, 56, 0.12);
}

@media (prefers-reduced-motion: reduce) {
    .amenities-card:hover,
    .contact-location-section .nb-card:hover {
        transform: none;
        box-shadow: 0 12px 28px rgba(44, 51, 56, 0.1);
    }
}

/* ===================================
   PROMOTIONAL BANNER (Overlay Style)
   =================================== */

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.promo-banner {
    background-color: rgba(44, 51, 56, 0.96);
    color: var(--color-warm-cream);
    padding: 60px 20px;
    text-align: center;
    
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 3000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    border-bottom: 4px solid var(--color-accent-slate);
    
    /* Animation */
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* When active, slide down */
.promo-banner.active {
    transform: translateY(0);
}

.promo-banner-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    position: relative;
    width: 100%;
}

/* Text Styling */
.promo-banner-content span {
    font-family: var(--font-heading-serif);
    font-size: 28px;
    letter-spacing: 0.02em;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-warm-cream);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.promo-banner-content span strong {
    color: var(--color-accent-slate);
    display: block;
    font-size: 1.2em;
    margin-top: 10px;
}

/* Close Button Styling */
.promo-banner-close {
    background: transparent;
    border: 2px solid var(--color-warm-cream);
    color: var(--color-warm-cream);
    font-size: 14px;
    cursor: pointer;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
    margin-top: 20px;
    position: static; /* Reset absolute positioning */
    width: auto;
    height: auto;
    display: inline-block;
}

.promo-banner-close:hover {
    background: var(--color-accent-slate);
    color: var(--color-surface-white);
    border-color: var(--color-accent-slate);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(118, 144, 168, 0.45);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .promo-banner {
        padding: 40px 20px;
    }
    
    .promo-banner-content span {
        font-size: 20px;
    }
    
    .promo-banner-close {
        padding: 10px 25px;
        font-size: 12px;
    }
}

/* ===================================
   FOOTER (multi-column + sub-footer)
   =================================== */

.site-footer {
    background-color: var(--color-charcoal);
    color: var(--color-warm-cream);
    margin-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -1px 0 rgba(126, 34, 40, 0.45);
    text-align: left;
    padding-bottom: 4rem;
}

.footer-main {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 3rem var(--spacing-unit) 2.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.9fr 0.95fr;
    gap: 2.5rem 2rem;
    align-items: start;
}

.footer-col {
    min-width: 0;
}

.footer-heading {
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0 0 1rem;
}

.footer-body {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
}

.footer-body + .footer-body {
    margin-top: 0.75rem;
}

.footer-fair-housing {
    margin: 1.25rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.55);
}

.footer-equal-housing {
    margin: 0.85rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
}

.footer-brand-logo-link {
    display: inline-block;
    line-height: 0;
}

.footer-brand-logo-link:hover .footer-brand-logo {
    transform: translateY(-1px);
}

.footer-brand-logo-link:focus-visible {
    outline: 2px solid var(--color-accent-maroon);
    outline-offset: 4px;
}

.footer-brand-logo {
    width: 120px;
    height: auto;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.92;
    transition: transform 0.3s ease;
}

.footer-quick-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-quick-links li {
    margin-bottom: 0.65rem;
}

.footer-quick-links li:last-child {
    margin-bottom: 0;
}

a.footer-link {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

a.footer-link:hover,
a.footer-link:focus-visible {
    color: var(--color-accent-maroon);
}

a.footer-link:focus-visible {
    outline: 2px solid var(--color-accent-maroon);
    outline-offset: 3px;
    border-radius: 2px;
}

.footer-sub {
    border-top: 1px solid #444444;
    background-color: rgba(0, 0, 0, 0.18);
}

.footer-sub-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 1.25rem var(--spacing-unit);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem 2rem;
}

.footer-sub-left {
    flex: 1 1 220px;
    min-width: 0;
}

.footer-copyright {
    margin: 0;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.4;
}

.footer-management {
    margin: 0.4rem 0 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.45;
}

.footer-sub-powered {
    flex: 0 0 auto;
}

.powered-by-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.powered-by-link:hover,
.powered-by-link:focus-visible {
    color: var(--color-accent-maroon);
}

.powered-by-link:focus-visible {
    outline: 2px solid var(--color-accent-maroon);
    outline-offset: 3px;
    border-radius: 2px;
}

.powered-by-link img {
    height: 18px;
    width: auto;
    display: block;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-sub-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-sub-powered {
        align-self: flex-end;
    }
}

/* ===================================
   MAIN CONTENT CONTAINER
   =================================== */

.main-content {
    background-color: var(--color-surface-white);
    max-width: var(--container-width);
    min-width: 320px;
    margin: 0 auto;
    padding: clamp(2.5rem, 5vw, 3.5rem) var(--spacing-unit);
    min-height: 60vh;
}

.page-section {
    margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.section-title {
    color: var(--color-accent-maroon);
    margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
    text-align: center;
}

/* ===================================
   FORMS
   =================================== */

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--color-charcoal);
    font-family: var(--font-body);
    text-transform: none;
    font-size: 14px;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(44, 51, 56, 0.12);
    border-radius: var(--radius-button);
    font-family: var(--font-body);
    font-size: 16px;
    transition: border-color 0.3s ease;
    background-color: var(--color-surface-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent-slate);
    background-color: var(--color-surface-white);
    box-shadow: 0 0 0 3px rgba(118, 144, 168, 0.28);
}

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

.form-error {
    color: #d32f2f;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: #d32f2f;
}

.form-group.error .form-error {
    display: block;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .header-container {
        flex-wrap: wrap;
    }

    nav {
        width: 100%;
    }
    
    nav ul {
        flex-direction: column;
        gap: 4px;
        width: 100%;
        display: none;
        margin-top: 6px;
        padding: 12px 12px 16px;
        background: rgba(255, 255, 255, 0.9);
        -webkit-backdrop-filter: blur(16px) saturate(1.1);
        backdrop-filter: blur(16px) saturate(1.1);
        border-radius: 0 0 18px 18px;
        border: 1px solid var(--header-border);
        border-top: 1px solid rgba(118, 144, 168, 0.08);
        box-shadow: var(--shadow-soft);
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        width: 100%;
        text-align: center;
        border-top: none;
    }
    
    nav ul li a {
        padding: 12px 14px;
        border-radius: 12px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .promo-banner-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .promo-banner-close {
        position: absolute;
        right: 10px;
        top: 10px;
    }
    
    .page-header {
        padding: 60px 20px 40px;
    }
}

@media (max-width: 480px) {
    .btn-primary,
    .btn-secondary {
        padding: 12px 30px;
        font-size: 14px;
        width: 100%;
        text-align: center;
    }
    
    .main-content {
        padding: 40px 15px;
    }
}

/* ===================================
   ENTRATA SNIPPET STYLES
   =================================== */

/* Snippet Container Styling */
.snippet-section {
    background-color: var(--color-bg-white);
    padding: clamp(2.5rem, 5vw, 3.75rem) 20px;
    min-height: 600px;
}

.snippet-container {
    max-width: var(--container-width);
    margin: 0 auto;
}

/* Iframe Responsive Styling */
.snippet-container iframe {
    width: 100%;
    min-height: 600px;
    border: none;
    display: block;
}

/* Ensure Entrata / apply-site iframes are responsive */
.snippet-container iframe[src*="entrata"],
.snippet-container iframe[src*="wilsondaleapartmentsva"] {
    min-height: 800px;
}

.snippet-embed-heading {
    margin-top: 2.5rem;
}

.snippet-embed-heading:first-of-type {
    margin-top: 0;
}

/* CTA Section Styling (used on snippet pages) */
.cta-section {
    background-color: var(--color-bg-light);
    padding: clamp(3.5rem, 8vw, 5rem) 20px;
    text-align: center;
    border-top: 1px solid rgba(44, 51, 56, 0.06);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    color: var(--color-accent-maroon);
    margin-bottom: 20px;
}

.cta-section p {
    color: var(--color-text-body);
    font-size: 1.2rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-section .btn-primary {
    background-color: var(--color-btn-primary);
    color: var(--color-surface-white);
    border: none;
}

/* Page Header (used on snippet pages) */
.page-header {
    background: linear-gradient(var(--color-overlay), var(--color-overlay)), var(--color-oak-teal);
    padding: 100px 20px 80px;
    text-align: center;
    color: var(--color-warm-cream);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--color-warm-cream);
}

.page-header p {
    font-size: 1.2rem;
    color: var(--color-warm-cream);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Snippet Instructions (temporary, shown before snippet is pasted) */
.snippet-instructions {
    background-color: var(--color-bg-light);
    border: 3px dashed var(--color-oak-teal);
    padding: 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 4px;
}

.snippet-instructions h2 {
    color: var(--color-accent-maroon);
    margin-bottom: 20px;
}

.snippet-instructions p {
    color: var(--color-text-body);
    line-height: 1.8;
    margin-bottom: 15px;
}

.snippet-instructions code {
    background-color: #e0e0e0;
    padding: 2px 8px;
    font-family: 'Courier New', monospace;
    color: var(--color-charcoal);
    font-weight: bold;
}

/* ===================================
   HOMEPAGE SPECIFIC (hero video + overlays live in index.html <style>)
   =================================== */

.welcome-section {
    background-color: var(--color-bg-muted);
}

.features-grid {
    background-color: var(--color-bg-light);
}

.feature-card {
    background-color: var(--color-surface-white);
    border: 1px solid rgba(44, 51, 56, 0.06);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.feature-card:hover {
    border-color: rgba(118, 144, 168, 0.22);
    box-shadow: var(--shadow-soft);
}

.feature-card h3 {
    color: var(--color-charcoal);
}

.feature-card p {
    color: var(--color-text-body);
}

.feature-icon {
    color: var(--color-accent-slate);
}

/* Entrata PPCB floating contact bubble: inner fill must be set in Entrata (#7690a8). JS adds .entrata-contact-bubble for brand chrome. */
iframe.entrata-contact-bubble {
    border-radius: 50% !important;
    box-shadow: 0 6px 32px rgba(118, 144, 168, 0.45) !important;
    outline: 3px solid rgba(118, 144, 168, 0.45) !important;
    outline-offset: 3px !important;
}

/* Post-hero value prop: muted band, narrow lede, centered feature columns, slate icons */
.home-intro {
    background-color: var(--color-bg-light);
    padding: clamp(3.5rem, 8vw, 5.5rem) var(--spacing-unit);
    border-top: 1px solid rgba(44, 51, 56, 0.04);
    border-bottom: 1px solid rgba(44, 51, 56, 0.04);
}

.home-intro__inner {
    max-width: var(--container-width);
    margin: 0 auto;
    text-align: center;
}

.home-intro__eyebrow {
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-accent-slate);
    margin: 0 0 1rem;
}

.home-intro__headline {
    font-family: var(--font-heading-serif);
    font-size: clamp(1.625rem, 3.6vw, 2.375rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-accent-maroon);
    margin: 0 0 1.5rem;
    max-width: 22ch;
    margin-left: auto;
    margin-right: auto;
}

.home-intro__lede {
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--color-charcoal);
    /* ~640px measure: aligned with headline column, easy to read */
    max-width: min(40rem, calc(100% - 1.5rem));
    margin: 0 auto 3rem;
    padding: 0 0.75rem;
    text-align: center;
}

.home-intro__features {
    list-style: none;
    margin: 0 auto 2.5rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 2rem;
    max-width: 48rem;
    text-align: center;
}

@media (min-width: 1100px) {
    .home-intro__features {
        grid-template-columns: repeat(4, 1fr);
        max-width: 74rem;
    }
}

.home-intro__features li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.125rem;
    padding: 1.25rem 1rem;
    border-radius: var(--radius-card);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.home-intro__features li:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(44, 51, 56, 0.12);
}

@media (prefers-reduced-motion: reduce) {
    .home-intro__features li:hover {
        transform: none;
        box-shadow: 0 8px 20px rgba(44, 51, 56, 0.08);
    }
}

.home-intro__features li > div {
    text-align: center;
    max-width: 17.5rem;
    margin: 0 auto;
}

.home-intro__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    flex-shrink: 0;
    color: var(--color-accent-slate);
}

.home-intro__icon svg {
    width: 2.375rem;
    height: 2.375rem;
}

.home-intro__icon svg,
.home-intro__icon path,
.home-intro__icon circle,
.home-intro__icon rect,
.home-intro__icon line,
.home-intro__icon polyline {
    stroke: currentColor;
    stroke-width: 1.1;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.home-intro__features h3 {
    font-family: var(--font-heading-serif);
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
    color: var(--color-charcoal);
    line-height: 1.3;
    text-align: center;
}

.home-intro__features p {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--color-charcoal);
    margin: 0.35rem 0 0;
    opacity: 0.92;
    text-align: center;
}

.home-intro__cta {
    margin: 0;
}

@media (max-width: 900px) {
    .home-intro__lede {
        margin-bottom: 2.5rem;
    }

    .home-intro__features {
        grid-template-columns: 1fr;
        max-width: 22rem;
        margin-left: auto;
        margin-right: auto;
        gap: 2.25rem;
    }

    .home-intro__features li > div {
        max-width: 100%;
    }
}

.pricing-matrix-wrap {
    background-color: var(--color-surface-white);
    padding: 72px 20px;
}

.pricing-matrix {
    max-width: var(--container-width);
    margin: 0 auto;
    overflow-x: auto;
}

.pricing-matrix table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(44, 51, 56, 0.06);
}

.pricing-matrix th,
.pricing-matrix td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(44, 51, 56, 0.1);
}

.pricing-matrix thead th {
    background-color: var(--color-charcoal);
    color: var(--color-warm-cream);
    font-weight: 700;
}

.pricing-matrix tbody tr:nth-child(even) {
    background-color: var(--color-bg-muted);
}

.pricing-matrix tbody tr:hover {
    background-color: rgba(118, 144, 168, 0.14);
}

.neighborhood-teaser {
    padding: 72px 20px;
    text-align: center;
    background-color: var(--color-bg-muted);
}

.neighborhood-teaser .inner {
    max-width: 720px;
    margin: 0 auto;
}

.resident-hub {
    padding: clamp(3rem, 6vw, 4.5rem) 20px;
    background-color: var(--color-surface-white);
    border-top: 1px solid rgba(44, 51, 56, 0.05);
}

.resident-hub .inner {
    max-width: var(--container-width);
    margin: 0 auto;
}

.resident-hub ul {
    margin: 16px 0 0 1.25rem;
    line-height: 1.75;
}

/* --- Tertiary olive: success / nature highlights (use sparingly) --- */
.text-success,
.form-message--success {
    color: var(--color-accent-olive);
}

.amenity-highlight {
    color: var(--color-accent-olive);
    font-weight: 600;
}
