/* ===== BASE STYLES ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

::selection {
    background: #8c2a2a;
    color: #fdf8f6;
}

/* ===== NAVBAR ===== */
#navbar {
    background: rgba(250, 250, 249, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(214, 211, 209, 0.5);
}

#navbar.scrolled {
    background: rgba(250, 250, 249, 0.97);
    box-shadow: 0 1px 0 rgba(214, 211, 209, 0.3);
}

.nav-link {
    position: relative;
}

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

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

/* ===== HERO ===== */
.hero-content {
    opacity: 1;
    animation: fadeUp 1s ease forwards;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(28, 25, 23, 0.1));
    pointer-events: none;
}

.hero-floating-card {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.scroll-indicator {
    animation: pulse-down 2s ease-in-out infinite;
}

@keyframes pulse-down {
    0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; transform: translateX(-50%) translateY(6px); }
}

/* ===== ROOM CARDS ===== */
.room-card {
    position: relative;
}

.room-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 1px rgba(214, 211, 209, 0.5);
    pointer-events: none;
    transition: box-shadow 0.3s ease;
}

.room-card:hover::before {
    box-shadow: 0 20px 60px -20px rgba(140, 42, 42, 0.15);
}

/* ===== AMENITY ITEMS ===== */
.amenity-item {
    transition: transform 0.3s ease;
}

.amenity-item:hover {
    transform: translateY(-4px);
}

/* ===== FEATURE ROWS ===== */
.feature-row {
    transition: transform 0.3s ease;
}

.feature-row:hover {
    transform: translateX(8px);
}

.feature-row:hover .w-12 {
    background: #8c2a2a;
    opacity: 0;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ===== MOBILE MENU ===== */
#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

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

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

/* ===== MAP ===== */
iframe.grayscale {
    filter: grayscale(0.3);
    transition: filter 0.7s ease;
}

iframe.grayscale:hover {
    filter: grayscale(0);
}

/* ===== FORM ===== */
#contact-form input:focus,
#contact-form textarea:focus {
    border-bottom-color: #f2a8a8 !important;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: rgba(180, 80, 80, 0.4);
}

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

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

/* ===== MOBILE MENU LINES ===== */
.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-floating-card {
        display: none;
    }
    
    .scroll-indicator {
        display: none;
    }
}
