/* ============================================
   Valencia Group Hotel — Custom Styles
   ============================================ */

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FDF8F0; }
::-webkit-scrollbar-thumb { background: #C45A3C; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a8472e; }

/* Selection */
::selection { background: #C45A3C; color: #FDF8F0; }

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

.geo-circle-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(196, 90, 60, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(226, 173, 74, 0.1) 0%, transparent 70%);
    bottom: 10%;
    left: 5%;
    border-radius: 50%;
}

.geo-rect-1 {
    width: 120px;
    height: 120px;
    background: rgba(196, 90, 60, 0.06);
    border: 2px solid rgba(196, 90, 60, 0.12);
    top: 25%;
    right: 8%;
    border-radius: 24px;
    transform: rotate(30deg);
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(226, 173, 74, 0.08);
    bottom: 15%;
    right: 15%;
}

/* ============================================
   Scroll Indicator
   ============================================ */
.scroll-line {
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, transparent, #1C1917);
    position: absolute;
    top: -40%;
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: -40%; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 140%; opacity: 0; }
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(253, 248, 240, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(28, 25, 23, 0.08);
}

.nav-link {
    position: relative;
    color: #1C1917;
    transition: color 0.3s ease;
}

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

.nav-link:hover {
    color: #C45A3C;
}

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

#navbar.scrolled .nav-logo-text {
    color: #1C1917;
}

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

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

.mobile-menu-link {
    transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-menu-link:hover {
    color: #C45A3C;
    transform: translateX(8px);
}

/* Hamburger animation */
.menu-line {
    transition: all 0.3s ease;
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
    width: 24px;
    margin-left: 0;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Reveal Animations (below-the-fold only)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

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

    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* Always-visible fallback for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   Image hover effects
   ============================================ */
img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Form inputs
   ============================================ */
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 300px;
        height: 300px;
    }
    .geo-circle-2 {
        width: 200px;
        height: 200px;
    }
    .geo-rect-1 {
        width: 80px;
        height: 80px;
    }
    .geo-triangle {
        display: none;
    }
}
