/* ============================================
   Log Cabin Rental In Smoky Mountains
   Custom Styles
   ============================================ */

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: #8B2F2F;
    color: #FDF8F6;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF6F1;
}
::-webkit-scrollbar-thumb {
    background: #D4BEA5;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8B2F2F;
}

/* --- Navigation --- */
#navbar {
    background: transparent;
    transition: background-color 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
    background: rgba(253, 248, 251, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(139, 47, 47, 0.08);
}

#navbar.scrolled .nav-logo-path {
    stroke: #8B2F2F;
}

#navbar.scrolled .nav-text {
    color: #4A1818;
}

.nav-link {
    position: relative;
}

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

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

/* --- Mobile Menu --- */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

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

/* --- Hero Pattern --- */
.hero-pattern-fill {
    fill: #F5D9C0;
}

/* --- Amenity Cards --- */
.amenity-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.amenity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(74, 24, 24, 0.15);
}

/* --- Gallery Items --- */
.gallery-item {
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(74, 24, 24, 0);
    transition: background 0.4s ease;
}

.gallery-item:hover::after {
    background: rgba(74, 24, 24, 0.08);
}

/* --- Scroll Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.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; }

/* --- Floating Cards Animation --- */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(2deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0px) rotate(-1deg); }
    50% { transform: translateY(-8px) rotate(-1deg); }
}

@keyframes float-fast {
    0%, 100% { transform: translateY(0px) rotate(1deg); }
    50% { transform: translateY(-6px) rotate(1deg); }
}

@keyframes float-slow-2 {
    0%, 100% { transform: translateY(0px) rotate(-1deg); }
    50% { transform: translateY(-10px) rotate(-1deg); }
}

.floating-card-1 { animation: float-slow 6s ease-in-out infinite; }
.floating-card-2 { animation: float-medium 5s ease-in-out infinite; }
.floating-card-3 { animation: float-fast 4.5s ease-in-out infinite; }
.floating-card-4 { animation: float-slow-2 5.5s ease-in-out infinite; }

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

/* --- Date Input Styling --- */
input[type="date"] {
    color-scheme: light;
}

/* --- Responsive --- */
@media (max-width: 1023px) {
    #hero {
        min-height: auto;
        padding: 120px 0 80px;
    }
}

@media (max-width: 639px) {
    .font-serif {
        line-height: 1.1;
    }
}
