/* ===========================================================
   مهراندیشان نگاه نو — تم رنگی الهام‌گرفته از EFQM
   پالت: پترول/تیل تیره، تیل، سبز روشن
   =========================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* رنگ‌ها */
  --ink: #0c3b43;          /* پترول تیره - متن و بخش‌های تیره */
  --ink-2: #0a2f36;        /* تیره‌تر */
  --teal: #0e8c84;         /* تیل اصلی */
  --teal-dark: #0a6f68;
  --green: #7ac143;        /* سبز روشن - تاکید */
  --magenta: #e6177e;      /* تاکید ثانویه (کم‌مصرف) */

  --bg: #ffffff;
  --bg-soft: #eef4f4;      /* پس‌زمینه ملایم بخش‌ها */
  --surface: #ffffff;
  --text: #1b3a40;
  --muted: #5b6f72;
  --line: rgba(12, 59, 67, 0.1);
  --shadow: 0 18px 45px -25px rgba(12, 59, 67, 0.45);
  --shadow-sm: 0 8px 24px -16px rgba(12, 59, 67, 0.4);

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1140px;
  --page-gutter: 1.25rem;

  --font-body: "Vazirmatn", Tahoma, sans-serif;
  --font-display: "SG Fanoos", "Vazirmatn", Tahoma, sans-serif;

  --ease-out-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-back: cubic-bezier(0.34, 1.25, 0.64, 1);
  --reveal-duration: 0.9s;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.85;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}

main {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.4;
  color: var(--ink);
  font-weight: 700;
}

a { color: inherit; text-decoration: none; }
img {
  max-width: 100%;
  display: block;
}
.brand-logo {
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-right: max(var(--page-gutter), env(safe-area-inset-right, 0px));
  padding-left: max(var(--page-gutter), env(safe-area-inset-left, 0px));
}

/* ====== دکمه‌ها ====== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  box-shadow: 0 12px 26px -14px rgba(14, 140, 132, 0.9);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-green {
  background: var(--green);
  color: var(--ink-2);
  box-shadow: 0 12px 26px -14px rgba(122, 193, 67, 0.9);
}

/* ====== هدر / ناوبری ====== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(12, 59, 67, 0.08);
  box-shadow: 0 10px 32px -18px rgba(12, 59, 67, 0.28);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 72px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}
.nav-brand img,
.nav-brand .brand-logo {
  width: 46px;
  max-height: 46px;
}
.nav-brand .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.72rem, 1.4vw, 1rem);
  color: var(--ink);
  line-height: 1.3;
  min-width: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.nav-links a {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
  position: relative;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -6px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform 0.22s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.is-active {
  color: var(--ink);
  font-weight: 600;
}
.nav-links a.is-active::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 44px;
  height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: 0.25s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ====== بخش عمومی ====== */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  overflow-x: clip;
}
.section-soft { background: var(--bg-soft); }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(2rem, 5vw, 3rem);
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--teal);
  background: rgba(14, 140, 132, 0.1);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.section-head h2 { font-size: clamp(1.35rem, 3.8vw, 2rem); margin-bottom: 0.6rem; font-weight: 700; }
.section-head p { color: var(--muted); font-size: 1rem; }

/* ====== هیرو ====== */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 70% 70% at 85% -10%, rgba(122, 193, 67, 0.16), transparent 60%),
    radial-gradient(ellipse 80% 80% at 0% 110%, rgba(14, 140, 132, 0.14), transparent 55%),
    var(--bg);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal-dark);
  margin-bottom: 1.1rem;
}
.hero-eyebrow::before {
  content: "";
  width: 26px; height: 2px; background: var(--green);
}
.hero h1 {
  font-size: clamp(1.9rem, 5.5vw, 3rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}
.hero .lead {
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  font-weight: 600;
  color: var(--teal-dark);
  margin-bottom: 0.6rem;
}
.hero .sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 1.8rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2.2rem; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
}
.hero-stats .stat {
  min-width: 5.5rem;
}
.hero-stats .stat .num {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.6vw, 1.95rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--teal);
  line-height: 1.15;
}
.hero-stats .stat .label {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.35rem;
  line-height: 1.6;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: center;
  justify-self: center;
  width: 100%;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  animation: heroVisualEnter 1.1s var(--ease-out-back) 0.15s forwards;
}
.hero-logo-wrap {
  position: relative;
  flex: 0 0 auto;
  width: min(100%, clamp(300px, 42vw, 480px));
  max-width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background:
    conic-gradient(from 180deg, rgba(14, 140, 132, 0.12), rgba(122, 193, 67, 0.12), rgba(14, 140, 132, 0.12));
  margin-inline: auto;
  box-shadow: 0 24px 60px -28px rgba(14, 140, 132, 0.35);
}
.hero-logo-wrap::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow);
}
.hero-logo-wrap .brand-logo {
  position: relative;
  z-index: 1;
  width: 56%;
  max-width: 250px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 10px 18px rgba(12, 59, 67, 0.15));
}

