/* ─── Base & Utilities ─── */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: #1a3c2a;
    color: #faf9f6;
}

/* ─── Navigation ─── */
#navbar {
    background: transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(250, 249, 246, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(26, 60, 42, 0.06);
}

.nav-link {
    position: relative;
}

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

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

/* ─── Mobile Menu ─── */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.open .mobile-link {
    animation: fadeUp 0.4s ease forwards;
    opacity: 0;
    transform: translateY(12px);
}

#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }

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

/* ─── Hero Cards ─── */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.absolute.top-0.right-0 {
    animation: float 6s ease-in-out infinite;
}

.absolute.top-52.right-24 {
    animation: float-slow 7s ease-in-out infinite 1s;
}

.absolute.bottom-20.right-0 {
    animation: float 5.5s ease-in-out infinite 0.5s;
}

.absolute.bottom-0.left-0 {
    animation: float-slow 8s ease-in-out infinite 1.5s;
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #1a3c2a, transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

/* ─── Area Items ─── */
.area-item {
    transition: padding-left 0.3s ease;
}

.area-item:hover {
    padding-left: 8px;
}

/* ─── Testimonial Cards ─── */
.testimonial-card {
    position: relative;
}

.testimonial-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #d4a853;
    transition: width 0.5s ease;
}

.testimonial-card:hover::after {
    width: 60%;
}

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

.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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ─── Form ─── */
input:focus,
select:focus,
textarea:focus {
    border-color: #1a3c2a !important;
    background: #fff !important;
}

input::placeholder,
textarea::placeholder {
    color: rgba(26, 60, 42, 0.2);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .absolute.top-0.right-0,
    .absolute.top-52.right-24,
    .absolute.bottom-20.right-0,
    .absolute.bottom-0.left-0 {
        display: none;
    }

    #top {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 80px;
    }

    .font-serif.text-5xl,
    .font-serif.text-4xl {
        font-size: 2.5rem;
    }
}

/* ─── Print ─── */
@media print {
    #navbar, #mobile-menu-btn { display: none; }
    body { background: white; }
}
