/* ============================================
   Ryde Hotel & Event Center — Custom Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

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

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

/* --- Selection --- */
::selection {
    background: #B85C38;
    color: #FDF8F5;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #FDF8F5;
}
::-webkit-scrollbar-thumb {
    background: #D4B382;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #B85C38;
}

/* --- Navbar --- */
.nav {
    background: rgba(253, 248, 245, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(232, 226, 220, 0.5);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav.scrolled {
    background: rgba(253, 248, 245, 0.97);
    box-shadow: 0 1px 20px rgba(44, 40, 37, 0.06);
}

.nav.scrolled .nav-link {
    color: rgba(44, 40, 37, 0.85);
}

/* --- Nav Links --- */
.nav-link {
    position: relative;
}

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

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

.nav-link:hover {
    color: #B85C38 !important;
}

/* --- Mobile Menu --- */
.mobile-menu {
    background: rgba(253, 248, 245, 0.98);
    backdrop-filter: blur(20px);
}

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

.mobile-menu-link {
    position: relative;
}

.mobile-menu-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: #B85C38;
    transition: width 0.3s ease;
}

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

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

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

.hero-img {
    transition: transform 8s ease;
}

.hero:hover .hero-img {
    transform: scale(1.02);
}

.hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(253, 248, 245, 0.4) 0%,
        rgba(253, 248, 245, 0.2) 40%,
        rgba(253, 248, 245, 0.1) 60%,
        rgba(253, 248, 245, 0.85) 85%,
        rgba(253, 248, 245, 1) 100%
    );
}

/* --- Hero Animations --- */
.hero-badge {
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero-title {
    animation: fadeInUp 0.8s ease 0.5s forwards;
    opacity: 0;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease 0.7s forwards;
    opacity: 0;
}

.hero-cta {
    animation: fadeInUp 0.8s ease 0.9s forwards;
    opacity: 0;
}

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

/* --- Scroll Indicator --- */
.scroll-line {
    overflow: hidden;
}

.scroll-line-inner {
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% {
        transform: translateY(-100%);
    }
    50% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(100%);
    }
}

/* --- Reveal Animations --- */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* --- Room Cards --- */
.room-card {
    position: relative;
}

.room-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    border-radius: inherit;
    transition: border-color 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.room-card:hover::before {
    border-color: rgba(184, 92, 56, 0.2);
}

/* --- Button Hover Effects --- */
button[type="submit"],
a[href="#contact"] {
    position: relative;
    overflow: hidden;
}

button[type="submit"]::before,
a[href="#contact"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

button[type="submit"]:hover::before,
a[href="#contact"]:hover::before {
    left: 100%;
}

/* --- Form Styles --- */
input:focus,
select:focus,
textarea:focus {
    border-color: #B85C38 !important;
}

input::placeholder,
textarea::placeholder {
    color: rgba(107, 101, 96, 0.4);
}

select option {
    color: #6B6560;
}

/* --- Back to Top --- */
.back-to-top {
    box-shadow: 0 4px 20px rgba(184, 92, 56, 0.3);
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(184, 92, 56, 0.4);
}

/* --- Divider Lines --- */
.h-px {
    background-image: linear-gradient(to right, transparent, rgba(232, 226, 220, 1), transparent);
}

/* --- Focus Visible --- */
*:focus-visible {
    outline: 2px solid #B85C38;
    outline-offset: 2px;
}

/* --- 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-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}

/* --- Print --- */
@media print {
    .nav,
    .back-to-top,
    .scroll-indicator {
        display: none;
    }
    
    body {
        background: white;
    }
}
