/* ===== Custom Styles for Cavern Inn ===== */

:root {
    --teal-900: #0d3b3e;
    --teal-800: #145a5e;
    --teal-700: #0d5c60;
    --teal-100: #d1e7e8;
    --teal-50: #eaf4f4;
    --amber-400: #f59e0b;
    --amber-500: #d97706;
    --amber-700: #b45309;
    --stone-50: #fafaf9;
    --slate-800: #1e293b;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* ===== Navbar ===== */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(13, 59, 62, 0.97);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
    position: relative;
}

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

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

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

.nav-cta {
    color: #f59e0b;
    border: 1.5px solid rgba(245, 158, 11, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-cta:hover {
    background-color: rgba(245, 158, 11, 0.15);
    border-color: #f59e0b;
}

.nav-btn {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

.nav-btn:hover {
    color: #f59e0b;
}

.nav-logo-text {
    color: rgba(255, 255, 255, 0.95);
}

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

.mobile-nav-link:hover {
    transform: translateX(4px);
}

/* ===== Hero ===== */
#hero {
    position: relative;
}

.hero-badge {
    animation: fadeInDown 0.8s ease forwards;
}

#hero h1 {
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

#hero p {
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

#hero a {
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

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

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

/* ===== Scroll Reveal (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }

    .reveal-up.revealed {
        animation: revealUp 0.7s ease forwards;
    }

    .reveal-left.revealed {
        animation: revealLeft 0.7s ease forwards;
    }

    .reveal-right.revealed {
        animation: revealRight 0.7s ease forwards;
    }
}

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

@keyframes revealLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes revealRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== Typography ===== */
.font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

/* ===== Button Hover Effects ===== */
button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 59, 62, 0.3);
}

button[type="submit"]:active {
    transform: translateY(0);
}

/* ===== Image Hover ===== */
img {
    transition: transform 0.5s ease;
}

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

/* ===== Selection ===== */
::selection {
    background-color: rgba(13, 59, 62, 0.2);
    color: #0d3b3e;
}

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

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

::-webkit-scrollbar-thumb {
    background: #0d3b3e;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #145a5e;
}
