/* ============================================
   Columbia River Rest at Pillar Rock
   Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

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

/* ============================================
   Geometric Background Shapes
   ============================================ */
.geo-shape {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.shape-circle-1 {
    top: 15%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(193, 119, 87, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-slow 20s ease-in-out infinite;
}

.shape-circle-2 {
    bottom: 10%;
    right: -3%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 212, 77, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.shape-blob {
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(74, 93, 78, 0.04) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: pulse-slow 12s ease-in-out infinite;
}

.shape-triangle {
    top: 30%;
    right: 5%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(193, 119, 87, 0.06);
    animation: rotate-slow 25s linear infinite;
}

.shape-square-rot {
    bottom: 25%;
    left: 8%;
    width: 80px;
    height: 80px;
    background: rgba(255, 212, 77, 0.08);
    border-radius: 12px;
    animation: rotate-slow 20s linear infinite reverse;
}

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

@keyframes pulse-slow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   Clip Paths
   ============================================ */
.clip-diagonal {
    clip-path: polygon(40% 0%, 100% 0, 100% 100%, 0% 100%);
}

.clip-diagonal-reverse {
    clip-path: polygon(0 0, 60% 0, 100% 100%, 0 100%);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-up {
    opacity: 0;
    animation: slideUp 0.7s ease-out forwards;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* ============================================
   Scroll Reveal
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   Room Cards
   ============================================ */
.room-card {
    transition: transform 0.3s ease;
}

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

/* ============================================
   Attraction Cards
   ============================================ */
.attraction-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

#navbar.scrolled {
    background: rgba(255, 253, 247, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(61, 43, 31, 0.08);
}

.nav-link {
    position: relative;
}

/* ============================================
   Mobile Menu
   ============================================ */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.open .mobile-link {
    animation: slideUp 0.4s ease forwards;
}

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

/* ============================================
   Form Styles
   ============================================ */
input:focus, textarea:focus {
    box-shadow: 0 0 0 4px rgba(193, 119, 87, 0.1);
}

input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0.4;
    cursor: pointer;
}

/* ============================================
   Selection
   ============================================ */
::selection {
    background: rgba(193, 119, 87, 0.2);
    color: #3D2B1F;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #a83020;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 640px) {
    .clip-diagonal {
        clip-path: polygon(20% 0%, 100% 0, 100% 100%, 0% 100%);
    }
    
    .clip-diagonal-reverse {
        clip-path: polygon(0 0, 80% 0, 100% 100%, 0 100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
