/* ============================================================
   میلیمتری — استایل اصلی سایت عمومی (RTL)
   رنگ برند: #329B91
   ============================================================ */

:root {
    /* پالت برند تیل */
    --brand: #329B91;
    --brand-dark: #257d74;
    --brand-darker: #1b5d57;
    --brand-soft: #eaf6f4;
    --brand-soft-2: #d6ede9;
    --brand-ring: rgba(50, 155, 145, .25);

    /* خنثی‌ها */
    --ink: #1f2a37;
    --ink-2: #374151;
    --muted: #6b7280;
    --muted-2: #9ca3af;
    --line: #e7eaee;
    --line-2: #eef1f4;
    --bg: #ffffff;
    --bg-soft: #f6faf9;
    --bg-soft-2: #f1f5f4;

    --gold: #d8a23c;

    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06);
    --shadow: 0 4px 14px rgba(16,24,40,.06), 0 2px 6px rgba(16,24,40,.04);
    --shadow-lg: 0 18px 40px rgba(16,24,40,.10), 0 6px 14px rgba(16,24,40,.06);
    --shadow-brand: 0 14px 30px rgba(50,155,145,.28);

    --container: 1180px;
    --header-h: 76px;
    --ease: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.85;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-darker); }

h1, h2, h3, h4 { line-height: 1.5; margin: 0 0 .6em; color: var(--ink); font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding: 0; margin: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }

.skip-link {
    position: absolute; right: -999px; top: 8px; background: var(--brand); color: #fff;
    padding: 8px 16px; border-radius: 8px; z-index: 2000;
}
.skip-link:focus { right: 16px; color: #fff; }

/* ---------------- دکمه‌ها ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: inherit; font-weight: 600; font-size: .98rem;
    padding: 12px 26px; border-radius: 999px; border: 1.5px solid transparent;
    cursor: pointer; transition: all .22s var(--ease); white-space: nowrap; line-height: 1;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--brand-dark); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-soft); color: var(--brand-darker); }
.btn-ghost { background: #fff; color: var(--ink-2); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light:hover { background: var(--brand-soft); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 34px; font-size: 1.05rem; }
.btn-sm { padding: 9px 18px; font-size: .9rem; }

/* ---------------- سرآیند ---------------- */
.site-header {
    position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-2);
    transition: box-shadow .25s var(--ease), background .25s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow); background: rgba(255,255,255,.97); }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { display: inline-flex; }
.brand-logo { height: 46px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.35; }
.brand-name { font-weight: 700; font-size: 1.32rem; color: var(--ink); }
.brand-tag { font-size: .72rem; color: var(--muted); font-weight: 500; }

.main-nav { margin-inline-start: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.main-nav a {
    display: inline-block; padding: 8px 13px; border-radius: 10px; color: var(--ink-2);
    font-weight: 500; font-size: .95rem; position: relative;
}
.main-nav a:hover { color: var(--brand-dark); background: var(--brand-soft); }
.main-nav a.active { color: var(--brand-dark); font-weight: 600; }
.main-nav a.active::after {
    content: ''; position: absolute; bottom: 2px; right: 13px; left: 13px; height: 2px;
    background: var(--brand); border-radius: 2px;
}
.nav-close, .nav-cta-mobile { display: none; }

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
    display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px;
    transition: all .25s var(--ease);
}
.nav-toggle span + span { margin-top: 6px; }
.nav-overlay {
    position: fixed; inset: 0; background: rgba(15,23,42,.4); z-index: 1001;
    opacity: 0; visibility: hidden; transition: all .3s var(--ease);
}
.nav-overlay.open { opacity: 1; visibility: visible; }

/* ---------------- فلش ---------------- */
.flash {
    margin: 18px 0; padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 500;
    border: 1px solid transparent;
}
.flash-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.flash-error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.flash-info { background: var(--brand-soft); color: var(--brand-darker); border-color: var(--brand-soft-2); }

