/* ============================================
   Texas Cowboy Club - Custom Styles
   ============================================ */

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

body {
    overflow-x: hidden;
}

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

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

::-webkit-scrollbar-thumb {
    background: #c7d2fe;
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a5b4fc;
}

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

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

@keyframes pulseSoft {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.5; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes countUp {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ----- Navbar Scroll Effect ----- */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* ----- Feature Card Hover ----- */
.feature-card {
    cursor: default;
}

.feature-card:hover {
    transform: translateY(-4px);
}

/* ----- Testimonial Card ----- */
.testimonial-card:hover {
    transform: translateY(-3px);
}

/* ----- FAQ Accordion ----- */
.faq-item .faq-toggle[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
    color: #4f46e5;
}

.faq-item .faq-toggle[aria-expanded="true"] {
    background-color: #eef2ff;
}

.faq-answer.open {
    display: block;
}

/* ----- Stat Numbers ----- */
.stat-number {
    font-variant-numeric: tabular-nums;
    letter-spacing: -1px;
}

/* ----- CTA Gradient Overlay ----- */
#cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.06) 0%, transparent 60%);
    pointer-events: none;
}

/* ----- Responsive Image Handling ----- */
img {
    max-width: 100%;
    height: auto;
}

/* ----- Mobile Menu Transition ----- */
#mobileMenu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

#mobileMenu.show {
    display: block;
}

/* ----- Active Nav Link ----- */
.nav-link.active,
.mobile-nav-link.active {
    color: #4f46e5;
    background-color: #eef2ff;
}

/* ----- Focus Styles ----- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
    border-radius: 6px;
}

/* ----- Selection ----- */
::selection {
    background-color: #c7d2fe;
    color: #312e81;
}

/* ----- Media Queries ----- */
@media (max-width: 640px) {
    .stat-number {
        font-size: 2.25rem !important;
    }
}

/* ----- Reduced Motion ----- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ----- Smooth Section Entrance (Intersection Observer triggered) ----- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ----- Decorative Blob Pulse ----- */
@keyframes blobPulse {
    0%, 100% { transform: scale(1) translate(0, 0); }
    33%      { transform: scale(1.05) translate(10px, -10px); }
    66%      { transform: scale(0.95) translate(-10px, 10px); }
}

/* ----- Button Ripple Effect ----- */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.3) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}

.btn-ripple:active::after {
    opacity: 1;
    transition: opacity 0s;
}
