/* 
    Premium UI Enhancements for Redsea Beverages
    Includes: Floating Effects, Glassmorphism, and Interactive Hovers
*/

/* 1. Subtle Shine Appearance for Mineral Labels */
@keyframes shineIn {
    0% { opacity: 0.5; }
    50% { opacity: 1; text-shadow: 0 0 8px rgba(28, 113, 213, 0.4); }
    100% { opacity: 0.8; }
}

.floating-label {
    animation: shineIn 4s ease-in-out infinite;
    display: inline-block;
}

.themegala-marijuan-title1 { animation-delay: 0s; }
.themegala-marijuan-title2 { animation-delay: 0.5s; }
.themegala-marijuan-title3 { animation-delay: 1s; }
.themegala-marijuan-title { animation-delay: 1.5s; }

/* 2. Glassmorphism Effects */
.glass-effect {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15) !important;
}

/* Specific Glass for Info Boxes */
.themegala-infobox-style-6, .infobox-style-4 {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.themegala-infobox-style-6:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-5px);
}

/* 3. Product Cards Enhancement */
.freshter-woocommerce-product-slide .product {
    transition: all 0.5s ease !important;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    padding: 15px;
}

.freshter-woocommerce-product-slide .product:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(28, 113, 213, 0.15);
}

.freshter-woocommerce-product-slide .product img {
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

.freshter-woocommerce-product-slide .product:hover img {
    transform: scale(1.08) rotate(2deg);
}

/* 4. Section Reveal Initial States (for GSAP) */
.reveal-on-scroll {
    /* opacity: 0; */
    transform: translateY(30px);
}

/* 5. Magnetic Button Helper */
.magnetic-btn {
    display: inline-block;
    transition: transform 0.2s linear;
}

/* Water Wave Effect for Backgrounds */
.water-wave-bg {
    position: relative;
    overflow: hidden;
}

.water-wave-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(28, 113, 213, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

/* 6. Feature Items Enhancement */
.themegala-infobox-wrapper {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    padding: 15px !important;
    border-radius: 15px !important;
}

.themegala-infobox-wrapper:hover {
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-5px) !important;
}

.themegala-infobox-icon i {
    transition: all 0.3s ease !important;
}

.themegala-infobox-wrapper:hover .themegala-infobox-icon i {
    color: #1c71d5 !important;
    text-shadow: 0 0 15px rgba(28, 113, 213, 0.4) !important;
    transform: scale(1.1) !important;
}

/* 7. Floating Animation for Center Bottle */
@keyframes floatCenter {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.floating-center-bottle {
    animation: floatCenter 6s ease-in-out infinite;
}

/* 8. Testimonials Enhancement */
.themegala-testimonial-wrapper {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) !important;
    border-radius: 25px !important;
    padding: 20px !important;
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(25, 118, 210, 0.1) !important;
}

.themegala-testimonial-slide:hover .themegala-testimonial-wrapper {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(28, 113, 213, 0.12) !important;
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(28, 113, 213, 0.3) !important;
}

.themegala-testimonial-rating .fa-star.checked {
    color: #ffb400 !important;
    text-shadow: 0 0 10px rgba(255, 180, 0, 0.3);
}

.themegala-testimonial-content p {
    font-size: 1.1rem !important;
    line-height: 1.7 !important;
    color: #555 !important;
}

.themegala-testimonial-title {
    color: #1c71d5 !important;
    font-weight: 700 !important;
}

/* 9. Timeline & Form Enhancement */
@keyframes pulseStep {
    0% { box-shadow: 0 0 0 0 rgba(28, 113, 213, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(28, 113, 213, 0); }
    100% { box-shadow: 0 0 0 0 rgba(28, 113, 213, 0); }
}

.pulse-step .icon-number {
    animation: pulseStep 2s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.booking-form-glass {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 30px !important;
    padding: 40px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1) !important;
}

.robby-main-form3 .wpcf7-form-control:not([type="submit"]) {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #e1e1e1 !important;
    border-radius: 12px !important;
    padding: 15px 20px !important;
    transition: all 0.3s ease !important;
    font-size: 1rem !important;
}

.robby-main-form3 .wpcf7-form-control:focus {
    border-color: #1c71d5 !important;
    box-shadow: 0 0 15px rgba(28, 113, 213, 0.15) !important;
    background: #fff !important;
}

.robby-main-form3 .wpcf7-submit {
    background: linear-gradient(135deg, #1c71d5 0%, #00d2ff 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 15px 35px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 0 10px 20px rgba(28, 113, 213, 0.3) !important;
}

.robby-main-form3 .wpcf7-submit:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 15px 30px rgba(28, 113, 213, 0.4) !important;
}

/* 10. Active Menu Feature */
.main-navigation ul.menu > li.current-menu-parent > a,
.main-navigation ul.menu > li.current-menu-item > a {
    color: #1c71d5 !important;
    position: relative;
}

.main-navigation ul.menu > li.current-menu-parent > a::after,
.main-navigation ul.menu > li.current-menu-item > a::after {
    content: '';
    position: absolute;
    bottom: 28px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #1c71d5;
    transform: scaleX(1);
    transition: transform 0.3s ease;
}

/* Sticky Header Active Style Adjustment */
.header-stickable.is-sticky .main-navigation ul.menu > li.current-menu-parent > a {
    color: #1c71d5 !important;
}

/* --- BRAND TYPOGRAPHY SYSTEM --- */
body, p, li, span, div {
    font-family: var(--themegala-body-ff) !important;
}

h1, h2, .brand-title {
    font-family: var(--themegala-brand-ff) !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px !important;
}

/* Script Accent Class */
.brand-script {
    font-family: var(--themegala-brand-script) !important;
    font-weight: 400 !important;
}

.brand-gradient-text, 
.brand-gradient-text *,
.brand-gradient-text rs-chars,
.brand-gradient-text rs-char {
    background: linear-gradient(180deg, #1c71d5 0%, #0f49af 100%) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: #1c71d5 !important;
    display: inline-block !important;
}

/* Forced Slider Visibility & FOUC Mitigation */
rs-module-wrap {
    visibility: visible !important;
    opacity: 1 !important;
    background: transparent !important;
}

/* Hide raw text layers before they are positioned by the engine to prevent 'code flash' */
rs-module:not(.revslider-initialised) rs-layer {
    opacity: 0;
}

rs-module.revslider-initialised rs-layer {
    opacity: 1;
}

/* Hero & Main Section Titles */
h1.elementor-heading-title, 
h2.elementor-heading-title,
.themegala-custom-heading-wrapper h3.heading-title {
    font-family: var(--themegala-brand-ff) !important;
    font-weight: 700 !important;
    font-size: clamp(32px, 5vw, 48px) !important;
    line-height: 1.2 !important;
    margin-bottom: 25px !important;
}

/* Sub-headings */
h3, h4, h5, h6 {
    font-family: var(--themegala-h3-ff) !important;
    font-weight: 600 !important;
}

.premium-btn,
.rev-btn.premium-btn,
.header-layout-6 .freshter-header-button a,
.php-email-form input[type="submit"],
.wpcf7-submit {
    display: inline-block;
    padding: 14px 40px !important;
    line-height: 27px !important;
    background: linear-gradient(135deg, #1c71d5 0%, #4fa3ff 100%) !important;
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    border-radius: 50px !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(28, 113, 213, 0.3) !important;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-decoration: none !important;
}

/* --- PREMIUM FOOTER MODERNIZATION --- */
.site-footer.premium-footer {
    background: linear-gradient(180deg, #1257b1 0%, #0a2e6b 100%) !important; /* Premium brand blue gradient */
    padding: 80px 0 0 0 !important;
    position: relative;
    overflow: hidden;
    color: #ffffff !important;
}

.premium-footer .footer_contact-info-wrap {
    /* padding-bottom: 50px !important; */
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important; */
    margin-bottom: 60px !important;
}

.premium-footer .widget-title {
    font-family: var(--themegala-brand-ff) !important;
    font-size: 28px !important;
    color: #ffffff !important;
    margin-bottom: 30px !important;
    font-weight: 700 !important;
}

/* Newsletter Refinement */
.premium-footer .themegala-footer-newsletter-email-inpul {
    position: relative;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 50px !important;
    padding: 5px !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.4s ease !important;
    display: flex;
    align-items: center;
}

.premium-footer .themegala-footer-newsletter-email-inpul:focus-within {
    border-color: var(--themegala-primary-color) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 0 20px rgba(28, 113, 213, 0.2) !important;
}

.premium-footer .themegala-footer-newsletter-email-inpul input {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    height: 50px !important;
    padding-left: 25px !important;
    margin-bottom: 0 !important;
}

.premium-footer .themegala-footer-newsletter-email-inpul button {
    background: var(--themegala-primary-color) !important;
    color: #ffffff !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    position: static !important;
    margin-top: 0 !important;
    margin-right: 5px !important;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none !important;
}

.premium-footer .themegala-footer-newsletter-email-inpul button:hover {
    transform: scale(1.15) rotate(15deg) !important;
    background: #4fa3ff !important;
}

/* Footer Link & Info Styles */
.premium-footer .themegala-infobox-wrapper {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    padding: 15px !important;
    border-radius: 15px !important;
    margin: -15px !important;
    cursor: pointer;
}

.premium-footer .themegala-infobox-wrapper:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    transform: translateY(-8px) scale(1.02) !important;
    padding-left: 30px !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

.premium-footer .themegala-infobox-title {
    color: var(--themegala-primary-color) !important;
    font-weight: 700 !important;
    margin-bottom: 5px !important;
    transition: all 0.3s ease !important;
}

.premium-footer .themegala-infobox-wrapper:hover .themegala-infobox-title {
    color: #4fa3ff !important;
    text-shadow: 0 0 10px rgba(79, 163, 255, 0.3) !important;
}

.premium-footer .themegala-infobox-text {
    color: #adb5bd !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
}

.premium-footer .themegala-infobox-wrapper:hover .themegala-infobox-text {
    color: #ffffff !important;
}

.premium-footer .menu li a {
    color: #adb5bd !important;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0 !important;
    display: inline-block;
}

.premium-footer .menu li a:hover {
    color: #ffffff !important;
    transform: translateX(8px);
}

.premium-footer .menu li a::before {
    content: '→';
    position: absolute;
    left: -18px;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--themegala-primary-color);
}

.premium-footer .menu li a:hover::before {
    left: -12px;
    opacity: 1;
}

/* Modern Social Icons */
.premium-footer .social-info li {
    margin-right: 15px !important;
}

.premium-footer .social-info li a {
    width: 45px !important;
    height: 45px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.02) !important;
}

.premium-footer .social-info li a:hover {
    background: var(--themegala-primary-color) !important;
    border-color: var(--themegala-primary-color) !important;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(28, 113, 213, 0.4) !important;
}

/* Copyright Bar Refinement */
.freshter-copyright {
    background: rgba(0, 0, 0, 0.3) !important;
    padding: 25px 0 !important;
    margin-top: 80px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.freshter-copyright .footer-copyright {
    color: #8892b0 !important; /* Slightly lighter for premium feel */
    font-size: 13px !important;
    letter-spacing: 0.5px !important;
    line-height: 1.8 !important;
}

@media (max-width: 767px) {
    .freshter-copyright .footer-copyright, 
    .footer-layout-2 .freshter-copyright .footer-copyright {
        padding-top: 10px !important;
        display: block !important;
    }
    .freshter-copyright .footer-copyright span {
        display: block !important;
        width: 100%;
    }
    .freshter-copyright .footer-copyright .footer-sep {
        display: none !important;
    }
}

/* WhatsApp Refinement */
.whatsapp-footer {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    left: 30px;
    background: #25d366;
    color: white;
    padding: 0 !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: all 0.3s ease;
    font-weight: 600;
}

.whatsapp-footer:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-footer .whatsapp-text {
    display: none !important;
}

.whatsapp-footer img {
    width: 30px;
    height: 30px;
    margin: 0 !important;
}

.header-layout-6 .freshter-header-button a {
    padding: 10px 35px !important;
    font-size: 13px !important;
    top: 18px !important;
}

.premium-btn::before,
.freshter-header-button a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4fa3ff 0%, #1c71d5 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.premium-btn:hover,
.freshter-header-button a:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(28, 113, 213, 0.5) !important;
    color: #ffffff !important;
}

.premium-btn:hover::before,
.freshter-header-button a:hover::before {
    opacity: 1;
}

.premium-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* Magnetic Button Helper */
.magnetic-btn {
    display: inline-block;
    cursor: pointer;
}

/* Booking Form Button Enhancement */
.booking-form-glass .elementor-button[type="submit"],
.booking-form-glass input[type="submit"],
.elementor-button.premium-btn {
    width: 100%;
    margin-top: 15px;
    background: linear-gradient(135deg, #1c71d5 0%, #4fa3ff 100%) !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    padding: 18px !important;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(28, 113, 213, 0.3) !important;
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
}

.booking-form-glass .elementor-button[type="submit"]:hover,
.booking-form-glass input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(28, 113, 213, 0.5) !important;
}

/* --- RESPONSIVE OPTIMIZATION --- */

@media (min-width: 1025px) {
    body, p, li {
        font-size: 18px !important;
        line-height: 1.8 !important;
    }
    
    .themegala-infobox-text {
        font-size: 16px !important;
    }

    /* Slider Button Font Size Override */
    .rev-btn, 
    rs-layer.rev-btn,
    .rev-btn.tp-rs-img {
        font-size: 16px !important;
    }
}

@media (max-width: 1024px) {
    .premium-footer .footer_contact-info-wrap {
        margin-bottom: 40px !important;
    }
}

@media (max-width: 768px) {
    /* 1. Mobile Typography Scaling */
    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    h1.elementor-heading-title, 
    h2.elementor-heading-title,
    .themegala-custom-heading-wrapper h3.heading-title {
        font-size: 28px !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }

    .brand-gradient-text, 
    .brand-gradient-text * {
        font-size: inherit !important;
    }

    /* 2. Container Breathing Room */
    .site-footer.premium-footer {
        padding: 40px 0 0 0 !important;
    }

    .booking-form-glass {
        padding: 25px 20px !important;
        border-radius: 20px !important;
    }

    /* 3. Floating Action Optimization */
    .whatsapp-footer {
        width: 55px;
        height: 55px;
        bottom: 20px;
        left: 20px;
    }

    .whatsapp-footer img {
        width: 28px;
        height: 28px;
    }

    /* 4. Component Spacing */
    .premium-footer .widget-title {
        font-size: 24px !important;
        margin-bottom: 20px !important;
    }

    .themegala-infobox-wrapper {
        margin-bottom: 20px !important;
    }

    /* 5. Navigation Items */
    .premium-footer .menu li a:hover {
        transform: translateX(4px);
    }
}

@media (max-width: 480px) {
    /* Ultra-small screen optimizations */
    h1.elementor-heading-title, 
    h2.elementor-heading-title {
        font-size: 24px !important;
    }

    .premium-btn,
    .freshter-header-button a {
        padding: 12px 25px !important;
        font-size: 12px !important;
    }

    .whatsapp-footer {
        width: 50px;
        height: 50px;
        bottom: 15px;
        left: 15px;
    }

    /* Logo & Header Refinement */
    .site-branding img {
        max-width: 140px !important;
    }

    /* Footer Widget Spacing */
    .premium-footer .footer-widget {
        margin-bottom: 45px !important;
    }
    
    .premium-footer .widget-title {
        font-size: 20px !important;
        margin-bottom: 25px !important;
    }
}
@media (max-width: 767px) {
    /* 
       Visibility safety net for mobile: 
       Ensures content is visible even if ScrollTrigger fails to initialize 
    */
    .reveal-on-scroll,
    .themegala-testimonial-wrapper,
    .themegala-infobox-wrapper,
    .elementor-element-19dd478 img,
    .elementor-element-9947bbe,
    .elementor-element-3fb4889,
    .elementor-element-dde06ea {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        transition: none !important;
    }
}
