/* Mountain Meadow Estates — Modern Responsive Stylesheet */

:root {
    /* Greens — olive-evergreen, rooted and established */
    --green-dark: #23372b;
    --green-mid: #526e58;
    --green-light: #8ea48a;
    /* Backgrounds — parchment/oat warmth, not flat grey */
    --cream: #f6f0e6;
    --cream-dark: #e8ddcb;
    /* Footer/dark sections — deep descent */
    --brown-dark: #121813;
    --brown-mid: #6d6255;
    /* Gold — antique brass, premium not salesy */
    --gold: #b67c2f;
    --gold-light: #d8ad69;
    /* Text — high contrast, warm near-black */
    --text: #1f241d;
    --text-light: #586056;
    --white: #fffbf6;
    --shadow: 0 2px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.3;
    color: var(--brown-dark);
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

a { color: var(--green-mid); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-dark); }

img { max-width: 100%; height: auto; display: block; }

/* === NAV === */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(31, 45, 36, 0.93);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.nav-inner {
    max-width: 1100px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}
.nav-logo-img { height: 48px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.85); }
.nav-links a:hover { color: var(--gold-light); }
.nav-phone {
    background: var(--gold); color: var(--white) !important;
    padding: 10px 20px; border-radius: var(--radius); font-weight: 600;
}
.nav-phone:hover { background: var(--gold-light); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
    display: block; width: 24px; height: 2px; background: var(--text);
    margin: 5px 0; transition: var(--transition);
}

/* === HERO === */
.hero {
    position: relative; min-height: 85vh;
    display: flex; align-items: center; justify-content: center;
    background-size: cover; background-position: center;
    margin-top: 72px;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,20,14,0.2) 0%, rgba(10,20,14,0.55) 100%);
}
.hero-content {
    position: relative; z-index: 1; text-align: center;
    color: var(--white); padding: 40px 24px; max-width: 700px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); color: var(--white); margin-bottom: 16px; }
.hero .tagline {
    font-size: clamp(1rem, 2.5vw, 1.3rem); opacity: 0.9;
    margin-bottom: 32px; font-weight: 400;
}
.hero .badge {
    display: inline-block; background: var(--gold);
    color: var(--white); padding: 12px 28px; border-radius: var(--radius);
    font-weight: 600; font-size: 15px; letter-spacing: 0.5px;
}

/* === SECTIONS === */
.section { padding: 80px 0; }
.section-alt { background: var(--cream-dark); }
.section-dark { background: #22372b; color: var(--cream); }
.section-dark h2, .section-dark h3 { color: var(--cream); }
.section-dark a { color: var(--gold-light); }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 12px; }
.section-header p { color: var(--text-light); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* === FEATURE GRID (community stats, lot details) === */
.feature-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}
.feature-card {
    background: #fcf7ef; padding: 32px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow); text-align: center;
    border: 1px solid #d8ccb9;
}
.feature-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-light); font-size: 0.95rem; }
.feature-number {
    font-family: 'Playfair Display', serif; font-size: 2.5rem;
    color: var(--green-dark); font-weight: 700; margin-bottom: 4px;
}

/* === LOT 16 FEATURE === */
.lot-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.lot-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-radius: var(--radius-lg); overflow: hidden; }
.lot-gallery img { width: 100%; height: 200px; object-fit: cover; }
.lot-gallery img:first-child { grid-column: 1 / -1; height: 280px; }
.lot-info h2 { font-size: 2rem; margin-bottom: 8px; }
.lot-price {
    font-family: 'Playfair Display', serif; font-size: 2.2rem;
    color: var(--green-dark); font-weight: 700; margin-bottom: 16px;
}
.lot-details { list-style: none; margin-bottom: 24px; }
.lot-details li { padding: 8px 0; border-bottom: 1px solid var(--cream-dark); color: var(--text-light); }
.lot-details li strong { color: var(--text); }

/* === CTA BUTTON === */
.btn {
    display: inline-block; padding: 14px 32px; border-radius: var(--radius);
    font-weight: 600; font-size: 16px; transition: all var(--transition);
    text-align: center;
}
.btn-primary { background: var(--green-dark); color: var(--white); }
.btn-primary:hover { background: var(--green-mid); color: var(--white); transform: translateY(-1px); }
.btn-outline { border: 2px solid var(--green-dark); color: var(--green-dark); }
.btn-outline:hover { background: var(--green-dark); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-light); color: var(--white); }

/* === PHOTO SLIDESHOW === */
.slideshow { position: relative; border-radius: var(--radius-lg); overflow: hidden; max-height: 500px; }
.slideshow img { width: 100%; height: 500px; object-fit: cover; display: none; animation: fadeIn 1s; }
.slideshow img.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* === COMMUNITY SHOWCASE === */
.community-text { font-size: 1.15rem; line-height: 1.9; max-width: 800px; margin: 0 auto; }
.community-text p { margin-bottom: 20px; }

/* === URGENCY BANNER === */
.urgency {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--white); text-align: center; padding: 20px 24px;
    font-weight: 600; font-size: 1.05rem;
}
.urgency a { color: var(--white); text-decoration: underline; }

/* === SOLD BANNER === */
.sold-banner {
    background: var(--brown-mid); color: var(--cream);
    text-align: center; padding: 16px 24px; font-size: 1rem;
}
.sold-banner a { color: var(--gold-light); text-decoration: underline; }

