/* ============================================
   Fernwood Campground — Custom Styles
   Classic & Elegant | Deep Navy + Warm Gold
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --color-navy-900: #0a1628;
    --color-navy-800: #0f2140;
    --color-navy-700: #152d56;
    --color-gold-400: #d4af37;
    --color-gold-300: #e0c060;
    --color-cream-50: #faf8f5;
    --color-cream-100: #f5f0e8;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    color: var(--color-navy-800);
    background-color: var(--color-cream-50);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-navy-900);
}
::-webkit-scrollbar-thumb {
    background: var(--color-gold-400);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold-300);
}

/* --- Selection --- */
::selection {
    background: var(--color-gold-400);
    color: var(--color-navy-900);
}

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

#navbar.scrolled {
    background: rgba(10, 22, 40, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--color-cream-50), transparent);
    pointer-events: none;
    z-index: 2;
}

/* --- Section Dividers --- */
section + .divider-gold {
    position: relative;
}

/* --- Card Hover Effects --- */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* --- Button Focus States --- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-gold-400);
    outline-offset: 3px;
    border-radius: 2px;
}

/* --- Image Hover --- */
.rounded-sm img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Animation Keyframes --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- Animation Classes (progressive enhancement — JS adds these) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .reveal.fade-in-up {
        animation: fadeInUp 0.8s ease forwards;
    }

    .reveal.fade-in {
        animation: fadeIn 0.8s ease forwards;
    }

    .reveal.slide-in-left {
        animation: slideInLeft 0.8s ease forwards;
    }

    .reveal.slide-in-right {
        animation: slideInRight 0.8s ease forwards;
    }

    .reveal.scale-in {
        animation: scaleIn 0.8s ease forwards;
    }

    /* Stagger delays */
    .reveal.delay-100 { animation-delay: 0.1s; }
    .reveal.delay-200 { animation-delay: 0.2s; }
    .reveal.delay-300 { animation-delay: 0.3s; }
    .reveal.delay-400 { animation-delay: 0.4s; }
    .reveal.delay-500 { animation-delay: 0.5s; }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* --- Mobile Menu --- */
#mobile-menu {
    animation: fadeIn 0.3s ease;
}

/* --- Contact Form (if needed in future) --- */
.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-family: var(--font-sans);
    font-size: 1rem;
    border-radius: 4px;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-gold-400);
    background: rgba(255, 255, 255, 0.08);
}

/* --- Success Message --- */
.success-message {
    display: none;
    padding: 16px 24px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--color-gold-400);
    border-radius: 4px;
    color: var(--color-gold-300);
    font-family: var(--font-sans);
    text-align: center;
    animation: fadeIn 0.4s ease;
}

.success-message.show {
    display: block;
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.2;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    /* Tablet adjustments */
}

/* --- Print Styles --- */
@media print {
    #navbar,
    #mobile-menu,
    .no-print {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
    a {
        color: #000;
    }
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        opacity: 0.6;
    }
}
