/* ===== Custom Styles for Truist Club ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf8ee;
}
::-webkit-scrollbar-thumb {
    background: #d4a0a8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #722F37;
}

/* Selection color */
::selection {
    background: #fce7eb;
    color: #3d181e;
}

/* ===== Reveal Animations ===== */
/* Default state: visible (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Stagger delays */
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ===== Navbar Scroll State ===== */
#navbar.scrolled {
    background: rgba(254, 252, 248, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(114, 47, 55, 0.08);
}

#navbar.scrolled .font-display {
    color: #722F37 !important;
}

/* ===== Hero Animations ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-float {
    animation: float 6s ease-in-out infinite;
}

/* ===== Button Hover Effects ===== */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* ===== Image Loading ===== */
img {
    background-color: #faf0d5;
}

/* ===== Focus Styles ===== */
:focus-visible {
    outline: 2px solid #722F37;
    outline-offset: 2px;
}

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

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

/* ===== Card Tilt on Hover ===== */
@media (prefers-reduced-motion: no-preference) {
    .group:hover .group-hover\:scale-105 {
        transform: scale(1.05);
    }
}

/* ===== Responsive Typography ===== */
@media (max-width: 640px) {
    .font-display {
        line-height: 1.15;
    }
}

/* ===== Print Styles ===== */
@media print {
    #navbar, #mobile-menu, button {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    section {
        page-break-inside: avoid;
    }
}
