/* --- Variables & Global --- */
:root { --brand: #B06041; --black: #000000; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; color: #333; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }

/* --- Header --- */
header { background: var(--brand); padding: 10px 0; position: fixed; width: 100%; z-index: 1000; top: 0; }
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }
.logo-group { display: flex; align-items: center; gap: 15px; }
.bricks-milestones-icon, .main-logo-image { height: 65px; width: auto; }
.main-nav a { color: #fff; text-decoration: none; margin-left: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; }

/* --- Hero --- */
.hero { height: 75vh; padding-top: 80px; background: linear-gradient(rgba(0,0,0,0.5),rgba(0,0,0,0.5)), url('images/sol-home.gif') center/cover; display: flex; align-items: center; justify-content: center; color: #fff; text-align: center; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: 3rem; margin-bottom: 20px; }
.btn-know { border: 2px solid #fff; padding: 12px 30px; color: #fff; text-decoration: none; font-weight: 700; display: inline-block; }

/* --- Layout Sections --- */
.section { padding: 80px 20px; max-width: 1200px; margin: 0 auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.center { text-align: center; }
.title-serif { font-family: 'Playfair Display', serif; font-size: 2.5rem; margin-bottom: 15px; }
.btn-solid { background: var(--brand); color: #fff; padding: 12px 25px; text-decoration: none; font-weight: 700;  border: none; cursor: pointer; }
.btn-solid {
    display: inline-block; 
    margin-top: 25px;      
}

/* --- Amenities Section --- */
.stats-section { background: var(--brand); color: #fff; padding: 80px 0; }
.amenities-list { columns: 2; list-style: disc; padding-left: 20px; font-size: 14px; }
.stat-item { background: var(--black); color: #fff; padding: 15px; margin-bottom: 10px; clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%); text-align: center; font-weight: 600; }

/* --- Unit Table Fix --- */
.table-container { 
    margin: 40px auto; 
    max-width: 1000px; 
    background: #000; 
    padding: 1px; 
}

/* This is the new part that enables mobile scrolling */
.table-wrapper {
    width: 100%;
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch;
}

.table-container table { 
    width: 100%; 
    border-collapse: collapse; 
    color: #fff; 
    min-width: 650px; /* Forces table to stay wide enough so text doesn't squash */
}

.table-container th, .table-container td { 
    padding: 15px; 
    text-align: left; 
    border: 1px solid #333; 
    font-size: 14px; 
    white-space: nowrap; /* Keeps 'Premium inventory available' on one line */
}

.table-container th { 
    text-transform: uppercase; 
    font-weight: 700; 
    background: #111; 
}
/* --- Floor Plan Grid --- */
.plan-grid-mini { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; margin-top: 30px; }
.plan-card { text-decoration: none; position: relative; border: 1px solid #ddd; overflow: hidden; }
.plan-overlay { position: absolute; bottom: 0; width: 100%; background: rgba(176, 96, 65, 0.9); color: #fff; padding: 8px; text-align: center; }
.variant-name { display: block; font-weight: 700; font-size: 12px; }
.download-text { font-size: 9px; }

/* --- Location Advantage Fix --- */
.map-box { width: 100%; border: 1px solid #ddd; }
.map-box img { width: 100%; height: 100%; object-fit: cover; }

/* --- Floor Plan Grid Fix --- */
.plan-grid-mini { 
    display: grid; 
    /* Desktop: 5 columns | Tablet: 3 columns | Mobile: 2 columns */
    grid-template-columns: repeat(5, 1fr); 
    gap: 15px; 
    margin-top: 30px; 
}

.plan-card { 
    text-decoration: none; 
    position: relative; 
    border: 1px solid #ddd; 
    overflow: hidden; 
    display: block; /* Ensures the link wraps the content correctly */
    width: 100%;
}

.plan-overlay { 
    position: absolute; 
    bottom: 0; 
    width: 100%; 
    background: rgba(176, 96, 65, 0.9); 
    color: #fff; 
    padding: 8px; 
    text-align: center; 
}

.variant-name { display: block; font-weight: 700; font-size: 12px; }
.download-text { font-size: 9px; }

/* The Modal Box */
.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    font-family: 'Segoe UI', Roboto, sans-serif;
}

/* The X Closing Button */
.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 32px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
}
.close-btn:hover { color: #333; }

/* Form Elements Styling */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box; 
    font-size: 15px;
}
.form-group textarea {
    height: 80px;
    resize: none;
    background-color: #f9f9f9;
}

/* Attractive Submit Button */
.submit-btn {
    width: 100%;
    background-color: #b36b3f; 
    color: white;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}
.submit-btn:hover {
    background-color: #8c5331;
}

/* Site Visit Modal Specifics */
.site-visit-style {
    padding: 0 !important; 
    overflow: hidden;
}
.modal-header {
    background-color: #B06041;
    color: white;
    padding: 15px;
    font-weight: bold;
    text-align: center;
    font-size: 18px;
}
.site-visit-btn {
    background-color: #B06041 !important;
    margin-top: 10px;
}
.site-visit-btn:hover {
    background-color: #8e4d34 !important;
}
.site-visit-style label {
    font-size: 13px;
    color: #666;
    margin-bottom: 2px;
}

/* Hamburger Button Styling */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}
.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }
    .main-nav {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #B06041;
        padding: 20px 0;
        text-align: center;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    }
    .main-nav.active { display: flex !important; }
    .main-nav a {
        padding: 15px;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
	
	/* Fix for Floor Plan Cards on Mobile */
    .plan-grid-mini {
        grid-template-columns: repeat(2, 1fr) !important; /* Forces 2 columns instead of 5 */
        gap: 10px;
    }

    .variant-name {
        font-size: 11px; /* Slightly smaller text for narrow mobile screens */
    }
}

/* --- NEW SECTIONS: GALLERY & DOWNLOADS --- */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.grid-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 4px;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.download-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    padding: 20px 0;
}

.dl-card {
    position: relative;
    width: 320px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.dl-label-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #000;
    color: #fff;
    padding: 12px 20px;
    font-weight: 700;
    width: 85%;
    text-align: center;
}

.brochure-ui-box {
    position: absolute;
    bottom: 25px;
    width: 100%;
    text-align: center;
    color: #fff;
}

.arrow-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    margin: 0 auto 10px;
    font-size: 24px;
}

.text-bold {
    display: block;
    font-size: 18px;
    font-weight: 800;
}

/* --- Comprehensive Mobile Responsive Fixes --- */
@media (max-width: 768px) {
    /* Show hamburger and handle mobile nav */
    .mobile-menu-btn { display: flex; }
    .main-nav {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #B06041;
        padding: 20px 0;
        text-align: center;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    }
    .main-nav.active { display: flex !important; }
    .main-nav a {
        padding: 15px;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        margin-left: 0; /* Reset desktop margin */
    }

    /* Fix for overlapping grid sections (Overview, Amenities, Location) */
    .grid-2 {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /* Fix for Amenities list overlapping the black stat boxes */
    .amenities-list {
        columns: 1; 
        margin-bottom: 30px;
    }

    /* Fix for Table scrolling */
    .table-container {
        overflow-x: auto;
    }
    
    .table-container table {
        min-width: 500px; 
    }

    /* Fix for Footer alignment and stacked contacts */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    
    /* Ensure gallery images stay square but resize */
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .download-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
}
/* Container for the two images */
.dual-image-container {
    display: flex;
    flex-wrap: wrap; /* Allows stacking on mobile */
    gap: 20px;       /* Spacing between images */
    justify-content: center;
    padding: 20px;
    width: 100%;
}

/* Individual image wrappers */
.img-wrapper {
    flex: 1 1 45%;   /* Takes up ~45% width on desktop */
    min-width: 300px; /* Forces stack if screen is too narrow */
}

.img-wrapper img {
    width: 100%;     /* Responsive width */
    height: auto;    /* Maintain aspect ratio */
    display: block;
    border-radius: 8px; /* Optional: adds a nice finish */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Mobile Specific Tweaks */
@media (max-width: 768px) {
    .img-wrapper {
        flex: 1 1 100%; /* Full width on mobile */
    }
    
    .dual-image-container {
        gap: 15px;
        padding: 10px;
    }
}
/* Custom height for gallery section */
.gallery-section {
    padding-top: 40px !important;   /* Reduces top space */
    padding-bottom: 40px !important; /* Reduces bottom space */
}

.gallery-section .section-title {
    margin-bottom: 30px; /* Tightens space between text and images */
}
@media (max-width: 768px) {
    /* Tighten the gap between the education list and gallery */
    #location .text-content {
        margin-bottom: 10px !important;
    }

    /* Reduce the massive top space in the gallery section */
    .gallery-section {
        padding-top: 20px !important;
        margin-top: 0 !important;
    }

    /* Bring the "Gallery" title closer to the images */
    .gallery-section .section-title {
        margin-bottom: 15px !important;
    }
}
/* --- Footer Styling - Center Aligned --- */
.main-footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 60px 20px 120px;
    text-align: center; /* Centers all direct text children */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto 40px;
}

/* Ensure individual columns also center their internal text */
/* Update this section in style.css */
/* --- Footer Links Visibility --- */
.footer-link {
    color: #000000 !important; /* Forces numbers to Black */
    text-decoration: none !important;
    font-weight: 600;
    transition: 0.3s ease;
}

.footer-link:hover {
    color: #B06041 !important; /* Changes to brand color on hover */
}

/* Also ensure the labels like "Address:" and "Contacts:" are black */
.footer-column p, 
.footer-column strong {
    color: #000000 !important;
}

.disclaimer-box {
    max-width: 1100px;
    margin: 0 auto;
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center; /* Fix for disclaimer centering */
}

.disclaimer {
    font-size: 11px;
    line-height: 1.8;
    opacity: 0.7;
    text-align: center; /* Changed from justify to center as requested */
}

.copyright-text {
    margin-top: 20px;
    font-size: 13px;
}

/* Mobile Layout */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .disclaimer {
        text-align: center;
    }
}
/* --- Contact Form Styling --- */
.contact-form-section {
    background-color: #f4f4f4; /* Light grey background to separate from gallery */
    padding: 60px 20px;
}

.small-form-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.small-form-container h3 {
    margin-bottom: 25px;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #333;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
}

.full-width {
    width: 100%;
    margin-bottom: 20px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.btn-submit {
    background-color: #B06041; /* Your brand orange */
    color: white;
    padding: 15px 50px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
    font-size: 16px;
}

.btn-submit:hover {
    background-color: #8e4d34;
}

.thank-you-message {
    background: #d4edda;
    color: #155724;
    padding: 20px;
    margin: 20px auto;
    max-width: 900px;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #c3e6cb;
}

/* --- Mobile Fix for Form --- */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .small-form-container {
        padding: 20px;
    }
    
    .btn-submit {
        width: 100%;
    }
}
/* This centers the popup and darkens the background */
.modal-overlay {
    display: none; /* Hidden by default, JS will show it */
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Dim background */
    z-index: 10001; /* Stay above everything else */
    overflow: auto;
}

/* This makes the form box look like a popup */
#autoPopup .modal-content {
    background-color: #fff;
    margin: 10% auto; /* 10% from top, centered horizontally */
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.floating-container {
    position: fixed;
    bottom: 25px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 99999;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.call-float { background-color: #000000; }
.wa-float { background-color: #25d366; }

.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 100000;
}