/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

/* ─── Scroll Reveal ─── */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
    }
    .reveal.reveal-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Navigation ─── */
.nav {
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.nav.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: rgba(212, 220, 201, 0.5);
    box-shadow: 0 1px 0 rgba(212, 220, 201, 0.3);
}
.nav-logo {
    transition: color 0.3s ease;
}
.nav.scrolled .nav-logo {
    color: #1a2e23;
}
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #166534;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}
.nav.scrolled .nav-link {
    color: #5a6b62;
}
.nav.scrolled .nav-link:hover {
    color: #1a2e23;
}

/* Mobile menu */
.mobile-menu-bg {
    transition: opacity 0.5s ease;
}
.mobile-menu-bg.open {
    opacity: 1;
    pointer-events: auto;
}
.mobile-menu {
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.1);
}
.mobile-menu.open {
    transform: translateX(0);
}
.mobile-nav-link {
    border-bottom-color: rgba(212, 220, 201, 0.5);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(3px, -3px);
}

/* ─── Hero ─── */
.hero {
    background: #14532d;
}
.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(5, 46, 22, 0.88) 0%,
        rgba(20, 83, 45, 0.72) 50%,
        rgba(5, 46, 22, 0.85) 100%
    );
}
.hero-img {
    will-change: transform;
}
.hero-content {
    opacity: 1;
    transform: none;
    animation: heroFadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-card {
    animation: heroCardSlide 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}
.hero-tag {
    animation: heroFade 0.8s ease 0.1s both;
}
.hero-title {
    animation: heroFadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
.hero-subtitle {
    animation: heroFadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}
.hero-scroll {
    animation: heroFade 1s ease 1.2s both;
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes heroFade {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes heroCardSlide {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero-scroll-dot {
    animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
    0%, 100% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* ─── Buttons ─── */
.btn-primary {
    border-radius: 0;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.btn-primary:hover {
    transform: translateY(-1px);
}
.btn-primary:active {
    transform: translateY(0);
}
.btn-ghost {
    border-bottom-width: 1px;
    transition: border-color 0.3s ease;
}
.btn-ghost:hover {
    border-color: currentColor;
}

/* ─── Menu Items ─── */
.menu-item {
    padding: 1rem 0;
}

/* ─── Gallery ─── */
.gallery-item {
    overflow: hidden;
}
.gallery-img {
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

/* ─── Decorative Line ─── */
.section-line {
    width: 60px;
    height: 1px;
    background: #166534;
}

/* ─── Selection ─── */
::selection {
    background: rgba(22, 101, 52, 0.15);
    color: #1a2e23;
}

/* ─── Focus ─── */
:focus-visible {
    outline: 2px solid #166534;
    outline-offset: 2px;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #fafbf5; }
::-webkit-scrollbar-thumb { background: #d4dcc9; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #5a6b62; }
