/* ============================================================
   کارت‌لاجیک — استایل صفحه فرود (RTL / فارسی)
   پالت رنگی برگرفته از هویت برند: سرمه‌ای، آبی، سبز اکو، کهربایی
   ============================================================ */

:root {
  --navy:        #12104e;
  --navy-2:      #1b1968;
  --navy-deep:   #0b0930;
  --blue:        #1e73be;
  --blue-bright: #2f8fe0;
  --eco:         #23a455;
  --amber:       #ffb020;
  --amber-soft:  #ffc85a;

  --ink:    #16163f;
  --muted:  #5c6274;
  --paper:  #f4f6fb;
  --paper-2:#eef1f8;
  --line:   #e4e8f2;
  --white:  #ffffff;

  --radius:   18px;
  --radius-s: 12px;
  --shadow:   0 18px 45px -22px rgba(18, 16, 78, .35);
  --shadow-s: 0 8px 22px -14px rgba(18, 16, 78, .30);
  --container: 1200px;

  --display: 'Estedad', 'Vazirmatn', Tahoma, sans-serif;
  --body:    'Vazirmatn', Tahoma, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.35; font-weight: 800; color: var(--navy); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--body); font-weight: 700; font-size: .82rem;
  letter-spacing: .02em; color: var(--blue);
  background: rgba(30,115,190,.09);
  padding: 6px 14px; border-radius: 100px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }

img {
    border-radius: 18px;
}

.section { padding: 92px 0; }
.section-head { max-width: 640px; margin-bottom: 46px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 16px 0 12px; }
.section-head p { color: var(--muted); font-size: 1.02rem; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--blue); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--body); font-weight: 700; font-size: .98rem;
  background: var(--bg); color: var(--fg);
  padding: 14px 26px; border-radius: 100px; border: 0; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: 0 10px 24px -12px rgba(30,115,190,.7);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(30,115,190,.75); }
