@media (max-width: 991.98px) {
    .navbar .contact-navbar-btn,
    .navbar-nav .contact-navbar-btn,
    .navbar .contact-navbar-btn.text-white,
    .navbar-nav .contact-navbar-btn.text-white {
        color: #fff !important;
        background: var(--brand-red) !important;
        font-weight: 400 !important;
        -webkit-text-fill-color: #fff !important;
    }
}


:root {
    --sage-green: #70826C;
    --warm-parchment: #F5F2E8;
    --legacy-gold: #FAA41A;
    --brand-red: #C04040;
    --charcoal: #333333;
    --font-heading: 'Lora', serif;
    --font-body: 'Inter', sans-serif;
}


/* Prevent unwanted horizontal/vertical scroll on mobile */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    background-color: var(--warm-parchment);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400 !important;
    color: var(--charcoal);
}

.section-padding {
    padding: 100px 0;
}

/* --- Navigation Bar --- */
/* --- Navbar Transparent/Scrolled State --- */
.navbar {
    background: transparent !important;
    transition: background 0.3s, box-shadow 0.3s;
    transition: all 0.3s ease-in-out;

}
.navbar-brand img {
    max-height: 50px;
}
.navbar .navbar-brand img.navbar-logo-white {
    filter: brightness(0) invert(1) grayscale(1) contrast(1.2);
    transition: filter 0.3s;
}
.navbar .navbar-brand img.navbar-logo-colored {
    filter: none;
    transition: filter 0.3s;
}
.navbar .nav-link.nav-link-white {
    color: #fff !important;
    transition: color 0.3s;
}
.navbar.scrolled {
    background: var(--warm-parchment) !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.navbar.scrolled .nav-link {
    color: var(--charcoal) !important;
}
/* --- Navbar Logo Color Swap --- */
.navbar-logo-white {
    filter: brightness(0) invert(1) grayscale(1) contrast(1.2);
    transition: filter 0.3s;
}
.navbar-logo-colored {
    filter: none;
    transition: filter 0.3s;
}
.nav-link-white {
    color: #fff !important;
    transition: color 0.3s;
}
/* .navbar {
    transition: all 0.3s ease-in-out;
}
.navbar.scrolled {
    background-color: var(--warm-parchment);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.nav-link {
    color: var(--charcoal)!important;
    font-weight: 500;
    margin: 0 10px;
} */

/* --- Hero Section --- */
#hero {
    position: relative;
    height: 85vh;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}
#hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
}
#hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 20px auto;
}

/* --- Buttons --- */
/* Always white text for Contact navbar button */
/* Ensure Contact navbar button is always white, even when scrolled */
.navbar .contact-navbar-btn,
.navbar.scrolled .contact-navbar-btn {
    color: #fff !important;
    font-weight: 400 !important;
}
.btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 400;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.btn-primary {
    background-color: var(--brand-red);
    border-color: var(--brand-red);
    color: var(--warm-parchment);
}
.btn-primary:hover {
    background-color: #d45550;
    border-color: #d45550;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--charcoal);
    color: var(--charcoal);
}
.btn-secondary:hover {
    background-color: var(--charcoal);
    color: var(--warm-parchment);
}

/* --- Custom Section Styles --- */
.bg-sage {
    background-color: var(--sage-green);
}
.bg-sage h2,.bg-sage p,.bg-sage h3 {
    color: var(--warm-parchment);
}

.section-title {
    margin-bottom: 60px;
}
.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--legacy-gold);
}

/* Commitment Section Image Height */
.commitment-img {
    width: 100%;
    max-width: 1200px;
    max-height: 380px;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Commitment Section h3 Font Size */
#commitment h3 {
    font-size: 2.3rem;
}

/* Section Title Underline (used under h3s in commitment section) */
.section-title-underline {
    width: 60px;
    height: 4px;
    background: var(--legacy-gold);
    border: none;
    margin: 16px 0 24px 0;
    opacity: 1;
}

