*, *::before, *::after { box-sizing: border-box; }

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

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

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

#navbar.scrolled {
    background: rgba(250, 250, 245, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.nav-link {
    position: relative;
}

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

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

/* ── Buttons ── */
.btn-primary {
    background: #1B4332;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    background: #173a2b;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(27, 67, 50, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* ── Form inputs ── */
.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e5e5dc;
    border-radius: 0.75rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9375rem;
    color: #1f2937;
    background: #fafaf5;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    outline: none;
}

.input-field::placeholder {
    color: #a0a090;
}

.input-field:hover {
    border-color: #95c786;
}

.input-field:focus {
    border-color: #1B4332;
    box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.1);
    background: #fff;
}

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

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

.scroll-reveal.revealed:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal.revealed:nth-child(3) { transition-delay: 0.2s; }

/* ── Feature cards ── */
.feature-card {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

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

/* ── Mobile menu ── */
.mobile-link {
    transition: opacity 0.3s ease;
}

/* ── Gallery hover ── */
.rounded-2xl.overflow-hidden img {
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f5ee;
}
::-webkit-scrollbar-thumb {
    background: #95c786;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1B4332;
}

/* ── Selection ── */
::selection {
    background: rgba(27, 67, 50, 0.15);
    color: #1B4332;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}
