/* ============================================
   Fiesta Sol Island Resort — Custom Styles
   ============================================ */

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

body {
    overflow-x: hidden;
}

/* Selection Color */
::selection {
    background: rgba(212, 160, 60, 0.3);
    color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0d0a0a;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #a11e1e, #d4a03c);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #c42e2e, #e8c060);
}

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

#navbar.scrolled {
    background: rgba(8, 6, 6, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05), 0 4px 20px rgba(0,0,0,0.4);
}

/* ============================================
   Scroll Reveal (progressive enhancement)
   Content is visible by default; JS adds animation
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

    /* Default state is visible — JS only adds class for animation timing */
}

/* ============================================
   Form Inputs
   ============================================ */
input:focus,
textarea:focus {
    background: rgba(255, 255, 255, 0.07) !important;
}

input::placeholder,
textarea::placeholder {
    color: rgba(156, 163, 175, 0.5);
}

/* ============================================
   Mobile Menu Animation
   ============================================ */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

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

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.75rem;
    }

    .font-serif.text-4xl {
        font-size: 2.25rem;
    }
}

@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.25rem;
    }
}

/* ============================================
   Gallery Hover Overlay
   ============================================ */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* ============================================
   Gold shimmer on CTA buttons
   ============================================ */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* ============================================
   Image Placeholder Fallbacks
   ============================================ */
img {
    background: linear-gradient(135deg, #1a1515 0%, #0d0a0a 100%);
}
