/* ── Base & Typography ── */
html {
    scroll-behavior: smooth;
}

body {
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: #2f4a37;
    color: #f5f2eb;
}

/* ── Navigation ── */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(26, 60, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link {
    color: rgba(245, 242, 235, 0.75);
}

.nav-link:hover {
    color: #f5f2eb;
}

#navbar.scrolled .nav-link {
    color: rgba(245, 242, 235, 0.8);
}

#navbar.scrolled .nav-link:hover {
    color: #f5f2eb;
}

/* ── Mobile Menu ── */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
}

/* ── Hero Animations ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.animate-fade-in {
    animation: fadeIn 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .animate-fade-in-up,
    .animate-fade-in {
        animation: none;
        opacity: 1;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ── Focus Styles ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #6e9978;
    outline-offset: 2px;
}

/* ── Form Inputs ── */
input::placeholder,
textarea::placeholder {
    color: #bdd3c4;
}

/* ── Service Card Hover ── */
.group:hover .group-hover\]:text-cream-200 {
    color: #d4cbb8;
}

/* ── Button Ripple Effect (subtle) ── */
button,
a {
    -webkit-tap-highlight-color: transparent;
}

/* ── Image Loading ── */
img {
    background-color: #dce6df;
}

/* ── Smooth Scroll Offset for Fixed Nav ── */
section[id] {
    scroll-margin-top: 80px;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a3c2a;
}
::-webkit-scrollbar-thumb {
    background: #3d6046;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4f7a58;
}

/* ── Responsive Adjustments ── */
@media (max-width: 767px) {
    section[id] {
        scroll-margin-top: 70px;
    }
}
