/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Child theme for Astra with locally hosted AJannatLT typography support.
Author: Top Line
Template: astra
Version: 1.0.3
Text Domain: astra-child
*/

/* Locally hosted font files; no Google Fonts dependency. */
@font-face {
    font-family: "AJannatLT";
    src: url("assets/fonts/AJannatLT.woff2") format("woff2"),
         url("assets/fonts/AJannatLT.woff") format("woff");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "AJannatLT";
    src: url("assets/fonts/AJannatLT-Bold.woff2") format("woff2"),
         url("assets/fonts/AJannatLT-Bold.woff") format("woff");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    --astra-child-font: "AJannatLT", Arial, sans-serif;
}

/* Astra and general site typography, matching the supplied Cairo child method. */
html, body,
button, input, select, textarea,
.ast-button, .button, .wp-block-button__link,
.site-title, .site-description,
.main-header-menu, .ast-builder-menu,
.entry-title, .entry-content, .widget-title,
h1, h2, h3, h4, h5, h6,
.woocommerce, .woocommerce button, .woocommerce input,
.woocommerce select, .woocommerce textarea {
    font-family: var(--astra-child-font) !important;
}

/* Elementor text uses the same font. Avoid icon classes to preserve icon fonts. */
.elementor-widget-heading .elementor-heading-title,
.elementor-widget-text-editor,
.elementor-widget-text-editor p,
.elementor-button .elementor-button-text,
.elementor-nav-menu .elementor-item,
.elementor-widget-icon-list .elementor-icon-list-text,
.elementor-widget-form .elementor-field,
.elementor-widget-form .elementor-button-text {
    font-family: var(--astra-child-font) !important;
}

/* Match the original child theme's block editor treatment. */
.editor-styles-wrapper,
.editor-styles-wrapper p, .editor-styles-wrapper li,
.editor-styles-wrapper h1, .editor-styles-wrapper h2,
.editor-styles-wrapper h3, .editor-styles-wrapper h4,
.editor-styles-wrapper h5, .editor-styles-wrapper h6,
.editor-styles-wrapper button, .editor-styles-wrapper input,
.editor-styles-wrapper select, .editor-styles-wrapper textarea,
.editor-styles-wrapper .wp-block-button__link {
    font-family: var(--astra-child-font) !important;
}
