/* Flokker Base & Contrast Styles */
/* Kõik visuaalsed ja Core Web Vitals muutused siia alla */

/* 1. Font display swap – väldib nähtamatu teksti vilkumist (FOIT) */
@font-face {
    font-display: swap;
}

/* 2. Logo ja partnerite piltide loomulik kuvasuhe (Aspect Ratio) */
img.wp-image-5572,
img[src*="cropped-FLOKKER-2.png"],
.site-logo-img img,
.custom-logo {
    aspect-ratio: 500 / 208 !important;
    height: auto !important;
    object-fit: contain !important;
}

.elementor-image-carousel-wrapper img,
.elementor-image-carousel img {
    height: auto;
    max-height: 60px;
    object-fit: contain;
}

/* 3. Hero karusselli LCP ja CLS (0.000) optimeering */
.elementor-carousel-image {
    aspect-ratio: 1280 / 853 !important;
    width: 100% !important;
    background-size: cover !important;
    background-position: center center !important;
    display: block !important;
}

.elementor-image-carousel-wrapper,
.elementor-image-carousel {
    aspect-ratio: 1280 / 853;
    width: 100%;
}


/* 4. Minimaalse ostukoguse tekst tootelehel */
.flokker-min-qty {
    font-size: 0.875rem;
    color: #4a5568;
    background: #f7fafc;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
    margin: 8px 0 16px;
    border-left: 3px solid #e2e8f0;
}

/* 5. Yoast breadcrumbi stiilid */
.woocommerce-breadcrumb.flokker-breadcrumb,
.woocommerce-breadcrumb {
    font-size: 0.875rem;
    color: #718096;
    margin-bottom: 1rem;
}

/* 6. Sujuvad animatsioonid interaktiivsetele nuppudele (Ohutu, ilma transform: translateZ globaalse 3D kontekstita) */
.elementor-button,
.elementor-icon,
.elementor-social-icon,
.smaily-newsletter-form button,
.aws-search-field {
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* 7. Swiper nupud ligipääsetavuse fookusega */
.elementor-swiper-button:focus-visible {
    outline: 2px solid #2b6cb0;
    outline-offset: 2px;
}

/* 8. CSS Containment (Ohutu: ainult isoleeritud footerile ja slaididele, mitte päisele ega menüüdele) */
.site-footer {
    contain: style;
}

.elementor-carousel-image,
.swiper-slide {
    contain: paint;
}


/* 9. WCAG AA Värvikontrasti (Color Contrast) parandused */
/* Newsletter "LIITU" nupp: Kõrge kontrast (Valge tekst tumesinisel taustal > 7:1) */
.smaily-newsletter-form button,
.smaily-newsletter-form button[type="submit"],
.smaily-newsletter-form input[type="submit"],
button[type="submit"].smaily-button,
.elementor-element form button[type="submit"] {
    background-color: #2b6cb0 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border: none !important;
    text-shadow: none !important;
}

.smaily-newsletter-form button:hover,
.smaily-newsletter-form button[type="submit"]:hover {
    background-color: #1a365d !important;
    color: #ffffff !important;
}

/* Jaluse autoriõiguse "© All rights reserved" kõrge kontrast (> 9:1) */
.elementor-element-5f1f869c,
.elementor-element-5f1f869c p,
.elementor-element-5f1f869c .elementor-heading-title,
.site-footer .elementor-heading-title,
.site-footer p {
    color: #e2e8f0 !important;
    opacity: 1 !important;
}

/* 10. Klikitavad telefonilingid (mobiilis ja desktopis kohene kõne) */
a.flokker-tel-link,
a[href^="tel:"] {
    touch-action: manipulation;
    text-decoration: none;
}

a.flokker-tel-link {
    color: inherit !important;
    transition: color 0.2s ease !important;
}

a.flokker-tel-link:hover {
    color: #066B5C !important;
}

.elementor-icon-list-item > a.flokker-tel-link {
    display: inline-flex !important;
    align-items: center !important;
}

/* 11. Kontaktikaardi e-post & "Küsi meilt nõu" päringuakna päästikud */
.elementor-element-13a381b,
.flokker-contact-card-clickable {
    cursor: pointer !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.elementor-element-13a381b:hover,
.flokker-contact-card-clickable:hover {
    transform: translateY(-2px);
}

a.flokker-email-link {
    touch-action: manipulation;
    text-decoration: none;
    color: inherit !important;
    cursor: pointer !important;
    transition: color 0.2s ease !important;
}

a.flokker-email-link:hover {
    color: #066B5C !important;
}

.elementor-icon-list-item > a.flokker-email-link {
    display: inline-flex !important;
    align-items: center !important;
}


