/* Arian Site Optimizer frontend layer. No global layout/color overrides. */

body.aso-font-enabled {
    font-family: var(--aso-font-family, "Yekan Bakh", Tahoma, Arial, sans-serif);
}

body.aso-font-enabled :where(button, input, select, textarea, label),
body.aso-font-enabled :where(.elementor-widget:not(.elementor-widget-icon):not(.elementor-widget-social-icons)),
body.aso-font-enabled :where(.elementor-heading-title, .elementor-button) {
    font-family: var(--aso-font-family, "Yekan Bakh", Tahoma, Arial, sans-serif);
}

/* Strong site-wide typography override, deliberately excluding common icon-font containers. */
body.aso-font-force-global :where(
    h1, h2, h3, h4, h5, h6,
    p, a, li, dt, dd, label,
    button, input, select, textarea,
    table, th, td, blockquote, figcaption,
    .elementor-heading-title,
    .elementor-button,
    .elementor-button-text,
    .elementor-widget-text-editor,
    .elementor-nav-menu a,
    .elementor-field,
    .elementor-field-label,
    .elementor-icon-list-text,
    .elementor-tab-title,
    .elementor-tab-content,
    .elementor-accordion-title,
    .elementor-toggle-title
):not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not(.eicon):not([class*=" eicon-"]):not([class^="eicon-"]) {
    font-family: var(--aso-font-family, "Yekan Bakh", Tahoma, Arial, sans-serif) !important;
}

body.aso-ui-polish :where(button, a, input, select, textarea, [tabindex]):focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

body.aso-ui-polish :where(button, input, select, textarea) {
    font: inherit;
}

body.aso-ui-polish :where(img, video) {
    max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
    body.aso-ui-polish *,
    body.aso-ui-polish *::before,
    body.aso-ui-polish *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
