/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }
img { display: block; max-width: 100%; }

/* ── Hero Gradient ── */
.hero-gradient {
    background: linear-gradient(135deg, #1a3a2a 0%, #2D4A3E 30%, #3d6350 60%, #4a7a5e 80%, #5a8a6e 100%);
}

/* ── Hero Pattern ── */
.hero-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(245,242,235,0.15) 1px, transparent 0);
    background-size: 40px 40px;
}

/* ── Testimonial Pattern ── */
.testimonial-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(245,242,235,0.3) 1px, transparent 0);
    background-size: 32px 32px;
}

/* ── Navigation ── */
#nav {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}
#nav.scrolled {
    background: rgba(245, 242, 235, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(45, 74, 62, 0.08);
}

/* ── Buttons ── */
.btn-primary {
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.btn-primary:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    transform: translateY(-1px);
}
.btn-secondary:hover {
    border-bottom-color: rgba(245,242,235,0.8);
}

/* ── Service Cards ── */
.service-card {
    transition: background 0.5s ease;
}
.service-card:hover {
    transform: translateY(-2px);
}

/* ── Gallery ── */
.gallery-item {
    cursor: pointer;
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(45, 74, 62, 0);
    transition: background 0.4s ease;
    border-radius: inherit;
}
.gallery-item:hover::after {
    background: rgba(45, 74, 62, 0.1);
}

/* ── Mobile Menu ── */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}
#mobileMenu.open .mobile-link {
    animation: fadeUp 0.4s ease forwards;
    opacity: 0;
}
#mobileMenu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Menu Button ── */
.menu-line {
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
#menuBtn.active .menu-line:first-child {
    transform: translateY(5px) rotate(45deg);
}
#menuBtn.active .menu-line:last-child {
    transform: translateY(-5px) rotate(-45deg);
}

/* ── Animations ── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible {
    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; }

/* ── Hero Animations ── */
.hero-label { animation: heroFade 0.8s 0.2s both; }
.hero-title { animation: heroFade 0.8s 0.4s both; }
.hero-subtitle { animation: heroFade 0.8s 0.6s both; }
.hero-cta { animation: heroFade 0.8s 0.8s both; }

@keyframes heroFade {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Form ── */
.btn-submit {
    position: relative;
    overflow: hidden;
}
.btn-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.btn-submit:hover::after {
    opacity: 1;
}

/* ── Utility ── */
::selection {
    background: rgba(45, 74, 62, 0.15);
    color: #1a3a2a;
}
</style>