/* ====== هویت/فلسفه ====== */
.identity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.identity-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.identity-card .icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(14, 140, 132, 0.1);
  color: var(--teal);
  margin-bottom: 1rem;
}
.identity-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.6rem; }
.identity-card p { color: var(--muted); }

/* ====== چشم‌انداز و ماموریت ====== */
.vm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.vm-card {
  position: relative;
  border-radius: var(--radius);
  padding: 2.2rem;
  color: #eaf7f5;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.vm-card.vision { background: linear-gradient(150deg, var(--ink), var(--ink-2)); }
.vm-card.mission { background: linear-gradient(150deg, var(--teal-dark), var(--teal)); }
.vm-card .tag {
  font-family: var(--font-body);
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--green);
  margin-bottom: 0.6rem;
  display: inline-block;
}
.vm-card.mission .tag { color: #d6ffd0; }
.vm-card h3 { color: #fff; font-size: 1.25rem; font-weight: 700; margin-bottom: 0.8rem; }
.vm-card p { color: rgba(255,255,255,0.9); font-size: 0.97rem; }
.vm-card .horizon {
  margin-top: 1.2rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 700; color: var(--green);
}
.vm-card.mission .horizon { color: #eaffe4; }

/* ====== ارزش‌ها ====== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.value-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: var(--radius-sm);
  padding: 1.8rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.value-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 1.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(14, 140, 132, 0.14), rgba(122, 193, 67, 0.22));
  color: var(--teal-dark);
  position: relative;
  box-shadow: 0 10px 22px -14px rgba(14, 140, 132, 0.55);
}
.value-icon::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: #fff;
}
.value-icon svg {
  position: relative;
  z-index: 1;
}
.value-card h3 { font-size: 1rem; font-weight: 700; margin: 0.5rem 0; }
.value-card p { color: var(--muted); font-size: 0.92rem; }

/* ====== خدمات ====== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(14, 140, 132, 0.4);
}
.service-card .icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(14, 140, 132, 0.12), rgba(122, 193, 67, 0.18));
  color: var(--teal-dark);
  margin-bottom: 1.1rem;
}
.service-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.service-card p { color: var(--muted); font-size: 0.93rem; }

/* ====== نقطه تمایز ====== */
.distinction {
  background:
    radial-gradient(circle at 100% 0%, rgba(122,193,67,0.16), transparent 45%),
    linear-gradient(160deg, var(--ink), var(--ink-2));
  color: #eaf7f5;
  border-radius: clamp(20px, 4vw, 32px);
  padding-block: clamp(2.5rem, 6vw, 4rem);
  padding-inline: clamp(1.5rem, 4vw, 2.5rem);
  position: relative;
  overflow: hidden;
}
.distinction .eyebrow { background: rgba(122,193,67,0.18); color: var(--green); }
.distinction h2 { color: #fff; font-size: clamp(1.35rem, 3.8vw, 2rem); font-weight: 700; margin-bottom: 1rem; }
.distinction p { color: rgba(255,255,255,0.88); max-width: 48rem; }
.distinction .pillars {
  display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem;
}
.distinction .pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 0.6rem 1.1rem; border-radius: 999px;
  font-size: 0.92rem; font-weight: 600;
}
.distinction .pill svg { color: var(--green); }

/* ====== پیام‌های کلیدی ====== */
.messages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.message-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
}
.message-card .quote {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 0.5;
  color: var(--green);
  display: block;
  margin-bottom: 0.8rem;
}
.message-card p { font-size: 1.02rem; color: var(--ink); font-weight: 500; }

/* ====== تماس ====== */
.contact {
  background: linear-gradient(150deg, var(--teal-dark), var(--teal));
  border-radius: clamp(20px, 4vw, 32px);
  padding-block: clamp(2.5rem, 6vw, 4rem);
  padding-inline: clamp(1.5rem, 4vw, 2.5rem);
  color: #fff;
  text-align: center;
}
.contact h2 { color: #fff; font-size: clamp(1.4rem, 4.2vw, 2.1rem); font-weight: 700; margin-bottom: 0.8rem; }
.contact p { color: rgba(255,255,255,0.92); max-width: 36rem; margin: 0 auto 1.8rem; }
.contact-methods {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
}
.contact-chip {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.9rem 1.5rem; border-radius: 999px;
  font-weight: 700; font-size: 1.05rem;
  transition: background 0.2s ease, transform 0.18s ease;
}
.contact-chip:hover { background: rgba(255,255,255,0.24); transform: translateY(-2px); }
.contact-chip .lbl { font-weight: 500; font-size: 0.85rem; opacity: 0.85; }
.contact-chip[dir="ltr"] { direction: ltr; }

/* ====== فوتر ====== */
.site-footer {
  background: var(--ink-2);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 0 1.8rem;
}
.footer-top {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  align-items: center; justify-content: space-between;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.footer-brand img,
.footer-brand .brand-logo {
  width: 44px;
  max-height: 44px;
}
.footer-brand .name {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: clamp(0.9rem, 2.2vw, 1rem);
  line-height: 1.35;
  min-width: 0;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1.3rem; }
.footer-links a { font-size: 0.9rem; color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-links a:hover { color: var(--green); }
.footer-bottom {
  padding-top: 1.4rem;
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.footer-bottom a { color: rgba(255,255,255,0.7); direction: ltr; }

/* ====== انیمیشن ظاهر شدن ====== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(8px);
  transition:
    opacity var(--reveal-duration) var(--ease-out-smooth),
    transform var(--reveal-duration) var(--ease-out-smooth),
    filter calc(var(--reveal-duration) * 0.85) var(--ease-out-smooth);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.reveal--scale {
  transform: translateY(28px) scale(0.94);
}
.reveal--scale.in {
  transform: translateY(0) scale(1);
}

.reveal--left {
  transform: translateX(40px) translateY(16px) scale(0.97);
}
.reveal--right {
  transform: translateX(-40px) translateY(16px) scale(0.97);
}
.reveal--left.in,
.reveal--right.in {
  transform: translateX(0) translateY(0) scale(1);
}

/* ورود اولیهٔ هیرو */
.hero-text > * {
  opacity: 0;
  transform: translateY(24px);
  animation: heroEnter 0.95s var(--ease-out-smooth) forwards;
}
.hero-eyebrow { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.12s; }
.hero .lead { animation-delay: 0.2s; }
.hero .sub { animation-delay: 0.28s; }
.hero-actions { animation-delay: 0.36s; }
.hero-stats { animation-delay: 0.44s; }

@keyframes heroEnter {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroVisualEnter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ====== ریسپانسیو ====== */

/* جلوگیری از سرریز افقی در گریدها */
.hero-inner > *,
.identity-grid > *,
.vm-grid > *,
.values-grid > *,
.services-grid > *,
.messages-grid > *,
.section-head,
.distinction,
.contact {
  min-width: 0;
}

/* تبلت و لپ‌تاپ کوچک */
@media (max-width: 1024px) {
  :root {
    --page-gutter: 1.25rem;
  }

  .section {
    padding: clamp(2.75rem, 5vw, 4rem) 0;
  }

  .section-head {
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  }

  /* انیمیشن بدون جابه‌جایی افقی و blur (جلوگیری از overflow در RTL) */
  .reveal,
  .reveal--left,
  .reveal--right,
  .reveal--scale {
    filter: none;
    transform: translateY(20px);
  }
  .reveal--scale {
    transform: translateY(16px) scale(0.98);
  }
  .reveal.in,
  .reveal--left.in,
  .reveal--right.in,
  .reveal--scale.in {
    transform: translateY(0) scale(1);
  }

  /* هدر فشرده با منوی همبرگری */
  .site-header .container.nav {
    position: static;
  }
  .nav {
    gap: 0.75rem;
    height: 68px;
  }
  .nav-links,
  .nav-cta .btn-ghost {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav-brand .brand-logo {
    width: 40px;
    max-height: 40px;
  }
  .nav-brand .name {
    font-size: clamp(0.75rem, 1.6vw, 0.9rem);
    max-width: none;
  }
  .nav-cta .btn-primary {
    padding: 0.58rem 0.95rem;
    font-size: 0.82rem;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    background: #fff;
    padding: 1.25rem max(var(--page-gutter), env(safe-area-inset-right, 0px)) 1.25rem max(var(--page-gutter), env(safe-area-inset-left, 0px));
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    z-index: 99;
    box-sizing: border-box;
  }

  /* هیرو */
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding: clamp(2.25rem, 4.5vw, 3.5rem) 0;
  }
  .hero-eyebrow { justify-content: center; }
  .hero-text {
    max-width: 38rem;
    margin-inline: auto;
  }
  .hero .sub { margin-inline: auto; }
  .hero-actions,
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-logo-wrap {
    width: min(100%, clamp(260px, 52vw, 360px));
  }
  .hero-logo-wrap .brand-logo {
    width: 56%;
    max-width: 210px;
  }

  /* گریدها */
  .identity-grid,
  .vm-grid {
    gap: 1.25rem;
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .values-grid .value-card:last-child {
    grid-column: 1 / -1;
    max-width: 22rem;
    margin-inline: auto;
    width: 100%;
  }
  .services-grid,
  .messages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .messages-grid .message-card:last-child {
    grid-column: 1 / -1;
    max-width: 28rem;
    margin-inline: auto;
    width: 100%;
  }

  .identity-card,
  .vm-card,
  .value-card,
  .service-card,
  .message-card {
    padding: 1.55rem;
  }

  .contact,
  .distinction {
    padding-block: clamp(2rem, 4vw, 2.75rem);
    padding-inline: 1.25rem;
  }

  .footer-top {
    gap: 1.25rem;
  }

  html {
    scroll-padding-top: 80px;
  }
}

/* تبلت افقی — هیرو دو ستونه */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    text-align: right;
    align-items: center;
  }
  .hero-visual { order: 0; }
  .hero-eyebrow { justify-content: flex-start; }
  .hero-text {
    margin-inline: 0;
    max-width: none;
  }
  .hero .sub { margin-inline: 0; }
  .hero-actions,
  .hero-stats { justify-content: flex-start; }
}

@media (max-width: 768px) {
  :root {
    --page-gutter: 1rem;
  }

  .nav {
    gap: 0.5rem;
    height: 64px;
  }
  .nav-brand {
    gap: 0.4rem;
    flex: 1;
    min-width: 0;
  }
  .nav-brand .brand-logo {
    width: 34px;
    max-height: 34px;
  }
  .nav-brand .name {
    font-size: clamp(0.58rem, 2.6vw, 0.7rem);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .nav-cta .btn-primary {
    padding: 0.5rem 0.75rem;
    font-size: clamp(0.68rem, 2.4vw, 0.78rem);
  }
  .nav-links.open {
    top: 64px;
  }
  .hero-logo-wrap {
    width: min(100%, clamp(220px, 68vw, 300px));
  }
  .hero-logo-wrap .brand-logo {
    width: 58%;
    max-width: 180px;
  }
  .contact,
  .distinction {
    padding-inline: 1rem;
  }
  .hero-stats {
    gap: 1.2rem 1.6rem;
    justify-content: center;
  }
  .hero-stats .stat {
    min-width: 4.8rem;
  }
  .footer-brand .brand-logo {
    width: 38px;
    max-height: 38px;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .identity-grid,
  .vm-grid,
  .values-grid,
  .services-grid,
  .messages-grid {
    grid-template-columns: 1fr;
  }
  .values-grid .value-card:last-child,
  .messages-grid .message-card:last-child {
    grid-column: auto;
    max-width: none;
    margin-inline: 0;
  }

  html {
    scroll-padding-top: 74px;
  }
}

@media (max-width: 400px) {
  .nav-brand .name {
    font-size: 0.56rem;
    max-width: 7.2rem;
  }
  .nav-cta .btn-primary {
    padding: 0.45rem 0.6rem;
    font-size: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
  .hero-text > *,
  .hero-visual {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .btn:hover, .service-card:hover, .value-card:hover { transform: none; }
}
