/* Lovia accessibility + contrast CSS — migrated from Code Snippet #9 (2026-07-25).
   Element-ID selectors are intentional: they survive Elementor markup changes.
   Element map: 158d674/503ea45 = ghost buttons, f19246e = category cards section. */
    /*
     * WCAG AA Contrast Fixes
     * Primary gold #C69239 on white = 2.76:1 (FAIL)
     * Darkened to #856024 = 5.25:1 (PASS AA for normal text)
     * Text gray #7A7A7A on white = 4.2:1 (FAIL)
     * Darkened to #595959 = 7.0:1 (PASS AA+AAA)
     */

    /* Elementor headings on light backgrounds - darken gold */
    .home .elementor-heading-title {
        color: #856024 !important;
    }

    /* Icon box titles (100%, RO, Personalizare) */
    .home .elementor-icon-box-title,
    .home .elementor-icon-box-title a {
        color: #856024 !important;
    }

    /* Icon box descriptions (Handmade, Brand Romanesc, Completa) */
    .home .elementor-icon-box-description {
        color: #595959 !important;
    }

    /* Elementor buttons - ensure readable text */
    .home .elementor-button {
        min-height: 44px;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Buttons — Elementor 4.2-safe, element-ID based (2026-07-25).
       Solid CTAs: darkened gold bg + white text = 5.25:1 (AA).
       Ghost buttons (hero 158d674, 503ea45): outline + dark gold text. */
    .home .elementor-button,
    .home .elementor-button .elementor-button-text {
        color: #FFFFFF !important;
    }
    .home .elementor-button {
        background-color: #856024 !important;
    }
    .home .elementor-element-158d674 .elementor-button,
    .home .elementor-element-503ea45 .elementor-button {
        background-color: transparent !important;
        border-color: #856024 !important;
    }
    .home .elementor-element-158d674 .elementor-button,
    .home .elementor-element-158d674 .elementor-button .elementor-button-text,
    .home .elementor-element-503ea45 .elementor-button,
    .home .elementor-element-503ea45 .elementor-button .elementor-button-text {
        color: #856024 !important;
    }

    /* WooCommerce product prices */
    .home .woocommerce ul.products li.product .price,
    .home .woocommerce .price .woocommerce-Price-amount,
    .home .woocommerce .price .woocommerce-Price-currencySymbol,
    .home .woocommerce .price bdi {
        color: #595959 !important;
    }

    /* Body text on home page */
    .home .elementor-text-editor p,
    .home .elementor-widget-text-editor {
        color: #595959 !important;
    }

    /* Category cards (section f19246e) sit on photos: white text + shadow.
       Overrides the light-bg darkening rules above (fixed 2026-07-25). */
    .home .elementor-element-f19246e .elementor-heading-title,
    .home .elementor-element-f19246e p {
        color: #FFFFFF !important;
        text-shadow: 0 1px 3px rgba(0,0,0,.6), 0 0 8px rgba(0,0,0,.3) !important;
    }

    /* Product card text */
    .home .woocommerce ul.products li.product a {
        color: #333333 !important;
    }
    .home .woocommerce ul.products li.product .woocommerce-loop-product__title {
        color: #333333 !important;
    }

    /* === TOUCH TARGETS - WCAG 2.5.8 Level AA (44x44px min) === */

    /* Social icons */
    .elementor-social-icon {
        min-width: 44px !important;
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Footer links - add padding for touch targets */
    footer .elementor-icon-list-item a,
    footer .elementor-icon-list-text {
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        padding: 8px 4px !important;
    }

    /* Footer regulatory image links */
    footer a[href*="anpc"],
    footer a[href*="consumer-redress"] {
        display: inline-block;
        min-height: 48px;
        min-width: 48px;
        padding: 4px;
    }

    /* Product prices site-wide: brand gold darkened for AA contrast (2026-07-25) */
    .woocommerce ul.products li.product .price,
    .woocommerce div.product p.price,
    .woocommerce div.product span.price {
        color: #856024 !important;
    }

    /* Complianz cookie banner contrast (2026-07-25) */
    #cmplz-cookiebanner-container .cmplz-btn.cmplz-accept { background-color: #856024 !important; border-color: #856024 !important; }
    #cmplz-cookiebanner-container .cmplz-link { color: #856024 !important; }

    /* === FOCUS INDICATORS === */
    a:focus-visible,
    button:focus-visible,
    input:focus-visible,
    select:focus-visible,
    textarea:focus-visible,
    [tabindex]:focus-visible {
        outline: 2px solid #4A90D9 !important;
        outline-offset: 2px !important;
    }

    /* Skip link */
    .skip-link:focus,
    a[href="#content"]:focus {
        clip: auto !important;
        clip-path: none !important;
        height: auto !important;
        width: auto !important;
        position: fixed !important;
        top: 5px;
        left: 5px;
        z-index: 100000;
        background: #fff;
        color: #333;
        padding: 10px 15px;
        font-size: 16px;
        border: 2px solid #4A90D9;
    }

/* 2026-07-28: gold eyebrow headings #8a6d2f fail 4.5:1 on cream #f4eddd (4.17).
   Darkened for WCAG AA; scoped to the failing homepage sections. */
.elementor-element-366d91d h2.elementor-heading-title,
.elementor-element-dbf7e7c h2.elementor-heading-title,
.elementor-element-fe1005e h2.elementor-heading-title,
.elementor-element-edd3313 h2.elementor-heading-title {
	color: #755a1e !important; /* must outrank Elementor kit specificity */
}
