/* ===================================
   WENDWOOD SQUARE APARTMENTS - GLOBAL STYLES
   Branding Source: Logo (Dark Green / Light Green)
   =================================== */

:root {
    /* --- Brand Colors --- */
    /* Forest Green (Backgrounds, Footers, Headers) */
    --color-primary-navy: #1B4324; 

    /* Leaf Green (Primary Calls to Action/Buttons) */
    --color-accent-lime: #8DC63F; 

    /* Pale Green (Secondary Accents, Icons, Highlights) */
    --color-accent-sky: #C5E1A5; 

    /* --- Neutrals & Text --- */
    --color-text-cream: #F8FAFC; 
    --color-text-body: #475569; 
    --color-bg-white: #FFFFFF;
    --color-bg-light: #F1F5F9; 

    /* Legacy/Alias Variables (Mapping to new palette for compatibility) */
    --color-primary-black: var(--color-primary-navy);
    --color-primary-white: var(--color-bg-white);
    --color-accent-teal: var(--color-accent-lime); 
    --color-dark-grey: var(--color-text-body);
    --color-overlay: rgba(27, 67, 36, 0.7); 
    
    /* Typography */
    --font-header: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* UI Dimensions */
    --container-width: 1200px;
    --header-height: 80px;
    --spacing-unit: 20px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-pill: 9999px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
    margin: 0;
    padding: 0;
    background-color: var(--color-bg-white);
    font-family: var(--font-body);
    color: var(--color-text-body);
    line-height: 1.6;
    padding-top: 0; /* Default padding */
    transition: padding-top 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 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, h4, h5, h6 {
    font-family: var(--font-header);
    text-transform: none;
    letter-spacing: -0.02em;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary-navy);
}

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
   =================================== */

header {
    background-color: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    border-bottom: 1px solid #f1f5f9;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    transition: all 0.3s ease-in-out;
}

.header-container {
    max-width: 80rem !important; /* max-w-7xl */
    margin: 0 auto !important;
    padding: 0 1.5rem !important; /* px-6 */
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    height: 100% !important; /* h-full */
}

@media (min-width: 768px) {
    .header-container {
        padding: 0 3rem !important; /* md:px-12 */
    }
}

.logo-image {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-image img {
    height: 4rem; /* h-12 */
    width: auto;
    object-fit: contain;
    object-position: left;
    filter: invert(1) brightness(0); /* Default to dark for white header */
}

@media (min-width: 768px) {
    .logo-image img {
        height: 5.5rem; /* md:h-16 */
    }
}

@media (min-width: 1024px) {
    .logo-image img {
        height: 7rem; /* lg:h-20 */
    }
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none; /* hidden on mobile */
}

@media (min-width: 1024px) {
    nav ul {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
}

nav ul li a {
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    text-decoration: none;
    padding: 0;
}

nav ul li a:hover {
    color: #0f172a;
}

nav ul li a.btn-apply {
    margin-left: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3rem;
    padding: 0 2rem;
    background-color: #1e3a8a;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    border-radius: 0;
    flex-shrink: 0;
}

nav ul li a.btn-apply:hover {
    background-color: #172554;
    color: #ffffff;
}

/* ===================================
   IMMERSIVE TRANSPARENT NAVIGATION
   =================================== */

body.immersive-nav header {
    background-color: transparent;
    border-bottom-color: rgba(255, 255, 255, 0.1);
    box-shadow: none !important;
}
body.immersive-nav header.is-scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: rgba(226, 232, 240, 0.5);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

body.immersive-nav header:not(.is-scrolled) nav ul li a {
    color: rgba(255, 255, 255, 0.9);
}
body.immersive-nav header:not(.is-scrolled) nav ul li a:hover {
    color: #ffffff;
}

body.immersive-nav header:not(.is-scrolled) nav ul li a.btn-apply {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
    color: #ffffff;
}
body.immersive-nav header.is-scrolled nav ul li a.btn-apply {
    box-shadow: none;
}

body.immersive-nav header:not(.is-scrolled) .logo-image img {
    filter: brightness(0) invert(1);
}

/* Base header adjustments */
header {
    border-bottom: 1px solid #f1f5f9;
}
header.is-scrolled {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}


/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: block;
    color: #0f172a;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto !important;
}
.mobile-menu-toggle:focus {
    outline: none;
}
.mobile-menu-toggle svg {
    width: 2rem;
    height: 2rem;
}
@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
}

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