.btn svg { width: 19px; height: 19px; }
.btn.amber  { --bg: var(--amber); --fg: #2a1e00; box-shadow: 0 12px 26px -12px rgba(255,176,32,.8); }
.btn.ghost  { --bg: transparent; --fg: #fff; box-shadow: none; border: 1.5px solid rgba(255,255,255,.4); }
.btn.ghost:hover { background: rgba(255,255,255,.1); }
.btn.outline{ --bg: transparent; --fg: var(--navy); border: 1.5px solid var(--line); box-shadow: none; }
.btn.outline:hover { background: var(--paper); }

/* ============================================================
   نوار بالای صفحه
   ============================================================ */
.topbar {
  background: var(--navy-deep); color: #c9cbe6;
  font-size: .84rem; font-weight: 500;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-block: 9px; flex-wrap: wrap; }
.topbar-info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-info a, .topbar-info span { display: inline-flex; align-items: center; gap: 7px; color: #c9cbe6; }
.topbar-info a:hover { color: #fff; }
.topbar-info svg { width: 15px; height: 15px; color: var(--blue-bright); }
.topbar-hours { color: #8f92bf; }

/* ============================================================
   هدر / منو
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 74px; }
.brand img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  font-weight: 600; font-size: .96rem; color: var(--ink);
  padding: 9px 13px; border-radius: 10px; position: relative;
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--blue); background: var(--paper); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions .btn { padding: 11px 20px; }

.nav-toggle {
  display: none; background: var(--paper); border: 1px solid var(--line);
  width: 44px; height: 44px; border-radius: 12px; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--navy); }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }

/* ============================================================
   هیرو
   ============================================================ */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(47,143,224,.35), transparent 60%),
    linear-gradient(135deg, var(--navy-2) 0%, var(--navy) 45%, var(--navy-deep) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(700px 400px at 80% 20%, #000, transparent 75%);
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
  padding: 78px 0 70px;
}
.hero-copy .eyebrow { background: rgba(47,143,224,.16); color: #bfe0ff; }
.hero-copy .eyebrow::before { background: var(--blue-bright); }
.hero h1 {
  color: #fff; font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.28;
  margin: 20px 0 18px; font-weight: 800;
}
.hero h1 .accent { color: var(--amber-soft); }
.hero p.lead { color: #c8caea; font-size: 1.1rem; max-width: 30em; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual { position: relative; }
.hero-visual .glow {
  position: absolute; inset: -6% 8% 8% -6%;
  background: radial-gradient(circle at 50% 45%, rgba(47,143,224,.55), transparent 62%);
  filter: blur(20px); z-index: 0;
}
.hero-visual img { position: relative; z-index: 1; width: 100%; filter: drop-shadow(0 30px 45px rgba(0,0,0,.5)); }

/* نوار اعتماد */
.trust {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
}
.trust .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding-block: 20px; }
.trust-item { display: flex; align-items: center; gap: 11px; color: #e7e8ff; font-weight: 600; font-size: .95rem; justify-content: center; }
.trust-item svg { width: 26px; height: 26px; color: var(--amber-soft); flex: none; }

/* ============================================================
   محصولات محبوب
   ============================================================ */
#products { background: var(--paper); }
.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.p-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
}
.p-card::before {
  content: ""; position: absolute; top: 0; inset-inline: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright));
  transform: scaleX(0); transform-origin: right; transition: transform .25s ease;
}
.p-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.p-card:hover::before { transform: scaleX(1); }
.p-thumb {
  height: 210px; background: #f6f8fc; overflow: hidden;
  border-radius: 18px 18px 0 0;
}
.p-thumb img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block; border-radius: inherit;
  transition: transform .4s ease;
}
.p-card:hover .p-thumb img { transform: scale(1.04); }
.p-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.p-body h3 { font-size: 1.12rem; color: var(--navy); margin-bottom: 7px; }
.p-body p { color: var(--muted); font-size: .92rem; line-height: 1.7; margin-bottom: 16px; flex: 1; }
.p-price {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-weight: 700; font-size: .95rem; color: var(--blue);
  padding: 10px 16px; border-radius: 100px; background: rgba(30,115,190,.08);
  transition: background .18s ease, color .18s ease;
}
.p-price svg { width: 17px; height: 17px; }
.p-price:hover { background: var(--blue); color: #fff; }

/* ============================================================
   برندها
   ============================================================ */
#brands { padding: 66px 0; }
.brand-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 44px 56px;
  margin-top: 34px;
}
.brand-row img {
  height: 34px; width: auto; opacity: .55; filter: grayscale(1);
  transition: opacity .2s ease, filter .2s ease, transform .2s ease;
}
.brand-row a:hover img { opacity: 1; filter: none; transform: scale(1.06); }

/* ============================================================
   چرا کارت‌لاجیک (خدمات) — پس‌زمینه سرمه‌ای
   ============================================================ */
#services {
  color: #fff;
  background:
    radial-gradient(900px 400px at 15% 0%, rgba(30,115,190,.28), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
}
#services .section-head h2 { color: #fff; }
#services .section-head p { color: #b9bce4; }
#services .eyebrow { background: rgba(47,143,224,.16); color: #bfe0ff; }
#services .eyebrow::before { background: var(--blue-bright); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.s-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 30px 24px; transition: background .2s ease, transform .2s ease;
}
.s-card:hover { background: rgba(255,255,255,.08); transform: translateY(-4px); }
.s-ico {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--blue), var(--blue-bright)); margin-bottom: 18px;
}
.s-ico svg { width: 27px; height: 27px; color: #fff; }
.s-card h3 { color: #fff; font-size: 1.14rem; margin-bottom: 9px; }
.s-card p { color: #b9bce4; font-size: .92rem; }

/* ============================================================
   بخش سبز (اکو)
   ============================================================ */
#eco { background: linear-gradient(180deg, #f0f8f2, #eaf5ee); }
.eco-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
#eco .eyebrow { background: rgba(35,164,85,.12); color: var(--eco); }
#eco .eyebrow::before { background: var(--eco); }
#eco h2 { color: #14532d; }
.eco-points { display: grid; gap: 16px; margin-top: 26px; }
.eco-point { display: flex; gap: 14px; align-items: flex-start; }
.eco-point .dot { width: 42px; height: 42px; border-radius: 12px; background: rgba(35,164,85,.14); display: grid; place-items: center; flex: none; }
.eco-point .dot svg { width: 22px; height: 22px; color: var(--eco); }
.eco-point h4 { color: #14532d; font-size: 1.05rem; margin-bottom: 2px; }
.eco-point p { color: #3f6b50; font-size: .92rem; }
.eco-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.eco-media img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   مقالات
   ============================================================ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.b-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-s); transition: transform .2s ease, box-shadow .2s ease; }
.b-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.b-thumb { aspect-ratio: 16/9; overflow: hidden; }
.b-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.b-card:hover .b-thumb img { transform: scale(1.05); }
.b-body { padding: 22px 22px 26px; }
.b-date { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--blue); font-weight: 600; margin-bottom: 10px; }
.b-date svg { width: 15px; height: 15px; }
.b-body h3 { font-size: 1.14rem; color: var(--navy); line-height: 1.55; }

/* ============================================================
   درباره ما
   ============================================================ */
.about-wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 52px; align-items: center; }
.about-media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 14px 0 16px; }
.about-copy p { color: var(--muted); margin-bottom: 16px; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 26px 0 30px; }
.stat { border-inline-start: 3px solid var(--blue); padding-inline-start: 14px; }
.stat b { display: block; font-family: var(--display); font-size: 1.8rem; color: var(--navy); line-height: 1.2; }
.stat span { font-size: .86rem; color: var(--muted); }

