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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(4, 120, 87, 0.2);
    color: #064e3b;
}

/* ── Hero Gradient ── */
.hero-gradient {
    background: linear-gradient(
        135deg,
        #022c22 0%,
        #064e3b 20%,
        #047857 40%,
        #059669 55%,
        #065f46 75%,
        #022c22 100%
    );
}

.hero-pattern {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.04) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(255,255,255,0.02) 0%, transparent 40%);
}

/* ── Menu Pattern ── */
.menu-pattern-bg {
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 40px,
            rgba(255,255,255,0.02) 40px,
            rgba(255,255,255,0.02) 80px
        );
}

/* ── Visit Pattern ── */
.visit-pattern {
    background-image: 
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 60px,
            rgba(255,255,255,0.015) 60px,
            rgba(255,255,255,0.015) 120px
        );
}

/* ── Navbar ── */
.nav-logo-text {
    transition: color 0.4s ease;
}

.nav-link-text {
    transition: color 0.3s ease;
    position: relative;
}

.nav-link-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
    border-radius: 1px;
}

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

nav.scrolled .nav-logo-text,
nav.scrolled .nav-link-text {
    color: #064e3b;
}

nav.scrolled {
    background: rgba(253, 252, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(6, 78, 59, 0.08), 0 4px 24px rgba(6, 78, 59, 0.06);
}

/* ── Mobile Menu ── */
.mobile-nav-link {
    position: relative;
    padding-left: 0;
    border-left: 2px solid transparent;
    transition: border-left-color 0.3s ease, padding-left 0.3s ease;
}

.mobile-nav-link:hover {
    border-left-color: #059669;
    padding-left: 12px;
}

.mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Hero Animation ── */
.hero-badge {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

h1 {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

#hero p {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

#hero .flex-col {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

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

/* ── Scroll Reveal ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Image hover containers ── */
.rounded-2xl.overflow-hidden {
    position: relative;
    will-change: transform;
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fdfcf8;
}

::-webkit-scrollbar-thumb {
    background: #047857;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

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

/* ── Smooth image loading ── */
img {
    image-rendering: auto;
    loading: lazy;
}
