@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&display=swap');

@font-face {
    font-family: 'Soligant';
    src: url('fonts/Soligant.otf') format('opentype'),
        url('fonts/Soligant.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-color: #000;
    --secondary-color: #fff;
    --accent-color: #f4f1ea;
    /* Light beige/cream */
    --text-color: #333;
    --font-heading: 'Soligant', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

ul {
    list-style: none;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    color: #fff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    transition: background-color 0.3s ease;
}

.header-interior {
    max-width: 1480px;
    margin: 0 auto;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 100px;
    /* Enforce height to keep consistent */
}

.mobile-menu-icon {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 20px;
    height: 24px;
    cursor: pointer;
}

.mobile-menu-icon span {
    display: block;
    height: 4px;
    width: 4px;
    background-color: #fff;
    border-radius: 50%;
}

.header-interior::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50px;
    right: 50px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    transition: opacity 0.3s ease;
}

.header-interior.hide-line::after {
    opacity: 0;
}

header .logo img {
    height: 40px;
    /* Adjust based on actual logo size */
    filter: brightness(0) invert(1);
    /* Make logo white if it's dark */
}

header nav ul {
    display: flex;
    gap: 30px;
}

header nav a:hover {
    opacity: 0.7;
}

/* Hero Section */
.hero {
    height: 80vh;
    background: radial-gradient(circle, #111 0%, #000000 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    position: relative;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: normal;
    letter-spacing: 0.05em;
    animation: fadeUp 1.5s ease-out forwards;
    opacity: 0;
    /* Identify starting state */
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Intro Section */
.intro {
    background-color: var(--accent-color);
    padding: 80px 40px;
    /* Pull section up to overlap hero */
    position: relative;
    z-index: 10;
}

.intro-interior {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

.intro-images {
    display: flex;
    align-items: flex-end;
    position: relative;
    width: 50%;
}

.intro-images .img-couple {
    width: 75%;
    height: 700px;
    /* Vertical tall image */
    object-fit: cover;
    z-index: 1;
}

.intro-images .img-detail {
    width: 45%;
    height: 400px;
    /* Smaller detail image */
    object-fit: cover;
    margin-left: -20%;
    /* Overlap couple image */
    margin-bottom: 250px;
    /* Offset upwards to match design */
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.intro-content {
    display: flex;
    flex-direction: column;
    width: 40%;
    padding-left: 50px;
}

.intro-content h2 {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 3.3rem;
    margin-bottom: 20px;
    color: #000;
}

.intro-content p {
    display: block;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    text-align: left;
    color: #444;
}

/* Vision Section */
.vision {
    padding: 100px 50px;
    background: radial-gradient(circle, #FFF 0%, #DDD 100%);
}

.vision-interior {
    max-width: 1300px;
    margin: 0 auto;
    text-align: center;
}

.vision h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 50px;
}

.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    text-align: left;
}

.vision-item h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.vision-item p {
    font-size: 0.9rem;
    color: #666;
}

/* Floorplan Section */
.floorplan {
    background-color: #111;
    color: #fff;
    padding: 100px 50px;
}

.floorplan-interior {
    display: flex;
    align-items: center;
    /*justify-content: center;*/
    gap: 100px;
    max-width: 1300px;
    margin: 0 auto;
}

.floorplan-content {
    /*max-width: 450px;*/
    width: 50%;
}

.floorplan-content h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 30px;
}

.floorplan-content p {
    color: #aaa;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.floorplan-img img {
    max-width: 80%;
    /* If the image is black on white */
}

/* Gallery Section */
.gallery {
    display: block;
    width: 100%;
    overflow: hidden;
}

.gallery-item {
    height: 600px;
    overflow: hidden;
}

.gallery picture,
.gallery img {
    width: 100%;
    height: auto;
    /* Allow auto height for full responsivenes */
    display: block;
    object-fit: cover;
}

.gallery picture,
.gallery img {
    width: 100%;
    height: auto;
    display: block;
}

/* Space Section */
.space {
    padding: 100px 50px;
}

.space-interior {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    max-width: 1300px;
    margin: 0 auto;
}

.space-content {
    flex: 1;
    max-width: 500px;
}

.space-content h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 30px;
}

.space-content p {
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.space-video-wrapper {
    flex: 1;
    position: relative;
}

.space-video-wrapper img {
    width: 80%;
    height: auto;
    float: right;
}

/* Neighborhood Section */
.neighborhood {
    background-color: #111111;
    color: #FCF7F3;
    padding: 0;
    /* Remove padding to allow image to reach edges */
}

.neighborhood-interior {
    display: flex;
    align-items: stretch;
    /* Ensure children take full height */
    max-width: none;
    margin: 0;
}

.neighborhood-content {
    flex: 0 0 50%;
    padding: 100px 80px 100px calc((100vw - 1300px) / 2);
    /* Aligns perfectly with the 1300px centered grid */
}

/* Adjust calculation for smaller screens */
@media (max-width: 1400px) {
    .neighborhood-content {
        padding-left: 50px;
    }
}

.neighborhood-content h2 {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 10px;
    color: #FCF7F3;
}

.neighborhood-content h3 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 30px;
    color: #FCF7F3;
}

.neighborhood-list {
    margin-top: 40px;
}

.neighborhood-item {
    display: flex;
    gap: 30px;
    padding: 30px 0;
    border-top: 1px dotted #555;
}

.neighborhood-item .item-number {
    font-size: 1.4rem;
    color: #888;
    min-width: 40px;
    font-weight: 300;
}

.neighborhood-item .item-text h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
    text-transform: none;
}

.neighborhood-item .item-text p {
    font-size: 0.85rem;
    color: #aaa;
    line-height: 1.5;
}

.neighborhood-img {
    flex: 0 0 50%;
    position: relative;
    min-height: 600px;
}

.neighborhood-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer */
footer {
    background-color: #000;
    color: #FCF7F3;
    padding: 100px 50px 20px;
}

.footer-interior {
    max-width: 800px;
    /* Constrain for better readability */
    margin: 0 auto;
    text-align: center;
}

.footer-interior h2 {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 20px;
}

.footer-interior h3 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 30px;
    letter-spacing: 0.02em;
}