.btn-primary {
    background-color: var(--color-accent-lime);
    color: var(--color-primary-navy);
    padding: 16px 40px;
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 16px;
    display: inline-block;
    text-decoration: none;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--color-primary-navy);
    color: var(--color-bg-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary-navy);
    padding: 16px 40px;
    border: 2px solid var(--color-primary-navy);
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 16px;
    display: inline-block;
    font-weight: 600;
}

.btn-secondary:hover {
    background-color: var(--color-primary-navy);
    color: var(--color-bg-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Inverse Secondary Button (for dark backgrounds) */
.btn-secondary-inverse {
    background-color: transparent;
    color: var(--color-text-cream);
    border: 2px solid var(--color-text-cream);
}

.btn-secondary-inverse:hover {
    background-color: var(--color-text-cream);
    color: var(--color-primary-navy);
}

/* ===================================
   PROMOTIONAL BANNER
   =================================== */

.promo-banner {
    position: relative !important;
    width: 100% !important;
    background-color: #020617 !important;
    color: #ffffff !important;
    z-index: 60 !important;
    
    align-items: center !important;
    justify-content: center !important;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease;
}
.promo-banner.active {
    display: flex !important;
}
.promo-banner:not(.active) {
    display: none !important;
}
@media (min-width: 768px) {
    .promo-banner {
        padding: 0.75rem 3rem !important;
    }
}
.promo-banner-content {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 80rem !important;
    position: relative !important;
}
.promo-banner-content span, .promo-banner-content span * {
    font-size: 10px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    text-align: center !important;
    padding-right: 2rem !important;
    color: #ffffff !important;
}
.promo-banner-close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.promo-banner-close:hover {
    color: #ffffff;
}
.promo-banner-close:focus {
    outline: none;
}
@media (min-width: 768px) {
    .promo-banner-close {
        right: 3rem;
    }
}
.promo-banner-close svg {
    width: 1rem;
    height: 1rem;
}

z-index: 3000; /* Highest priority */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-bottom: 6px solid var(--color-accent-lime);
    
    /* 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-header);
    font-size: 28px; /* Larger text */
    letter-spacing: 1px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-text-cream);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

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

/* Close Button Styling */
.promo-banner-close {
    background: transparent;
    border: 2px solid var(--color-text-cream);
    color: var(--color-text-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-lime);
    color: var(--color-primary-navy);
    border-color: var(--color-accent-lime);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(180, 208, 85, 0.4);
}

/* 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;
    }
}

/* ===================================
   MONOLITHIC ANCHOR (CTA + FOOTER)
   =================================== */
.monolithic-anchor {
    width: 100%;
    background-color: #020617;
    color: #ffffff;
}

/* CTA Component */
.matrix-cta {
    padding: 96px 0;
}
@media (min-width: 768px) {
    .matrix-cta {
        padding: 128px 0;
    }
}

.matrix-cta-container {
    max-width: 1536px;
    margin: 0 auto;
    padding: 0 24px;
}
@media (min-width: 768px) {
    .matrix-cta-container {
        padding: 0 48px;
    }
}

.matrix-cta-content {
    max-width: 56rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.matrix-cta-content h2 {
    font-size: 2.25rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 1.5rem;
    color: #ffffff;
}
@media (min-width: 768px) {
    .matrix-cta-content h2 {
        font-size: 3.75rem;
    }
}

.matrix-cta-content p {
    font-size: 1.25rem;
    color: #94a3b8;
    font-weight: 300;
    margin-bottom: 3rem;
    margin-top: 0;
}

.btn-matrix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background-color: #ffffff;
    color: #020617;
    font-weight: 500;
    letter-spacing: 0.025em;
    transition: background-color 0.3s ease;
    text-decoration: none;
    border-radius: 0;
    border: none;
}
.btn-matrix:hover {
    background-color: #e2e8f0;
    color: #020617;
}

/* Footer Component */
.matrix-footer {
    width: 100%;
}

.matrix-footer-container {
    max-width: 1536px;
    margin: 0 auto;
    padding: 64px 24px 48px;
    border-top: 1px solid #1e293b;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}
@media (min-width: 768px) {
    .matrix-footer-container {
        padding: 64px 48px 48px;
        grid-template-columns: 2fr 1fr 1fr;
        gap: 32px;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
}
.footer-brand .footer-logo {
    max-width: 200px;
    filter: brightness(0) invert(1);
    margin-bottom: 1.5rem;
}
.footer-brand p {
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.625;
    margin: 0;
    max-width: 400px;
}

.footer-links h3, .footer-contact h3 {
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.footer-links a {
    font-size: 0.875rem;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: #ffffff;
}

.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.footer-contact i {
    width: 1.25rem;
    height: 1.25rem;
    color: #64748b;
    margin-top: 0.125rem;
    font-size: 1rem;
    text-align: center;
}
.footer-contact span {
    font-size: 0.875rem;
    color: #94a3b8;
    transition: color 0.3s ease;
}
.footer-contact li:hover span {
    color: #ffffff;
}

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

.main-content {
    background-color: var(--color-bg-white);
    max-width: var(--container-width);
    min-width: 320px;
    margin: 0 auto;
    padding: 60px var(--spacing-unit);
    min-height: 60vh;
}

.page-section {
    margin-bottom: 80px;
}

.section-title {
    color: var(--color-primary-navy);
    margin-bottom: 40px;
    text-align: center;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--color-primary-navy);
    font-family: var(--font-header);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 16px;
    transition: border-color 0.3s ease;
    background-color: #f9f9f9;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent-sky);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(156, 206, 229, 0.2);
}

.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 ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        display: none;
        background-color: var(--color-primary-navy);
        padding-bottom: 20px;
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        width: 100%;
        text-align: center;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    nav ul li a {
        padding: 15px;
    }
    
    .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: 60px 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 iframes are responsive */
.snippet-container iframe[src*="entrata"] {
    min-height: 800px;
}

/* CTA Section Styling (used on snippet pages) */
.cta-section {
    background-color: var(--color-primary-navy);
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(141, 198, 63, 0.15) 0%, transparent 100%);
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

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

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 40px;
    font-weight: 300;
}

.cta-section .btn-primary {
    background-color: var(--color-accent-lime);
    color: var(--color-primary-navy);
    border: none;
}

/* Page Header (used on snippet pages) */
.page-header {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.4)), url('../images/hero-bg.webp') center/cover no-repeat;
    padding: 120px 20px 80px;
    text-align: center;
    color: var(--color-bg-white);
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--color-bg-white);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 300;
}

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

