/*
 * TAPA Global Visual Fix – British Racing Green
 * f9fffd22 | v2.4.1
 * FIXES: White gap on shop page, brand colors, button text, photo overlays
 * BRAND PALETTE: British Racing Green #00472B | White #ffffff | Black #000000
 */

/* ============================================
   ELEMENTOR GLOBAL COLOR VARIABLES — OVERRIDE
   Replaces default blue/red with TAPA palette
   ============================================ */
:root {
    --e-global-color-primary:   #00472B !important;
    --e-global-color-secondary: #ffffff !important;
    --e-global-color-text:      #000000 !important;
    --e-global-color-accent:    #00472B !important;
}

/* ============================================
   FIX: WHITE GAP AT TOP OF SHOP PAGE
   ============================================ */
.woocommerce-products-header,
.woocommerce-products-header__title,
.page-title,
.woocommerce .page-title,
.woocommerce-page .page-title,
body.woocommerce .woocommerce-products-header,
body.woocommerce-page .woocommerce-products-header {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
}

body.woocommerce .site-main,
body.woocommerce-page .site-main,
body.post-type-archive-product .site-main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body.woocommerce .elementor,
body.woocommerce-page .elementor,
body.post-type-archive-product .elementor {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.woocommerce .woocommerce,
body.woocommerce-page .woocommerce {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.woocommerce .page-header,
body.woocommerce-page .page-header,
body.post-type-archive-product .page-header {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ============================================
   BASE TEXT — BLACK ON LIGHT BACKGROUNDS
   ============================================ */
body, body p, body li, body span:not(.elementor-icon), body td, body th, body label, body blockquote,
.elementor-widget-container, .elementor-widget-text-editor, .elementor-widget-text-editor *,
.entry-content, .entry-content *,
.woocommerce-product-details__short-description, .woocommerce-product-details__short-description * {
    color: #000000 !important;
}

h1, h2, h3, h4, h5, h6,
.elementor-heading-title,
.elementor-widget-heading .elementor-heading-title {
    color: #000000 !important;
}

/* ============================================
   HERO / BANNER / DARK OVERLAY — WHITE TEXT
   ============================================ */
html body .elementor-section.elementor-section-has-background-image *,
html body .elementor-section.elementor-section-has-background-image .elementor-heading-title,
html body .elementor-section.elementor-section-has-background-image h1,
html body .elementor-section.elementor-section-has-background-image h2,
html body .elementor-section.elementor-section-has-background-image h3,
html body .elementor-section.elementor-section-has-background-image p,
html body .elementor-section.elementor-section-has-background-image span:not(.elementor-icon) {
    color: #ffffff !important;
    text-shadow: 1px 2px 6px rgba(0,0,0,0.85) !important;
}

html body .e-con.elementor-section-has-background-image *,
html body .e-con.elementor-section-has-background-image .elementor-heading-title,
html body .e-con.elementor-section-has-background-image h1,
html body .e-con.elementor-section-has-background-image h2,
html body .e-con.elementor-section-has-background-image h3,
html body .e-con.elementor-section-has-background-image p {
    color: #ffffff !important;
    text-shadow: 1px 2px 6px rgba(0,0,0,0.85) !important;
}

html body .elementor-section[style*="background-image"] *,
html body .elementor-section[style*="background-image"] .elementor-heading-title,
html body .e-con[style*="background-image"] *,
html body .e-con[style*="background-image"] .elementor-heading-title {
    color: #ffffff !important;
    text-shadow: 1px 2px 6px rgba(0,0,0,0.85) !important;
}

html body .elementor-background-overlay ~ .elementor-container *,
html body .elementor-background-overlay ~ .elementor-container .elementor-heading-title,
html body .elementor-background-overlay ~ .elementor-column *,
html body .elementor-background-overlay ~ .elementor-widget-wrap * {
    color: #ffffff !important;
    text-shadow: 1px 2px 6px rgba(0,0,0,0.85) !important;
}

html body [class*="hero"] *,
html body [class*="hero"] .elementor-heading-title,
html body [class*="banner"] *,
html body [class*="banner"] .elementor-heading-title,
html body [class*="tapa-hero"] *,
html body [class*="tapa-banner"] * {
    color: #ffffff !important;
    text-shadow: 1px 2px 6px rgba(0,0,0,0.85) !important;
}

/* Dark background containers — white text */
html body .elementor-section[style*="background-color: rgb(0"] *,
html body .e-con[style*="background-color: rgb(0"] *,
html body .e-con[style*="background-color: rgb(13"] *,
html body .e-con[style*="background-color: #0d0d"] * {
    color: #ffffff !important;
    text-shadow: 1px 2px 4px rgba(0,0,0,0.7) !important;
}

/* ============================================
   LINKS
   ============================================ */
a, a:link, a:visited { color: #00472B !important; text-decoration: none; }
a:hover, a:focus     { color: #003320 !important; text-decoration: underline; }

/* ============================================
   BUTTONS — ALL WHITE TEXT ON GREEN
   ============================================ */
html body .elementor-button,
html body .elementor-button-wrapper .elementor-button,
html body .elementor-button-wrapper a.elementor-button,
html body a.elementor-button,
html body .elementor-widget-button .elementor-button {
    color: #ffffff !important;
    text-shadow: none !important;
}
html body .elementor-button:hover,
html body .elementor-button-wrapper .elementor-button:hover,
html body a.elementor-button:hover {
    color: #ffffff !important;
    text-shadow: none !important;
}
html body .elementor-button .elementor-button-text,
html body .elementor-button span,
html body .elementor-button-wrapper .elementor-button span {
    color: #ffffff !important;
    text-shadow: none !important;
}

/* Green buttons */
html body .elementor-button[style*="background-color:#00472B"],
html body .elementor-button[style*="background-color: #00472B"] {
    background-color: #00472B !important;
    color: #ffffff !important;
}

/* SMS / Text Us Now floating button */
.tapa-sms-btn, .tapa-sms-btn *,
.tapa-text-us-btn, .tapa-text-us-btn * {
    background-color: #00472B !important;
    color: #ffffff !important;
    text-shadow: none !important;
    border-color: #00472B !important;
}
.tapa-sms-btn:hover, .tapa-text-us-btn:hover {
    background-color: #003320 !important;
    color: #ffffff !important;
}

/* ============================================
   POWERPACK PRO — WOOCOMMERCE AJAX SEARCH
   ============================================ */
.pp-woo-search-form-container input[type="text"],
.pp-woo-search-form-container input[type="search"],
.pp-woo-search .pp-search-form input,
.pp-woo-search input[type="text"],
.pp-woo-search input[type="search"],
.elementor-widget-ucaddon_woocommerce_ajax_search input[type="text"],
.elementor-widget-ucaddon_woocommerce_ajax_search input[type="search"],
.elementor-widget-ucaddon_woocommerce_ajax_search .pp-search-input {
    background-color: #ffffff !important;
    color: #1a1a1a !important;
    border: 2px solid #c8a951 !important;
    border-radius: 6px !important;
    padding: 12px 16px !important;
    font-size: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #1a1a1a !important;
}

.elementor-widget-ucaddon_woocommerce_ajax_search input::placeholder,
.pp-woo-search input::placeholder {
    color: #888888 !important;
    opacity: 1 !important;
}

.elementor-widget-ucaddon_woocommerce_ajax_search label,
.pp-woo-search label {
    color: #ffffff !important;
    text-shadow: none !important;
    font-weight: 600 !important;
}

.elementor-widget-ucaddon_woocommerce_ajax_search .pp-search-submit,
.elementor-widget-ucaddon_woocommerce_ajax_search button[type="submit"],
.pp-woo-search .pp-search-submit,
.pp-woo-search button[type="submit"] {
    background-color: #00472B !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 20px !important;
    border-radius: 0 6px 6px 0 !important;
    cursor: pointer !important;
    text-shadow: none !important;
}
.elementor-widget-ucaddon_woocommerce_ajax_search .pp-search-submit:hover,
.pp-woo-search .pp-search-submit:hover {
    background-color: #003320 !important;
    color: #ffffff !important;
}

.elementor-widget-ucaddon_woocommerce_ajax_search .pp-woo-search-results,
.elementor-widget-ucaddon_woocommerce_ajax_search .pp-search-results,
.pp-woo-search-results,
.pp-search-results {
    background-color: #ffffff !important;
    border: 1px solid #c8a951 !important;
    border-radius: 6px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25) !important;
    z-index: 9999 !important;
    max-height: 400px !important;
    overflow-y: auto !important;
}

.pp-woo-search-results *,
.pp-search-results * {
    color: #1a1a1a !important;
    text-shadow: none !important;
}

.pp-woo-search-results .price,
.pp-search-results .price {
    color: #00472B !important;
    font-weight: 700 !important;
    text-shadow: none !important;
}

/* ============================================
   BODY BACKGROUND
   ============================================ */
body { background-color: #ffffff !important; }

/* Remove pure black section backgrounds */
.elementor-section[style*="background-color: rgb(0, 0, 0)"],
.elementor-section[style*="background-color:#000"],
.elementor-section[style*="background-color: #000000"],
.e-con[style*="background-color: rgb(0, 0, 0)"],
.e-con[style*="background-color: #000000"] {
    background-color: #ffffff !important;
}

/* ============================================
   ROGUE COLOR REMOVAL — Blue, Red → Black/Green
   ============================================ */
[style*="color: #6EC1E4"], [style*="color: blue"], [style*="color: #007bff"],
[style*="color: #D11B1B"], [style*="color: red"], [style*="color: #ff0000"] {
    color: #000000 !important;
}
[style*="background-color: #6EC1E4"], [style*="background-color: #007bff"],
[style*="background-color: #D11B1B"], [style*="background-color: red"] {
    background-color: #00472B !important;
}

/* ============================================
   NAV MENU
   ============================================ */
.elementor-nav-menu a,
.elementor-nav-menu .elementor-item { color: #ffffff !important; background-color: transparent !important; }
.elementor-nav-menu a:hover,
.elementor-nav-menu .elementor-item:hover { color: #00472B !important; background-color: transparent !important;}

/* Fix specific green blocks on nav menu */
.elementor-nav-menu--main .elementor-item.elementor-item-active,
.elementor-nav-menu--main .elementor-item:hover,
.elementor-nav-menu--main .elementor-item:focus {
    background-color: transparent !important;
}

/* Force menu items to have no background */
ul.elementor-nav-menu > li > a,
ul.elementor-nav-menu > li {
    background: transparent !important;
    background-color: transparent !important;
}

.elementor-location-header {
    z-index: 9999 !important;
    position: relative !important;
}

/* ============================================
   HIDE SEO STRATEGY LINKS
   ============================================ */
body.home a[href*="seo-strategy"],
body.home a[href*="jaguar-land-rover-engine-seo-keywords-part-numbers"],
.elementor-nav-menu a[href*="seo-strategy"],
.elementor-nav-menu a[href*="jaguar-land-rover-engine-seo-keywords-part-numbers"] {
    display: none !important;
}