/* === INTERACTIVE PLAT MAP === */
.plat-map-container {
    position: relative; max-width: 885px; margin: 0 auto;
    border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
}
.plat-map-img { width: 100%; height: auto; display: block; }
.map-lot {
    position: absolute;
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    font-size: 9px; font-weight: 700;
    text-decoration: none; border-radius: 50%;
    transition: all var(--transition); z-index: 2;
    text-align: center; line-height: 1;
    transform: translate(-50%, -50%); /* center on the point */
}
.map-lot-family {
    background: var(--gold); color: var(--white);
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.map-lot-family:hover {
    transform: translate(-50%, -50%) scale(1.3); z-index: 3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.map-lot-sold {
    background: rgba(74, 94, 82, 0.8); color: var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.map-lot-sold:hover {
    background: rgba(74, 94, 82, 1); color: var(--white);
    transform: translate(-50%, -50%) scale(1.3); z-index: 3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.map-lot-active {
    background: var(--green-mid); color: var(--white);
    width: 30px; height: 30px; font-size: 10px;
    border: 2px solid var(--gold);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    animation: pulse-lot 2s infinite;
}
.map-lot-active:hover {
    transform: translate(-50%, -50%) scale(1.3); z-index: 3;
}
@keyframes pulse-lot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(184, 134, 11, 0.5); }
    50% { box-shadow: 0 0 0 10px rgba(184, 134, 11, 0); }
}

/* === LOT GRID (community page) === */
.lot-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}
.lot-card {
    display: flex; flex-direction: column; align-items: center;
    padding: 16px 12px; border-radius: var(--radius); text-align: center;
    border: 1px solid var(--cream-dark); transition: all var(--transition);
    text-decoration: none; color: var(--text);
}
a.lot-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.lot-card-num { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 600; }
.lot-card-acres { font-size: 0.8rem; color: var(--text-light); margin: 4px 0 8px; }
.lot-badge {
    font-size: 0.7rem; font-weight: 600; padding: 3px 10px;
    border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px;
}
.lot-badge.sold { background: var(--cream-dark); color: var(--text-light); }
.lot-badge.available { background: var(--green-dark); color: var(--white); }
.lot-badge.family { background: var(--gold); color: var(--white); }
.lot-sold { background: var(--white); }
.lot-available { background: var(--cream); border-color: var(--green-mid); border-width: 2px; }
.lot-family { background: var(--white); opacity: 0.7; }

/* === COMMUNITY GALLERY GRID === */
.community-gallery-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
    border-radius: var(--radius-lg); overflow: hidden;
}
.community-gallery-grid img { width: 100%; height: 220px; object-fit: cover; }

/* === ABOUT PAGE === */
.about-content { max-width: 800px; margin: 0 auto; }
.about-content p { margin-bottom: 20px; font-size: 1.05rem; }
.about-content h3 { margin: 40px 0 16px; font-size: 1.5rem; }
.about-sign { margin-top: 40px; padding-top: 24px; border-top: 2px solid var(--cream-dark); font-style: italic; }

/* === COVENANTS === */
.covenants-content { max-width: 800px; margin: 0 auto; font-size: 0.95rem; line-height: 1.8; }
.covenants-content p { margin-bottom: 16px; }

/* === FOOTER === */
.footer { background: var(--brown-dark); color: var(--cream); padding: 60px 0 24px; }
.footer h3 { font-size: 1rem; color: var(--gold-light); margin-bottom: 12px; font-family: 'Inter', sans-serif; text-transform: uppercase; letter-spacing: 1px; }
.footer a { color: var(--cream); }
.footer a:hover { color: var(--gold-light); }
.footer p { font-size: 0.9rem; margin-bottom: 6px; opacity: 0.85; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; }
.footer-bottom p { font-size: 0.8rem; opacity: 0.6; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none; flex-direction: column; position: absolute;
        top: 72px; left: 0; right: 0; background: rgba(31, 45, 36, 0.97);
        padding: 24px; gap: 16px; border-bottom: 1px solid rgba(0,0,0,0.06);
        box-shadow: var(--shadow);
    }
    .nav-links.open { display: flex; }
    .nav-phone { text-align: center; }

    .hero { min-height: 70vh; }

    .lot-feature { grid-template-columns: 1fr; }
    .lot-gallery img { height: 160px; }
    .lot-gallery img:first-child { height: 220px; }

    .feature-grid { grid-template-columns: 1fr; }
    .lot-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
    .community-gallery-grid { grid-template-columns: 1fr 1fr; }
    .community-gallery-grid img { height: 160px; }

    .section { padding: 60px 0; }

    /* Larger map markers on mobile for tappability */
    .map-lot { width: 20px; height: 20px; font-size: 7px; }
    .map-lot-active { width: 26px; height: 26px; font-size: 8px; }

    /* Make map container scrollable/zoomable */
    .plat-map-container { overflow: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 480px) {
    .hero { min-height: 60vh; }
    .hero h1 { font-size: 1.8rem; }
    .lot-price { font-size: 1.8rem; }
    .lot-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
    .lot-card { padding: 10px 8px; }
    .lot-card-num { font-size: 0.95rem; }
}
