/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
}

img, svg {
    display: block;
    max-width: 100%;
}

/* ===== DECORATIVE BLOBS ===== */
.shape-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: blobFloat 20s ease-in-out infinite;
}

.shape-green  { background: #8ec28e; width: 400px; height: 400px; }
.shape-coral  { background: #f9735b; width: 300px; height: 300px; animation-delay: -5s; }
.shape-gold   { background: #f5c542; width: 250px; height: 250px; animation-delay: -10s; }
.shape-sky    { background: #38bdf8; width: 200px; height: 200px; animation-delay: -15s; }

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25%      { transform: translate(30px, -40px) scale(1.05); }
    50%      { transform: translate(-20px, 20px) scale(0.95); }
    75%      { transform: translate(40px, 30px) scale(1.02); }
}

/* ===== NAVIGATION ===== */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #166534;
    transition: width 0.25s ease;
    border-radius: 1px;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu hamburger */
.menu-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 2px;
    background: #166534;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.menu-line.top    { top: 9px; }
.menu-line.middle { top: 14px; }
.menu-line.bottom { top: 19px; }

#menu-btn[aria-expanded="true"] .menu-line.top {
    transform: translateX(-50%) rotate(45deg);
    top: 14px;
}

#menu-btn[aria-expanded="true"] .menu-line.middle {
    opacity: 0;
}

#menu-btn[aria-expanded="true"] .menu-line.bottom {
    transform: translateX(-50%) rotate(-45deg);
    top: 14px;
}

.mobile-link {
    display: block;
}

/* ===== HERO STATS ===== */
.stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 101, 52, 0.1);
}

/* ===== HOME CARDS ===== */
.home-card {
    position: relative;
}

.home-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(22,101,52,0.1), transparent, rgba(249,115,91,0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.home-card:hover::before {
    opacity: 1;
}

/* ===== AMENITY CARDS ===== */
.amenity-card {
    position: relative;
}

.amenity-card:hover {
    transform: translateY(-3px);
}

/* ===== COMMUNITY CARDS ===== */
.community-card {
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.community-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(22, 101, 52, 0.12);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion: never hide content */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
    html {
        scroll-behavior: auto;
    }
    .shape-blob {
        animation: none;
    }
}

/* ===== FORM STYLES ===== */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23166534' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
    .font-display.text-5xl,
    .font-display.text-6xl,
    .font-display.text-7xl {
        font-size: 2.75rem;
        line-height: 1.05;
    }
}
