/* ===== Custom Styles for Sunshine Resort at ChampionsGate ===== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fafaf5;
}
::-webkit-scrollbar-thumb {
    background: #d4a574;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c49464;
}

/* ===== Navigation ===== */
.nav-logo-text {
    font-family: 'Playfair Display', Georgia, serif;
}

.nav-link {
    position: relative;
}

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

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

/* Scrolled navbar */
.navbar-scrolled {
    background: rgba(255, 253, 245, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

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

/* ===== Hero Stat Cards ===== */
.stat-card {
    animation: floatCard 6s ease-in-out infinite;
}

.stat-card:nth-child(1) {
    animation-delay: 0s;
}

.stat-card:nth-child(2) {
    animation-delay: 1.5s;
}

.stat-card:nth-child(3) {
    animation-delay: 3s;
}

.stat-card:nth-child(4) {
    animation-delay: 4.5s;
}

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

/* ===== Home Cards ===== */
.home-card {
    position: relative;
}

.home-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, transparent, rgba(232, 96, 51, 0.1), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.home-card:hover::before {
    opacity: 1;
}

/* ===== Amenity Cards ===== */
.amenity-card {
    position: relative;
    overflow: hidden;
}

.amenity-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ee7d56, #e86033);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.amenity-card:hover::after {
    transform: scaleX(1);
}

/* ===== Gallery Items ===== */
.gallery-item {
    height: 240px;
}

.gallery-item.col-span-2 {
    height: 240px;
}

@media (min-width: 768px) {
    .gallery-item {
        height: 300px;
    }
    .gallery-item.col-span-2 {
        height: 300px;
    }
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        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; }
}

/* ===== Lightbox ===== */
#lightbox {
    display: none;
}

#lightbox.active {
    display: flex;
}

/* ===== Mobile Menu ===== */
.mobile-nav-link {
    transition: all 0.3s ease;
}

/* ===== Button Focus States ===== */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid #e86033;
    outline-offset: 2px;
}

/* ===== Selection Color ===== */
::selection {
    background: #f9cbb8;
    color: #772717;
}

/* ===== Subtle Background Pattern ===== */
body {
    background-image: radial-gradient(ellipse at 20% 50%, rgba(249, 203, 184, 0.08) 0%, transparent 50%),
                      radial-gradient(ellipse at 80% 20%, rgba(245, 233, 168, 0.06) 0%, transparent 50%);
}

/* ===== Responsive adjustments ===== */
@media (max-width: 1023px) {
    .stat-card {
        display: none;
    }
}