/* ---------------- بخش‌ها ---------------- */
.section { padding: 76px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head.start { text-align: start; margin-inline: 0; }
.eyebrow {
    display: inline-block; font-size: .82rem; font-weight: 600; color: var(--brand-dark);
    background: var(--brand-soft); padding: 6px 16px; border-radius: 999px; margin-bottom: 16px;
}
.section-title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.section-sub { color: var(--muted); font-size: 1.05rem; margin-bottom: 0; }

/* ---------------- قهرمان (Hero) ---------------- */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(1100px 520px at 88% -8%, var(--brand-soft) 0%, transparent 60%),
        radial-gradient(800px 480px at 5% 110%, var(--brand-soft-2) 0%, transparent 55%),
        #fff;
    padding: 72px 0 84px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--brand-soft-2);
    color: var(--brand-darker); padding: 7px 16px; border-radius: 999px; font-size: .85rem;
    font-weight: 600; box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.4; margin-bottom: 18px; }
.hero h1 .hl { color: var(--brand-dark); position: relative; }
.hero-lead { font-size: 1.12rem; color: var(--ink-2); max-width: 560px; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-trust { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: .92rem; }
.hero-trust strong { color: var(--ink); }

.hero-card {
    position: relative; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 26px;
}
.hero-card .consultant-photo {
    width: 100%; aspect-ratio: 4/3.4; object-fit: cover; border-radius: var(--radius);
    background: var(--bg-soft-2);
}
.hero-card .consultant-meta { padding: 18px 6px 4px; }
.hero-card .consultant-meta .name { font-size: 1.28rem; font-weight: 700; }
.hero-card .consultant-meta .role { color: var(--brand-dark); font-weight: 600; font-size: .95rem; }
.hero-card .consultant-meta p { color: var(--muted); font-size: .92rem; margin: 10px 0 0; }
.hero-float {
    position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px;
    box-shadow: var(--shadow); padding: 12px 16px; display: flex; align-items: center; gap: 10px;
    font-weight: 600; font-size: .9rem;
}
.hero-float .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft);
    color: var(--brand-dark); display: grid; place-items: center; flex-shrink: 0; }
.hero-float.top { top: 18px; left: -14px; }
.hero-float.bottom { bottom: 26px; right: -16px; }

/* ---------------- شمارنده‌های آماری ---------------- */
.stats-band { background: var(--brand); color: #fff; }
.stats-band .container { padding-block: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat {
    text-align: center; padding: 40px 16px; border-inline-start: 1px solid rgba(255,255,255,.16);
}
.stat:first-child { border-inline-start: none; }
.stat .num { font-size: 2.5rem; font-weight: 700; line-height: 1; }
.stat .num .plus { font-size: 1.4rem; }
.stat .label { margin-top: 10px; font-size: .98rem; opacity: .92; }

/* ---------------- شبکه و کارت‌ها ---------------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
    overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-soft-2); }
.card-pad { padding: 26px; }

.feature-card { padding: 28px; }
.feature-icon {
    width: 56px; height: 56px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-dark);
    display: grid; place-items: center; margin-bottom: 18px;
}
.feature-card h3 { font-size: 1.18rem; }
.feature-card p { color: var(--muted); margin: 0; font-size: .96rem; }

/* کارت زیربرند */
.brand-card { display: flex; flex-direction: column; }
.brand-card .brand-media {
    aspect-ratio: 16/9; background: linear-gradient(135deg, var(--brand-soft), var(--brand-soft-2));
    display: grid; place-items: center; color: var(--brand-dark); position: relative;
}
.brand-card .brand-media img { width: 100%; height: 100%; object-fit: cover; }
.brand-card .brand-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.brand-card .brand-body h3 { font-size: 1.25rem; margin-bottom: 4px; }
.brand-card .brand-tagline { color: var(--brand-dark); font-weight: 600; font-size: .9rem; margin-bottom: 12px; }
.brand-card .brand-body p { color: var(--muted); font-size: .95rem; }
.brand-card .brand-body .btn { margin-top: auto; align-self: flex-start; }

/* کارت رتبه */
.rank-card { text-align: center; padding: 26px 22px; position: relative; }
.rank-card .rank-photo {
    width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px;
    border: 3px solid var(--brand-soft); background: var(--bg-soft-2);
}
.rank-card .rank-badge {
    position: absolute; top: 18px; inset-inline-start: 18px; background: var(--gold); color: #4a3408;
    font-weight: 700; font-size: .8rem; padding: 5px 12px; border-radius: 999px;
}
.rank-card .rank-name { font-weight: 700; font-size: 1.12rem; }
.rank-card .rank-field { color: var(--muted); font-size: .9rem; }
.rank-card .rank-line { color: var(--brand-dark); font-weight: 600; margin-top: 8px; font-size: .95rem; }
.rank-card .rank-quote { color: var(--ink-2); font-size: .92rem; margin-top: 12px; font-style: italic; }

/* کارت پشتیبان */
.supporter-card { text-align: center; padding: 24px 18px; }
.supporter-card .sup-photo {
    width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px;
    border: 3px solid var(--brand-soft); background: var(--bg-soft-2);
}
.supporter-card .sup-name { font-weight: 700; font-size: 1.02rem; }
.supporter-card .sup-field { color: var(--brand-dark); font-size: .85rem; font-weight: 600; }
.supporter-card .sup-bio { color: var(--muted); font-size: .88rem; margin-top: 8px; }

/* کارت مقاله */
.article-card { display: flex; flex-direction: column; }
.article-card .art-media { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-soft-2); }
.article-card .art-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.article-card:hover .art-media img { transform: scale(1.05); }
.article-card .art-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.art-cat { font-size: .78rem; font-weight: 600; color: var(--brand-dark); background: var(--brand-soft);
    padding: 4px 12px; border-radius: 999px; align-self: flex-start; margin-bottom: 12px; }
.article-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.article-card h3 a { color: var(--ink); }
.article-card h3 a:hover { color: var(--brand-dark); }
.article-card .art-sum { color: var(--muted); font-size: .92rem; flex: 1; }
.art-meta { display: flex; justify-content: space-between; align-items: center; color: var(--muted-2);
    font-size: .82rem; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); }

