:root {
    --emerald: #046A38;
    --emerald-light: #058045;
    --emerald-dark: #034D28;
    --emerald-subtle: rgba(4, 106, 56, 0.06);
    --emerald-border: rgba(4, 106, 56, 0.2);
    --black: #1A1A1A;
    --bg: #FFFFFF;
    --bg-alt: #F7F7F7;
    --card: #FFFFFF;
    --card-hover: #FAFAFA;
    --border: #E8E8E8;
    --border-light: #F0F0F0;
    --white: #FFFFFF;
    --text: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1200px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
}

/* ───── Navbar ───── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    height: 64px;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--black);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.15s;
}

.nav-links a:hover {
    color: var(--black);
    background: var(--bg-alt);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--font);
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    letter-spacing: -0.01em;
}

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

.btn-primary:hover {
    background: var(--emerald-light);
}

.btn-nav {
    background: var(--emerald);
    color: var(--white);
    padding: 8px 20px;
    font-size: 0.8125rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.15s;
}

.btn-nav:hover {
    background: var(--emerald-light);
}

.btn-full {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--black);
    transition: 0.2s;
}

/* ───── Hero ───── */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 64px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.45) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 24px;
    max-width: 720px;
    width: 100%;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 12px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--white);
    font-weight: 400;
    margin-bottom: 48px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.hero-search {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.search-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    justify-content: center;
}

.search-tab {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 8px 20px;
    font-size: 0.8125rem;
    font-family: var(--font);
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.search-tab:hover {
    border-color: #CCC;
    color: var(--black);
}

.search-tab.active {
    background: var(--emerald);
    border-color: var(--emerald);
    color: var(--white);
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 6px 6px 6px 18px;
    gap: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.search-icon {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-bar input {
    flex: 1;
    background: none;
    border: none;
    color: var(--black);
    font-family: var(--font);
    font-size: 0.9375rem;
    outline: none;
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: var(--emerald);
    color: var(--white);
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
}

.search-btn:hover {
    background: var(--emerald-light);
}

/* ───── Stats Bar ───── */
.featured-bar {
    border-bottom: 1px solid var(--border);
    padding: 32px 0;
    background: var(--white);
}

.stats-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--emerald);
    letter-spacing: -0.02em;
}

.stat-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* ───── Sections ───── */
.section {
    padding: 96px 0;
}

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

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--emerald);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--black);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ───── Buy Section ───── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 32px;
    transition: all 0.2s;
}

.feature-card:hover {
    border-color: var(--emerald-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.feature-number {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--emerald);
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ───── Sell Section ───── */
.sell-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.sell-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 32px;
    transition: all 0.2s;
}

.sell-card:hover {
    border-color: var(--emerald-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.sell-icon {
    width: 40px;
    height: 40px;
    color: var(--emerald);
    margin-bottom: 20px;
}

.sell-icon svg {
    width: 100%;
    height: 100%;
}

.sell-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.sell-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ───── CTA Section ───── */
.cta-section {
    padding: 96px 0;
    position: relative;
    background-size: cover;
    background-position: center;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.3);
}

.cta-card {
    position: relative;
    z-index: 1;
    background: var(--emerald-dark);
    border-radius: 20px;
    padding: 64px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
}

.cta-content .section-label {
    color: rgba(255, 255, 255, 0.6);
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 28px;
}

.cta-content .btn-primary {
    background: var(--white);
    color: var(--emerald-dark);
    font-weight: 600;
}

.cta-content .btn-primary:hover {
    background: #F0F0F0;
}

.cta-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
    font-weight: 500;
}

.cta-feature svg {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
}

/* ───── Neighborhoods ───── */
.neighborhoods-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 16px;
}

.neighborhood-card {
    position: relative;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    height: 200px;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    transition: all 0.2s;
    background-size: cover;
    background-position: center;
}

.neighborhood-card:hover {
    border-color: var(--emerald);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.neighborhood-large {
    grid-column: span 2;
    grid-row: span 2;
    height: 100%;
    min-height: 416px;
}

.neighborhood-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(4, 106, 56, 0.03) 100%);
}

.neighborhood-info {
    position: relative;
    z-index: 1;
    padding: 24px;
    width: 100%;
}

.neighborhood-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
}

.neighborhood-info span {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.more-areas {
    text-align: center;
    margin-top: 32px;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.more-areas span {
    color: var(--text-secondary);
}

/* ───── About ───── */
.about-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 64px;
    align-items: start;
}

.about-content .section-label {
    display: block;
    margin-bottom: 8px;
}

.about-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--black);
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.about-lead {
    font-size: 1.0625rem;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 16px;
}

.about-content p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-details {
    display: flex;
    gap: 40px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.detail-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.detail-value {
    font-size: 0.9375rem;
    color: var(--text);
    font-weight: 500;
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-photo {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: center top;
    border-radius: 16px;
    border: 1px solid var(--border);
}

/* ───── Contact ───── */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.contact-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-item svg {
    width: 22px;
    height: 22px;
    color: var(--emerald);
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
}

.contact-item a,
.contact-item span {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9375rem;
}

.contact-item a:hover {
    color: var(--emerald);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    color: var(--black);
    font-family: var(--font);
    font-size: 0.9375rem;
    transition: border-color 0.15s;
    width: 100%;
}

.contact-form select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.contact-form select option {
    background: var(--white);
    color: var(--black);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--emerald);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* ───── Footer ───── */
.footer {
    background: var(--black);
    border-top: 1px solid var(--border);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-logo {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.875rem;
    color: #999;
    line-height: 1.6;
}

.footer-license {
    margin-top: 8px;
    font-size: 0.8125rem !important;
    color: #777 !important;
}

.footer-col h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #BBB;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 0.875rem;
    color: #888;
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.15s;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #888;
    transition: all 0.15s;
    padding: 0;
}

.footer-social a:hover {
    color: var(--white);
    border-color: var(--emerald);
    background: rgba(4, 106, 56, 0.15);
}

.footer-social svg {
    width: 16px;
    height: 16px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: #777;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 0.8125rem;
    color: #777;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-legal a:hover {
    color: var(--white);
}

/* ───── Mobile ───── */
@media (max-width: 900px) {
    .features-grid,
    .sell-grid {
        grid-template-columns: 1fr;
    }

    .cta-card {
        grid-template-columns: 1fr;
        padding: 40px 32px;
    }

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

    .neighborhood-large {
        min-height: 240px;
    }

    .about-layout {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .about-photo {
        max-width: 240px;
        aspect-ratio: 1;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px 20px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
    }

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

    .nav-links a {
        padding: 12px 14px;
    }

    .btn-nav {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .section {
        padding: 64px 0;
    }

    .hero {
        min-height: 75vh;
    }

    .stats-row {
        gap: 24px;
    }

    .stat-number {
        font-size: 1.25rem;
    }

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

    .neighborhood-large {
        min-height: 200px;
        grid-column: span 1;
        grid-row: span 1;
    }

    .neighborhood-card {
        height: 160px;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
}
