/* ── Reset & Base ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

::selection {
    background: #1a4d3e;
    color: #f5f0e8;
}

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

.animate-fade-up {
    animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ── Reveal on Scroll ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    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);
}

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

/* ── Navbar ── */
#navbar {
    backdrop-filter: blur(0px);
    transition: background-color 0.5s ease, backdrop-filter 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
    background: rgba(13, 51, 38, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(245, 240, 232, 0.06);
}

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

.mobile-link {
    position: relative;
}

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

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

/* ── Menu Section ── */
#menu .border-b {
    transition: border-color 0.3s ease;
}

#menu .border-b:hover {
    border-color: rgba(245, 240, 232, 0.2);
}

/* ── Form ── */
#contact-form input:focus,
#contact-form textarea:focus {
    border-image: linear-gradient(to right, #1a4d3e, #2d8a6e) 1;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: rgba(26, 77, 62, 0.2);
}

/* ── Gallery Images ── */
#gallery img {
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #236b56;
}

/* ── Date Input Reset ── */
input[type="date"] {
    color: #1a4d3e;
    cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.3) sepia(1) saturate(3) hue-rotate(100deg);
    cursor: pointer;
}

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