/* منابع */
.resource-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; }
.resource-card .res-icon { width: 50px; height: 50px; border-radius: 12px; background: var(--brand-soft);
    color: var(--brand-dark); display: grid; place-items: center; flex-shrink: 0; }
.resource-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.resource-card p { color: var(--muted); font-size: .9rem; margin: 0 0 10px; }

/* تستیمونیال */
.testimonial-card { padding: 28px; }
.testimonial-card .quote-mark { color: var(--brand-soft-2); font-size: 3rem; line-height: .5; font-weight: 700; }
.testimonial-card .t-text { color: var(--ink-2); font-size: 1rem; margin: 10px 0 18px; }
.testimonial-card .t-author { display: flex; align-items: center; gap: 12px; }
.testimonial-card .t-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--brand-soft);
    color: var(--brand-dark); display: grid; place-items: center; font-weight: 700; }
.testimonial-card .t-name { font-weight: 700; font-size: .95rem; }
.testimonial-card .t-role { color: var(--muted); font-size: .82rem; }

/* ---------------- گالری ---------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-item {
    position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden;
    cursor: pointer; background: var(--bg-soft-2);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .g-overlay {
    position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(27,93,87,.78));
    color: #fff; display: flex; align-items: flex-end; padding: 12px; opacity: 0; transition: opacity .3s;
    font-size: .85rem; font-weight: 600;
}
.gallery-item:hover .g-overlay { opacity: 1; }

.lightbox {
    position: fixed; inset: 0; background: rgba(10,20,18,.92); z-index: 3000; display: none;
    align-items: center; justify-content: center; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; }
.lightbox .lb-close { position: absolute; top: 20px; inset-inline-start: 24px; color: #fff;
    background: none; border: none; font-size: 2.4rem; cursor: pointer; line-height: 1; }

/* ---------------- نوار CTA ---------------- */
.cta-band {
    background: linear-gradient(120deg, var(--brand-darker), var(--brand-dark));
    color: #fff; border-radius: var(--radius-lg); padding: 50px; text-align: center;
    position: relative; overflow: hidden;
}
.cta-band::before { content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%;
    background: rgba(255,255,255,.07); top: -120px; inset-inline-end: -80px; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band p { color: rgba(255,255,255,.88); max-width: 600px; margin: 0 auto 26px; }
.cta-band .btn { position: relative; }

/* ---------------- فرم‌ها ---------------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); padding: 34px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 4px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.form-group label .req { color: #dc2626; }
.form-control {
    font-family: inherit; font-size: .98rem; padding: 12px 14px; border: 1.5px solid var(--line);
    border-radius: var(--radius-sm); background: #fff; color: var(--ink); width: 100%;
    transition: border-color .2s, box-shadow .2s;
}
.form-control:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
textarea.form-control { resize: vertical; min-height: 120px; line-height: 1.8; }
select.form-control { cursor: pointer; }
.field-hint { font-size: .8rem; color: var(--muted); }
.date-selects { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; }
.consent-row input { margin-top: 7px; width: 18px; height: 18px; accent-color: var(--brand); }
.consent-row label { font-weight: 400; font-size: .9rem; color: var(--muted); }

/* ---------------- آکاردئون پرسش‌ها ---------------- */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.faq-q { width: 100%; text-align: start; background: none; border: none; cursor: pointer;
    padding: 18px 22px; font-family: inherit; font-weight: 600; font-size: 1.02rem; color: var(--ink);
    display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq-q .chev { color: var(--brand); transition: transform .25s var(--ease); flex-shrink: 0; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-a-inner { padding: 0 22px 20px; color: var(--muted); }

/* ---------------- زیربخش/هدر صفحات داخلی ---------------- */
.page-hero {
    background: radial-gradient(900px 360px at 85% -20%, var(--brand-soft), transparent 60%), var(--bg-soft);
    padding: 56px 0; border-bottom: 1px solid var(--line-2);
}
.breadcrumb { color: var(--muted); font-size: .86rem; margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-dark); }
.page-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 10px; }
.page-hero p { color: var(--muted); font-size: 1.05rem; max-width: 720px; margin: 0; }

/* ---------------- محتوای متنی (مقاله/درباره) ---------------- */
.prose { color: var(--ink-2); font-size: 1.04rem; line-height: 2; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.4em; }
.prose p { margin-bottom: 1.1em; }
.prose ul, .prose ol { padding-inline-start: 1.4em; margin-bottom: 1.1em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .5em; }
.prose img { border-radius: var(--radius-sm); margin: 1.4em 0; }
.prose blockquote { border-inline-start: 4px solid var(--brand); background: var(--brand-soft);
    padding: 14px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--brand-darker); margin: 1.2em 0; }
