/* ===== فونت (محلی) ===== */
@font-face {
  font-family: Vazirmatn;
  src: url("fonts/vazirmatn.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ===== رنگ‌های برند رامان ===== */
:root {
  --yellow: #F4BD1A;
  --yellow-soft: #FFF6D9;
  --navy: #1E3357;
  --navy-dark: #15253F;
  --ink: #1D1D1F;
  --white: #FFFFFF;
  --radius: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Vazirmatn, Tahoma, sans-serif;
  color: var(--ink);
  background: var(--yellow);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; vertical-align: middle; } /* display:block عمداً نیست؛ ساخت PDF را خراب می‌کند */
.header__logo { display: block; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ===== هدر ===== */
.header { background: var(--navy); padding: 14px 0; position: sticky; top: 0; z-index: 10; box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header__logo { height: 52px; width: auto; }
.header__call {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--yellow); color: var(--navy);
  font-weight: 700; padding: 9px 18px; border-radius: 999px; transition: transform .2s;
}
.header__call:hover { transform: translateY(-2px); }
button.header__call { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.header__call svg { width: 18px; height: 18px; fill: currentColor; }
.header__actions { display: flex; align-items: center; gap: 10px; }
.header__apply {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--white);
  background: transparent; border: 1.5px solid rgba(255,255,255,.55);
  padding: 8px 18px; border-radius: 999px; transition: background .2s, border-color .2s;
}
.header__apply:hover { background: rgba(255,255,255,.1); border-color: var(--yellow); }
.header__apply { white-space: nowrap; }
.header__apply svg { width: 18px; height: 18px; fill: currentColor; }
.btn--ig, .ig-handle { display: inline-flex; align-items: center; gap: 8px; justify-content: center; }
.btn--ig .ig, .ig-handle .ig { width: 20px; height: 20px; fill: currentColor; flex: none; }
.ig-handle .ig { fill: #C13584; }

/* ===== هیرو ===== */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 56px 0 52px;
  background:
    radial-gradient(circle at 12% 20%, rgba(255,255,255,.35) 0, transparent 38%),
    radial-gradient(circle at 88% 85%, rgba(30,51,87,.12) 0, transparent 42%),
    var(--yellow);
}
.hero__inner { max-width: 860px; }

.hero h1 { font-size: clamp(1.6rem, 3.6vw, 2.8rem); font-weight: 800; line-height: 1.6; color: var(--navy); }
.typed { color: var(--white); background: var(--navy); padding: 0 12px; border-radius: 12px; white-space: nowrap; }
.typed::after { content: ""; display: inline-block; width: 3px; height: 1em; margin-right: 4px; vertical-align: -.12em; background: var(--yellow); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.hero__lead { font-size: clamp(1.05rem, 1.8vw, 1.3rem); font-weight: 500; word-spacing: -.08em; margin: 14px auto 20px; max-width: 720px; }

.perks { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 24px; }
.perks li {
  background: var(--white); border-radius: 999px; padding: 6px 16px;
  font-weight: 700; font-size: .95rem; color: var(--navy);
}
.perks li::before { content: "✓"; margin-left: 6px; color: var(--yellow); background: var(--navy); border-radius: 50%; padding: 0 5px; font-size: .75rem; }

.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn { display: inline-block; padding: 13px 26px; border-radius: 14px; font-weight: 700; transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--light { background: var(--white); color: var(--navy); }

/* ===== اسلایدشو ===== */
.slider { position: relative; overflow: hidden; background: var(--navy); }
.slider__track { position: relative; aspect-ratio: 941 / 489; }
.slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .8s ease;
}
.slide.is-active { opacity: 1; }

.slider__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--navy); font-size: 2.2rem; line-height: 1;
  display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25);
  transition: background .2s, transform .2s;
}
.slider__btn svg { width: 28px; height: 28px; fill: currentColor; }
.slider__btn:hover { background: var(--yellow); transform: translateY(-50%) scale(1.06); }
.slider__btn--prev { right: 24px; }
.slider__btn--next { left: 24px; }

.slider__dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 7px; }
.slider__dots button {
  width: 9px; height: 9px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.6); transition: width .3s, background .3s;
}
.slider__dots button.is-active { width: 26px; background: var(--navy); }

/* ===== محصولات ===== */
.products { background: var(--navy); color: var(--white); padding: 56px 0; text-align: center; }
h2 { font-size: 1.7rem; font-weight: 800; margin-bottom: 26px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips span {
  border: 1.5px solid rgba(255,255,255,.3); border-radius: 999px;
  padding: 7px 18px; font-weight: 500;
}
.chips .chip--accent { background: var(--yellow); color: var(--navy); border-color: var(--yellow); font-weight: 800; }

/* ===== تماس ===== */
.contact { background: var(--yellow-soft); padding: 64px 0; text-align: center; }
.contact h2 { color: var(--navy); }
.contact__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 28px 18px;
  box-shadow: 0 6px 18px rgba(30,51,87,.08); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(30,51,87,.16); }
