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

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(5, 150, 105, 0.2);
    color: #064e3b;
}

/* ─── Navbar scroll state ─── */
#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
}

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

/* ─── Button focus styles ─── */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ─── Custom scrollbar ─── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F0;
}
::-webkit-scrollbar-thumb {
    background: #a7f3d0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #34d399;
}

/* ─── Image hover zoom wrapper ─── */
.group img {
    transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.group:hover img {
    transform: scale(1.05);
}

/* ─── Subtle gradient border on cards ─── */
.rounded-3xl {
    position: relative;
}

/* ─── Ensure images don't overflow ─── */
img {
    max-width: 100%;
    height: auto;
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .group img { transition: none; }
    .group:hover img { transform: none; }
}