.prose a { color: var(--brand-dark); font-weight: 600; text-decoration: underline; }

/* ---------------- صفحه‌بندی ---------------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 44px; }
.pagination a, .pagination span {
    min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; color: var(--ink-2);
    font-weight: 600; padding-inline: 12px;
}
.pagination a:hover { border-color: var(--brand); color: var(--brand-dark); }
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------------- لیست ویژگی‌ها (دو ستونه) ---------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3; background: linear-gradient(135deg, var(--brand-soft), var(--brand-soft-2)); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; color: var(--ink-2); }
.check-list .ck { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft);
    color: var(--brand-dark); display: grid; place-items: center; flex-shrink: 0; margin-top: 3px; }

.placeholder-media { display: grid; place-items: center; color: var(--brand-dark); height: 100%; }
.placeholder-media svg { opacity: .5; }

/* ---------------- جعبه‌ی اطلاعات تماس ---------------- */
.info-box { display: flex; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius);
    background: #fff; box-shadow: var(--shadow-sm); }
.info-box .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft);
    color: var(--brand-dark); display: grid; place-items: center; flex-shrink: 0; }
.info-box h4 { margin: 0 0 4px; font-size: 1rem; }
.info-box p { margin: 0; color: var(--muted); font-size: .92rem; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
    aspect-ratio: 16/8; background: var(--bg-soft-2); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------------- فوتر ---------------- */
.site-footer { background: var(--brand-darker); color: #cfe6e2; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; padding: 60px 20px 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand strong { color: #fff; font-size: 1.3rem; }
.footer-about p { color: #b8d8d3; font-size: .92rem; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.footer-social a { background: rgba(255,255,255,.1); color: #fff; padding: 7px 14px; border-radius: 999px;
    font-size: .85rem; font-weight: 500; }
.footer-social a:hover { background: rgba(255,255,255,.2); color: #fff; }
.footer-col h4 { color: #fff; font-size: 1.02rem; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #b8d8d3; font-size: .92rem; }
.footer-col a:hover { color: #fff; }
.contact-list li { color: #b8d8d3; font-size: .9rem; margin-bottom: 10px; }
.contact-list a { color: #b8d8d3; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom .container { padding-block: 18px; text-align: center; color: #9fc4be; font-size: .85rem; }

/* ---------------- شناورها ---------------- */
.float-cta {
    position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 900;
    background: var(--brand); color: #fff; padding: 12px 20px; border-radius: 999px;
    box-shadow: var(--shadow-brand); display: inline-flex; align-items: center; gap: 9px;
    font-weight: 600; font-size: .92rem; transition: transform .2s var(--ease);
}
.float-cta:hover { transform: translateY(-3px); color: #fff; background: var(--brand-dark); }

.support-widget { position: fixed; bottom: 24px; inset-inline-start: 24px; z-index: 950; }
.support-toggle {
    width: 58px; height: 58px; border-radius: 50%; background: var(--brand-darker); color: #fff;
    border: none; cursor: pointer; box-shadow: var(--shadow-lg); display: grid; place-items: center;
    transition: transform .2s var(--ease);
}
.support-toggle:hover { transform: scale(1.06); background: var(--brand-dark); }
.support-panel {
    position: absolute; bottom: 72px; inset-inline-start: 0; width: 320px; max-width: calc(100vw - 32px);
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    overflow: hidden; animation: popIn .22s var(--ease);
}
@keyframes popIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.support-head { background: var(--brand); color: #fff; padding: 14px 18px; display: flex;
    justify-content: space-between; align-items: center; }
.support-close, .support-toggle { line-height: 1; }
.support-close { background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; }
.support-body { padding: 18px; }
.support-intro { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.support-body .form-row { margin-bottom: 10px; }
.support-body input, .support-body select, .support-body textarea {
    width: 100%; font-family: inherit; font-size: .92rem; padding: 10px 12px; border: 1.5px solid var(--line);
    border-radius: var(--radius-sm); background: #fff;
}
.support-body input:focus, .support-body select:focus, .support-body textarea:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.support-body textarea { resize: vertical; }
.support-feedback { font-size: .88rem; margin-top: 10px; text-align: center; }
.support-feedback.ok { color: #047857; }
.support-feedback.err { color: #dc2626; }

.back-to-top {
    position: fixed; bottom: 92px; inset-inline-end: 24px; z-index: 880; width: 44px; height: 44px;
    border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--brand-dark);
    box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center;
    opacity: 0; visibility: hidden; transition: all .25s var(--ease);
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--brand-soft); }

/* ---------------- ابزارهای کمکی ---------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 36px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 24px; }
.empty-state { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty-state svg { opacity: .4; margin-bottom: 12px; }
.divider { height: 1px; background: var(--line-2); margin: 40px 0; border: 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--brand-soft); color: var(--brand-dark); padding: 6px 14px; border-radius: 999px;
    font-size: .85rem; font-weight: 500; }
.chip.active, .chip:hover { background: var(--brand); color: #fff; }

/* ---------------- ریسپانسیو ---------------- */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .hero-grid { gap: 36px; }
}
@media (max-width: 880px) {
    :root { --header-h: 66px; }
    .nav-toggle { display: block; }
    .nav-cta-desktop { display: none; }
    .main-nav {
        position: fixed; top: 0; inset-inline-end: -300px; width: 280px; max-width: 84vw; height: 100vh;
        background: #fff; box-shadow: var(--shadow-lg); z-index: 1002; padding: 24px 20px;
        transition: inset-inline-end .3s var(--ease); overflow-y: auto; margin: 0;
    }
    .main-nav.open { inset-inline-end: 0; }
    .main-nav > ul { flex-direction: column; align-items: stretch; gap: 4px; }
    .main-nav a { padding: 12px 14px; border-radius: var(--radius-sm); }
    .main-nav a.active::after { display: none; }
    .main-nav a.active { background: var(--brand-soft); }
    .nav-close { display: block; background: none; border: none; font-size: 2rem; color: var(--ink);
        cursor: pointer; align-self: flex-start; margin-bottom: 10px; line-height: 1; }
    .nav-cta-mobile { display: block; margin-top: 14px; }

    .hero { padding: 44px 0 56px; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-card { max-width: 460px; margin: 0 auto; }
    .hero-float.top { left: 8px; } .hero-float.bottom { right: 8px; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-inline-start: none; }
    .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid rgba(255,255,255,.16); }

    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .split, .form-grid, .hero-grid { grid-template-columns: 1fr; }
    .split-media { order: -1; }
    .section { padding: 52px 0; }
    .cta-band { padding: 36px 24px; }
    .form-card { padding: 24px; }
}
@media (max-width: 560px) {
    body { font-size: 15px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .date-selects { grid-template-columns: 1fr; }
    .hero-cta .btn { width: 100%; }
    .brand-tag { display: none; }
    .float-cta span { display: none; }
    .float-cta { padding: 14px; }
    .stat .num { font-size: 2rem; }
}
