/* ─── Custom Properties ─── */
:root {
    --gold: #c9952e;
    --gold-light: #d4a843;
    --emerald-dark: #022c22;
    --emerald: #047857;
    --cream-50: #faf9f6;
    --cream-100: #f5f3ed;
    --dark-900: #0a0f0d;
    --dark-800: #0f1a15;
}

/* ─── Base ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; }

/* ─── Scroll Reveal (progressive enhancement) ─── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Fallback: always visible if JS disabled */
.js-enabled .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
    .js-enabled .reveal { opacity: 0; transform: translateY(30px); }
    .js-enabled .reveal.revealed { opacity: 1; transform: translateY(0); }
}

/* ─── Navigation ─── */
.nav-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}
.nav-scrolled.scrolled {
    background: rgba(10, 15, 13, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(201, 149, 46, 0.1);
}
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* Gold border icon */
.gold-border-icon {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(201, 149, 46, 0.4);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    transition: border-color 0.3s ease, background 0.3s ease;
}
.gold-border-icon:hover {
    border-color: var(--gold);
    background: rgba(201, 149, 46, 0.08);
}

/* Gold Button */
.gold-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--dark-900);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 20px rgba(201, 149, 46, 0.25);
}
.gold-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 149, 46, 0.35);
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
}

/* Outline Gold Button */
.outline-gold-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(201, 149, 46, 0.5);
    color: var(--gold);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 13px 26px;
    border-radius: 8px;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}
.outline-gold-btn:hover {
    background: rgba(201, 149, 46, 0.08);
    border-color: var(--gold);
    transform: translateY(-2px);
}

/* Mobile nav links */
.mobile-nav-link {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-decoration: none;
    transition: color 0.2s ease;
}

/* ─── Hero ─── */
#hero {
    background: var(--dark-900);
    position: relative;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(4, 120, 87, 0.15) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(201, 149, 46, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 20%, rgba(4, 120, 87, 0.08) 0%, transparent 60%);
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9952e' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-gradient { position: absolute; inset: 0; }
.hero-pattern { position: absolute; inset: 0; }

/* Decorative lines */
.hero-line-left, .hero-line-right {
    position: absolute;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(201,149,46,0.15), transparent);
}
.hero-line-left { left: 10%; }
.hero-line-right { right: 10%; }

.hero-deco-top {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(4,120,87,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero-deco-bottom {
    position: absolute;
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(201,149,46,0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Hero content */
.hero-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.gold-line {
    display: block;
    width: 48px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.hero-headline {
    text-shadow: 0 2px 40px rgba(0,0,0,0.3);
}
.hero-subtitle {
    text-shadow: 0 1px 20px rgba(0,0,0,0.2);
}
.hero-ctas {
    text-shadow: none;
}
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(201,149,46,0.5), transparent);
    position: relative;
    overflow: hidden;
}
.scroll-dot {
    position: absolute;
    top: -8px;
    left: -3px;
    width: 7px;
    height: 7px;
    background: var(--gold);
    border-radius: 50%;
    animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
    0%, 100% { top: -8px; opacity: 0; }
    50% { top: 40px; opacity: 1; }
}

/* ─── Section Shared ─── */
.section-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.section-title { line-height: 1.15; }
.section-desc { line-height: 1.7; }

/* ─── Living Cards ─── */
.living-card {
    background: var(--dark-900);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.living-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(201,149,46,0.15);
    border-color: rgba(201,149,46,0.2);
}
.living-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.living-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.living-card:hover .living-card-img img {
    transform: scale(1.05);
}
.living-card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--dark-900) 0%, transparent 60%);
}
.living-card-body {
    background: var(--dark-900);
}
.living-card-icon {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(201,149,46,0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
}

/* ─── Amenities ─── */
.amenities-glow-left {
    position: absolute;
    top: 20%;
    left: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(4,120,87,0.07) 0%, transparent 70%);
    pointer-events: none;
}
.amenities-glow-right {
    position: absolute;
    bottom: 10%;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(201,149,46,0.05) 0%, transparent 70%);
    pointer-events: none;
}
.amenity-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 24px;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.amenity-card:hover {
    background: rgba(201,149,46,0.04);
    border-color: rgba(201,149,46,0.2);
    transform: translateY(-4px);
}
.amenity-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(201,149,46,0.12) 0%, rgba(4,120,87,0.12) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    border: 1px solid rgba(201,149,46,0.15);
}

/* ─── Community ─── */
.community-img-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}
.community-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}
.community-img-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(201,149,46,0.2);
    border-radius: 16px;
    z-index: -1;
}
.community-stat-card {
    position: absolute;
    bottom: 24px;
    left: -16px;
    background: rgba(10,15,13,0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(201,149,46,0.2);
    border-radius: 12px;
    padding: 16px 24px;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.feature-item-dot {
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ─── Location ─── */
.location-card {
    background: var(--dark-800);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 32px;
    height: 100%;
}
.location-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(201,149,46,0.12) 0%, rgba(4,120,87,0.12) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    border: 1px solid rgba(201,149,46,0.15);
    margin-bottom: 20px;
}
.location-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(201,149,46,0.2), transparent);
}
.map-wrapper {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    height: 100%;
    min-height: 400px;
}

/* ─── CTA Section ─── */
#cta {
    background: var(--dark-800);
    position: relative;
}
.cta-bg { position: absolute; inset: 0; }
.cta-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 50%, rgba(4,120,87,0.15) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 30% 60%, rgba(201,149,46,0.06) 0%, transparent 60%);
}
.cta-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c9952e' fill-opacity='0.02' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .hero-headline { font-size: 2.75rem; }
    .hero-line-left, .hero-line-right { display: none; }
    .section-title { font-size: 2.25rem; }
    .living-card-img { height: 180px; }
    .community-img-accent { display: none; }
    .community-stat-card { left: 16px; }
    .location-card { padding: 24px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-headline { font-size: 4rem; }
}
@media (min-width: 1024px) {
    .hero-headline { font-size: 5.5rem; }
}
