/* ── 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 {
    background-color: #fafaf8;
    color: #4a2639;
}

::selection {
    background-color: #fde68a;
    color: #4a2639;
}

/* ── Navigation ── */
.nav {
    transition: box-shadow 0.4s ease;
}

.nav.scrolled {
    box-shadow: 0 1px 0 rgba(107, 58, 93, 0.08);
}

/* ── Mobile Menu ── */
.mobile-menu {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-link {
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: #6B3A5D;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: #b5507e;
}

.menu-line, .close-line {
    transition: all 0.3s ease;
}

.menu-open .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

.menu-open .menu-line:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
    opacity: 0;
}

.menu-open .close-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

.menu-open .close-line:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
    opacity: 0;
}

/* ── Hero ── */
.hero {
    background: linear-gradient(175deg, #fafaf8 0%, #f5f0ef 50%, #faf0f4 100%);
    position: relative;
}

.hero-eyebrow {
    animation: fadeDown 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.2s;
}

.hero-headline {
    animation: fadeUp 0.9s ease forwards;
    opacity: 0;
    animation-delay: 0.4s;
}

.hero-sub {
    animation: fadeUp 0.9s ease forwards;
    opacity: 0;
    animation-delay: 0.6s;
}

.hero-cta {
    animation: fadeUp 0.9s ease forwards;
    opacity: 0;
    animation-delay: 0.8s;
}

.hero-scroll {
    animation: fadeUp 0.9s ease forwards;
    opacity: 0;
    animation-delay: 1.1s;
}

.scroll-line {
    animation: scrollDown 1.8s ease-in-out infinite;
}

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

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

@keyframes scrollDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(200%);
        opacity: 0;
    }
}

/* ── Divider ── */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* ── About ── */
.about-label {
    animation: fadeUp 0.7s ease forwards;
    opacity: 0;
}

.about-title {
    animation: fadeUp 0.7s ease forwards;
    opacity: 0;
    animation-delay: 0.1s;
}

.about-body {
    animation: fadeUp 0.7s ease forwards;
    opacity: 0;
}

.about-body:nth-of-type(1) {
    animation-delay: 0.2s;
}

.about-body:nth-of-type(2) {
    animation-delay: 0.3s;
}

.about-stats {
    animation: fadeUp 0.7s ease forwards;
    opacity: 0;
    animation-delay: 0.4s;
}

.about-image {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.15s;
}

/* ── Menu ── */
.menu-label,
.menu-title {
    animation: fadeUp 0.7s ease forwards;
    opacity: 0;
}

.menu-title {
    animation-delay: 0.1s;
}

.menu-category {
    animation: fadeUp 0.7s ease forwards;
    opacity: 0;
}

.menu-category:nth-of-type(1) { animation-delay: 0.15s; }
.menu-category:nth-of-type(2) { animation-delay: 0.25s; }
.menu-category:nth-of-type(3) { animation-delay: 0.35s; }

.menu-category-title {
    animation: fadeUp 0.7s ease forwards;
    opacity: 0;
}

.menu-category:nth-of-type(1) .menu-category-title { animation-delay: 0.2s; }
.menu-category:nth-of-type(2) .menu-category-title { animation-delay: 0.3s; }
.menu-category:nth-of-type(3) .menu-category-title { animation-delay: 0.4s; }

.menu-item {
    animation: fadeUp 0.6s ease forwards;
    opacity: 0;
}

.menu-category:nth-of-type(1) .menu-item:nth-child(1) { animation-delay: 0.25s; }
.menu-category:nth-of-type(1) .menu-item:nth-child(2) { animation-delay: 0.3s; }
.menu-category:nth-of-type(1) .menu-item:nth-child(3) { animation-delay: 0.35s; }
.menu-category:nth-of-type(1) .menu-item:nth-child(4) { animation-delay: 0.4s; }
.menu-category:nth-of-type(1) .menu-item:nth-child(5) { animation-delay: 0.45s; }
.menu-category:nth-of-type(1) .menu-item:nth-child(6) { animation-delay: 0.5s; }

.menu-category:nth-of-type(2) .menu-item:nth-child(1) { animation-delay: 0.35s; }
.menu-category:nth-of-type(2) .menu-item:nth-child(2) { animation-delay: 0.4s; }
.menu-category:nth-of-type(2) .menu-item:nth-child(3) { animation-delay: 0.45s; }
.menu-category:nth-of-type(2) .menu-item:nth-child(4) { animation-delay: 0.5s; }

.menu-category:nth-of-type(3) .menu-item:nth-child(1) { animation-delay: 0.45s; }
.menu-category:nth-of-type(3) .menu-item:nth-child(2) { animation-delay: 0.5s; }
.menu-category:nth-of-type(3) .menu-item:nth-child(3) { animation-delay: 0.55s; }
.menu-category:nth-of-type(3) .menu-item:nth-child(4) { animation-delay: 0.6s; }

.menu-note {
    animation: fadeUp 0.7s ease forwards;
    opacity: 0;
    animation-delay: 0.5s;
}

.menu-item-name {
    position: relative;
    display: inline;
}

.menu-item-name::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #d97706;
    transition: width 0.3s ease;
}

.menu-item:hover .menu-item-name::after {
    width: 100%;
}

/* ── Gallery ── */
.gallery-label,
.gallery-title {
    animation: fadeUp 0.7s ease forwards;
    opacity: 0;
}

.gallery-title {
    animation-delay: 0.1s;
}

.gallery-item {
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

.gallery-item:nth-child(1) { animation-delay: 0.15s; }
.gallery-item:nth-child(2) { animation-delay: 0.25s; }
.gallery-item:nth-child(3) { animation-delay: 0.35s; }
.gallery-item:nth-child(4) { animation-delay: 0.45s; }

.gallery-img {
    transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.02);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ── Visit ── */
.visit-label,
.visit-title {
    animation: fadeUp 0.7s ease forwards;
    opacity: 0;
}

.visit-title {
    animation-delay: 0.1s;
}

.visit-detail {
    animation: fadeUp 0.6s ease forwards;
    opacity: 0;
}

.visit-detail:nth-child(1) { animation-delay: 0.2s; }
.visit-detail:nth-child(2) { animation-delay: 0.3s; }
.visit-detail:nth-child(3) { animation-delay: 0.4s; }

.visit-map {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.25s;
}

/* ── Footer ── */
.footer {
    animation: fadeUp 0.7s ease forwards;
    opacity: 0;
    animation-delay: 0.3s;
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

/* ── 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;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr !important;
    }

    .about-image {
        order: -1;
    }

    .about-image img {
        height: 300px !important;
    }

    .gallery-grid {
        grid-template-columns: 1fr !important;
    }

    .gallery-item.col-span-2 {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

    .gallery-item .gallery-img {
        height: 220px !important;
    }

    .visit-map {
        min-height: 260px !important;
    }
}
