/*
Theme Name: Hello Elementor Child - ThePureRx Optimized
Description: Child theme with comprehensive SEO and accessibility optimizations for ThePureRx
Template: hello-elementor
Version: 1.0.0
*/

@import url("../hello-elementor/style.css");

/* Back to Top Button Styles */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #007cba;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: #005a87;
    transform: translateY(-2px);
}

#back-to-top:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Cookie Consent Banner Styles */
#cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #2c3e50;
    color: white;
    padding: 15px;
    text-align: center;
    z-index: 10000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

#cookie-consent.hidden {
    transform: translateY(100%);
}

#cookie-consent .cookie-text {
    margin-bottom: 10px;
}

#cookie-consent .cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

#cookie-consent button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

#cookie-consent .accept-btn {
    background-color: #27ae60;
    color: white;
}

#cookie-consent .accept-btn:hover {
    background-color: #229954;
}

#cookie-consent .decline-btn {
    background-color: #e74c3c;
    color: white;
}

#cookie-consent .decline-btn:hover {
    background-color: #c0392b;
}

#cookie-consent .settings-btn {
    background-color: #3498db;
    color: white;
}

#cookie-consent .settings-btn:hover {
    background-color: #2980b9;
}

/* Accessibility Enhancements */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000000;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    transition: top 0.3s;
    z-index: 100000;
}

.skip-link:focus {
    top: 6px;
}

/* Focus indicators */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    #back-to-top {
        background-color: #000000;
        border: 2px solid #ffffff;
    }

    #cookie-consent {
        background-color: #000000;
        border-top: 2px solid #ffffff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    #back-to-top,
    #cookie-consent,
    .skip-link {
        transition: none;
    }
}

/* Custom scrollbar for better UX */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #007cba;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #005a87;
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    #back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 18px;
    }

    #cookie-consent {
        padding: 12px;
    }

    #cookie-consent .cookie-buttons {
        flex-direction: column;
        align-items: center;
    }

    #cookie-consent button {
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    #back-to-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Print styles */
@media print {
    #back-to-top,
    #cookie-consent {
        display: none !important;
    }
}

/* Navigation Fix - Prevent Home from being highlighted on other pages */
body:not(.home):not(.page-id-6230) .elementor-nav-menu a[href="https://thepurerx.com/"].current-page,
body:not(.home):not(.page-id-6230) .elementor-nav-menu a[href="https://thepurerx.com/"],
body:not(.home):not(.page-id-6230) .nav-links a[href="https://thepurerx.com/"].current-page,
body:not(.home):not(.page-id-6230) .nav-links a[href="https://thepurerx.com/"],
body:not(.home):not(.page-id-6230) a.current-page[href="https://thepurerx.com/"],
body:not(.home):not(.page-id-6230) .current-page[href="https://thepurerx.com/"] {
    text-decoration: none !important;
    border-bottom: none !important;
    border-top: none !important;
    border: none !important;
    background-color: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
}

/* Override pseudo-elements that create underlines */
body:not(.home):not(.page-id-6230) .elementor-nav-menu a[href="https://thepurerx.com/"]:before,
body:not(.home):not(.page-id-6230) .elementor-nav-menu a[href="https://thepurerx.com/"]:after,
body:not(.home):not(.page-id-6230) .nav-links a[href="https://thepurerx.com/"]:before,
body:not(.home):not(.page-id-6230) .nav-links a[href="https://thepurerx.com/"]:after,
body:not(.home):not(.page-id-6230) a[href="https://thepurerx.com/"]:before,
body:not(.home):not(.page-id-6230) a[href="https://thepurerx.com/"]:after {
    content: none !important;
    display: none !important;
    background-color: transparent !important;
    height: 0 !important;
    width: 0 !important;
}

/* Force no underline class added by JavaScript */
.force-no-underline:before,
.force-no-underline:after {
    display: none !important;
    content: none !important;
}

.force-no-underline {
    text-decoration: none !important;
    border: none !important;
    background: none !important;
}

/* Remove WordPress menu item classes */
body:not(.home):not(.page-id-6230) .menu-item-home.current-menu-item > a,
body:not(.home):not(.page-id-6230) .menu-item-home.current-menu-ancestor > a {
    color: inherit !important;
    border-top-color: transparent !important;
    background-color: transparent !important;
    border: none !important;
    text-decoration: none !important;
}

/* Hide page headers on pages with hero sections */
.page-id-5705 .page-header,
.page-id-8098 .page-header {
    display: none !important;
}

/* Standardize Hero Section Heights */
.hero,
.purerx-services-hero,
.testimonials-hero,
.faq-hero {
    min-height: 400px !important;
    height: 400px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    position: relative !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    padding: 60px 20px !important;
    box-sizing: border-box !important;
}

