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

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

body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── Scroll Reveal (progressive enhancement) ────────────── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        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);
    }
}

/* ── Navbar ─────────────────────────────────────────────── */
#navbar {
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
    background: rgba(254, 253, 251, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(6, 95, 70, 0.08);
}

.nav-link {
    position: relative;
}

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

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

#navbar:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
}

#navbar:not(.scrolled) .nav-link:hover {
    color: #ffffff !important;
}

#navbar:not(.scrolled) .nav-link::after {
    background: #34d399;
}

#navbar:not(.scrolled) .font-bold {
    color: #ffffff !important;
}

#navbar:not(.scrolled) .w-9 {
    background: rgba(255, 255, 255, 0.2) !important;
}

#navbar:not(.scrolled) svg {
    stroke: #ffffff !important;
}

#navbar:not(.scrolled) #menu-btn {
    background: rgba(255, 255, 255, 0.2) !important;
}

#navbar:not(.scrolled) #menu-btn svg {
    stroke: #ffffff !important;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(2, 44, 34, 0.82) 0%,
        rgba(6, 79, 70, 0.72) 50%,
        rgba(4, 120, 87, 0.65) 100%
    );
}

.hero-bg img {
    will-change: transform;
    transition: transform 8s ease;
}

/* ── CTA Buttons ────────────────────────────────────────── */
.cta-primary {
    background: #ffffff;
    color: #065f46;
    font-weight: 800;
    padding: 16px 32px;
    border-radius: 9999px;
    font-size: 1rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    color: #047857;
}

.cta-secondary {
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 9999px;
    font-size: 1rem;
    backdrop-filter: blur(4px);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

.cta-cta {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

/* ── Service Cards ──────────────────────────────────────── */
.backdrop-border {
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Area Cards ─────────────────────────────────────────── */
.area-card {
    border: 1px solid rgba(6, 95, 70, 0.06);
}

/* ── Testimonial Cards ──────────────────────────────────── */
.testimonial-card {
    border: 1px solid rgba(6, 95, 70, 0.06);
}

/* ── Mobile Menu ────────────────────────────────────────── */
.mobile-link {
    border-bottom: 1px solid rgba(6, 95, 70, 0.08);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ── Selection ──────────────────────────────────────────── */
::selection {
    background: rgba(5, 150, 105, 0.2);
    color: #064e3b;
}

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f0e8;
}
::-webkit-scrollbar-thumb {
    background: #059669;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #047857;
}