.card__icon {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--yellow); display: grid; place-items: center;
}
.card__icon svg { width: 26px; height: 26px; fill: var(--navy); }
.card h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 4px; }
.card p { font-weight: 500; color: #444; }
.ltr { direction: ltr; unicode-bidi: embed; font-weight: 700 !important; letter-spacing: .5px; }

/* ===== فوتر ===== */
.footer { background: var(--navy-dark); color: rgba(255,255,255,.75); text-align: center; padding: 20px 0; font-size: .9rem; }
.footer a { color: var(--yellow); font-weight: 700; }
.footer a:hover, .footer a:focus-visible { text-decoration: underline; }

/* ===== ریسپانسیو ===== */
@media (max-width: 900px) {
  .hero { padding: 36px 0 32px; }
  .hero h1 { min-height: 3.2em; }
  .contact__grid { grid-template-columns: repeat(2, 1fr); }
  .slider__btn { width: 38px; height: 38px; font-size: 1.6rem; }
  .slider__btn svg { width: 22px; height: 22px; }
  .slider__btn--prev { right: 10px; }
  .slider__btn--next { left: 10px; }
  .slider__dots { bottom: 10px; }
}
@media (max-width: 520px) {
  .header__logo { height: 40px; }
  .hero h1 { font-size: 1.2rem; }
  .typed { white-space: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
  .header__call span { display: none; }
  .header__apply { padding: 8px 12px; font-size: .88rem; }
  .header__apply svg { display: none; }
  .header__logo { height: 34px; }
  .header__call { padding: 10px; }
  .contact__grid { grid-template-columns: 1fr; }
}

/* ===== مدال تماس با ما ===== */
.cmodal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px 12px; overflow-y: auto; }
.cmodal[hidden] { display: none; }
.cmodal__backdrop { position: fixed; inset: 0; background: rgba(21,37,63,.75); backdrop-filter: blur(3px); }
.cmodal__panel {
  position: relative; width: 100%; max-width: 900px; margin: auto;
  display: grid; grid-template-columns: 1fr 1.15fr;
  background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.cmodal__photo { width: 100%; height: 100%; min-height: 100%; object-fit: cover; display: block; }
.cmodal__info { padding: 28px 24px 24px; background: var(--yellow-soft); display: flex; flex-direction: column; justify-content: center; }
.cmodal__info h2 { color: var(--navy); font-size: 1.35rem; margin-bottom: 4px; }
.cmodal__lead { font-size: .88rem; color: #555; margin-bottom: 16px; }
.cmodal__list { display: flex; flex-direction: column; gap: 10px; }
.cmodal__list .card { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; text-align: right; }
.cmodal__list .card:hover { transform: translateY(-2px); }
.cmodal__list .card__icon { width: 44px; height: 44px; margin: 0; flex: none; }
.cmodal__list .card__icon svg { width: 22px; height: 22px; }
.cmodal__list .card h3 { font-size: .95rem; margin: 0; flex: 1; white-space: nowrap; }
.cmodal__list .card p { font-size: .95rem; }
.cmodal__close {
  position: absolute; top: 12px; left: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(30,51,87,.85); color: var(--white); font-size: 1.5rem; line-height: 1;
}
.cmodal__close:hover { background: var(--navy); }
@media (max-width: 760px) {
  .cmodal { align-items: flex-start; }
  .cmodal__panel { grid-template-columns: 1fr; }
  .cmodal__photo { height: 240px; min-height: 0; object-position: center 35%; }
  .cmodal__info { padding: 20px 16px 16px; }
}

/* ===== فرم درخواست همکاری ===== */
body.no-scroll { overflow: hidden; }
.apply { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 24px 12px; overflow-y: auto; }
.apply[hidden] { display: none; }
.apply__backdrop { position: fixed; inset: 0; background: rgba(21,37,63,.75); backdrop-filter: blur(3px); }
.apply__panel { position: relative; width: 100%; max-width: 920px; background: var(--white); border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,.35); overflow: hidden; }
.apply__head { display: flex; align-items: center; gap: 14px; background: var(--navy); color: var(--white); padding: 11px 18px; position: sticky; top: 0; z-index: 2; }
.apply__brand { background: var(--navy); text-align: center; padding: 18px 16px 4px; }
.apply__brand img { height: 58px; width: auto; display: inline-block; }
.apply__head h2 { font-size: 1.05rem; margin: 0; flex: 1; text-align: center; padding-right: 34px; }
.apply__close { background: rgba(255,255,255,.12); color: var(--white); border: 0; width: 34px; height: 34px; border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.apply__close:hover { background: rgba(255,255,255,.25); }
.apply__body { padding: 16px; }
.apply__note { background: var(--yellow-soft); border-radius: 10px; padding: 7px 12px; font-size: .84rem; line-height: 1.7; margin-bottom: 12px; }
.apply__note b, .f b, .agree b { color: #D2462E; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.fs { border: 1.5px solid #F3E3B5; border-radius: 14px; padding: 0 14px 12px; margin-bottom: 12px; }
.fs h3 { background: #FDE89A; color: var(--navy); font-size: .92rem; font-weight: 800; margin: 0 -14px 10px; padding: 6px 14px; border-radius: 12px 12px 0 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 10px; }
.f { display: flex; flex-direction: column; gap: 2px; font-size: .82rem; line-height: 1.6; font-weight: 600; color: var(--navy); }
.f--wide { grid-column: span 2; }
.f input, .f select, .choice__note {
  font: inherit; font-weight: 400; color: var(--ink); width: 100%;
  border: 1.5px solid #F2CFC0; border-radius: 8px; padding: 5px 10px; background: #fff; font-size: .9rem; transition: border-color .2s, box-shadow .2s;
}
.f input:focus, .f select:focus, .choice__note:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30,51,87,.12); }
.f input.invalid, .choice__note.invalid { border-color: #D2462E; background: #FFF4F2; }

.choice { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 10px; font-size: .86rem; }
.fs h3 + .choice { margin-top: 0; margin-bottom: 10px; }
.choice__q { font-weight: 700; color: var(--navy); }
.choice label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.choice input[type=radio], .choice input[type=checkbox], .agree input { width: 16px; height: 16px; accent-color: var(--navy); }
.choice__note { flex: 1; min-width: 180px; }

.range { position: relative; }
.range input[type=range] { padding: 0; border: 0; accent-color: var(--navy); height: 26px; }
.range output { position: absolute; top: 0; left: 0; font-weight: 800; color: var(--navy); background: var(--yellow-soft); padding: 0 8px; border-radius: 6px; }

.rows { display: flex; flex-direction: column; gap: 8px; }
.row { position: relative; display: grid; grid-template-columns: repeat(4, 1fr) repeat(3, .6fr); gap: 6px 8px; padding: 8px 10px; background: #FFFBEF; border-radius: 10px; }
.fs .rows[data-fixed] .row { grid-template-columns: repeat(3, 1fr); }
.row__del { position: absolute; top: -8px; left: -8px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: #D2462E; color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; display: none; }
.rows .row + .row .row__del { display: block; }
.add-row { margin-top: 8px; font-size: .85rem; font: inherit; font-weight: 700; color: var(--navy); background: transparent; border: 1.5px dashed var(--navy); border-radius: 8px; padding: 4px 14px; cursor: pointer; }
.add-row:hover { background: var(--yellow-soft); }
.add-row[disabled] { opacity: .4; cursor: not-allowed; }

.fs--pledge { padding-top: 12px; }
.pledge { font-size: .85rem; line-height: 1.9; text-align: justify; }
.sign { margin: 10px 0; }
.sign__box { border: 1.5px dashed #F2CFC0; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; font-size: .82rem; color: #777; }
#signPad { width: 100%; max-width: 420px; height: 120px; background: #FFFDF6; border-radius: 8px; touch-action: none; cursor: crosshair; }
.sign__clear { font: inherit; font-size: .8rem; border: 0; background: none; color: var(--navy); text-decoration: underline; cursor: pointer; }
.agree { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 700; color: var(--navy); cursor: pointer; }

.apply__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.apply__msg { font-weight: 700; font-size: .92rem; min-height: 1.5em; }
.apply__msg.err { color: #D2462E; }
.apply__submit { border: 0; font: inherit; font-weight: 800; cursor: pointer; font-size: 1rem; padding: 11px 30px; }
.apply__submit[disabled] { opacity: .6; cursor: wait; }

.apply__done { padding: 48px 24px; text-align: center; }
.apply__done[hidden] { display: none; }
.done__icon { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: var(--yellow); color: var(--navy); font-size: 2.4rem; font-weight: 900; display: grid; place-items: center; }
.apply__done h3 { color: var(--navy); margin-bottom: 8px; }
.apply__done p { max-width: 460px; margin: 0 auto 22px; }
.apply__done .btn { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.done__actions [hidden] { display: none; }
.done__pdf { border: 1.5px solid var(--navy) !important; }

#pdfStage { position: fixed; top: 0; left: -10000px; }

@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .row, .fs .rows[data-fixed] .row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .apply { padding: 0; }
  .apply__panel { border-radius: 0; min-height: 100%; }
  .apply__head h2 { font-size: .98rem; }
  .apply__brand img { height: 44px; }
  .apply__body { padding: 14px; }
  .grid, .row, .fs .rows[data-fixed] .row { grid-template-columns: 1fr; }
  .f--wide { grid-column: auto; }
  .apply__submit { width: 100%; }
}