/* --- Commitment & Care Sections --- */
.mission-vision-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    height: 100%;
}
.mission-vision-card svg {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    color: var(--legacy-gold);
}

.care-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}
.care-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 40px rgba(0,0,0,0.12);
}
.care-card-body {
    padding: 30px;
}

/* --- Testimonials --- */
.testimonial-card {
    background: var(--warm-parchment);
    color: var(--charcoal);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #ddd;
}
.testimonial-card blockquote {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    border: none;
    padding: 0;
}
.testimonial-card .author {
    margin-top: 20px;
    font-weight: 700;
}

/* --- Resources Section --- */
.resource-card {
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: box-shadow 0.2s;
}
.resource-card .bi {
    margin-bottom: 1rem;
}
.resource-card h5 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
}
.resource-card p {
    font-size: 0.98rem;
}

/* --- Resource Cards Custom Styles --- */
.resource-card-1 {
    background: var(--charcoal);
    color: var(--warm-parchment);
}
.resource-card-1 h5,
.resource-card-1 .bi {
    color: var(--legacy-gold) !important;
}
.resource-card-1 p {
    color: var(--warm-parchment);
}

.resource-card-2 {
    background: #fff;
    color: var(--charcoal);
}
.resource-card-2 h5,
.resource-card-2 .bi {
    color: var(--legacy-gold) !important;
}
.resource-card-2 p {
    color: var(--charcoal);
}

.resource-card-3 {
    background: var(--sage-green);
    color: var(--warm-parchment);
}
.resource-card-3 h5,
.resource-card-3 .bi {
    color: var(--legacy-gold) !important;
}
.resource-card-3 p {
    color: var(--warm-parchment);
}

.resource-card-4 {
    background: var(--charcoal);
    color: var(--warm-parchment);
}
.resource-card-4 h5,
.resource-card-4 .bi {
    color: var(--legacy-gold) !important;
}
.resource-card-4 p {
    color: var(--warm-parchment);
}

/* --- Neighborhood Section Background --- */
.neighborhood-bg {
    background: url('../assets/life-mexico-landscape-with-trees.jpg') center center/cover no-repeat;
    position: relative;
    overflow: hidden;
}
.neighborhood-overlay {
    background: rgba(112, 130, 108, 0.85); /* --sage-green with opacity */
    pointer-events: none;
    z-index: 1;
}

/* --- Comparison Table --- */
.table-responsive {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}
.comparison-table {
    margin-bottom: 0;
}
.comparison-table thead {
    background-color: var(--charcoal);
    color: var(--warm-parchment);
}
.comparison-table tbody tr:nth-child(odd) {
    background-color: white;
}

.amenity-card {
    border-width: 0;
    border-radius: 1.25rem;
    /* box-shadow: 0 4px 24px rgba(0,0,0,0.07), 0 1.5px 4px rgba(0,0,0,0.03); */
    overflow: hidden;
    background: transparent;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.amenity-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 3px 8px rgba(0,0,0,0.06);
}