/* ============================================================
   تماس و مشاوره رایگان (سکشن پایانی / امضای صفحه)
   ============================================================ */
#contact {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(700px 380px at 82% 12%, rgba(255,176,32,.18), transparent 62%),
    radial-gradient(700px 380px at 10% 90%, rgba(47,143,224,.28), transparent 60%),
    linear-gradient(150deg, var(--navy-2), var(--navy-deep));
}
.contact-wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
#contact .eyebrow { background: rgba(255,176,32,.18); color: var(--amber-soft); }
#contact .eyebrow::before { background: var(--amber-soft); }
#contact h2 { color: #fff; font-size: clamp(1.9rem, 3.8vw, 2.8rem); margin: 18px 0 14px; }
#contact p.lead { color: #c8caea; font-size: 1.08rem; max-width: 34em; margin-bottom: 30px; }
.contact-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.call-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px; padding: 34px; text-align: center; backdrop-filter: blur(6px);
}
.call-ring { position: relative; width: 76px; height: 76px; margin: 0 auto 18px; }
.call-ring .core { position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(140deg, var(--amber), var(--amber-soft)); display: grid; place-items: center; }
.call-ring .core svg { width: 34px; height: 34px; color: #2a1e00; }
.call-ring::before, .call-ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--amber-soft); animation: pulse 2.4s ease-out infinite; }
.call-ring::after { animation-delay: 1.2s; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.1); opacity: 0; } }
.call-card .label { color: #b9bce4; font-size: .9rem; margin-bottom: 6px; }
.call-card .number { font-family: var(--display); font-weight: 800; font-size: 1.9rem; color: var(--amber-soft); direction: ltr; unicode-bidi: plaintext; letter-spacing: .02em; }
.call-card .btn { margin-top: 22px; width: 100%; }
.call-meta { margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: grid; gap: 10px; text-align: start; }
.call-meta div { display: flex; align-items: center; gap: 10px; color: #d3d5f0; font-size: .9rem; }
.call-meta svg { width: 17px; height: 17px; color: var(--blue-bright); flex: none; }

/* ============================================================
   فوتر
   ============================================================ */
.footer { background: var(--navy-deep); color: #a9abd6; padding: 66px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand img { height: 40px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .95; }
.footer-about p { font-size: .92rem; color: #9698c7; max-width: 32em; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { font-size: .92rem; color: #a9abd6; transition: color .15s ease; }
.footer ul a:hover { color: #fff; }
.footer-contact div { display: flex; gap: 9px; align-items: flex-start; font-size: .9rem; margin-bottom: 12px; }
.footer-contact svg { width: 16px; height: 16px; color: var(--blue-bright); margin-top: 5px; flex: none; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.06); display: grid; place-items: center; transition: background .18s ease; }
.socials a:hover { background: var(--blue); }
.socials svg { width: 18px; height: 18px; color: #fff; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .84rem; color: #8082ae; }

/* ============================================================
   انیمیشن اسکرول
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   ریسپانسیو
   ============================================================ */
@media (max-width: 1024px) {
  .product-grid, .service-grid { grid-template-columns: repeat(2, 1fr); }
  .trust .container { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-visual { max-width: 460px; margin-inline: auto; }
  .about-wrap, .eco-wrap, .contact-wrap { grid-template-columns: 1fr; gap: 34px; }
  .about-media { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 860px) {
  .nav-links {
    position: fixed; top: 0; bottom: 0; right: 0; left: auto; width: min(84vw, 320px);
    background: #fff; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 88px 20px 30px; box-shadow: -20px 0 50px -20px rgba(0,0,0,.3);
    transform: translateX(100%); transition: transform .3s ease; z-index: 55;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 13px 14px; border-radius: 10px; font-size: 1.02rem; }
  .nav-links a:hover { background: var(--paper); }
  .nav-toggle { display: flex; }
  .nav-actions .btn.desktop-only { display: none; }
  .topbar-hours { display: none; }
}
@media (max-width: 620px) {
  .section { padding: 64px 0; }
  .product-grid, .service-grid, .blog-grid { grid-template-columns: 1fr; }
  .trust .container { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stat b { font-size: 1.4rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-info { gap: 14px; font-size: .78rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
