/* ==========================================================================
   قالب‌های صفحه: درباره ما، تماس، تخفیف — هماهنگ با ui.css (.hp)
   ========================================================================== */
.hp-page { padding-block: clamp(16px, 3vw, 32px) clamp(40px, 6vw, 72px); }
.hp-page > .hp-wrap { display: grid; gap: clamp(20px, 3vw, 32px); }

.hp-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: .86rem; color: var(--hp-text); }
.hp-crumb a { color: var(--hp-blue); font-weight: 700; }
.hp-crumb a:hover { color: var(--hp-navy); }
.hp-crumb span[aria-hidden] { color: #A5B3C2; }

.hp-pagehead { padding: clamp(18px, 3vw, 28px) clamp(18px, 3vw, 32px); background: var(--hp-soft); border: 1px solid var(--hp-line); border-radius: 24px; }
.hp .hp-pagehead__title { margin: 0; font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 900; line-height: 1.7; color: var(--hp-navy); }
.hp .hp-pagehead__desc { margin: 6px 0 0; max-width: 62ch; line-height: 2; color: var(--hp-text); }

.hp-chip, .hp-shero__chip { display: inline-block; padding: 2px 14px; border-radius: 999px; background: var(--hp-mist); color: var(--hp-navy); font-size: .82rem; font-weight: 800; line-height: 2; }
.hp-sechead { text-align: center; margin-bottom: 22px; }
.hp .hp-sechead h2 { margin: 0 0 6px; font-size: clamp(1.25rem, 2.6vw, 1.7rem); font-weight: 900; color: var(--hp-navy); }
.hp .hp-sechead p { margin: 0; color: var(--hp-text); }

/* ==========================================================================
   درباره ما  (.ab-*)
   ========================================================================== */
.hp-about > .hp-wrap { gap: clamp(36px, 6vw, 72px); }
.ab-eyebrow { display: inline-block; margin-bottom: 8px; font-size: .82rem; font-weight: 800; letter-spacing: .02em; color: var(--hp-blue); }
.ab-head { max-width: 640px; margin: 0 auto 28px; text-align: center; }
.hp .ab-head h2 { margin: 0 0 8px; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; line-height: 1.6; color: var(--hp-navy); }
.hp .ab-head p { margin: 0; color: var(--hp-text); line-height: 2; }

.ab-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 14px; border: 1.5px solid transparent; font-weight: 800; font-size: .96rem; line-height: 1; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.hp a.ab-btn--light, .hp a.ab-btn--light:visited { background: #fff; color: var(--hp-navy); }
.hp a.ab-btn--light:hover { background: var(--hp-mist); transform: translateY(-2px); }
.hp a.ab-btn--ghost, .hp a.ab-btn--ghost:visited { border-color: rgba(255, 255, 255, .45); color: #fff; }
.hp a.ab-btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

/* Hero */
.ab-hero { position: relative; display: grid; gap: 28px; align-items: center; overflow: hidden; padding: clamp(24px, 5vw, 56px); border-radius: 32px; color: #DCE9F5;
    background: radial-gradient(600px 300px at 90% -10%, rgba(48, 133, 195, .55), transparent 70%), radial-gradient(500px 300px at 0% 110%, rgba(48, 133, 195, .3), transparent 70%), var(--hp-navy); }
.ab-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .09) 1.2px, transparent 1.2px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); mask-image: linear-gradient(to bottom, #000, transparent 85%); pointer-events: none; }
.ab-hero > * { position: relative; }
.ab-crumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; font-size: .84rem; color: #9FB8D0; }
.ab-crumb a { color: #C9DDF0; font-weight: 700; }
.ab-crumb a:hover { color: #fff; }
.ab-hero__chip { display: inline-block; padding: 2px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .08); color: #fff; font-size: .82rem; font-weight: 800; line-height: 2.1; }
.hp .ab-hero h1 { margin: 16px 0 14px; max-width: 18ch; font-size: clamp(1.9rem, 5vw, 3.2rem); font-weight: 900; line-height: 1.55; color: #fff; }
.hp .ab-hero p { margin: 0; max-width: 56ch; font-size: 1.02rem; line-height: 2.2; }
.ab-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ab-hero__media { position: relative; }
.ab-hero__media::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1.5px solid rgba(255, 255, 255, .25); border-radius: 26px; }
.ab-hero__media img { position: relative; display: block; width: 100%; height: auto; max-height: 440px; object-fit: cover; border-radius: 24px; }
@media (min-width: 900px) {
    .ab-hero.has-media { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; }
    .ab-hero { padding-bottom: clamp(70px, 9vw, 110px); }
}
.ab-hero { padding-bottom: 72px; }

/* آمار: روی لبه‌ی هیرو */
.ab-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -64px; margin-inline: clamp(8px, 4vw, 48px); position: relative; z-index: 2;
    background: #fff; border: 1px solid var(--hp-line); border-radius: 24px; box-shadow: 0 18px 40px rgba(0, 47, 93, .1); overflow: hidden; }
.ab-stat { display: grid; justify-items: center; gap: 2px; padding: clamp(18px, 3vw, 28px) 10px; text-align: center; border-top: 1px solid var(--hp-line); border-inline-start: 1px solid var(--hp-line); }
.ab-stat:nth-child(-n+2) { border-top: 0; }
.ab-stat:nth-child(odd) { border-inline-start: 0; }
.ab-stat b, .ab-stat b .hp-count { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 900; color: var(--hp-navy); line-height: 1.5; }
.ab-stat b { direction: ltr; unicode-bidi: isolate; }
.ab-stat > span { font-size: .9rem; font-weight: 700; color: var(--hp-text); }
@media (min-width: 760px) {
    .ab-stats { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
    .ab-stat, .ab-stat:nth-child(-n+2), .ab-stat:nth-child(odd) { border-top: 0; border-inline-start: 1px solid var(--hp-line); }
    .ab-stat:first-child { border-inline-start: 0; }
}

/* محتوای صفحه (ویرایشگر وردپرس) */
.ab-content { max-width: 820px; margin-inline: auto; width: 100%; line-height: 2.3; font-size: 1.02rem; }
.ab-content > :first-child { margin-top: 0; }
.ab-content > :last-child { margin-bottom: 0; }
.ab-content p { margin: 0 0 1.1em; text-align: justify; }
.hp .ab-content h2, .hp .ab-content h3, .hp .ab-content h4 { margin: 1.8em 0 .6em; font-weight: 900; line-height: 1.7; color: var(--hp-navy); }
.hp .ab-content h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
.hp .ab-content h3 { font-size: 1.25rem; }
.hp .ab-content h4 { font-size: 1.1rem; }
.ab-content a { color: var(--hp-blue); font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.ab-content ul, .ab-content ol { margin: 0 0 1.2em; padding-inline-start: 1.6em; }
.ab-content ul { list-style: disc; }
.ab-content ol { list-style: decimal; }
.ab-content li::marker { color: var(--hp-blue); }
.ab-content li { margin-bottom: .4em; }
.ab-content img, .ab-content video, .ab-content iframe { display: block; max-width: 100%; height: auto; border-radius: 20px; }
.ab-content figure { margin: 1.6em 0; }
.ab-content figcaption { margin-top: 8px; font-size: .85rem; text-align: center; color: #7A8CA0; }
.ab-content blockquote { margin: 1.6em 0; padding: 18px 22px; border-inline-start: 4px solid var(--hp-blue); border-radius: 16px; background: var(--hp-soft); color: var(--hp-navy); font-weight: 700; }
.ab-content blockquote p:last-child { margin-bottom: 0; }
.ab-content table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.6em 0; border: 1px solid var(--hp-line); border-radius: 14px; overflow: hidden; }
.ab-content th, .ab-content td { padding: 10px 14px; border-bottom: 1px solid var(--hp-line); text-align: start; }
.ab-content th { background: var(--hp-soft); color: var(--hp-navy); font-weight: 800; }
.ab-content tr:last-child td { border-bottom: 0; }
.ab-content .alignwide, .ab-content .alignfull { max-width: 100%; }
.ab-content .wp-block-columns { gap: 24px; }

/* ==========================================================================
   تماس با ما  (.ct-*)
   ========================================================================== */
.ct-head { position: relative; overflow: hidden; padding: clamp(24px, 4.5vw, 48px); border: 1px solid var(--hp-line); border-radius: 32px; background: var(--hp-soft); }
.ct-head::after { content: ""; position: absolute; inset-block: -40% auto; inset-inline-start: -8%; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(closest-side, rgba(48, 133, 195, .16), transparent); pointer-events: none; }
.ct-crumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; font-size: .84rem; color: var(--hp-text); }
.ct-crumb a { color: var(--hp-blue); font-weight: 700; }
.hp .ct-head h1 { position: relative; margin: 0 0 8px; font-size: clamp(1.7rem, 4.2vw, 2.6rem); font-weight: 900; line-height: 1.6; color: var(--hp-navy); }
.hp .ct-head p { position: relative; margin: 0; max-width: 56ch; line-height: 2.1; }
.ct-quick { position: relative; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.ct-quick__btn { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 22px; border: 1.5px solid var(--hp-line); border-radius: 14px; background: #fff; color: var(--hp-navy); font-weight: 800; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.ct-quick__btn:hover { border-color: var(--hp-navy); transform: translateY(-2px); }
.hp a.ct-quick__btn.is-primary, .hp a.ct-quick__btn.is-primary:visited { background: var(--hp-navy); border-color: var(--hp-navy); color: #fff; }
.hp a.ct-quick__btn.is-primary:hover { background: #00417f; }

.ct-main { display: grid; gap: 18px; align-items: stretch; }
@media (min-width: 960px) { .ct-main { grid-template-columns: 380px minmax(0, 1fr); gap: 24px; } }

.ct-info { display: flex; flex-direction: column; gap: 22px; padding: clamp(22px, 3.5vw, 34px); border-radius: 28px; color: #DCE9F5;
    background: radial-gradient(420px 240px at 100% 0, rgba(48, 133, 195, .5), transparent 70%), var(--hp-navy); }
.hp .ct-info h2 { margin: 0; font-size: 1.25rem; font-weight: 900; color: #fff; }
.ct-info__list { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.ct-info__list li { display: flex; align-items: flex-start; gap: 14px; }
.ct-info__ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, .1); color: #fff; }
.ct-info__list div { display: grid; gap: 2px; min-width: 0; line-height: 1.9; font-weight: 600; }
.ct-info__list small { font-size: .8rem; font-weight: 700; color: #9FB8D0; }
.ct-info__list a, .ct-info__list span:not(.ct-info__ico) { color: #fff; word-break: break-word; }
.ct-info__list a[dir="ltr"] { justify-self: start; }
.ct-info__list a:hover { color: #BFE0FA; }
.ct-info__social { margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .15); }
.ct-info__social small { display: block; margin-bottom: 10px; font-size: .82rem; font-weight: 700; color: #9FB8D0; }
.ct-info__social div { display: flex; flex-wrap: wrap; gap: 10px; }
.ct-info__social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .22); color: #fff; transition: background-color .2s, color .2s, transform .2s; }
.ct-info__social a:hover { background: #fff; color: var(--hp-navy); transform: translateY(-2px); }

.ct-formcard { padding: clamp(22px, 3.5vw, 38px); border: 1px solid var(--hp-line); border-radius: 28px; background: #fff; }
.hp .ct-formcard h2 { margin: 0; font-size: 1.35rem; font-weight: 900; color: var(--hp-navy); }
.ct-formcard__sub { margin: 6px 0 24px; color: var(--hp-text); line-height: 2; }

.hp-cform { display: grid; gap: 16px; }
.hp-cform__row { display: grid; gap: 16px; }
@media (min-width: 640px) { .hp-cform__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hp-hpot { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hp-field label { display: block; margin-bottom: 6px; font-size: .9rem; font-weight: 700; color: var(--hp-navy); }
.hp-field .req { color: var(--hp-sale); }
.hp-field input, .hp-field textarea, .hp-field select {
    width: 100%; min-height: 50px; padding: 0 14px; border: 1.5px solid var(--hp-line); border-radius: 12px; background: var(--hp-soft);
    font: inherit; font-size: .95rem; color: var(--hp-navy); transition: border-color .2s, background-color .2s, box-shadow .2s; box-shadow: none;
}
.hp-field textarea { padding-block: 12px; min-height: 150px; resize: vertical; }
.hp-field input:focus, .hp-field textarea:focus, .hp-field select:focus { border-color: var(--hp-blue); background: #fff; box-shadow: 0 0 0 4px rgba(48, 133, 195, .14); outline: 0; }
.hp-field input::placeholder { color: #A5B3C2; }
.hp-field__err { display: none; margin-top: 4px; font-size: .8rem; font-weight: 700; color: var(--hp-sale); }
.hp-field.is-invalid input, .hp-field.is-invalid textarea { border-color: var(--hp-sale); background: #FFF7F8; }
.hp-field.is-invalid .hp-field__err { display: block; }

.hp-cform__submit {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 36px; border: 0; border-radius: 14px;
    background: var(--hp-navy); color: #fff; font: inherit; font-size: 1rem; font-weight: 900; cursor: pointer; transition: background-color .2s, transform .2s;
}
@media (min-width: 640px) { .hp-cform__submit { justify-self: start; min-width: 220px; } }
.hp-cform__submit:hover { background: #00417f; transform: translateY(-2px); }
.hp-cform__submit:disabled { opacity: .7; cursor: progress; transform: none; }
.hp-spin { display: none; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: hp-cform-spin .7s linear infinite; }
.hp-cform.is-loading .hp-spin { display: inline-block; }
@keyframes hp-cform-spin { to { transform: rotate(360deg); } }
.hp-cform__result { display: none; padding: 12px 16px; border-radius: 14px; font-weight: 700; font-size: .92rem; }
.hp-cform__result.is-ok { display: block; background: #E3F6E8; border: 1px solid #BFE6C9; color: #1E7A37; }
.hp-cform__result.is-err { display: block; background: #FDECEF; border: 1px solid #F6C6CE; color: #B3243E; }
.hp-note { padding: 14px 18px; border-radius: 14px; background: var(--hp-mist); color: var(--hp-navy); font-weight: 700; }

.ct-map { overflow: hidden; border: 1px solid var(--hp-line); border-radius: 28px; background: var(--hp-soft); line-height: 0; }
.ct-map iframe { display: block; width: 100% !important; height: clamp(280px, 40vw, 420px) !important; border: 0; }


/* ---------- صفحه‌بندی (تخفیف) ---------- */
.hp-pager ul.page-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hp-pager .page-numbers > li { margin: 0; }
.hp-pager a.page-numbers, .hp-pager span.page-numbers {
    display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid var(--hp-line); border-radius: 12px; background: #fff;
    color: var(--hp-navy); font-weight: 800; transition: background-color .2s, border-color .2s;
}
.hp-pager a.page-numbers:hover { background: var(--hp-mist); border-color: var(--hp-mist); }
.hp-pager span.page-numbers.current { background: var(--hp-navy); border-color: var(--hp-navy); color: #fff; }
.hp-pager span.page-numbers.dots { border-color: transparent; background: transparent; }

/* ---------- تخفیف ---------- */
.hp-shero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: clamp(22px, 4vw, 40px); border-radius: 28px; color: #fff;
    background: linear-gradient(120deg, #002F5D 0%, #0B4A86 55%, #D92D4B 160%); }
.hp-shero__chip { background: var(--hp-sale); color: #fff; }
.hp .hp-shero h1 { margin: 12px 0 8px; font-size: clamp(1.5rem, 3.6vw, 2.3rem); font-weight: 900; line-height: 1.6; color: #fff; }
.hp .hp-shero p { margin: 0; max-width: 54ch; line-height: 2.1; color: #DCE9F5; }
.hp-shero__stats { display: flex; gap: 12px; }
.hp-shero__stats > div { display: grid; justify-items: center; gap: 2px; min-width: 130px; padding: 16px 20px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 18px; background: rgba(255, 255, 255, .08); }
.hp-shero__stats b { font-size: 1.5rem; font-weight: 900; line-height: 1.5; }
.hp-shero__stats span { font-size: .82rem; color: #DCE9F5; }

.hp-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 10px 14px; border: 1px solid var(--hp-line); border-radius: 16px; background: var(--hp-soft); }
.hp-toolbar__count { margin: 0; font-size: .9rem; }
.hp-toolbar__count b { color: var(--hp-navy); }
.hp-toolbar__sort { display: flex; align-items: center; gap: 10px; margin: 0; }
.hp-toolbar__sort label { margin: 0; font-size: .88rem; font-weight: 700; color: var(--hp-navy); }
.hp-toolbar__sort select { min-height: 40px; padding: 0 12px; border: 1.5px solid var(--hp-line); border-radius: 10px; background: #fff; color: var(--hp-navy); font: inherit; font-size: .9rem; font-weight: 700; }

.hp-grid--sale { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .hp-grid--sale { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1000px) { .hp-grid--sale { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.hp-page .hp-empty { display: grid; justify-items: center; gap: 14px; padding: clamp(32px, 6vw, 64px) 16px; border: 1px solid var(--hp-line); border-radius: 24px; background: var(--hp-soft); text-align: center; }
.hp-page .hp-empty p { margin: 0; }
.hp-page .hp-empty .hp-empty__title { margin: 0; font-size: 1.2rem; font-weight: 900; color: var(--hp-navy); }


/* ---------- اصلاحات ---------- */
.ab-stats { margin-top: calc(-1 * clamp(36px, 6vw, 72px) - 56px); }
.hp-field select { appearance: none; -webkit-appearance: none; padding-inline-end: 14px; padding-inline-start: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23002F5D' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: left 14px center; }
