/* ── Reset & Base ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; overflow-x: hidden; }
img { display: block; max-width: 100%; }

/* ── Typography ──────────────────────────────────── */
.title-accent {
    font-style: italic;
    font-weight: 500;
}

/* ── Navigation ──────────────────────────────────── */
#header {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
#header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(91, 44, 111, 0.08);
}
#header.scrolled .font-serif { color: #5B2C6F; }
#header.scrolled .nav-link { color: #7c3aed; }

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

/* ── Scroll Reveal ───────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }

/* ── Hero Animation ──────────────────────────────── */
.hero-sub { animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both; }
.hero-title { animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both; }
.hero-desc { animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both; }
.hero-cta { animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both; }

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

/* ── Hover line under nav links ──────────────────── */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #F59E0B;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* ── Room card hover ─────────────────────────────── */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* ── Subtle gradient border on contact form ──────── */
#contact-form {
    background: linear-gradient(135deg, rgba(250, 245, 255, 0.6) 0%, rgba(243, 232, 255, 0.3) 100%);
}

/* ── Custom scrollbar ────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #faf5ff; }
::-webkit-scrollbar-thumb { background: #c4b5fd; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #a78bfa; }

/* ── Selection ───────────────────────────────────── */
::selection {
    background: rgba(91, 44, 111, 0.15);
    color: #2d1038;
}
