*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    min-height: 100vh;
    overflow-x: hidden;
}

/* ─── Hero ─── */
.hero {
    position: relative;
    background: #1a1a1a;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background: url('https://images.pexels.com/photos/8082235/pexels-photo-8082235.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center center / cover no-repeat;
    transform: scale(1.02);
    transition: transform 8s ease-out;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.92) 0%,
        rgba(44, 44, 44, 0.82) 40%,
        rgba(44, 44, 44, 0.65) 70%,
        rgba(26, 26, 26, 0.85) 100%
    );
}

.hero.loaded .hero-bg-image {
    transform: scale(1);
}

.hero-particles .particle {
    position: absolute;
    background: rgba(232, 106, 91, 0.3);
    border-radius: 50%;
    animation: float-particle 6s ease-in-out infinite;
}

@keyframes float-particle {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-20px) scale(1.2); opacity: 0.6; }
}

.hero-badge {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.7s 0.3s ease forwards;
}

.hero-headline {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.8s 0.5s ease forwards;
}

.hero-sub {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 0.7s ease forwards;
}

.hero-cta {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 0.9s ease forwards;
}

.hero-stats {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 1.1s ease forwards;
}

.hero-stat {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.6s ease forwards;
}

.hero-stat:nth-child(1) { animation-delay: 1.3s; }
.hero-stat:nth-child(2) { animation-delay: 1.45s; }
.hero-stat:nth-child(3) { animation-delay: 1.6s; }

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

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

@keyframes bounce-down {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ─── Room Cards ─── */
.room-card {
    opacity: 1;
}

.room-img {
    position: relative;
    overflow: hidden;
}

.room-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.3) 0%, transparent 40%);
    pointer-events: none;
}

/* ─── Amenity Cards ─── */
.amenity-card {
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.amenity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ─── Scroll Reveal ─── */
.reveal-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-section.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-section { opacity: 1; transform: none; }
    .hero-badge, .hero-headline, .hero-sub, .hero-cta, .hero-stats, .hero-stat {
        opacity: 1; transform: none; animation: none;
    }
}

/* ─── Header scroll state ─── */
#site-header.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.mobile-link {
    opacity: 1;
}

/* ─── Form validation ─── */
input:focus, textarea:focus {
    outline: none;
}

input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
    border-color: #ef4444 !important;
}

input:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown) {
    border-color: #22c55e !important;
}

/* ─── Selection ─── */
::selection {
    background: rgba(232, 106, 91, 0.3);
    color: #fff;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1a1a1a; }
::-webkit-scrollbar-thumb { background: #353535; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #4f4f4f; }
