/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a1a2e;
    --accent: #c9a96e;
    --accent-light: #e8d5a3;
    --text: #1a1a1a;
    --text-light: #555555;
    --text-white: #f5f5f5;
    --bg: #ffffff;
    --bg-dark: #1a1a2e;
    --bg-cream: #faf8f5;
    --border: #e8e4de;
    --radius: 2px;
    --shadow: 0 2px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--bg);
}

h1, h2, h3, h4 {
    text-wrap: balance;
}

p, li {
    text-wrap: pretty;
    orphans: 3;
    widows: 3;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Offset anchor scroll targets so the fixed navbar doesn't cover headings */
section[id] {
    scroll-margin-top: 90px;
}

/* === Navigation === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(12px);
    z-index: 100;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(201, 169, 110, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-white);
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--accent);
}

/* === Hero === */
.hero {
    padding: 8rem 0 4rem;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #16213e 100%);
    color: var(--text-white);
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 2.5rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 300;
}

.hero-photos {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.hero-photos img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-photos img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* === Highlights === */
.highlights {
    padding: 4rem 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.highlight-card {
    text-align: center;
    padding: 1.5rem 1rem;
}

.highlight-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
}

.highlight-card strong {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.highlight-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 300;
}

/* === Neighborhood === */
.neighborhood-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 2.5rem;
}

.neighborhood-photo-item {
    text-align: center;
}

.neighborhood-photo-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.neighborhood-photo-item img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.neighborhood-photo-item p {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #555;
    font-weight: 300;
}

.neighborhood-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.neighborhood-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    text-align: center;
}

.neighborhood-card strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.neighborhood-card p {
    color: var(--text-light);
    font-weight: 300;
    font-size: 0.95rem;
}

/* === Gallery Captions === */
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.03em;
    z-index: 2;
}

.hero-details {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-badge {
    background: rgba(201, 169, 110, 0.1);
    border: 1px solid rgba(201, 169, 110, 0.3);
    padding: 0.75rem 1.5rem;
    font-weight: 300;
    font-size: 1.4rem;
    color: var(--text-white);
    letter-spacing: 0.05em;
    border-radius: 50px;
}

.hero-address {
    color: rgba(255,255,255,0.6);
    margin-bottom: 3rem;
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-weight: 400;
    font-size: 1.4rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 50px;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 169, 110, 0.3);
}

/* === Sections === */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--bg-cream);
}

.section h2 {
    font-size: 2.2rem;
    font-weight: 300;
    margin-bottom: 0.75rem;
    text-align: center;
    letter-spacing: -0.01em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3.5rem;
    font-weight: 300;
    font-size: 1.05rem;
}

/* === Photo Gallery === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 0.5rem;
    margin-top: 3rem;
}

.gallery-item {
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 3/2;
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0);
    transition: background 0.3s;
    pointer-events: none;
}

.gallery-item:hover::after {
    background: rgba(26, 26, 46, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* === Lightbox === */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: var(--accent);
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
}

.lightbox-close {
    top: 1.5rem;
    right: 2rem;
    font-size: 2.5rem;
}

.lightbox-prev {
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

/* === Details === */
.details-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 5rem;
    margin-top: 3rem;
}

.details-description h3,
.details-amenities h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent);
}

.details-description p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.9;
}

.amenities-list {
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.amenities-list li {
    padding: 0.5rem 0;
    color: var(--text);
    font-weight: 300;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
}

.lease-terms {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.lease-terms h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent);
}

.terms-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.term-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.term-item strong {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.1em;
    font-weight: 400;
}

.term-item span {
    font-size: 1.2rem;
    font-weight: 300;
}

/* === Calendly === */
.calendly-embed {
    max-width: 900px;
    margin: 0 auto;
}

