/* ===== Custom Styles for The Krafty Kup ===== */

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
    background-color: rgba(27, 67, 50, 0.15);
    color: #1B4332;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDFBF7;
}
::-webkit-scrollbar-thumb {
    background: #dce8e0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b8d1bc;
}

/* Focus visible */
*:focus-visible {
    outline: 2px solid #4a7c4c;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Navbar transitions */
.nav-scrolled {
    background: rgba(253, 251, 247, 0.92) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 1px 0 rgba(27, 67, 50, 0.06), 0 4px 20px rgba(27, 67, 50, 0.04);
}

.nav-transparent {
    background: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
}

.nav-transparent .navbar-link {
    color: rgba(253, 251, 247, 0.8) !important;
}
.nav-transparent .navbar-link:hover {
    color: rgba(253, 251, 247, 1) !important;
}

.nav-transparent .nav-cta {
    background: rgba(253, 251, 247, 0.15) !important;
    border-color: rgba(253, 251, 247, 0.25) !important;
    color: rgba(253, 251, 247, 1) !important;
}
.nav-transparent .nav-cta:hover {
    background: rgba(253, 251, 247, 0.25) !important;
}

/* Image hover */
img {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Scroll reveal base - content is visible by default */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal.revealed {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed.reveal-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.2s ease;
}

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