/* =========================================================
   فونت فارسی ایران یکان
   فایل CSS در مسیر assets/css/style.css قرار دارد.
   پوشه فونت در ریشه پروژه و با نام iranyekan قرار دارد.
========================================================= */

@font-face {
    font-family: 'IRANYekan';
    src: url('../../iranyekan/iranyekanweb.eot');
    src:
        url('../../iranyekan/iranyekanweb.eot?#iefix') format('embedded-opentype'),
        url('../../iranyekan/iranyekanweb.woff2') format('woff2'),
        url('../../iranyekan/iranyekanweb.woff') format('woff'),
        url('../../iranyekan/iranyekanweb.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANYekan';
    src: url('../../iranyekan/iranyekanweb-Bold.eot');
    src:
        url('../../iranyekan/iranyekanweb-Bold.eot?#iefix') format('embedded-opentype'),
        url('../../iranyekan/iranyekanweb-Bold.woff2') format('woff2'),
        url('../../iranyekan/iranyekanweb-Bold.woff') format('woff'),
        url('../../iranyekan/iranyekanweb-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* =========================================================
   متغیرهای رنگ و اندازه
========================================================= */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;

    --dark: #0f172a;
    --text: #334155;
    --muted: #64748b;

    --border: #e2e8f0;
    --light: #f8fafc;
    --white: #ffffff;

    --success: #166534;
    --success-bg: #dcfce7;

    --error: #991b1b;
    --error-bg: #fee2e2;

    --radius-small: 10px;
    --radius-medium: 16px;
    --radius-large: 24px;

    --shadow-small: 0 8px 24px rgba(15, 23, 42, 0.07);
    --shadow-medium: 0 18px 45px rgba(15, 23, 42, 0.11);
    --shadow-large: 0 25px 65px rgba(15, 23, 42, 0.16);
}

/* =========================================================
   تنظیمات عمومی
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    direction: rtl;
    overflow-x: hidden;
    color: var(--text);
    background: var(--white);
    font-family: 'IRANYekan', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.9;
}

body,
button,
input,
select,
textarea {
    font-family: 'IRANYekan', Arial, sans-serif;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin-right: auto;
    margin-left: auto;
}

.narrow {
    max-width: 760px;
}

h1,
h2,
h3,
h4,
p {
    overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
    margin-top: 0;
    color: var(--dark);
    font-weight: 700;
    line-height: 1.5;
}

h1 {
    margin-bottom: 20px;
    font-size: clamp(34px, 5vw, 56px);
}

h2 {
    margin-bottom: 16px;
    font-size: clamp(25px, 3vw, 32px);
}

h3 {
    font-size: 20px;
}

p {
    margin-top: 0;
}

::selection {
    color: var(--white);
    background: var(--primary);
}

/* =========================================================
   هدر سایت
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header-row {
    position: relative;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* لینک لوگوی سایت */
.brand {
    width: auto;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
}

/* تصویر لوگوی هدر */
.site-logo {
    width: auto;
    height: 46px;
    max-width: 180px;
    object-fit: contain;
    object-position: right center;
}

/* منوی اصلی */
.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.main-nav a {
    position: relative;
    padding: 9px 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 1px;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 10px;
}

.header-phone {
    direction: ltr;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-size: 28px;
}

/* =========================================================
   بخش اصلی صفحه اول
========================================================= */

.hero {
    padding: 88px 0 76px;
    background:
        radial-gradient(
            circle at 12% 15%,
            rgba(37, 99, 235, 0.10),
            transparent 32%
        ),
        linear-gradient(
            180deg,
            #eff6ff 0%,
            #ffffff 100%
        );
}

.hero-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(360px, 0.95fr);
    align-items: center;
    gap: 60px;
}

.hero-content {
    min-width: 0;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.hero-text {
    max-width: 650px;
    color: var(--muted);
    font-size: 17px;
    line-height: 2;
}

.hero-actions {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* دکمه‌های سایت */
.button {
    min-height: 48px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 700;
    text-align: center;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button.primary {
    color: var(--white);
    background: var(--primary);
}

.button.primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.button.secondary {
    color: var(--dark);
    background: var(--white);
    border-color: var(--border);
}

.button.secondary:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.button.full {
    width: 100%;
}

/* =========================================================
   تصویر اصلی صفحه اول
========================================================= */

/*
   aspect-ratio باعث می‌شود کادر تصویر همیشه نسبت استاندارد داشته باشد.
   تصویر داخل این کادر بدون کشیدگی نمایش داده می‌شود.
*/

.hero-card {
    position: relative;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 4 / 3;
    justify-self: end;
    overflow: hidden;
    background: #e8eef7;
    border: 1px solid rgba(203, 213, 225, 0.8);
    border-radius: 26px;
    box-shadow: var(--shadow-large);
}

/* تصویر اصلی */
.hero-image {
    width: 100%;
    height: 100%;
/*    object-fit: cover; */
    object-position: center center;
}

/* =========================================================
   بخش‌های عمومی
========================================================= */

.section {
    padding: 78px 0;
}

.muted-section {
    background: var(--light);
}

.section-heading {
    margin-bottom: 32px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.section-heading > div {
    min-width: 0;
}

.section-heading h2 {
    margin-bottom: 0;
}

.section-heading > a {
    flex-shrink: 0;
    color: var(--primary);
    font-weight: 700;
    white-space: nowrap;
}

/* =========================================================
   کارت‌های خدمات
========================================================= */

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
}

.card,
.content-box,
.form-card,
.contact-info {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
}

.card {
    min-width: 0;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #cbd5e1;
    box-shadow: var(--shadow-medium);
}

/* =========================================================
   کادر تصویر خدمات
========================================================= */

/*
   همه تصاویر خدمات داخل کادر 16 به 10 قرار می‌گیرند.
   به همین دلیل اندازه تمام کارت‌ها یکسان خواهد بود.
*/

.card-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    flex-shrink: 0;
    overflow: hidden;
    background: #eef2f7;
}

/* تصویر هر خدمت */
.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.35s ease;
}

.card:hover .card-image {
    transform: scale(1.035);
}

/* بدنه کارت */
.card-body {
    min-width: 0;
    flex: 1;
    padding: 24px 26px 28px;
    display: flex;
    flex-direction: column;
}

.card h3,
.service-card h2 {
    margin: 0 0 12px;
    color: var(--dark);
    font-size: 20px;
    line-height: 1.7;
}

.card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.95;
}

/* کارت صفحه خدمات */
.service-card .card-body {
    min-height: 205px;
}

.service-card .card-body p {
    line-height: 2;
}

/* پیام خالی بودن خدمات */
.empty-state {
    grid-column: 1 / -1;
    padding: 45px 24px;
    color: var(--muted);
    background: var(--light);
    border: 1px dashed var(--border);
    border-radius: var(--radius-medium);
    text-align: center;
}

/* =========================================================
   بخش چرا ALPHO
========================================================= */

.split-box {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);
    align-items: center;
    gap: 50px;
}

