:root {
    --color-lightest: #fdfcfa;
    --color-light: #f2f2ef;
    --color-mid: #798c78;
    --color-dark: #515748;
    --color-darkest: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Gallano Grotesque', 'Outfit', sans-serif;
}



html, body {
    background-color: var(--color-lightest);
    overflow-x: hidden; /* This acts as a wall, preventing that white gap */
    width: 100%;
}

.hero {
    position: relative;
    width: 100%;
    min-height: 120vh;
    background-image: url('img/images/hero1.png');
    background-size: cover; /* Changed from 100% 100% to cover */
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
}



header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    padding: 2.5rem 5rem;
    width: 100%;
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: var(--color-lightest);
    padding: 1rem 5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-logo {
    display: none;
}

header.scrolled .nav-logo,
.inquiry-header .nav-logo {
    display: block;
}

.nav-logo img {
    height: 40px; /* Adjust this value to make the logo fit perfectly in your navbar */
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--color-lightest);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative; /* THIS KEEPS THE UNDERLINE ATTACHED TO THE TEXT! */
}

/* The actual underline */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px; /* Thickness of the underline */
    bottom: -5px; /* Distance from text */
    left: 0;
    background-color: var(--color-mid); /* The green color */
    transition: width 0.3s ease;
}

/* When active or hovered, the line expands */
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

header.scrolled .nav-links a,
.inquiry-header .nav-links a {
    color: var(--color-darkest);
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    color: var(--color-lightest);
    cursor: pointer;
    transition: color 0.3s ease;
}

header.scrolled .hamburger,
.inquiry-header .hamburger {
    color: var(--color-darkest);
}

.nav-btn-mobile {
    display: none;
}

.btn {
    background-color: var(--color-dark);
    color: var(--color-lightest);
    text-decoration: none;
    padding: 0.8rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--color-mid);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    text-align: center;
    padding: 0 2rem;
    margin-top: -19rem; /* Increased negative margin to pull everything higher up */
}

.logo-container {
    margin-bottom: 0;
}

.logo-container img {
    max-width: 290px; /* Reduced the logo size */
    height: auto;
    opacity: 1; 
    margin-bottom: -2rem; /* Adjusted for the smaller logo */
}

h1 {
    color: var(--color-darkest);
    font-size: 2.6rem; /* Reduced headline size */
    font-weight: 700;
    margin-bottom: 0.6rem;
}

p {
    color: var(--color-dark);
    font-size: 1.45rem; /* Reduced subheadline size */
    margin-bottom: 2rem;
    font-weight: 400;
}
.hero-btn {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
}

.interior-gallery {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.gallery-image {
    width: 33.333%; /* 3 images per row (100% / 3) */
    position: relative;
    overflow: hidden;
}

.gallery-image {
    width: 33.333%;
    position: relative;
    overflow: hidden;
    height: 300px;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.before-after-item img {
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.8s ease-in-out;
}

.before-after-item .img-after {
    opacity: 0;
}

.before-after-item:hover .img-after {
    opacity: 1;
}

.before-after-item:hover .img-before {
    opacity: 0;
}

.features-section {
    padding: 6rem 2rem 2rem;
    background-color: var(--color-lightest);
    color: var(--color-darkest);
}

.features-header {
    text-align: center;
    margin-bottom: 2rem;
}

.small-title {
    display: block;
    font-size: 1.2rem;
    letter-spacing: 0.3rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 400;
}

.features-header h2 {
    font-size: 3.5rem;
    font-weight: 600;
    letter-spacing: 0.15rem;
    margin-bottom: 1rem;
}

.features-header .subtitle {
    font-size: 1.4rem;
    color: var(--color-darkest);
    line-height: 1.6;
    margin-bottom: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-right: 1px solid #e0dfdc;
    border-bottom: 1px solid #e0dfdc;
}

.feature-card:nth-child(3n) {
    border-right: none;
}

.feature-card:nth-child(n+4) {
    border-bottom: none;
}

.feature-card img {
    width: 250px; /* Adjust if you need the icons bigger or smaller */
    height: auto;
    margin-bottom: -3.5rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    color: var(--color-dark);
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--color-darkest);
    line-height: 1.6;
    margin-bottom: 0;
}

.benefits-banner {
    background-color: var(--color-mid);
    color: var(--color-lightest);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: .7rem 2rem;
}

.benefits-container {
    display: flex;
    max-width: 1400px;
    width: 100%;
    justify-content: space-between;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: .5rem; /* Reduced space between image and text */
    flex: 1;
    padding: 0 1rem; /* Reduced padding on the sides */
    border-right: 1px solid rgba(253, 252, 250, 0.4);
}

.benefit-item:last-child {
    border-right: none;
}

.benefit-item img {
    width: 120px; /* Adjust if you need the icons bigger or smaller */
    height: auto;
}

.benefit-text h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.benefit-text p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0;
    color: var(--color-lightest);
}

