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

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

body {
    overflow-x: hidden;
}

::selection {
    background: #166534;
    color: #fefdf8;
}

img {
    display: block;
    max-width: 100%;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9ef;
}
::-webkit-scrollbar-thumb {
    background: #166534;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #064e3b;
}

/* ── Navbar ── */
#navbar {
    background: rgba(253, 249, 239, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(22, 101, 52, 0.08);
}

#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
}

.nav-link {
    position: relative;
}

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

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

/* ── Mobile Menu ── */
.menu-line {
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#menu-toggle.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(4px, -4px);
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* ── Hero ── */
.hero-content {
    opacity: 1;
    transform: none;
    animation: heroSlideIn 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

/* ── About Section ── */
.about-image {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-image.visible {
    opacity: 1;
    transform: translateX(0);
}

.about-content {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.about-content.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ── Offering Cards ── */
.offering-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.offering-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.offering-card:nth-child(1) { transition-delay: 0s; }
.offering-card:nth-child(2) { transition-delay: 0.1s; }
.offering-card:nth-child(3) { transition-delay: 0.2s; }
.offering-card:nth-child(4) { transition-delay: 0.3s; }
.offering-card:nth-child(5) { transition-delay: 0.4s; }
.offering-card:nth-child(6) { transition-delay: 0.5s; }

/* ── Philosophy ── */
.philosophy-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.philosophy-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.philosophy-images {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.philosophy-images.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Visit Section ── */
.visit-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.visit-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.visit-map {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.visit-map.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Hover Effects ── */
button, a {
    transition: all 0.3s ease;
}

/* ── Form ── */
#contact-form input:focus,
#contact-form textarea:focus {
    border-bottom-color: #6ee7b7 !important;
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .about-image,
    .about-content,
    .offering-card,
    .philosophy-content,
    .philosophy-images,
    .visit-content,
    .visit-map {
        opacity: 1;
        transform: none;
    }
}

/* ── Tablet ── */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }

    #hero h1 {
        font-size: clamp(2.25rem, 7vw, 3.5rem);
    }
}

/* ── Small Mobile ── */
@media (max-width: 360px) {
    .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
