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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf0f1;
}
::-webkit-scrollbar-thumb {
    background: #c4293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a51d2f;
}

/* ==================== REVEAL ANIMATIONS ==================== */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }
.reveal[data-reveal-delay="4"] { transition-delay: 0.4s; }

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== NAVBAR ==================== */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
    background: rgba(255, 248, 247, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(196, 41, 59, 0.08);
    padding-top: 0;
    padding-bottom: 0;
}

#navbar.scrolled .font-playfair {
    color: #300b0e;
}

#navbar.scrolled .text-burgundy-800 {
    color: #6c1a24;
}

#navbar.scrolled .menu-line {
    background: #6c1a24;
}

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

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    opacity: 1;
    transform: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ==================== HERO ==================== */
#hero {
    position: relative;
}

/* ==================== GEOMETRIC SHAPES ==================== */
.geometric-shape {
    position: absolute;
    pointer-events: none;
}

/* ==================== ROOM CARDS ==================== */
.room-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.room-card:hover {
    transform: translateY(-4px);
}

/* ==================== AMENITY CARDS ==================== */
.amenity-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* ==================== FORM STYLES ==================== */
input:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(196, 41, 59, 0.1);
}

/* ==================== BUTTON HOVER EFFECTS ==================== */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* ==================== SECTION DIVIDERS ==================== */
.section-divider {
    height: 4px;
    background: linear-gradient(90deg, #ffd9d1, #c4293b, #ffd9d1);
}

/* ==================== FLOATING ACCENT ==================== */
.floating-accent {
    animation: float 6s ease-in-out infinite;
}

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

/* ==================== PULSE DOT ==================== */
.pulse-dot {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

/* ==================== IMAGE ZOOM ==================== */
.img-zoom {
    transition: transform 0.7s ease;
}

.img-zoom:hover {
    transform: scale(1.05);
}

/* ==================== TEXT SELECTION ==================== */
::selection {
    background: #f8c2c9;
    color: #300b0e;
}

/* ==================== FOCUS VISIBLE ==================== */
:focus-visible {
    outline: 2px solid #c4293b;
    outline-offset: 2px;
}

/* ==================== UTILITY ==================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