.snippet-instructions h2 {
    color: var(--color-primary-navy);
    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-primary-navy);
    font-weight: bold;
}

/* ===================================
   HOMEPAGE SPECIFIC (Handled in index.html)
   =================================== */

body.immersive-nav header.is-scrolled .mobile-menu-toggle { color: #0f172a; }

.btn-primary.hero-btn {
    margin-top: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background-color: #ffffff;
    color: #0f172a;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    width: 100%;
    border-radius: 0;
}
@media (min-width: 640px) {
    .btn-primary.hero-btn {
        width: auto;
    }
}
@media (min-width: 768px) {
    .btn-primary.hero-btn {
        font-size: 1rem;
    }
}
.btn-primary.hero-btn:hover {
    background-color: #f1f5f9;
}

/* ===================================
   MOBILE FULL-SCREEN OVERLAY
   =================================== */

.mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background-color: #020617;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-overlay.active {
    transform: translateX(0);
}

.mobile-overlay-header {
    width: 100%;
    height: 5rem;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .mobile-overlay-header {
        padding: 0 3rem;
    }
}

.mobile-overlay-logo {
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none;
    font-size: 1.125rem;
}

.mobile-overlay-close {
    width: 2rem;
    height: 2rem;
    color: #ffffff;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.mobile-overlay-close:hover {
    color: #94a3b8;
}

