 /*
Theme Name: Astra Child
Theme URI: https://meysamehparavar.com/
Template: astra
Author: Mohammad Hosseinzadeh
Description: قالب فرزند اختصاصی سایت هنرهای تجسمی و صنایع دستی میثمه پرآور.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: astra-child
*/

/* =========================================================
   1. فونت فارسی
   ========================================================= */

@font-face {
    font-family: "Vazirmatn";
    src: url("assets/fonts/Vazirmatn-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("assets/fonts/Vazirmatn-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("assets/fonts/Vazirmatn-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("assets/fonts/Vazirmatn-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/* =========================================================
   2. متغیرهای طراحی سایت
   ========================================================= */

:root {
    /* رنگ‌ها */
    --bg-main: #E5C79E;
    --bg-surface: #F4E6CF;
    --bg-white: #FFF9F0;

    --text-heading: #2C2520;
    --text-body: #4A4038;
    --text-muted: #786B60;

    --btn-primary: #AA8352;
    --btn-hover: #8E6D43;
    --border-color: rgba(44, 37, 32, 0.16);

    /* تایپوگرافی */
    --font-primary: "Vazirmatn", Tahoma, Arial, sans-serif;

    /* عرض و فاصله */
    --container-width: 1240px;
    --section-space: 96px;
    --section-space-tablet: 72px;
    --section-space-mobile: 52px;

    /* گردی و سایه */
    --radius-small: 8px;
    --radius-medium: 14px;
    --radius-large: 24px;

    --shadow-soft: 0 12px 35px rgba(44, 37, 32, 0.09);
}


/* =========================================================
   3. تنظیمات پایه
   ========================================================= */

html {
    direction: rtl;
    scroll-behavior: smooth;
}

body,
button,
input,
select,
textarea,
.elementor,
.elementor-button,
.elementor-widget-text-editor {
    font-family: var(--font-primary) !important;
}

body {
    background-color: var(--bg-main) !important;
    color: var(--text-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 2;
    text-align: right;
    overflow-x: hidden;
}

::selection {
    background: var(--btn-primary);
    color: #ffffff;
}

a {
    color: var(--btn-primary);
    text-decoration: none;
    transition: color 0.25s ease;
}

a:hover,
a:focus {
    color: var(--btn-hover);
}


/* =========================================================
   4. تیترها و متن
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6,
.elementor-heading-title {
    color: var(--text-heading) !important;
    font-family: var(--font-primary) !important;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0;
}

h1 {
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1.35;
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.45;
}

h3 {
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    line-height: 1.55;
}

h4 {
    font-size: 1.3rem;
}

h5 {
    font-size: 1.15rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1.2em;
}

.elementor-widget-text-editor,
.elementor-widget-text-editor p {
    color: var(--text-body);
    line-height: 2;
}


/* =========================================================
   5. کانتینر و فاصله‌گذاری سکشن‌ها
   ========================================================= */

/* برای سکشن‌ها/کانتینرهایی که این کلاس را در Elementor می‌دهید */
.mp-container {
    max-width: var(--container-width);
    margin-right: auto;
    margin-left: auto;
    padding-right: 24px;
    padding-left: 24px;
}

/* کلاس کمکی برای فاصله عمودی سکشن‌ها */
.mp-section {
    padding-top: var(--section-space);
    padding-bottom: var(--section-space);
}

/* متن‌های معرفی و پاراگراف‌های بلند */
.mp-text-readable {
    max-width: 760px;
}

/* متن‌های مرکزچین مانند معرفی یک بخش */
.mp-text-center {
    max-width: 800px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}


/* =========================================================
   6. دکمه‌های Elementor و Astra
   ========================================================= */

.elementor-button,
.ast-button,
.wp-block-button__link,
button,
input[type="submit"] {
    background-color: var(--btn-primary);
    color: #ffffff !important;
    border: 1px solid var(--btn-primary);
    border-radius: var(--radius-small);
    font-family: var(--font-primary) !important;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    padding: 13px 26px;
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.elementor-button:hover,
.elementor-button:focus,
.ast-button:hover,
.ast-button:focus,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
    background-color: var(--btn-hover);
    border-color: var(--btn-hover);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(142, 109, 67, 0.24);
}


/* =========================================================
   7. فرم‌ها
   ========================================================= */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
textarea,
select {
    background-color: rgba(255, 249, 240, 0.75);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-small);
    color: var(--text-heading);
    font-family: var(--font-primary) !important;
    font-size: 0.95rem;
    padding: 12px 15px;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--btn-primary);
    box-shadow: 0 0 0 3px rgba(170, 131, 82, 0.16);
    outline: none;
}


/* =========================================================
   8. واکنش‌گرایی
   ========================================================= */

@media (max-width: 1024px) {
    :root {
        --section-space: var(--section-space-tablet);
    }

    .mp-container {
        padding-right: 20px;
        padding-left: 20px;
    }
}

@media (max-width: 767px) {
    :root {
        --section-space: var(--section-space-mobile);
    }

    body {
        font-size: 15px;
        line-height: 1.9;
    }

    .mp-container {
        padding-right: 16px;
        padding-left: 16px;
    }

    .elementor-button,
    .ast-button {
        padding: 12px 22px;
    }
}
