/* ==========================================================
   آسان تیکن | asantcan.com
   استایل مشترک همه‌ی صفحات
   رنگ‌ها و فونت‌ها از بخش :root تغییر می‌کنند
   ========================================================== */

:root {
  --navy: #071B3A;
  --cobalt: #0A4BE0;
  --sky: #2FA8FF;
  --orange: #FF6B00;
  --orange-dark: #C24A00;
  --yellow: #FFC21A;
  --ink: #0B1630;
  --steel: #46566B;
  --paper: #F4F8FF;
  --mist: #E4EDFF;
  --line: #CBD8F0;
  --font: "Vazirmatn", "Vazir", Tahoma, "Segoe UI", sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.9;
  background: var(--paper);
  color: var(--ink);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.4; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* ---------- سربرگ ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: #fff; box-shadow: 0 2px 14px rgba(7, 27, 58, .1); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 32px; height: auto; }
.brand-word { width: 190px; height: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.nav a { padding: 4px 16px; border-radius: 999px; font-size: 16px; font-weight: 700; color: var(--steel); text-decoration: none; transition: background-color .2s, color .2s; }
.nav a:hover { background: var(--mist); color: var(--cobalt); }
.nav a[aria-current="page"] { background: var(--cobalt); color: #fff; }
.nav .nav-cta { margin-inline-start: 8px; background: var(--orange); color: var(--navy); }
.nav .nav-cta:hover { background: var(--navy); color: #fff; }

/* ---------- دکمه‌ها ---------- */
.btn {
  display: inline-block; padding: 11px 28px; border: 2px solid transparent; border-radius: 12px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--orange); color: var(--navy); }
.btn-primary:hover { background: #fff; color: var(--navy); }
.btn-light { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-light:hover { background: #fff; color: var(--navy); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--cobalt); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- صفحه‌ی اول: بخش بالا ---------- */
.hero {
  color: #fff; overflow: hidden;
  background:
    radial-gradient(700px 420px at 12% 18%, rgba(47, 168, 255, .45), transparent 65%),
    radial-gradient(520px 360px at 85% 90%, rgba(255, 107, 0, .35), transparent 70%),
    linear-gradient(135deg, var(--navy), #0A2F8F 55%, var(--cobalt));
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 24px; padding-block: 56px; }
.hero h1 { font-size: clamp(36px, 5.6vw, 66px); font-weight: 900; }
.hero .lead { max-width: 30em; font-size: 19px; color: #D5E3FF; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 18px; border-radius: 999px; font-weight: 700; color: var(--navy); text-decoration: none; transition: transform .2s; }
.chip b { font-size: 20px; }
.chip:hover { transform: translateY(-2px); }
.chip-blue { background: var(--sky); }
.chip-orange { background: var(--orange); }
.chip-yellow { background: var(--yellow); }

.hero-art { max-width: 640px; margin-inline: auto; cursor: pointer; }
.hero-art svg { width: 100%; height: auto; overflow: visible; }
.hero-art .tab { transform-box: fill-box; transform-origin: 50% 25%; transition: transform .55s cubic-bezier(.3, .7, .2, 1); }
.hero-art .opening { opacity: 0; transition: opacity .4s; }
.hero-art:hover .tab, .hero-art:focus-visible .tab { transform: rotate(-30deg); }
.hero-art:hover .opening, .hero-art:focus-visible .opening { opacity: 1; }
.hero-art-hint { margin: 4px 0 0; text-align: center; font-size: 14px; color: #BCD0F5; }
@media (min-width: 900px) { .hero-art { margin-inline-end: -40px; } }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; padding-block: 36px; } }

/* ---------- بخش‌های عمومی ---------- */
.section { padding-block: 76px; }
.section-white { background: #fff; }
.section h2 { font-size: clamp(27px, 3.5vw, 40px); font-weight: 900; color: var(--navy); }
.section-head { max-width: 40em; margin-bottom: 40px; }
.section-head p { color: var(--steel); }

/* کارت محصولات */
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.product { display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; background: #fff; box-shadow: 0 14px 36px rgba(10, 43, 120, .14); }
.product-visual { display: grid; place-items: center; padding: 30px 30px 22px; background: var(--g); }
.product-visual img { width: min(72%, 260px); height: auto; }
.g-blue { --g: linear-gradient(145deg, var(--sky), var(--cobalt)); }
.g-orange { --g: linear-gradient(145deg, #FFB347, var(--orange)); }
.g-yellow { --g: linear-gradient(145deg, #FFE066, #FF9F1A); }
.product-body { display: flex; flex: 1; flex-direction: column; padding: 24px 26px 28px; }
.product h3 { margin: 0 0 4px; font-size: 24px; font-weight: 900; color: var(--navy); }
.product p { color: var(--steel); }
.spec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 12px; margin: 4px 0 22px; padding-top: 14px; border-top: 1px solid var(--line); }
.spec dt { font-size: 13px; color: var(--steel); }
.spec dd { margin: 0; font-weight: 700; }
.product .btn { margin-top: auto; text-align: center; }
@media (max-width: 900px) { .products { grid-template-columns: 1fr; } }

/* ویژگی‌ها */
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.icon { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 16px; border-radius: 18px; }
.icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.icon-blue { background: var(--cobalt); color: #fff; }
.icon-orange { background: var(--orange); color: var(--navy); }
.icon-yellow { background: var(--yellow); color: var(--navy); }
.point h3 { font-size: 21px; font-weight: 900; color: var(--navy); }
.point p { color: var(--steel); }
@media (max-width: 820px) { .points { grid-template-columns: 1fr; gap: 28px; } }

/* نوار دعوت به تماس */
.cta { padding-block: 56px; background: linear-gradient(100deg, var(--orange), var(--yellow)); color: var(--navy); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta h2 { margin: 0; font-size: clamp(23px, 3vw, 34px); font-weight: 900; }

/* ---------- سربرگ صفحه‌های داخلی ---------- */
.page-head {
  position: relative; overflow: hidden; padding-block: 60px; color: #fff;
  background: radial-gradient(600px 300px at 10% 0, rgba(47, 168, 255, .4), transparent 65%), linear-gradient(135deg, var(--navy), var(--cobalt));
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { margin: 0; font-size: clamp(32px, 4.8vw, 54px); font-weight: 900; }
.page-head p { max-width: 36em; margin: 12px 0 0; font-size: 18px; color: #D5E3FF; }
.head-art { position: absolute; inset-inline-end: 5%; top: 50%; width: 200px; transform: translateY(-50%); }
@media (max-width: 820px) { .head-art { display: none; } }

/* ---------- درباره ما ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.prose { max-width: 44em; }
.about-visual { overflow: hidden; border-radius: 22px; box-shadow: 0 14px 36px rgba(10, 43, 120, .2); }
.about-visual img { width: 100%; height: auto; }
.facts { margin: 20px 0 0; border-top: 3px solid var(--orange); }
.facts div { padding-block: 12px; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 14px; color: var(--steel); }
.facts dd { margin: 0; font-size: 19px; font-weight: 700; color: var(--navy); }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; align-items: start; padding-block: 18px; border-bottom: 1px solid var(--line); counter-increment: step; }
.steps li::before {
  content: counter(step, persian); display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  background: var(--cobalt); color: #fff; font-size: 22px; font-weight: 900;
}
.steps li:nth-child(2n)::before { background: var(--orange); color: var(--navy); }
.steps li:nth-child(3n)::before { background: var(--yellow); color: var(--navy); }
.steps strong { display: block; font-size: 19px; color: var(--navy); }
.steps span { color: var(--steel); }

/* ---------- گالری ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 14px; }
.shot { position: relative; margin: 0; overflow: hidden; border-radius: 16px; background: var(--mist); box-shadow: 0 6px 18px rgba(10, 43, 120, .12); }
.shot.wide { grid-column: span 2; }
.shot.tall { grid-row: span 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.shot:hover img { transform: scale(1.04); }
.shot figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 18px 16px 10px; font-size: 14px; font-weight: 700; color: #fff; background: linear-gradient(transparent, rgba(7, 27, 58, .85)); }
@media (max-width: 520px) { .shot.wide { grid-column: span 1; } }

/* ---------- تماس با ما ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.info { margin: 0; border-top: 3px solid var(--orange); }
.info div { padding-block: 14px; border-bottom: 1px solid var(--line); }
.info dt { font-size: 14px; color: var(--steel); }
.info dd { margin: 0; font-size: 18px; font-weight: 700; color: var(--navy); }
.form-box { padding: 32px; border-radius: 22px; background: #fff; box-shadow: 0 14px 36px rgba(10, 43, 120, .14); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } .form-box { padding: 22px; } }

.form label { display: block; margin: 16px 0 6px; font-weight: 700; color: var(--navy); }
.form label:first-child { margin-top: 0; }
.form input, .form select, .form textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; background: var(--paper); color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--cobalt); outline: none; box-shadow: 0 0 0 3px rgba(10, 75, 224, .2); }
.form textarea { min-height: 150px; resize: vertical; }
.form .btn { margin-top: 22px; }

/* ---------- پاورقی ---------- */
.site-footer { background: var(--navy); color: #AFC2E6; padding-block: 44px 28px; font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; }
.foot-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.foot-brand img:first-child { width: 30px; height: auto; }
.foot-brand img:last-child { width: 200px; height: auto; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.copyright { width: 100%; margin: 8px 0 0; padding-top: 16px; border-top: 1px solid #1c3463; font-size: 13px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