/* === Contact Form === */
.contact-form {
    max-width: 750px;
    margin: 0 auto;
    background: white;
    padding: 3.5rem;
    border: 1px solid var(--border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-weight: 400;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: var(--bg-cream);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.contact-method-options {
    display: flex;
    gap: 2rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 300;
    font-size: 1rem;
    text-transform: none;
    letter-spacing: normal;
    color: var(--text);
    cursor: pointer;
}

.radio-label input[type="radio"] {
    width: auto;
    accent-color: var(--accent);
    cursor: pointer;
}

.form-status {
    margin-top: 1.5rem;
    padding: 1rem;
    text-align: center;
    display: none;
    font-weight: 300;
}

.form-status.success {
    display: block;
    background: #f0f7f0;
    color: #2d5a2d;
    border: 1px solid #c3dbc3;
}

.form-status.error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #f5c6c6;
}

/* === FAQ === */
.faq-grid {
    max-width: 800px;
    margin: 2.5rem auto 0;
}

.faq-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.faq-item h4 {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: var(--text-light);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.7;
}

/* === About Owners === */
.owners-section {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.owners-photo-placeholder {
    width: 250px;
    height: 250px;
    background: var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-weight: 300;
    font-size: 1rem;
}

.owners-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
}

.owners-text h2 {
    text-align: left;
    margin-bottom: 1.25rem;
}

.owners-text p {
    color: var(--text-light);
    font-weight: 300;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.owners-signature {
    font-size: 1.2rem;
    color: var(--accent);
    margin-top: 1.5rem;
}

/* === Footer === */
.footer {
    text-align: center;
    padding: 3rem 0;
    background: var(--bg-dark);
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* === Mobile Menu === */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
}

/* === Back to Top === */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--primary);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(20px);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Scroll Animations === */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Form Button Fix === */
.contact-form .btn {
    width: auto;
    display: inline-block;
}

/* === Responsive === */
@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 26, 46, 0.98);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 0.25rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 0.75rem 0;
        font-size: 0.85rem;
    }

    .logo {
        font-size: 0.85rem;
        letter-spacing: 0.1em;
    }

    .hero {
        padding: 6.5rem 0 3rem;
    }

    .hero h1 {
        font-size: 1.6rem;
        line-height: 1.4;
    }

    .hero-details {
        gap: 0.6rem;
        margin-bottom: 1.5rem;
    }

    .detail-badge {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .hero-address {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }

    .hero-photos {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .hero-photos img {
        height: 200px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .btn {
        font-size: 1rem;
        padding: 0.9rem 2rem;
        letter-spacing: 0.05em;
    }

    .section {
        padding: 3.5rem 0;
    }

    .section h2 {
        font-size: 1.6rem;
    }

    .section-subtitle {
        margin-bottom: 2rem;
        font-size: 0.95rem;
    }

    .highlights {
        padding: 2.5rem 0;
    }

    .highlights-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }

    .highlight-card {
        padding: 1rem 0.5rem;
    }

    .neighborhood-photos {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .neighborhood-photo-item img {
        height: 130px;
    }

    .neighborhood-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .neighborhood-card {
        padding: 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-top: 2rem;
    }

    .details-description p {
        font-size: 1rem;
    }

    .lease-terms {
        margin-top: 2.5rem;
        padding-top: 2rem;
    }

    .terms-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.85rem;
    }

    .contact-method-options {
        gap: 1.5rem;
    }

    .faq-item h4 {
        font-size: 1rem;
    }

    .owners-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .owners-img {
        margin: 0 auto;
        width: 160px;
        height: 160px;
    }

    .owners-text h2 {
        text-align: center;
    }

    .owners-text p {
        font-size: 1rem;
    }

    .back-to-top {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }
}

@media (max-width: 400px) {
    .container {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 1.4rem;
    }

    .detail-badge {
        font-size: 0.75rem;
        padding: 0.45rem 0.85rem;
    }

    .highlights-grid,
    .neighborhood-photos,
    .neighborhood-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 1.25rem;
    }

    .lightbox-close {
        top: 0.5rem;
        right: 0.75rem;
        font-size: 2rem;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 1.5rem;
        padding: 0.5rem;
    }

    .lightbox-prev {
        left: 0.25rem;
    }

    .lightbox-next {
        right: 0.25rem;
    }
}
