/* === Custom Styles for Snarr Hall === */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: #db960e;
    color: #0c1a38;
}

/* === Animations === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* === Scroll Reveal === */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* 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;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* === Navbar scroll state === */
.navbar-scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

/* === Gold gradient text utility === */
.text-gold-gradient {
    background: linear-gradient(135deg, #f3c258, #db960e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Custom scrollbar === */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0c1a38;
}
::-webkit-scrollbar-thumb {
    background: #4168af;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #db960e;
}

/* === Form styles === */
input, textarea, select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #d9e0ef;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 0.95rem;
    color: #142a52;
    background: #f0f3f9;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

input:focus, textarea:focus, select:focus {
    border-color: #db960e;
    box-shadow: 0 0 0 3px rgba(219, 150, 14, 0.15);
}

input::placeholder, textarea::placeholder {
    color: #8da4cf;
}

/* === Success message === */
.form-success {
    display: none;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f0f3f9, #d9e0ef);
    border: 1.5px solid #b3c2df;
    border-radius: 0.75rem;
    color: #142a52;
    font-size: 0.95rem;
    margin-top: 1rem;
}

.form-success.show {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-success svg {
    flex-shrink: 0;
}
