/* ===== Custom Styles for Tiny Cabins / RV Memorial Camp ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f3f8;
}
::-webkit-scrollbar-thumb {
    background: #0B1D3A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #153870;
}

/* ===== Reveal Animations (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: translate(0, 0);
    }
}

/* Default state: always visible (for no-JS or reduced-motion) */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
}

/* ===== Navbar Scroll State ===== */
.navbar-scrolled {
    background: rgba(11, 29, 58, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

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

/* ===== Selection Color ===== */
::selection {
    background: #41a089;
    color: white;
}

/* ===== Image Loading ===== */
img {
    image-rendering: -webkit-optimize-contrast;
}

/* ===== Mobile Menu Transition ===== */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
#mobile-menu.open {
    max-height: 400px;
}

/* ===== Card Hover Effects ===== */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* ===== Gradient Text Utility ===== */
.text-transparent.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

/* ===== Subtle pattern overlay for sections ===== */
.section-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width=&quot;40&quot; height=&quot;40&quot; viewBox=&quot;0 0 40 40&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot;%3E%3Cg fill=&quot;%2341a089&quot; fill-opacity=&quot;0.03&quot; fill-rule=&quot;evenodd&quot;%3E%3Ccircle cx=&quot;20&quot; cy=&quot;20&quot; r=&quot;1&quot;/%3E%3C/g%3E%3C/svg%3E");
}

/* ===== Playfair Display Italic Accent ===== */
.font-serif-italic {
    font-style: italic;
}

/* ===== Responsive Typography ===== */
@media (max-width: 640px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

/* ===== Touch-friendly tap targets on mobile ===== */
@media (max-width: 768px) {
    a, button {
        min-height: 44px;
        min-width: 44px;
    }
}

/* ===== Print Styles ===== */
@media print {
    nav, #mobile-menu, button, .reveal-up, .reveal-left, .reveal-right {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
