/*
Theme Name: Royale Sports Group
Theme URI: 
Description: Royale Sports Group Child Theme
Author: 
Author URI: 
Template: astra
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: royale-sports-group
*/


/* Wordpress Admin Bar Fix */
html {
    margin-top: 0 !important;
}

@keyframes gradient-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes slow-zoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-pattern {
    background-color: #0f172a;
    position: relative;
    overflow: hidden;
}

/* Animated Gradient Overlay */
.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(-45deg, rgba(30, 58, 138, 0.8), rgba(88, 28, 135, 0.8), rgba(15, 23, 42, 0.8), rgba(59, 130, 246, 0.7));
    background-size: 400% 400%;
    animation: gradient-flow 15s ease infinite;
    z-index: 1;
}

/* Background Image with optional slow zoom */
.hero-bg-image {
    position: absolute;
    inset: 0;
    background-image: url("https://images.unsplash.com/photo-1540747913346-19e32dc3e97e?q=80&w=2000&auto=format&fit=crop");
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    z-index: 0;
    animation: slow-zoom 20s alternate infinite linear;
}

/* WordPress Menu Link Styles */
.menu-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Remove global hover white, as it breaks white pages */
/* .menu-item a:hover { color: #ffffff; } REMOVED */

/* Styles for Standard Page Header (White Navbar) */
.main-header-nav .menu-item a {
    color: #1e3a8a;
    /* Brand Blue */
}

.main-header-nav .menu-item a:hover,
.main-header-nav .current-menu-item a,
/* Active Page */
.main-header-nav .menu-item a:active {
    color: #000000 !important;
    /* Black on hover/active */
}

/* Custom Scroll To Top Button */
#ast-scroll-top {
    background: linear-gradient(135deg, #1e3a8a, #6b21a8) !important;
    /* Brand Blue to Purple */
    color: #ffffff !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    display: none;
    /* Hidden by default, shown via JS */
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
    bottom: 30px !important;
    right: 30px !important;
    opacity: 0;
    /* Star invisible */
    padding-top: 10px !important;
    pointer-events: none;
    /* Prevent clicks when invisible */
}

/* Class to show the button */
#ast-scroll-top.show-scroll {
    display: flex !important;
    opacity: 0.8;
    pointer-events: auto;
}

#ast-scroll-top:hover {
    transform: translateY(-5px);
    opacity: 1;
    box-shadow: 0 8px 25px rgba(107, 33, 168, 0.4) !important;
}

#ast-scroll-top .ast-icon {
    fill: #ffffff !important;
    width: 20px !important;
    height: 20px !important;
    display: flex;
    justify-content: center;
}

/* Generic Slider Styles */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Contact Form 7 Button Override */
.wpcf7-submit,
.wpcf7 input[type="submit"] {
    width: 100%;
    padding: 1rem 2rem !important;
    background-color: #1e3a8a !important;
    /* Brand Blue */
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: 9999px !important;
    /* Rounded Full */
    border: none !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    /* shadow-lg */
    margin-top: 1rem;
    text-transform: none;
    font-family: inherit;
}

.wpcf7-submit:hover,
.wpcf7 input[type="submit"]:hover {
    background-color: #1e40af !important;
    /* Blue-800 as requested */
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

@media (min-width: 768px) {

    .wpcf7-submit,
    .wpcf7 input[type="submit"] {
        width: auto !important;
    }
}

/* Contact Form 7 Overrides */
.wpcf7-form-control-wrap {
    display: block !important;
    /* Fixes layout issues with error messages */
}

.wpcf7-not-valid-tip {
    font-size: 0.875rem;
    color: #dc2626;
    /* Tailwind Red-600 */
    margin-top: 0.5rem;
}

.wpcf7-response-output {
    border-radius: 0.5rem !important;
    padding: 1rem !important;
    margin: 2rem 0 0 0 !important;
    font-size: 0.95rem;
}

div.wpcf7 .ajax-loader {
    margin-left: 10px;
}

@media (max-width: 768px) {
    #ast-scroll-top {
        width: 40px !important;
        height: 40px !important;
        bottom: 20px !important;
        right: 20px !important;
    }
}