.footer-interior h3 strong {
    font-weight: 600;
}

.footer-interior p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #aaa;
    margin-bottom: 40px;
}

.footer-interior .contact-email a {
    font-size: 1.5rem;
    color: #fff;
    text-transform: none;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #fff;
    padding-bottom: 5px;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #000;
    /* Minimalist black */
    z-index: 200;
    /* Above header */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-overlay nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.mobile-menu-overlay nav a {
    font-family: var(--font-body);
    font-size: 2rem;
    /* Large and elegant */
    color: #fff;
    text-transform: none;
    /* Keep it sophisticated */
}

.close-menu-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    line-height: 1;
}

.credits {
    margin-top: 100px;
    text-align: center;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #444;
}

.credits strong {
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {

    /* Global Mobile Typography */
    p {
        font-size: 14px !important;
        line-height: 22px !important;
    }

    /* Header & Nav */
    header {
        padding: 10px 20px;
    }

    header nav {
        display: none;
    }

    .header-interior {
        padding: 0;
        height: 60px;
        justify-content: flex-end;
        /* Ensure menu is on the right */
    }

    .header-interior::after {
        display: none;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu-icon {
        display: flex;
        z-index: 101;
    }

    header .logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    header .logo img {
        height: 35px;
        /* Reduced to be smaller */
    }

    /* Hero */
    .hero {
        height: 60vh;
    }

    .hero h1 {
        font-size: 2.8rem;
        line-height: 3.6rem;
        text-align: center;
        width: 100%;
        padding: 0 20px;
    }

    /* Intro */
    .intro {
        margin-top: 0;
        /* Reset overlap for mobile simplicity or maintain small overlap */
        padding: 50px 20px;
    }

    .intro-interior {
        flex-direction: column;
        gap: 40px;
    }

    .intro-images {
        width: 100%;
        height: auto;
        margin-bottom: 20px;
    }

    .intro-images .img-couple {
        position: relative;
        width: 100%;
        height: auto;
        left: auto;
        border-radius: 0;
    }

    .gallery {
        display: block;
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }

    /* Gallery Mobile */
    .gallery picture,
    .gallery img {
        width: 100% !important;
        max-width: 100% !important;
        display: block;
    }

    .intro-images .img-detail {
        display: none;
        /* Simplify images for mobile as per common pattern, or adjust to stack */
    }

    /* If keeping image detail, it needs significantly different positioning. 
       Based on the sample, it seems like a single image block or simpler layout. 
       Let's keep it simple for now or just stack if visible. */

    .intro-content {
        width: 100%;
        padding-left: 0;
        text-align: left;
        /* Keep left alignment */
    }

    .intro-content h2 {
        font-size: 2rem;
        line-height: 2.6rem;
    }

    /* Vision */
    .vision-interior {
        padding: 0;
    }

    .vision {
        padding: 50px 20px;
    }

    .vision h2 {
        font-size: 2rem;
        line-height: 2.6rem;
        text-align: left;
    }

    .vision-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Floorplan */
    .floorplan {
        padding: 50px 20px;
    }

    .floorplan-interior {
        flex-direction: column;
        gap: 40px;
    }

    .floorplan-content {
        width: 100%;
        text-align: left;
    }

    .floorplan-content h2 {
        font-size: 2rem;
        line-height: 2.6rem;
        text-align: left;
    }

    .floorplan-img {
        width: 100%;
    }

    /* Space */
    .space {
        padding: 50px 20px;
    }

    .space-interior {
        flex-direction: column-reverse;
        /* Text first or image first? Design usually keeps flow. Let's stack naturally */
        flex-direction: column;
        gap: 40px;
    }

    .space-content {
        width: 100%;
        text-align: left;
    }

    .space-content h2 {
        font-size: 2rem;
        line-height: 2.6rem;
        text-align: left;
    }

    .space-video-wrapper {
        width: 100%;
        height: auto;
    }

    .space-video-wrapper img {
        width: 100%;
        height: auto;
    }

    /* Neighborhood */
    .neighborhood {
        padding: 0;
    }

    .neighborhood-interior {
        flex-direction: column;
    }

    .neighborhood-content {
        flex: 0 0 100%;
        padding: 80px 30px;
        /* Reset giant padding */
    }

    .neighborhood-content h2 {
        font-size: 2rem;
        line-height: 2.6rem;
        text-align: left;
    }

    .neighborhood-img {
        flex: 0 0 auto;
        /* Allow auto height */
        width: 100%;
        min-height: 400px;
    }

    /* Footer / Contact */
    footer {
        padding: 60px 20px 20px;
    }

    .footer-interior h2 {
        font-size: 2rem;
        line-height: 2.6rem;
    }

    .footer-interior h3 {
        font-size: 1rem;
        line-height: 1.4rem;
    }

    .footer-interior .contact-email a {
        font-size: 1rem;
        /* Smaller for mobile to prevent overflow */
        word-break: break-all;
        /* Ensure long email breaks if needed */
    }
}