@media (max-width: 900px) {
    .benefits-container {
        flex-direction: column;
    }
    .benefit-item {
        border-right: none;
        border-bottom: 1px solid rgba(253, 252, 250, 0.4);
        padding: 1.2rem 0; /* Reduced padding on mobile */
    }
    .benefit-item:last-child {
        border-bottom: none;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .feature-card:nth-child(3n) {
        border-right: 1px solid #e0dfdc;
    }
    .feature-card:nth-child(2n) {
        border-right: none;
    }
    .feature-card:nth-child(n+4) {
        border-bottom: 1px solid #e0dfdc;
    }
    .feature-card:nth-last-child(-n+2) {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem;
    }
    header.menu-open {
        background-color: var(--color-lightest);
    }
    header.menu-open .hamburger {
        color: var(--color-darkest);
    }
    .hamburger {
        display: block;
    }
    nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .nav-left {
        flex-direction: row;
        width: auto;
    }
    .desktop-only {
        display: none;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-lightest);
        padding: 1.5rem 0 2.5rem;
        text-align: center;
        gap: 1.5rem;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }
    header.menu-open .nav-links {
        display: flex;
    }
    header.menu-open .nav-links a {
        color: var(--color-darkest);
    }
    
    /* Removes the active/hover underline effect from the mobile dropdown menu */
    .nav-links a::after {
        display: none;
    }
    .nav-btn-mobile {
        display: inline-block;
        margin: 0 auto;
        width: max-content;
    }
    .logo-container img {
        max-width: 220px; /* Caps the logo size so it doesn't span the whole screen */
        height: auto;
        margin-bottom: 0; /* Adjusted to fit the smaller logo */
    }
    .hero-content {
        margin-top: -17rem; /* Adds a bit of space so it doesn't hide under the mobile nav */
        padding: 0 1.5rem;
    }
    h1 {
        font-size: 2rem;
        line-height: 1.2; /* Tightens the spacing between lines of the headline */
    }
    .hero-content p {
        font-size: 1rem; /* Shrinks the subheadline text */
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }
    .hero-btn {
        padding: 0.8rem 2rem; /* Shrinks the massive desktop button padding */
        font-size: 1rem; /* Shrinks the button text */
    }
    .interior-gallery {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .gallery-image {
        width: 50%; /* 2 images per row on mobile screens */
    }
    .gallery-image img {
        min-height: 200px;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr); /* Forces 2 columns */
    }
    .feature-card {
        padding: 1.5rem 0.5rem; /* Reduces padding to fit side-by-side better */
        border-right: none !important;
        border-bottom: 1px solid #e0dfdc !important;
    }
    /* Adds the vertical border to the left column */
    .feature-card:nth-child(odd) {
        border-right: 1px solid #e0dfdc !important;
    }
    /* Removes the bottom border for the bottom row */
    .feature-card:nth-last-child(-n+2) {
        border-bottom: none !important;
    }
}

.properties-section {
    padding: 2rem 5%;
    background-color: var(--color-lightest);
    display: flex;
    justify-content: center;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    width: 90%;
    margin: 0 auto;
}

.property-card {
    text-align: center;
    opacity: 0.65; /* Lowers opacity by default */
    transition: opacity 0.3s ease; /* Smooth fade effect */
    cursor: pointer; /* Changes mouse to a hand pointer */
}

.property-card:hover {
    opacity: 1; /* Brings back to full visibility on hover */
}

