/* ===== Custom Styles for The Waxing Cats ===== */

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

/* Custom selection color */
::selection {
    background-color: #1B4332;
    color: #FDFCF8;
}

/* ===== Scroll Reveal Animations ===== */
/* Default state: content is always visible */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced reveal with animation - only active when JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Navbar Styles ===== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(253, 252, 248, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(27, 67, 50, 0.08);
}

#navbar.scrolled .logo-text {
    color: #1B4332;
}

#navbar.scrolled .nav-link {
    color: #2d4f38;
}

#navbar.scrolled .nav-link:hover {
    color: #1B4332;
}

/* ===== Mobile Menu ===== */
.mobile-link {
    opacity: 1;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: #C9A96E;
}

/* ===== Button Hover Effects ===== */
a[href="tel:+12148176468"] {
    position: relative;
}

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

/* ===== Gold Accent Line ===== */
.w-16.h-px.bg-gold-400 {
    background: linear-gradient(90deg, #C9A96E, #B8944F);
}

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

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

::-webkit-scrollbar-thumb {
    background: #93b89a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a7a56;
}

/* ===== Form Styles ===== */
input, textarea {
    background: rgba(253, 252, 248, 0.8);
    border: 1px solid #dce8df;
    color: #1B4332;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #1B4332;
    box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.1);
}

input::placeholder, textarea::placeholder {
    color: #93b89a;
}

/* ===== Success Message ===== */
.success-message {
    animation: fadeInUp 0.5s ease forwards;
}

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

/* ===== Loading State ===== */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== Print Styles ===== */
@media print {
    #navbar,
    .reveal {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }

    .bg-forest-800,
    .bg-forest-900,
    .bg-forest-950 {
        background: #fff !important;
        color: #000 !important;
    }
}

/* ===== 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;
    }
}

/* ===== Focus Visible ===== */
:focus-visible {
    outline: 2px solid #1B4332;
    outline-offset: 2px;
}

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

/* ===== Subtle Pattern Overlay ===== */
.bg-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(27, 67, 50, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
}