.amenity-img {
    border-top-left-radius: 1.25rem;
    border-top-right-radius: 1.25rem;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.amenity-card .card-body {
    padding: 1.5rem;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.amenity-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.amenity-card .card-text {
    font-size: 1rem;
    color: #555;
    flex-grow: 1;
}

/* --- Gap for Neighborhood Glass Cards --- */
.neighborhood-cards-gap {
        display: flex;
        gap: 32px;
        flex-wrap: wrap;
}
.neighborhood-cards-gap > .glass-bg {
        flex: 1 1 0;
        min-width: 0;
}

/* --- Glass Background for Neighborhood Cards --- */
.glass-bg {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.10);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    margin-bottom: 0.5rem;
}


/* --- Footer --- */
footer {
    background-color: var(--charcoal);
    color: var(--warm-parchment);
    padding: 48px 0 0;
    font-size: 1rem;
}
footer a {
    color: var(--warm-parchment);
    text-decoration: none;
    transition: color 0.2s;
}
footer a:hover {
    color: var(--legacy-gold);
    text-decoration: underline;
}
footer .fw-bold {
    color: var(--legacy-gold);
}
footer .bi {
    color: var(--legacy-gold);
    margin-right: 0.5rem;
    font-size: 1.1rem;
}
footer ul {
    padding-left: 0;
}
footer ul li {
    margin-bottom: 0.25rem;
}
footer .border-bottom {
    border-color: rgba(255,255,255,0.15)!important;
}
@media (max-width: 767.98px) {
    footer .row > div {
        align-items: center !important;
        text-align: center !important;
    }
    footer .d-flex {
        justify-content: center !important;
    }
}

/* --- Contact Info Modern Styles --- */
#contact-info .contact-info-box {
    background: none;
    border-radius: 0;
    box-shadow: none;
    border-left: 4px solid var(--legacy-gold);
    padding-left: 2rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    margin-bottom: 0;
}
#contact-info .contact-info-box h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 2rem;
}
#contact-info .contact-info-box p {
    font-size: 1.05rem;
    color: var(--charcoal);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
}
#contact-info .contact-info-box i {
    font-size: 1.3rem;
    color: var(--legacy-gold);
    margin-right: 0.75rem;
}

/* --- Contact Form Modern Styles --- */
#contact-info .contact-form-box {
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 2.5rem 2rem;
}
#contact-info .contact-form-box h4 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--sage-green);
    margin-bottom: 2rem;
}
#contact-info .form-label {
    color: var(--charcoal);
    font-weight: 500;
}
#contact-info .form-control {
    border-radius: 0.75rem;
    border: 1px solid #e0e0e0;
    box-shadow: none;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}
#contact-info .form-control:focus {
    border-color: var(--legacy-gold);
    box-shadow: 0 0 0 0.15rem rgba(250,164,26,0.15);
}
#contact-info button.btn-primary {
    border-radius: 2rem;
    padding: 0.6rem 2.2rem;
    font-weight: 600;
    font-size: 1.1rem;
    background: var(--legacy-gold);
    border: none;
    color: #fff;
    transition: background 0.2s;
}
#contact-info button.btn-primary:hover {
    background: #e69500;
}

/* --- CTA Section Background with Overlay --- */
#cta {
    position: relative;
    background: url('../assets/city-skyline.jpg') center center/cover no-repeat;
    min-height: 400px;
    z-index: 1;
}
#cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(30, 30, 30, 0.65);
    z-index: 2;
}
#cta .container, #cta .section-title {
    position: relative;
    z-index: 3;
}

/* --- Hero Section for Policy Pages --- */
.hero-image-section {
    background-image: url('../assets/city-skyline.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 120px;
    display: flex;
    align-items: center;
}
.hero-image-section .hero-overlay {
    z-index: 2;
    background: rgba(30,30,30,0.55);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.hero-image-section .container {
    position: relative;
    z-index: 3;
    color: #fff;
    text-align: center;
}

@media (max-width: 991.98px) {
    #hero h1 {
        font-size: 2.5rem;
    }
    .section-padding {
        padding: 60px 0;
    }
    .neighborhood-cards-gap {
        flex-direction: column;
        gap: 24px;
    }
    .navbar {
        background: #fff !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    }
    .navbar .nav-link,
    .navbar .nav-link.nav-link-white,
    .navbar-nav .nav-link {
        color: var(--charcoal) !important;
    }
    .navbar .contact-navbar-btn,
    .navbar-nav .contact-navbar-btn {
        color: #fff !important;
        background: var(--brand-red) !important;
        font-weight: 400 !important;
    }
    .navbar .navbar-brand img {
        filter: none !important;
    }
    body, html {
        height: 100vh;
        overflow-y: auto;
    }
}