/* ============================================================
   BORN TO BEACH CLUB – Custom Styles
   ============================================================ */

/* ---- Base ---- */
html {
    scroll-behavior: smooth;
}

::selection {
    background-color: #014c6f;
    color: white;
}

body {
    overflow-x: hidden;
}

/* ---- Hero Background Ken Burns Effect ---- */
.hero-bg {
    animation: kenBurns 20s ease-in-out infinite alternate;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.08);
    }
}

/* ---- Hero Text Animations ---- */
.animate-fade-up {
    animation: fadeUp 1s ease-out forwards;
    opacity: 0;
}

.animate-fade-down {
    animation: fadeDown 0.8s ease-out forwards;
    opacity: 0;
}

.animation-delay-200 {
    animation-delay: 0.2s;
}

.animation-delay-400 {
    animation-delay: 0.4s;
}

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

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

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

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

/* Stagger children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.4s; }

.reveal-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

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

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

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

#navbar.scrolled .nav-link {
    color: rgba(55, 65, 81, 0.8);
}

#navbar.scrolled .nav-link:hover {
    color: #0ea5e9;
}

#navbar.scrolled #mobile-menu-btn {
    color: #1a1a2e;
}

/* ---- Gallery Grid ---- */
#galerie .grid > div:first-child {
    min-height: 300px;
}

@media (min-width: 768px) {
    #galerie .grid > div:first-child {
        min-height: auto;
    }
}

/* ---- Mobile Safe Area ---- */
.safe-area-bottom {
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #01628f;
}

/* ---- Mobile Menu Transition ---- */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 500px;
    opacity: 1;
}

/* ---- WhatsApp Button Entrance ---- */
#whatsapp-float.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Hero Text Readability ---- */
#hero h1,
#hero p,
#hero a {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

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

h1:not(.text-white),
h2:not(.text-white),
h3:not(.text-white),
h4:not(.text-white),
h5:not(.text-white),
h6:not(.text-white) {
    color: #014c6f;
}

/* ---- Print Styles ---- */
@media print {
    nav, #mobile-cta, #whatsapp-float, .sticky-cta {
        display: none !important;
    }
}
