/* ===== Base & Reset ===== */
*, *::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;
}

img {
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Navigation ===== */
#nav {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

#nav.scrolled {
    background: rgba(253, 248, 246, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(123, 45, 59, 0.08);
}

.nav-link {
    position: relative;
}

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

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

#nav.scrolled .nav-logo {
    color: #7B2D3B;
}

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

#mobile-menu.open .mobile-link {
    animation: fadeUp 0.4s ease forwards;
    opacity: 0;
}

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

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

.menu-line {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

/* ===== Hero ===== */
.hero-subtitle {
    animation: slideRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.hero-title {
    animation: slideUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

.hero-desc {
    animation: slideRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

.hero-cta {
    animation: slideRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

.hero-stats {
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.7s forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideRight {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.hero-img-container {
    overflow: hidden;
}

.hero-img {
    transform: scale(1.15);
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-img-container:hover .hero-img {
    transform: scale(1.08);
}

/* ===== Reveal on Scroll ===== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* ===== Menu Items ===== */
.menu-item {
    border-bottom: 1px solid rgba(253, 240, 242, 0.12);
    padding-bottom: 7px;
    transition: padding-left 0.3s ease;
}

.menu-item:hover {
    padding-left: 8px;
}

/* ===== Gallery ===== */
.gallery-img-wrapper {
    overflow: hidden;
    position: relative;
}

.gallery-img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-img-wrapper:hover .gallery-img {
    transform: scale(1.06);
}

.gallery-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(123, 45, 59, 0);
    transition: background 0.4s ease;
}

.gallery-img-wrapper:hover::after {
    background: rgba(123, 45, 59, 0.06);
}

/* ===== Visit Section ===== */
.visit-item {
    border-left: 1px solid #f2bcc7;
    padding-left: 16px;
    transition: border-color 0.3s ease, padding-left 0.3s ease;
}

.visit-item:hover {
    border-color: #7B2D3B;
    padding-left: 20px;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #f2bcc7;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7B2D3B;
}

/* ===== Selection ===== */
::selection {
    background: #f2bcc7;
    color: #3A161C;
}

/* ===== 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-on-scroll {
        opacity: 1;
        transform: none;
    }
}