.split-box > div {
    min-width: 0;
}

.split-box p {
    margin-bottom: 0;
    color: var(--muted);
}

.check-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    margin: 12px 0;
    padding: 15px 18px;
    color: var(--dark);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.check-list li:first-child {
    margin-top: 0;
}

.check-list li:last-child {
    margin-bottom: 0;
}

.check-list li::before {
    content: '✓';
    margin-left: 10px;
    color: var(--primary);
    font-weight: 700;
}

/* =========================================================
   عنوان صفحات داخلی
========================================================= */

.page-hero {
    padding: 70px 0;
    text-align: center;
    background:
        radial-gradient(
            circle at center top,
            rgba(37, 99, 235, 0.08),
            transparent 50%
        ),
        var(--light);
}

.page-hero h1 {
    margin-bottom: 16px;
    font-size: clamp(34px, 5vw, 46px);
}

.page-hero p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 2;
}

/* =========================================================
   محتوای صفحات
========================================================= */

.content-box {
    padding: 38px;
    font-size: 17px;
    line-height: 2.1;
}

.content-box p:last-child {
    margin-bottom: 0;
}

/* =========================================================
   صفحه تماس
========================================================= */

.contact-grid {
    display: grid;
    grid-template-columns:
        minmax(280px, 0.8fr)
        minmax(0, 1.2fr);
    align-items: start;
    gap: 28px;
}

