/* Peterson's Place — Custom Styles */

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

/* Base selection color */
::selection {
    background-color: rgba(6, 78, 59, 0.15);
    color: #064e3b;
}

/* Navbar transitions */
.nav-text {
    transition: color 0.5s ease;
}

.nav-link {
    position: relative;
}

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

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

/* Floating card animations */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

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

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

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

/* Menu item hover */
.menu-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(6, 78, 59, 0.06);
    transition: padding-left 0.3s ease;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    padding-left: 8px;
}

/* Scroll reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

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

/* Mobile menu */
#mobile-menu {
    transition: opacity 0.3s ease;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: #d4a574;
    transition: width 0.3s ease;
}

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

/* Hamburger animation */
.nav-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active .nav-line:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

.menu-toggle.active .nav-line:last-child {
    transform: rotate(-45deg) translate(2px, -2px);
    opacity: 0;
}

/* Focus styles */
input:focus,
select:focus,
textarea:focus,
button:focus,
a:focus {
    outline: 2px solid rgba(6, 78, 59, 0.4);
    outline-offset: 2px;
}

/* Subtle image hover */
img {
    transition: transform 0.6s ease;
}

/* Print styles */
@media print {
    nav, #contact, footer { display: none; }
    body { color: #000; background: #fff; }
}
