/* Luxury Real Estate Site - Shared Styles */

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

:root {
    --primary-dark: #1a1a1a;
    --primary-gold: #006341;
    --warm-white: #faf8f5;
    --soft-gray: #6b6b6b;
    --light-gray: #f5f5f5;
}

body {
    font-family: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: var(--primary-dark);
    background: var(--warm-white);
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 20px 0;
}

#navbar.scrolled {
    background: rgba(0, 99, 65, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.logo {
    width: 150px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    max-width: 150px;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

nav.scrolled .nav-links a {
    color: white;
    text-shadow: none;
}

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

nav.scrolled .nav-links a:hover {
    color: rgba(255, 255, 255, 0.7);
}

.contact-btn {
    background: var(--primary-gold);
    color: white;
    padding: 12px 28px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-gold);
    text-decoration: none;
    display: inline-block;
}

.contact-btn:hover {
    background: transparent;
    color: var(--primary-gold);
}

nav:not(.scrolled) .contact-btn:hover {
    color: white;
    border-color: white;
}

nav.scrolled .contact-btn {
    background: white;
    color: var(--primary-gold);
    border-color: white;
}

nav.scrolled .contact-btn:hover {
    background: transparent;
    color: white;
    border-color: white;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-right: -10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

nav.scrolled .mobile-menu-toggle span {
    background: white;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: white;
    z-index: 999;
    transition: right 0.3s ease;
    padding: 80px 40px 40px;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    list-style: none;
}

.mobile-nav-links li {
    margin-bottom: 30px;
}

.mobile-nav-links a {
    text-decoration: none;
    color: var(--primary-dark);
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.mobile-contact-btn {
    width: 100%;
    background: var(--primary-gold);
    color: white;
    padding: 16px;
    border: none;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 40px;
    cursor: pointer;
    text-decoration: none;
    display: block;
    text-align: center;
}

/* Hero Section - Landing Page */
section.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 1080"><rect fill="%23333" width="1920" height="1080"/><text x="50%" y="50%" text-anchor="middle" dy=".3em" fill="%23666" font-family="sans-serif" font-size="40">Luxury Property Image</text></svg>');
    background-size: cover;
    background-position: center;
    opacity: 0.4;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    z-index: 1;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity 3s ease-in-out;
}

.hero-video-overlay.fade-in {
    opacity: 0.5;
}

.hero-content {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    z-index: 2;
    color: white;
}

section.hero h1 {
    font-size: clamp(36px, 8vw, 80px);
    font-weight: 200;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

section.hero .tagline {
    font-size: clamp(16px, 2.5vw, 20px);
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 16px 36px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border: 1px solid var(--primary-gold);
}

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

.btn-primary:hover {
    background: #00523a;
    border-color: #00523a;
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-dark);
}

/* Neighborhoods Section */
.neighborhoods {
    padding: 80px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 200;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--soft-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.neighborhood-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

.neighborhood-card {
    position: relative;
    padding: 40px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.neighborhood-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-color: var(--primary-gold);
}

.neighborhood-name {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    color: var(--primary-dark);
}

.neighborhood-details {
    font-size: 14px;
    color: var(--soft-gray);
    line-height: 1.6;
}

.neighborhood-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0, 99, 65, 0.08);
    color: var(--primary-gold);
    border: 1px solid rgba(0, 99, 65, 0.2);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary-gold);
    color: white;
    border-color: var(--primary-gold);
    transform: translateY(-1px);
}

/* About Section */
.about {
    background: white;
    padding: 80px 40px;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 60px;
    align-items: start;
}

.about-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
}

.about-content h3 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 200;
    margin-bottom: 30px;
    line-height: 1.2;
}

.about-content p {
    font-size: 16px;
    color: var(--soft-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 0;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 200;
    color: var(--primary-gold);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--soft-gray);
}

/* Container for content pages */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px;
}

/* Article/Content Styles */
article h1 {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 200;
    margin-bottom: 20px;
    line-height: 1.2;
}

article h2 {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 300;
    margin-top: 40px;
    margin-bottom: 20px;
    line-height: 1.25;
}

article p {
    margin-bottom: 20px;
}

article ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

article section {
    margin: 32px 0;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    padding-left: 0;
    list-style: none;
    margin-bottom: 20px;
}

.cards li {
    background: white;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Table of Contents */
nav.toc {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 12px 0;
    margin: 12px auto;
    text-align: center;
    max-width: 960px;
}

nav.toc a {
    margin-right: 12px;
    text-decoration: none;
    color: var(--primary-gold);
    font-size: 14px;
}

nav.toc a:hover {
    text-decoration: underline;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-top: 80px;
    padding-top: 30px;
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 10px;
    font-size: 14px;
    color: var(--soft-gray);
}

.breadcrumbs a {
    color: var(--primary-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumbs span {
    color: var(--primary-dark);
}

/* Related Articles */
.related-articles {
    padding: 60px 24px;
    background: var(--light-gray);
    margin-top: 40px;
}

.related-articles h2 {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 200;
    text-align: center;
    margin-bottom: 40px;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 20px;
}

.related-article-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    display: block;
}

.related-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-color: var(--primary-gold);
}

.related-article-card h3 {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.related-article-card p {
    font-size: 14px;
    color: var(--soft-gray);
    line-height: 1.6;
    margin: 0;
}

/* Header with image */
header.hero {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 150px;
    margin-bottom: 40px;
}

header.hero img {
    max-width: 260px;
    height: auto;
    border-radius: 12px;
}

/* Meta text */
small.meta {
    color: #666;
}

/* Details/FAQ */
details {
    margin-bottom: 16px;
    padding: 16px;
    background: white;
    border-radius: 4px;
}

details summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-dark);
}

details p {
    margin-top: 12px;
}

/* CTA Section */
.cta {
    background: white;
    padding: 32px 24px;
    border-radius: 12px;
    margin-top: 40px;
    text-align: center;
}

.cta h2 {
    margin-bottom: 16px;
    font-weight: 300;
}

.cta p {
    margin-bottom: 24px;
    color: var(--soft-gray);
}

/* Contact Button */
.contact-cta-btn {
    display: inline-block;
    background: var(--primary-gold);
    color: white;
    padding: 16px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-gold);
}

.contact-cta-btn:hover {
    background: #00523a;
    border-color: #00523a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 99, 65, 0.3);
}

/* Forms */
form label {
    display: block;
    margin: 8px 0;
    font-weight: 500;
}

input, textarea, button {
    width: 100%;
    max-width: 520px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
}

button {
    background: var(--primary-dark);
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: var(--primary-gold);
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: white;
    padding: 60px 40px 30px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: white;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: white;
}

footer.container {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #eee;
    color: #555;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
    }

    .nav-links, .contact-btn {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    section.hero {
        height: 100vh;
        min-height: 600px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 15px;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 16px 20px;
    }

    .neighborhoods {
        padding: 60px 20px;
    }

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

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .neighborhood-card {
        min-height: 150px;
    }

    .about {
        padding: 60px 20px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        max-height: 400px;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    footer {
        padding: 40px 20px 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        font-size: 12px;
        padding-top: 20px;
    }

    .container {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    section.hero h1 {
        font-size: 32px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .neighborhood-card {
        min-height: 140px;
        padding: 30px 25px;
    }

    .neighborhood-name {
        font-size: 22px;
    }
}