.contact-info,
.form-card {
    padding: 30px;
}

.info-item {
    padding: 16px 0;
    display: grid;
    gap: 5px;
    border-bottom: 1px solid var(--border);
}

.info-item:first-child {
    padding-top: 0;
}

.info-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.info-item strong {
    color: var(--dark);
}

.form-card label {
    margin-bottom: 18px;
    display: grid;
    gap: 8px;
    color: var(--dark);
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

textarea {
    min-height: 145px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

/* پیام موفقیت و خطا */
.alert {
    margin-bottom: 18px;
    padding: 13px 15px;
    border-radius: var(--radius-small);
}

.alert.success {
    color: var(--success);
    background: var(--success-bg);
}

.alert.error {
    color: var(--error);
    background: var(--error-bg);
}

/* =========================================================
   فوتر سایت
========================================================= */

.site-footer {
    padding-top: 55px;
    color: #cbd5e1;
    background: var(--dark);
}

.footer-grid {
    padding-bottom: 40px;
    display: grid;
    grid-template-columns:
        minmax(0, 1.2fr)
        minmax(0, 1fr)
        minmax(0, 0.7fr);
    gap: 35px;
}

.site-footer h3,
.site-footer h4 {
    margin-bottom: 14px;
    color: var(--white);
}

.site-footer p {
    color: #94a3b8;
}

.site-footer a {
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: var(--white);
}

.copyright {
    padding: 18px 16px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    font-size: 13px;
}

/* =========================================================
   نمایش لپ‌تاپ و تبلت افقی
========================================================= */

@media (max-width: 1050px) {
    .hero-grid {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(320px, 0.88fr);
        gap: 40px;
    }

    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   نمایش تبلت و موبایل
========================================================= */

@media (max-width: 820px) {
    .header-row {
        min-height: 70px;
    }

    .brand {
        height: 52px;
    }

    .site-logo {
        width: auto;
        height: 40px;
        max-width: 145px;
    }

    .header-phone {
        display: none;
    }

    .menu-button {
        display: inline-flex;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        z-index: 1001;
        display: none;
        padding: 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: 0 0 14px 14px;
        box-shadow: var(--shadow-medium);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding: 11px 12px;
        border-radius: 8px;
    }

    .main-nav a:hover,
    .main-nav a.active {
        color: var(--primary);
        background: var(--primary-light);
    }

    .main-nav a.active::after {
        display: none;
    }

    .hero {
        padding: 54px 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .hero-card {
        width: 100%;
        max-width: 680px;
        aspect-ratio: 16 / 10;
        justify-self: center;
        border-radius: 22px;
    }

    .split-box,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 58px 0;
    }

    .section-heading {
        align-items: flex-start;
    }

    .page-hero {
        padding: 55px 0;
    }

    .content-box {
        padding: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   نمایش موبایل
========================================================= */

@media (max-width: 680px) {
    .container {
        width: calc(100% - 24px);
    }

    h1 {
        font-size: 34px;
    }

    h2 {
        font-size: 26px;
    }

    .hero-text {
        font-size: 15px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-card {
        aspect-ratio: 4 / 3;
        border-radius: 18px;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /*
       تصاویر خدمات در موبایل کمی بلندتر نمایش داده می‌شوند.
    */
    .card-image-wrap {
        aspect-ratio: 16 / 10;
    }

    .section-heading {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .section-heading > a {
        align-self: flex-start;
    }

    .card-body {
        padding: 22px;
    }

    .service-card .card-body {
        min-height: auto;
    }

    .contact-info,
    .form-card,
    .content-box {
        padding: 22px;
    }
}

/* =========================================================
   موبایل‌های کوچک
========================================================= */

@media (max-width: 420px) {
    .site-logo {
        height: 36px;
        max-width: 125px;
    }

    .hero {
        padding-top: 44px;
    }

    .hero-card {
        aspect-ratio: 1 / 1;
    }

    .card-image-wrap {
        aspect-ratio: 4 / 3;
    }

    .card-body {
        padding: 20px;
    }
}