.property-card img {
    width: 100%;
    height: 200px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.property-card h3 {
    font-size: 1.1rem;
    color: var(--color-darkest);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.coming-soon {
    color: #e60000;
    font-weight: 700;
    font-size: 1rem;
}

.property-card:hover img {
    border-color: var(--color-dark);
    /*color: var(--color-lightest);*/
}
.property-card h3 {
    font-size: 1.5rem;
    color: var(--color-darkest);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.coming-soon {
    color: #e60000;
    font-weight: 700;
    font-size: 1.2rem;
}

.campbell-bubble-container {
    position: relative;
    grid-column: 1 / -1;
    background-color: var(--color-mid);
    border-radius: 15px;
    padding: 1rem;
    margin-top: 0.5rem;
}

.bubble-arrow {
    position: absolute;
    top: -38px;
    right: calc(16.666% - 1rem); 
    transform: translateX(50%);
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 40px solid var(--color-mid);
}

.bubble-inner {
    display: flex;
    flex-direction: column;
    gap: 1.2rem; 
}

.bubble-top-row {
    display: flex;
    align-items: center; 
    gap: 2.5rem; /* Pushes the image and text away from each other in the middle */
}

.bubble-img-top {
    flex: 1; 
}

.bubble-img-top img {
    width: 100%;
    height: auto;
    display: block;
}

.bubble-text {
    flex: 1;
}

.bubble-text p {
    color: var(--color-lightest);
    font-size: 0.95rem;
    line-height: 1.4;
}

.bubble-bottom-row {
    width: 100%;
    margin-top: -3rem;
}

.bubble-bottom-row img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Tablet Adjustments */
@media (max-width: 900px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .bubble-arrow {
        right: calc(25% - 0.5rem); 
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .properties-grid {
        grid-template-columns: 1fr;
    }
    .campbell-bubble-container {
        padding: 1.5rem;
        border-radius: 20px;
    }
    .bubble-arrow {
        right: 50%; 
        border-left: 30px solid transparent;
        border-right: 30px solid transparent;
        border-bottom: 30px solid var(--color-mid);
        top: -28px;
    }
    .bubble-top-row {
        flex-direction: column;
        gap: 1.5rem;
    }
    .bubble-img-top {
        width: 100%;
    }
    .bubble-text p {
        font-size: 1.05rem;
    }
    .bubble-bottom-row {
        margin-top: 0; /* RESETS the negative margin so it doesn't overlap text on mobile! */
    }
}

.amenities-section {
    padding: 6rem 2rem;
    background-color: var(--color-lightest);
    color: var(--color-darkest);
    text-align: center;
}

.amenities-header {
    margin-bottom: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.amenities-header h2 {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: .5rem;
}

.header-line {
    width: 80px;
    height: 2px;
    background-color: var(--color-mid);
    margin: 0 auto;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem 2rem; /* Reduced the vertical space between rows */
    max-width: 1200px;
    margin: 0 auto;
}

.amenity-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.amenity-card img {
    width: 190px; /* Adjust if you need the icons bigger or smaller */
    height: auto;
    margin-bottom: -1.5rem;
}

.amenity-card h3 {
    font-size: 1.3rem;
    color: var(--color-mid);
    margin-bottom: 1rem;
    font-weight: 600;
}

.amenity-card p {
    font-size: 0.95rem;
    color: var(--color-darkest);
    line-height: 1.6;
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .amenities-header h2 {
        font-size: 2.2rem;
    }
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr); /* Forces 2 columns */
        gap: 1.5rem 1rem; /* Shrinks the gap slightly to fit the screen */
    }
    /* Scales down the amenity content slightly so they fit side-by-side */
    .amenity-card img {
        width: 130px; 
        margin-bottom: -1rem;
    }
    .amenity-card h3 {
        font-size: 1.1rem;
    }
    .amenity-card p {
        font-size: 0.85rem;
    }
}

.living-simple-section {
    padding: 2rem 2rem 6rem;
    background-color: var(--color-lightest);
    color: var(--color-darkest);
    position: relative;
}

.living-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.living-content {
    width: 50%;
    padding-right: 4rem;
    position: relative;
    z-index: 2;
}
.living-content .small-title {
    color: var(--color-mid);
}

.living-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.header-line-left {
    width: 80px;
    height: 3px;
    background-color: var(--color-mid);
    margin-bottom: 2rem;
}

.living-content > p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.living-features {
    display: flex;
    gap: 1.5rem;
}

.living-feature {
    flex: 1;
    text-align: center;
    border-right: 1px solid #e0dfdc;
    padding: 0 0.5rem;
}

.living-feature:last-child {
    border-right: none;
}

.living-feature i {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.living-feature h4 {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--color-darkest);
    line-height: 1.3;
}

.living-feature p {
    font-size: 0.85rem;
    color: var(--color-darkest);
    line-height: 1.5;
    margin-bottom: 0;
}

.living-container .living-image {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 45vw;
}

.living-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

.cta-banner-section {
    padding: 0 2rem 1.5rem;
    background-color: transparent;
    display: flex;
    justify-content: center;
    margin-top: -5rem;
    position: relative;
    z-index: 10;
}

.cta-container {
    display: flex;
    background-color: var(--color-light);
    border-radius: 20px;
    max-width: 1400px;
    width: 100%;
    padding: 2rem;
    gap: 2rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.cta-container::before {
    content: '\f4d8';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: -50px;
    bottom: -50px;
    font-size: 24rem;
    color: var(--color-mid);
    opacity: 0.1;
    transform: rotate(-15deg);
}

.cta-main {
    flex: 2;
    position: relative;
    z-index: 2;
    padding-right: 3rem;
    margin-left: 10rem;
    text-align: left;
}

.cta-main::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 120px;
    width: 1px;
    background-color: #d0d0cc;
}

.cta-main h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--color-darkest);
}

.cta-main p {
    font-size: 1rem;
    margin-bottom: 1.2rem;
    color: var(--color-darkest);
    line-height: 1.5;
}

.cta-btn {
    background-color: var(--color-dark);
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-contact {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    position: relative;
    padding-right: 2rem;
    padding-left: 1rem;
    z-index: 2;
}

.cta-contact::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 120px;
    width: 1px;
    background-color: #d0d0cc;
}

.cta-contact i {
    color: var(--color-dark);
    border: 2px solid var(--color-dark);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-text p {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
    line-height: 1.3;
    color: var(--color-darkest);
}

.contact-text strong {
    font-size: 1.2rem;
    color: var(--color-mid);
    font-weight: 700;
}

.cta-benefits {
    flex: 1.5;
    z-index: 2;
    padding-left: 1rem;
}

.cta-benefits ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cta-benefits li {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    gap: 1rem;
    color: var(--color-dark);
    font-weight: 400;
}

.cta-benefits li i {
    font-size: 1.4rem;
    width: 30px;
    text-align: center;
    color: var(--color-dark);
}

.living-container .living-image {
    position: absolute;
    right: 0;
    top: -2rem;
    bottom: 0;
    width: 55vw;
    z-index: 1;
    display: block;
}

.living-container .living-image::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 250px;
    background: linear-gradient(to right, var(--color-lightest) 0%, transparent 100%);
    z-index: 2;
}

.living-container .living-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

@media (max-width: 1100px) {
    .living-container {
        flex-direction: column;
    }
    .living-content {
        width: 100%;
        padding-right: 0;
    }
    .living-container .living-image {
        position: relative;
        width: 100vw;
        height: 400px;
        top: 0;
        margin-top: 3rem;
    }
    .living-container .living-image::before {
        background: linear-gradient(to bottom, var(--color-lightest) 0%, transparent 100%);
        width: 100%;
        height: 150px;
    }
    .cta-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    .cta-main::after, .cta-contact::after {
        display: none;
    }
    .cta-main {
        border-bottom: 1px solid #d0d0cc;
        padding-right: 0;
        padding-bottom: 2rem;
        margin-left: 0; /* Removes the massive left spacing */
        text-align: center; /* Centers the text properly */
    }
    .cta-contact {
        border-bottom: 1px solid #d0d0cc;
        padding-right: 0;
        padding-bottom: 2rem;
        padding-left: 0;
    }
    .cta-benefits {
        padding-left: 0;
    }
    .cta-benefits ul {
        align-items: center;
    }
}

@media (max-width: 768px) {
    /* 1. Center all the text and the green line on mobile */
    .living-content {
        text-align: center;
    }
    .header-line-left {
        margin: 0 auto 2rem auto; /* The "auto" pushes the line perfectly into the middle */
    }

    /* 2. Force the features into a 2x2 grid */
    .living-features {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Creates exactly 2 equal columns */
        gap: 0; /* Removes the gap so the borders can touch */
    }
    
    .living-feature {
        border-right: none;
        border-bottom: none;
        padding: 2rem 0.5rem; /* Adds breathing room inside the boxes to replace the gap */
    }
    
    /* 3. Draw a perfect "cross" border between the 4 items */
    .living-feature:nth-child(1),
    .living-feature:nth-child(3) {
        border-right: 1px solid #e0dfdc; /* Borders for the left column */
    }
    
    .living-feature:nth-child(1),
    .living-feature:nth-child(2) {
        border-bottom: 1px solid #e0dfdc; /* Borders for the top row */
    }
}

.inquiry-section {
    padding: 12rem 2rem 14rem;
    background-color: var(--color-lightest);
    display: flex;
    justify-content: center;
    position: relative;
}

.inquiry-container {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.inquiry-container h2 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-darkest);
    margin-bottom: 1.5rem;
}

