/* ===== CSS Custom Properties ===== */
:root {
    --forest-950: #0a1a0a;
    --forest-900: #153315;
    --forest-800: #1c441c;
    --forest-700: #245724;
    --forest-600: #2d6e2d;
    --forest-500: #3d8a3d;
    --cream-50: #fefdf8;
    --cream-100: #fdf9ed;
    --accent-400: #f5a623;
    --accent-500: #e8930c;
}

/* ===== Base Styles ===== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--cream-50);
}
::-webkit-scrollbar-thumb {
    background: var(--forest-400);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--forest-600);
}

/* ===== Hero Geometric Shapes ===== */
.hero-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -150px;
    animation: float 8s ease-in-out infinite;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(61, 138, 61, 0.15) 0%, transparent 70%);
    bottom: 10%;
    left: -50px;
    animation: float 6s ease-in-out infinite reverse;
}

.circle-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.12) 0%, transparent 70%);
    top: 40%;
    right: 30%;
    animation: float 10s ease-in-out infinite;
}

.hero-rect {
    position: absolute;
    border: 2px solid rgba(61, 138, 61, 0.2);
    border-radius: 20px;
    pointer-events: none;
    transform: rotate(15deg);
}

.rect-1 {
    width: 120px;
    height: 120px;
    top: 20%;
    left: 5%;
    animation: spin-slow 20s linear infinite;
}

.hero-dots {
    position: absolute;
    top: 30%;
    right: 15%;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, rgba(245, 166, 35, 0.4) 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    pointer-events: none;
    opacity: 0.6;
}

/* ===== CTA Section Circles ===== */
.cta-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.cta-circle.circle-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.06) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation: float 12s ease-in-out infinite;
}

.cta-circle.circle-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(61, 138, 61, 0.1) 0%, transparent 70%);
    bottom: -150px;
    right: -100px;
    animation: float 9s ease-in-out infinite reverse;
}

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

@keyframes spin-slow {
    from {
        transform: rotate(15deg);
    }
    to {
        transform: rotate(375deg);
    }
}

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

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

/* Reduced motion preference */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.nav-logo-text {
    color: var(--forest-900);
}

#navbar.scrolled .nav-logo-text {
    color: var(--forest-900);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-400);
    transition: width 0.3s ease;
}

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

/* ===== Mobile Menu ===== */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-link {
    position: relative;
}

/* ===== Button Hover Effects ===== */
a[href^="tel:"]:hover {
    transform: scale(1.05);
}

/* ===== Image Hover ===== */
img {
    display: block;
}

/* ===== Selection Color ===== */
::selection {
    background: var(--forest-700);
    color: var(--cream-50);
}

/* ===== Focus Styles ===== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-400);
    outline-offset: 2px;
    border-radius: 4px;
}