.hero-content,
.purerx-services-hero,
.testimonials-hero,
.faq-hero {
    margin: 0 auto !important;
    z-index: 2 !important;
    position: relative !important;
}

/* FAQ Page Hero Section - Force full width breaking out of all containers */
.page-id-8098 .faq-hero {
    background: linear-gradient(rgba(42, 149, 197, 0.8), rgba(42, 149, 197, 0.8)), url('https://images.unsplash.com/photo-1559757148-5c350d0d3c56?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
    color: white !important;
    margin-bottom: 40px !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
    position: relative !important;
    width: 100vw !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

/* Override any theme container constraints */
.page-id-8098 .site-main .faq-hero,
.page-id-8098 .entry-content .faq-hero,
.page-id-8098 .elementor .faq-hero,
.page-id-8098 .elementor-container .faq-hero,
.page-id-8098 .container .faq-hero,
.page-id-8098 .content-area .faq-hero {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}

.page-id-8098 .faq-hero h1 {
    font-size: 2.5rem !important;
    margin-bottom: 20px !important;
    font-weight: 600 !important;
}

.page-id-8098 .faq-hero p {
    font-size: 1.2rem !important;
    margin-bottom: 30px !important;
    opacity: 0.9 !important;
}

.page-id-8098 .faq-hero .cta-button {
    display: inline-block !important;
    background-color: #27ae60 !important;
    color: white !important;
    padding: 15px 30px !important;
    text-decoration: none !important;
    border-radius: 5px !important;
    font-weight: 600 !important;
    transition: background-color 0.3s ease !important;
}

.page-id-8098 .faq-hero .cta-button:hover {
    background-color: #229954 !important;
}

/* Universal CTA Button Styling for all hero sections */
.hero .cta-button,
.purerx-services-hero .cta-button,
.testimonials-hero .cta-button,
.faq-hero .cta-button {
    display: inline-block !important;
    background-color: #27ae60 !important;
    color: white !important;
    padding: 15px 30px !important;
    text-decoration: none !important;
    border-radius: 5px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    transition: background-color 0.3s ease !important;
    margin-top: 20px !important;
}

.hero .cta-button:hover,
.purerx-services-hero .cta-button:hover,
.testimonials-hero .cta-button:hover,
.faq-hero .cta-button:hover {
    background-color: #229954 !important;
    text-decoration: none !important;
}

/* Hero section text styling */
.hero h1,
.purerx-services-hero h1,
.testimonials-hero h1,
.faq-hero h1 {
    font-size: 2.5rem !important;
    margin-bottom: 20px !important;
    font-weight: 600 !important;
}

.hero p,
.purerx-services-hero p,
.testimonials-hero p,
.faq-hero p {
    font-size: 1.2rem !important;
    margin-bottom: 30px !important;
    opacity: 0.9 !important;
}

/* Services Page Hero Section Background and Layout */
.page-id-128 .purerx-services-hero {
    background: linear-gradient(rgba(42, 149, 197, 0.8), rgba(42, 149, 197, 0.8)), url('https://images.unsplash.com/photo-1559757148-5c350d0d3c56?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
    display: block !important;
    width: 100% !important;
    clear: both !important;
}

/* Testimonials Page Hero Section - Reverted to original styling with text layout fix */
.page-id-5705 .testimonials-hero {
    min-height: 400px !important;
    height: 400px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

/* Responsive adjustments for hero sections */
@media (max-width: 768px) {
    .hero,
    .purerx-services-hero,
    .testimonials-hero,
    .faq-hero {
        min-height: 300px !important;
        height: 300px !important;
        padding: 40px 15px !important;
    }

    .page-id-5705 .testimonials-hero {
        min-height: 300px !important;
        height: 300px !important;
    }

    .page-id-8098 .faq-hero h1 {
        font-size: 2rem !important;
    }

    .page-id-8098 .faq-hero p {
        font-size: 1.1rem !important;
    }
}

/* Match Header Height and Logo Size to Homepage */
.page-id-130 .header,  /* About Us */
.page-id-5705 .header, /* Reviews/Testimonials */
.page-id-128 .header,  /* Services */
.page-id-8098 .header  /* FAQ */
{
    height: 100px !important;
    min-height: 100px !important;
    max-height: 100px !important;
}

.page-id-130 .header .nav-container,
.page-id-5705 .header .nav-container,
.page-id-128 .header .nav-container,
.page-id-8098 .header .nav-container {
    height: 100px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.page-id-130 .header .logo,
.page-id-5705 .header .logo,
.page-id-128 .header .logo,
.page-id-8098 .header .logo {
    max-height: 70px !important;
    height: auto !important;
    width: auto !important;
}

.page-id-130 .header .nav-links,
.page-id-5705 .header .nav-links,
.page-id-128 .header .nav-links,
.page-id-8098 .header .nav-links {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}