.inquiry-form {
    background-color: var(--color-light);
    padding: 4rem;
    border-radius: 20px;
    margin-top: 3rem;
    text-align: left;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.form-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-darkest);
    margin-bottom: 0.8rem;
}

.form-group input,
.form-group select {
    padding: 1.2rem;
    border: 1px solid #d0d0cc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--color-darkest);
    background-color: var(--color-lightest);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-mid);
    box-shadow: 0 0 0 3px rgba(121, 140, 120, 0.1);
}

#voucher-details-group {
    display: none; /* Hides it by default */
}

.submit-btn {
    width: 100%;
    margin-top: 2rem;
    padding: 1.2rem;
    font-size: 1.1rem;
    letter-spacing: 1px;
    display: flex;
    justify-content: center;
    text-transform: uppercase;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--color-lightest);
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
}

.modal-header .modal-logo {
    height: 35px;
    width: auto;
    margin-bottom: 1rem;
}

.modal-header h3 {
    color: var(--color-darkest);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-divider {
    height: 2px;
    width: 60px;
    background-color: var(--color-mid);
    margin: 0 auto 1.5rem;
}

.modal-body p {
    color: var(--color-dark);
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.modal-footer {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.modal-btn {
    background-color: var(--color-mid);
    color: var(--color-lightest);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-btn:hover {
    background-color: var(--color-dark);
}

.modal-btn.cancel-btn {
    background-color: transparent;
    color: var(--color-dark);
    border: 1px solid #d0d0cc;
}

.modal-btn.cancel-btn:hover {
    background-color: var(--color-light);
}

.modal-btn.danger-btn {
    background-color: #c62828;
}

.modal-btn.danger-btn:hover {
    background-color: #b71c1c;
}

@media (max-width: 768px) {
    .inquiry-section {
        padding: 8rem 1.5rem 10rem;
    }
    
    .inquiry-container h2 {
        font-size: 2.5rem;
    }

    .inquiry-form {
        padding: 2rem;
    }

    .form-row {
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

/* --- Global Mobile Typography Adjustments --- */
@media (max-width: 768px) {
    /* Shrinks the massive section titles */
    .features-header h2,
    .living-content h2,
    .cta-main h2,
    .inquiry-container h2 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    /* Shrinks the subtext under the titles so they fit better */
    .features-header .subtitle,
    .living-content > p,
    .cta-main p {
        font-size: 1.05rem;
        line-height: 1.5;
    }

    /* Reduces the massive top/bottom padding on sections for mobile */
    .features-section,
    .properties-section,
    .amenities-section,
    .living-simple-section {
        padding: 4rem 1.5rem; 
    }
}

/* --- Ultra-Small Screens (320px to 375px) --- */
@media (max-width: 375px) {
    
    /* 1. Hero Section */
    h1 {
        font-size: 1.6rem; /* Shrinks the main headline further */
    }
    .logo-container img {
        max-width: 180px; /* Prevents the logo from touching the edges */
    }

    /* 2. Global Section Padding */
    /* Reduces the padding on the extreme edges to give content more room */
    .features-section,
    .properties-section,
    .amenities-section,
    .living-simple-section,
    .inquiry-section {
        padding: 3rem 1rem; 
    }

    /* 3. Global Headers */
    .features-header h2,
    .living-content h2,
    .cta-main h2,
    .inquiry-container h2,
    .amenities-header h2 {
        font-size: 1.8rem; /* Scales down all major section titles */
    }

    /* 4. Features Section (Why Alamo) */
    .features-grid {
        grid-template-columns: 1fr; /* Abandons the 2x2 grid, stacks in 1 column */
    }
    .feature-card {
        border-right: none !important; /* Removes the vertical border */
        border-bottom: 1px solid #e0dfdc !important; /* Restores the horizontal border */
    }
    .feature-card:last-child {
        border-bottom: none !important; /* Cleans up the very last item */
    }

    /* 5. Amenities Section */
    .amenities-grid {
        grid-template-columns: 1fr; /* Stacks amenities in 1 column */
        gap: 2rem;
    }

    /* 6. Living Simple Section (The 2x2 Icons) */
    .living-features {
        grid-template-columns: 1fr; /* Stacks the living icons in 1 column */
    }
    .living-feature {
        padding: 1.5rem 0;
    }
    /* Re-draws the borders for a straight vertical stack */
    .living-feature:nth-child(1),
    .living-feature:nth-child(2),
    .living-feature:nth-child(3) {
        border-right: none; 
        border-bottom: 1px solid #e0dfdc; 
    }

    /* 7. Campbell Bubble */
    .campbell-bubble-container {
        padding: 1.2rem; /* Squeezes the green padding so the text has more width */
    }
    .bubble-text p {
        font-size: 0.95rem; /* Shrinks the paragraph text slightly */
    }

    /* 8. Call to Action (CTA) & Forms */
    .cta-container {
        padding: 2rem 1.5rem;
    }
    .inquiry-form {
        padding: 1.5rem;
    }
}

.studio-potential-section {
    padding: 5rem 2rem;
    background-color: var(--color-lightest);
    text-align: center;
}

.studio-potential-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 3.5rem;
    color: var(--color-darkest);
}

.studio-potential-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.studio-card {
    position: relative;
    border-radius: 45px;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background-color: #eee;
}

.before-after-item img {
    position: absolute;
    bottom: -5px;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;   
    object-fit: cover;
    display: block;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.before-after-item .img-after {
    opacity: 0;
    z-index: 1;
}

.before-after-item .img-before {
    opacity: 1;
    z-index: 2;
}

.before-after-item:hover .img-after {
    opacity: 1;
}

.before-after-item:hover .img-before {
    opacity: 0;
}

.studio-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 5rem 1rem 1.2rem;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.3) 35%, transparent 100%);
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.5rem;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.studio-card:hover .studio-label {
    opacity: 1;
}

.studio-type {
    font-weight: 700;
    font-size: 1.4rem;
    color: #1a1a1a;
}

.studio-size {
    font-weight: 400;
    font-size: 1.4rem;
    color: #1a1a1a;
}

@media (max-width: 900px) {
    .studio-potential-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

.properties-gallery-section {
    padding: 5rem 2rem;
    background-color: var(--color-lightest);
}

.properties-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Increased gap to 3rem to provide significant breathing room between cards */
    gap: 1.5rem; 
    margin-bottom: 4rem;
}

.property-card {
    display: flex;
    flex-direction: column;
    text-align: left;
    /* Ensures child elements (like text) aren't cut off by container boundaries */
    overflow: visible; 
}

.property-image-wrapper {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background-color: #eee;
    margin-bottom: 1.5rem; /* Added margin to separate image from the text below */
}

.property-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.property-card:hover .property-image-wrapper img {
    transform: scale(1.05);
}

.property-info {
    padding: 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.property-info h3 {
    color: var(--color-darkest);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
    line-height: 1.2;
}

.property-info p {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

@media (max-width: 1024px) {
    .properties-grid {
        gap: 2rem;
    }
}

@media (max-width: 900px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 600px) {
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem; /* Increased vertical gap (4rem) to prevent H3 overlap */
    margin-bottom: 5rem;
}

.property-card {
    display: flex;
    flex-direction: column;
}

.property-info {
    padding-top: 1.5rem;
    min-height: 80px; /* Reserves space so text won't shift other elements */
}

.property-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-darkest);
    margin-bottom: 0.4rem;
}

.property-coming-soon {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 1.5rem;
    position: relative;
    /* Ensure the container doesn't clip the triangle */
    overflow: visible; 
}

.coming-soon-bubble {
    position: relative;
    background-color: var(--color-mid);
    color: white;
    padding: 1.2rem 3.5rem;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: inline-block;
    z-index: 10;
}

.coming-soon-bubble::after {
    content: '';
    position: absolute;
    /* This moves the triangle exactly to the top edge */
    top: -15px; 
    left: 50%;
    transform: translateX(-50%);
    
    /* Triangle Shape */
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 15px solid var(--color-mid);
    
    /* Ensures it stays on top of any background elements */
    z-index: 11;
    pointer-events: none;
}

.coming-soon-bubble p {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    /* Smoother text rendering */
    -webkit-font-smoothing: antialiased;
}

.coming-soon-bubble p {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

@media (max-width: 900px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 2rem;
    }
}   

.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rrem;
    max-width: 1050px;
    width: 100%;
    margin: 0 auto;
}

.property-card {
    display: flex;
    flex-direction: column;
    text-align: center; /* Keeps the text centered */
}

.property-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1; /* Forces the 3:4 portrait ratio */
    object-fit: cover;
    border-radius: 50px;
    margin-bottom: 0.5rem;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.property-info {
    padding-top: 0.5rem;
    min-height: auto; /* Removed the 80px min-height that was adding empty space */
}

.property-card h3 {
    font-size: 1.1rem; /* Scaled down the font size slightly to match the smaller cards */
    color: var(--color-darkest);
    font-weight: 600;
    margin-bottom: 0;
}

.cta-benefits i {
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1.5px currentColor;
}

.living-features i {
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1.5px currentColor;
}

.property-card {
    border-radius: 24px;
    opacity: 1 !important;
    border: 2px solid transparent;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.property-card:hover {
    transform: translateY(-4px);
    /* border-color: var(--color-dark);*/
}

.cta-benefits i,
.cta-contact i {
    color: var(--color-mid);
}

footer .fa-brands,
.social-links i,
.footer-social i {
    color: var(--color-mid);
}

footer .fa-brands:hover,
.social-links i:hover,
.footer-social i:hover {
    color: var(--color-mid);
}

/* --- BULLETPROOF MOBILE QUERIES --- */
@media (max-width: 900px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 3rem 2rem !important;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1.5rem 5%;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-lightest);
        padding: 2rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    header.menu-open .nav-links {
        display: flex;
    }
    .hero {
        min-height: 100vh;
        padding-top: 8rem;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .properties-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        width: 90% !important;
    }
    .cta-container {
        flex-direction: column;
        text-align: center;
        padding: 3rem 1.5rem;
        gap: 2rem;
    }
    .cta-main h2 {
        font-size: 2rem;
    }
    .cta-contact {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }
    .cta-benefits ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

@media (max-width: 426px) {
    header {
        padding: 1rem 5%;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .properties-grid {
        width: 100% !important;
        gap: 1.5rem !important;
    }
    .cta-container {
        padding: 2rem 1rem;
    }
    .cta-main h2 {
        font-size: 1.75rem;
    }
    .cta-benefits ul {
        gap: 0.75rem;
    }
}

/* --- FEATURES SECTION MOBILE FIX --- */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    
    .feature-card {
        padding: 2.5rem 1rem !important;
        border-right: none !important;
        border-bottom: 1px solid #e0dfdc !important;
    }
    
    /* Remove the bottom border from the very last card */
    .feature-card:last-child {
        border-bottom: none !important;
    }
}

@media (max-width: 426px) {
    .properties-section {
        padding: 1.5rem 5%;
    }

    .properties-grid {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        gap: 1rem !important;
    }
}

@media (max-width: 768px) {
    .features-grid,
    .amenities-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
        gap: 1.5rem !important;
    }

    /* Target every single child combination to override the 900px tablet rules */
    .feature-card,
    .feature-card:nth-child(n),
    .features-grid > div:nth-child(n),
    .amenities-grid > div:nth-child(n) {
        width: 100% !important;
        border-right: none !important;
        border-left: none !important;
        border-top: none !important;
        border-bottom: 1px solid #e0dfdc !important;
        padding-bottom: 1.5rem !important;
    }

    /* Remove the bottom border ONLY from the very last item */
    .feature-card:last-child,
    .features-grid > div:last-child,
    .amenities-grid > div:last-child {
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }
}
