/* ===== Base & Utilities ===== */
html {
    scroll-behavior: smooth;
}

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

::selection {
    background-color: color-mix(in srgb, #528c63 30%, transparent);
    color: #1f3829;
}

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

.geo-circle--1 {
    width: 420px;
    height: 420px;
    top: -80px;
    right: -100px;
    background: radial-gradient(circle, color-mix(in srgb, #9dc5a8 20%, transparent) 0%, transparent 70%);
}

.geo-circle--2 {
    width: 260px;
    height: 260px;
    bottom: 10%;
    left: 5%;
    background: radial-gradient(circle, color-mix(in srgb, #74a982 15%, transparent) 0%, transparent 70%);
}

.geo-circle--3 {
    width: 500px;
    height: 500px;
    bottom: -150px;
    right: -100px;
    background: radial-gradient(circle, color-mix(in srgb, #9dc5a8 12%, transparent) 0%, transparent 70%);
}

.geo-circle--cta {
    width: 350px;
    height: 350px;
    top: -100px;
    left: -80px;
    background: radial-gradient(circle, color-mix(in srgb, #c7dfcd 20%, transparent) 0%, transparent 70%);
}

.geo-triangle {
    position: absolute;
    bottom: 15%;
    right: 8%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid color-mix(in srgb, #9dc5a8 15%, transparent);
    transform: rotate(15deg);
}

.geo-dots {
    position: absolute;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, color-mix(in srgb, #c7dfcd 50%, transparent) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    opacity: 0.6;
}

.geo-dots--light {
    background-image: radial-gradient(circle, color-mix(in srgb, #ffffff 35%, transparent) 1.5px, transparent 1.5px);
    top: 20%;
    left: 5%;
}

.geo-dots--white {
    background-image: radial-gradient(circle, color-mix(in srgb, #ffffff 30%, transparent) 1.5px, transparent 1.5px);
    bottom: 10%;
    right: 10%;
    opacity: 0.4;
}

/* ===== Service Cards ===== */
.service-card {
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

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

/* ===== Scroll Reveal (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s 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; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Fallback: ensure content is visible even without JS */
@media not all and (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ===== Navbar Scrolled State ===== */
#navbar.scrolled {
    background-color: color-mix(in srgb, #FAFAF5 95%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 color-mix(in srgb, #30573f 8%, transparent), 0 4px 20px rgba(16, 31, 21, 0.06);
}

#navbar.scrolled a:not([class*="bg-"]) {
    color: #1f3829;
}

/* ===== Mobile Menu Transitions ===== */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

/* ===== Form Focus Styles ===== */
input:focus,
textarea:focus {
    outline: none;
}

/* ===== Print Styles ===== */
@media print {
    #navbar, #mobileMenu, .geo-circle, .geo-triangle, .geo-dots {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
    }
}