.mobile-overlay-close svg {
    width: 100%;
    height: 100%;
}

.mobile-overlay-nav {
    flex: 1;
    overflow-y: auto;
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .mobile-overlay-nav {
        padding: 3rem 3rem;
    }
}

.mobile-overlay-nav a:not(.mobile-btn-apply) {
    font-size: 1.875rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    text-align: left;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 1rem;
    display: block;
}

@media (min-width: 640px) {
    .mobile-overlay-nav a:not(.mobile-btn-apply) {
        font-size: 2.25rem;
    }
}

.mobile-overlay-nav a:not(.mobile-btn-apply):hover {
    color: #64748b;
}

.mobile-btn-apply {
    margin-top: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1.25rem 2rem;
    background-color: #1e3a8a;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.mobile-btn-apply:hover {
    background-color: #172554;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}
body.menu-open header {
    opacity: 0 !important;
    pointer-events: none !important;
}
body.menu-open .promo-banner {
    display: none !important;
}
.mobile-overlay {
    z-index: 9999 !important;
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw !important;
    height: 100vh !important;
}
.promo-banner-content span, .promo-banner-content span * {
    white-space: normal !important;
    word-break: break-word !important;
}


/* Nuclear Override 2.0: Kill Elliptical Border */
.promo-banner-close {
    border: 0 !important;
    border-color: transparent !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    padding: 0.5rem !important;
    outline: none !important;
}
.promo-banner-close:focus {
    outline: none !important;
}
.promo-banner-close svg {
    width: 1.25rem !important;
    height: 1.25rem !important;
    color: #94a3b8 !important; /* text-slate-400 */
    transition: color 0.3s ease !important;
}
.promo-banner-close:hover svg {
    color: #ffffff !important;
}


/* ===================================
   IMMERSIVE NAVIGATION FIX (FROSTED GLASS)
   =================================== */

/* Base state (Top of page) - Transparent */
body.immersive-nav header {
    background-color: transparent !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
}

/* Base text color - White/90 */
body.immersive-nav header nav ul li a {
    color: rgba(255, 255, 255, 0.9) !important;
}
body.immersive-nav header nav ul li a:hover {
    color: #ffffff !important;
}

/* Base logo and hamburger color - White */
body.immersive-nav header .logo-image img {
    filter: brightness(0) invert(1) !important; /* Forces logo to be pure white */
}
body.immersive-nav header .mobile-menu-toggle {
    color: #ffffff !important;
}

/* Scrolled state - Frosted Glass */
body.immersive-nav header.is-scrolled {
    background-color: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom-color: rgba(226, 232, 240, 0.5) !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

/* Scrolled text color - Slate 600 -> Slate 900 */
body.immersive-nav header.is-scrolled nav ul li a {
    color: #475569 !important; /* text-slate-600 */
}
body.immersive-nav header.is-scrolled nav ul li a:hover {
    color: #0f172a !important; /* text-slate-900 */
}

/* Scrolled logo and hamburger color - Slate 900 */
body.immersive-nav header.is-scrolled .logo-image img {
    filter: brightness(0) invert(0.06) sepia(0.24) saturate(22.6) hue-rotate(189deg) brightness(0.96) contrast(0.95) !important; /* Approximate #0f172a */
}
body.immersive-nav header.is-scrolled .mobile-menu-toggle {
    color: #0f172a !important;
}

/* Apply button specifically */
body.immersive-nav header nav ul li a.btn-apply {
    background-color: #ffffff !important;
    color: #0f172a !important;
}
body.immersive-nav header.is-scrolled nav ul li a.btn-apply {
    background-color: #0f172a !important;
    color: #ffffff !important;
}


/* Footer Bottom Bar */
.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 1.5rem 0;
    margin-top: 2rem;
    width: 100%;
}

/* Footer Disclaimer */
.footer-disclaimer {
    max-width: 1536px;
    margin: 0 auto;
    padding: 0 24px 1.5rem;
    border-bottom: 1px solid rgba(30, 41, 59, 0.5);
    margin-bottom: 1.5rem;
}
.footer-disclaimer p {
    font-size: 0.75rem; /* text-xs */
    font-weight: 400; /* font-normal */
    color: #64748b; /* text-slate-500 */
    line-height: 1.625; /* leading-relaxed */
    max-width: 48rem; /* max-w-3xl */
    text-align: left;
    margin: 0;
}
@media (min-width: 768px) {
    .footer-disclaimer {
        padding: 0 48px 1.5rem;
    }
}

.footer-bottom-container {
    max-width: 1536px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}
.footer-bottom-container span {
    font-size: 0.875rem; /* text-sm */
    color: #64748b; /* text-slate-500 */
    letter-spacing: 0.025em; /* tracking-wide */
    font-weight: 400; /* font-normal */
    font-family: 'Inter', sans-serif;
    text-align: center;
}
@media (min-width: 768px) {
    .footer-bottom-container {
        flex-direction: row;
        padding: 0 48px;
    }
    .footer-bottom-container span {
        text-align: left;
    }
}

/* Entrata Chat Widget Override */
#ppcb-widget-container .ppcb-contact-button,
#ppcb-widget-container .ppcb-button,
.ppcb-contact-button,
.entrata-chat-button,
.entrata-ui-contact-btn,
.ppcb-widget-launcher {
    background-color: #1E40AF !important;
}

/* Entrata Snippet Override */
.snippet-container h2,
#website_100003972 h2,
iframe[id^="website_"] h2,
.entrata-snippet h2 {
    font-family: 'Inter', sans-serif !important;
    color: #0F172A !important;
}


/* Global Chat Widget Override */
.chat-widget-class,
#ppcb-button,
.ppcb-contact-button {
    background-color: #1E40AF !important;
}


/* GLOBAL TYPOGRAPHIC HERO SYSTEM */
.global-page-hero {
    width: 100%;
    background-color: #f8fafc; /* bg-slate-50 */
    padding: 8rem 0 5rem 0; /* pt-32 pb-20 */
}
@media (min-width: 768px) {
    .global-page-hero {
        padding: 10rem 0 6rem 0; /* md:pt-40 md:pb-24 */
    }
}
.global-hero-container {
    max-width: 80rem; /* max-w-7xl */
    margin: 0 auto;
    padding-left: 1.5rem; /* px-6 */
    padding-right: 1.5rem;
}
@media (min-width: 1024px) {
    .global-hero-container {
        padding-left: 2rem; /* lg:px-8 */
        padding-right: 2rem;
    }
}
.global-hero-h1 {
    font-size: 3rem; /* text-5xl */
    font-weight: 700;
    font-family: 'Inter', sans-serif !important;
    letter-spacing: -0.05em; /* tracking-tighter */
    color: #0f172a; /* text-slate-900 */
    margin: 0;
    line-height: 1;
}
@media (min-width: 768px) {
    .global-hero-h1 {
        font-size: 4.5rem; /* md:text-7xl */
    }
}
.global-hero-p {
    font-size: 1.125rem; /* text-lg */
    color: #64748b; /* text-slate-500 */
    font-weight: 400;
    line-height: 1.625; /* leading-relaxed */
    max-width: 48rem; /* max-w-3xl */
    margin: 1.5rem 0 0 0; /* mt-6 */
}
@media (min-width: 768px) {
    .global-hero-p {
        font-size: 1.25rem; /* md:text-xl */
    }
}
