/* ============================================
   Wonderland at the Grand — Custom Styles
   ============================================ */

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

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: #1a5c3a;
    color: #f5f5f0;
}

/* ============================================
   Header
   ============================================ */
.site-header {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.site-header.scrolled {
    background: rgba(13, 45, 28, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-link {
    position: relative;
}

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

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

/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative;
}

.hero-bg {
    will-change: transform;
}

.hero-img {
    transform: scale(1.05);
    transition: transform 8s ease-out;
}

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

.hero-overlay {
    background: linear-gradient(
        180deg,
        rgba(7, 23, 14, 0.55) 0%,
        rgba(13, 45, 28, 0.7) 40%,
        rgba(21, 74, 46, 0.75) 70%,
        rgba(26, 92, 58, 0.85) 100%
    );
}

.hero-orb {
    background: radial-gradient(circle, #74ab7e 0%, transparent 70%);
}

.hero-orb-1 {
    background: radial-gradient(circle, rgba(116, 171, 126, 0.4) 0%, transparent 70%);
}

.hero-orb-2 {
    background: radial-gradient(circle, rgba(168, 204, 175, 0.3) 0%, transparent 70%);
}

.hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-badge {
    animation: fadeInDown 0.8s ease forwards;
}

.hero-headline {
    animation: fadeInUp 0.8s ease 0.15s both;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-ctas {
    animation: fadeInUp 0.8s ease 0.45s both;
}

.hero-trust {
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-scroll {
    animation: fadeIn 1s ease 1.2s both;
}

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

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

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

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.btn-primary:active {
    transform: translateY(0);
}

/* ============================================
   Room Cards
   ============================================ */
.room-card {
    will-change: transform;
}

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

.room-amenity-tag {
    display: inline-block;
    background: #eef5f1;
    color: #1a5c3a;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.3rem 0.65rem;
    border-radius: 9999px;
    border: 1px solid #d4e6d9;
}

/* ============================================
   Amenities
   ============================================ */
.amenities-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V2h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V2H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.amenity-card {
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

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

/* ============================================
   CTA Pattern
   ============================================ */
.cta-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.12'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10zm10 8c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm40 40c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ============================================
   Mobile Menu
   ============================================ */
#mobile-menu {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

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

.mobile-link {
    opacity: 1;
}

/* ============================================
   Form
   ============================================ */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(26, 92, 58, 0.15);
}

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

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

::-webkit-scrollbar-thumb {
    background: #a09a88;
    border-radius: 4px;
}

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

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

    .hero-img {
        transform: none !important;
    }
}

/* ============================================
   Print
   ============================================ */
@media print {
    .site-header,
    .hero-scroll,
    .hero-orb {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }
}
