/* ── Custom Properties ── */
:root {
    --forest-50: #f2f7f0;
    --forest-100: #e3eddb;
    --forest-200: #c7dbb6;
    --forest-300: #9ebe82;
    --forest-400: #73a34f;
    --forest-500: #528232;
    --forest-600: #3f6628;
    --forest-700: #325121;
    --forest-800: #2a421d;
    --forest-900: #233719;
    --forest-950: #121d0c;
    --cream-50: #fefdf8;
    --cream-100: #fdf9ee;
}

/* ── Reset & Base ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* ── Hero Gradient ── */
.hero-gradient {
    background: linear-gradient(135deg, #1a3a0e 0%, #2d5a1c 25%, #3f6628 50%, #528232 75%, #73a34f 100%);
}

/* ── Geometric Shapes ── */
.geo-shape {
    position: absolute;
    opacity: 0.15;
    pointer-events: none;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #9ebe82;
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #c7dbb6;
    bottom: 10%;
    left: 5%;
    animation: float 6s ease-in-out infinite reverse;
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    background: #9ebe82;
    top: 20%;
    left: 8%;
    border-radius: 20px;
    transform: rotate(15deg);
    animation: spin 20s linear infinite;
}

.geo-square-2 {
    width: 80px;
    height: 80px;
    background: #c7dbb6;
    bottom: 25%;
    right: 15%;
    border-radius: 15px;
    transform: rotate(-10deg);
    animation: spin 15s linear infinite reverse;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #9ebe82;
    top: 30%;
    right: 5%;
    animation: float 7s ease-in-out infinite;
    opacity: 0.12;
}

.geo-dots {
    background-image: radial-gradient(circle, #9ebe82 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    width: 150px;
    height: 150px;
    top: 15%;
    left: 15%;
    opacity: 0.2;
}

.geo-diamond-1 {
    width: 200px;
    height: 200px;
    background: #528232;
    top: 10%;
    right: -50px;
    border-radius: 20px;
    transform: rotate(45deg);
    opacity: 0.2;
}

.geo-circle-3 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 3px solid #9ebe82;
    bottom: -80px;
    left: -80px;
    opacity: 0.15;
    animation: float 10s ease-in-out infinite;
}

.geo-circle-4 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: #73a34f;
    top: -60px;
    right: 10%;
    opacity: 0.1;
    animation: float 9s ease-in-out infinite reverse;
}

.geo-square-3 {
    width: 100px;
    height: 100px;
    background: #9ebe82;
    bottom: 10%;
    left: 5%;
    border-radius: 15px;
    transform: rotate(30deg);
    opacity: 0.12;
    animation: spin 18s linear infinite;
}

/* ── Hero Photo ── */
.hero-photo {
    mask-image: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
}

/* ── Animations ── */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(var(--rotation, 0deg)); }
    50% { transform: translateY(-20px) rotate(var(--rotation, 0deg)); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ── Navbar ── */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(18, 29, 12, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3f6628;
    transition: width 0.3s ease;
}

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

/* ── CTA Buttons ── */
.cta-primary {
    position: relative;
    overflow: hidden;
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.cta-primary:hover::before {
    left: 100%;
}

.hero-cta {
    position: relative;
    z-index: 1;
}

.hero-cta:hover {
    transform: translateY(-2px);
}

/* ── Service Cards ── */
.service-card {
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 1px;
    background: linear-gradient(135deg, transparent, rgba(63, 102, 40, 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;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* ── Neighborhood Cards ── */
.neighborhood-card {
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.neighborhood-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(18, 29, 12, 0.2);
}

/* ── Testimonial Cards ── */
.testimonial-card {
    transition: transform 0.3s ease, background 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Mobile Menu ── */
.mobile-link {
    position: relative;
    display: block;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #3f6628;
    transition: width 0.3s ease;
}

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

/* ── Responsive ── */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 200px;
        height: 200px;
    }
    .geo-circle-2 {
        width: 100px;
        height: 100px;
    }
    .geo-square-1 {
        width: 60px;
        height: 60px;
    }
    .geo-square-2 {
        width: 40px;
        height: 40px;
    }
    .hero-photo {
        display: none;
    }
}

@media (max-width: 640px) {
    .hero-gradient {
        background: linear-gradient(160deg, #1a3a0e 0%, #2d5a1c 40%, #3f6628 70%, #528232 100%);
    }
}
