/* ============================================
   RESET & BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: #1a1a1a;
    background-color: #ffffff;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   PASSWORD PROTECTION
   ============================================ */

.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.password-container {
    background-color: #fff;
    padding: 3rem 4rem;
    border-radius: 0;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.password-container h2 {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.password-container > p {
    color: #6a6a6a;
    font-weight: 300;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

#passwordForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#passwordInput {
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0;
    font-size: 1rem;
    font-family: inherit;
    background-color: #fafafa;
    color: #1a1a1a;
    font-weight: 300;
    transition: all 0.3s ease;
}

#passwordInput:focus {
    outline: none;
    border-color: #1a1a1a;
    background-color: #fff;
}

#passwordForm button {
    background-color: #1a1a1a;
    color: #fff;
    padding: 1rem 2rem;
    border: 1.5px solid #1a1a1a;
    border-radius: 0;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

#passwordForm button:hover {
    background-color: transparent;
    color: #1a1a1a;
}

.password-error {
    color: #d32f2f;
    font-size: 0.9rem;
    margin-top: -0.5rem;
    min-height: 1.5rem;
    font-weight: 300;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar {
    padding: 1.5rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo a {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: opacity 0.3s ease;
}

.logo a:hover {
    opacity: 0.7;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    flex-wrap: wrap;
}

.nav-menu a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #1a1a1a;
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: #1a1a1a;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    margin-bottom: 6rem;
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: #fff;
    padding: 3rem;
    max-width: 900px;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: -1px;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
    opacity: 0.95;
}

.btn-hero {
    display: inline-block;
    background-color: transparent;
    color: #fff;
    padding: 1.1rem 2.5rem;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    border-radius: 0;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-hero:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    transform: translateY(-2px);
}

.hero-description {
    max-width: 900px;
    margin: 5rem auto 0;
    padding: 0 3rem;
    text-align: center;
    font-size: 1.15rem;
    color: #4a4a4a;
    line-height: 1.9;
    font-weight: 300;
    letter-spacing: 0.2px;
}

/* ============================================
   CONTAINER
   ============================================ */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* ============================================
   FLOORPLANS SECTION
   ============================================ */

.floorplans {
    padding: 8rem 0;
    background-color: #fafafa;
}

.floorplans h2 {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 300;
    letter-spacing: -1px;
    line-height: 1.2;
}

.floorplans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
    margin-top: 5rem;
}

.floorplan-card {
    background-color: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.floorplan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.floorplan-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.floorplan-card:hover .floorplan-image {
    transform: scale(1.05);
}

.floorplan-info {
    padding: 2.5rem;
}

.floorplan-info h3 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
    font-weight: 400;
    letter-spacing: -0.3px;
}

.beds-baths {
    color: #6a6a6a;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.3px;
}

.price {
    font-size: 1.8rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.sqft {
    color: #6a6a6a;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.3px;
}

.description {
    color: #4a4a4a;
    line-height: 1.7;
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.2px;
}

/* ============================================
   GALLERY SECTION
   ============================================ */

.gallery {
    padding: 8rem 0;
    background-color: #ffffff;
}

.gallery h2 {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 300;
    letter-spacing: -1px;
    line-height: 1.2;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 5rem;
}

.gallery-item {
    background-color: #fafafa;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.gallery-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-caption {
    padding: 1.5rem;
    text-align: center;
    color: #6a6a6a;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.3px;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
    padding: 8rem 0;
    background-color: #fafafa;
}

.contact h2 {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 300;
    letter-spacing: -1px;
    line-height: 1.2;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-item h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 400;
    letter-spacing: -0.3px;
}

.contact-item p {
    color: #4a4a4a;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
    letter-spacing: 0.2px;
}

.contact-item a {
    color: #1a1a1a;
    text-decoration: none;
    transition: opacity 0.3s ease;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.contact-item a:hover {
    border-bottom-color: #1a1a1a;
}

.map-container {
    margin-top: 2rem;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.map-container iframe {
    display: block;
}

.contact-form-container {
    background-color: #fff;
    padding: 3rem;
    border-radius: 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.75rem;
    font-weight: 400;
    color: #1a1a1a;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #fafafa;
    color: #1a1a1a;
    font-weight: 300;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a1a1a;
    background-color: #fff;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    background-color: #1a1a1a;
    color: #fff;
    padding: 1.1rem 2.5rem;
    border: 1.5px solid #1a1a1a;
    border-radius: 0;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.btn-submit:hover {
    background-color: transparent;
    color: #1a1a1a;
    transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    letter-spacing: 0.3px;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 300;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.footer-links a:hover {
    color: #fff;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet and below */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 2rem;
    }

    .nav-menu {
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-image-container {
        height: 70vh;
        min-height: 500px;
    }

    .hero-description {
        margin-top: 3rem;
        padding: 0 2rem;
    }

    .container {
        padding: 0 2rem;
    }

    .floorplans,
    .gallery,
    .contact {
        padding: 5rem 0;
    }

    .floorplans h2,
    .gallery h2,
    .contact h2 {
        font-size: 2.5rem;
    }

    .floorplans-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 3rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
        margin-top: 3rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-top: 3rem;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 1.5rem;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 1rem;
    }

    .hero-content {
        padding: 2rem 1.5rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .btn-hero {
        padding: 0.9rem 2rem;
        font-size: 0.85rem;
    }

    .hero-image-container {
        height: 60vh;
        min-height: 400px;
    }

    .hero-description {
        font-size: 1rem;
        padding: 0 1.5rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .floorplans,
    .gallery,
    .contact {
        padding: 4rem 0;
    }

    .floorplans h2,
    .gallery h2,
    .contact h2 {
        font-size: 2rem;
    }

    .floorplans-grid {
        margin-top: 2.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        margin-top: 2.5rem;
    }

    .contact-content {
        margin-top: 2.5rem;
    }

    .contact-form-container {
        padding: 2rem;
    }

    .floorplan-info {
        padding: 2rem;
    }
}
