/* ── Inner pages ─────────────────────────── */
.page-hero {
  background: var(--navy);
  padding: calc(var(--nav-h) + 56px) 0 56px;
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
}
.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.page-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(26,35,51,.88) 0%, rgba(26,35,51,.55) 55%, rgba(26,35,51,.35) 100%);
}
.page-hero .wrap { position: relative; z-index: 1; width: 100%; }
.page-hero::after {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 4px; height: 100%;
  background: var(--orange);
  z-index: 2;
}
.page-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.page-hero__text {
  color: rgba(255,255,255,.75);
  max-width: 560px;
  line-height: 1.85;
}
.page-content { padding-block: 72px; }
.page-content--soft {
  background: linear-gradient(180deg, var(--gray-100) 0%, var(--bg) 100%);
}
[data-theme="dark"] .page-content--soft {
  background: linear-gradient(180deg, var(--navy-mid) 0%, var(--bg) 100%);
}

/* ── Company profile ── */
.company-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}
.company-nav {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-sm);
}
.company-nav a {
  display: block;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s;
  border-right: 2px solid transparent;
}
.company-nav a:hover {
  background: var(--orange-mute);
  color: var(--navy);
}
.company-nav a.is-active {
  background: var(--orange-mute);
  color: var(--orange);
  border-right-color: var(--orange);
  font-weight: 700;
}
[data-theme="dark"] .company-nav a:hover,
[data-theme="dark"] .company-nav a.is-active {
  color: var(--copper);
}
.company-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 32px);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.company-shell > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.company-panel .team-preview__inner { box-shadow: none; border: none; padding: 0; }
.company-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.company-panel__head h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}
.company-panel__head span {
  font-size: .75rem;
  color: var(--text-muted);
  background: var(--gray-100);
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 600;
}
.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.fact-card {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  transition: border-color .2s, box-shadow .2s;
}
.fact-card:hover {
  border-color: rgba(200,73,14,.15);
  box-shadow: var(--shadow-sm);
}
.fact-card__label {
  font-size: .76rem;
  color: var(--text-muted);
  font-weight: 600;
}
.fact-card__value {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.5;
  word-break: break-word;
}
[data-theme="dark"] .fact-card {
  background: rgba(255,255,255,.03);
}
[data-theme="dark"] .company-nav {
  background: var(--surface);
}
[data-theme="dark"] .signatory-box,
[data-theme="dark"] .notice-card {
  background: rgba(255,255,255,.03);
}

.purpose-box {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-right: 3px solid var(--orange);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}
.purpose-box__label {
  font-size: .78rem;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: .04em;
  margin-bottom: 10px;
}
.purpose-box__text {
  margin: 0;
  font-size: .95rem;
  font-weight: 600;
  color: var(--gray-700);
  line-height: 2;
}
[data-theme="dark"] .purpose-box {
  background: rgba(255,255,255,.03);
}
[data-theme="dark"] .purpose-box__text {
  color: var(--text-muted);
}
.about-story {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 2.05;
  white-space: pre-line;
}
.honor-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--orange-mute);
  border: 1px solid rgba(200,73,14,.15);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}
.honor-box__badge {
  flex-shrink: 0;
  font-size: .72rem;
  font-weight: 800;
  color: #fff;
  background: var(--orange);
  padding: 5px 12px;
  border-radius: 999px;
  line-height: 1.4;
}
.honor-box__text {
  margin: 0;
  font-size: .92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.9;
}
.about-services__title {
  font-size: .95rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 12px;
}
.about-services__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.about-services__list li {
  position: relative;
  padding: 12px 16px 12px 14px;
  padding-right: 28px;
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray-700);
  line-height: 1.75;
}
.about-services__list li::before {
  content: '';
  position: absolute;
  right: 12px;
  top: 1.1em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}
[data-theme="dark"] .about-services__list li {
  background: rgba(255,255,255,.03);
  color: var(--text-muted);
}
.person-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.person-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  background: var(--surface);
  transition: box-shadow .25s, border-color .25s;
}
.person-card:hover { box-shadow: var(--shadow); border-color: rgba(200,73,14,.15); }
.person-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--orange-mute);
  color: var(--orange);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.person-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.person-card__role {
  font-size: .78rem;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 2px;
}
.person-card__name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
}
.board-table-wrap { overflow-x: auto; }
.board-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.board-table th,
.board-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #eef2f7;
  text-align: right;
}
.board-table th {
  background: #f8fafc;
  color: #64748b;
  font-weight: 700;
  font-size: .8rem;
}
.board-table td { color: #0f172a; font-weight: 600; }
.signatory-box {
  background: var(--gray-50);
  border: 1px dashed var(--border);
  border-right: 3px solid var(--orange);
  border-radius: var(--radius);
  padding: 20px;
  line-height: 2;
  color: var(--gray-700);
  font-size: .92rem;
}
.notice-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 12px;
  background: var(--gray-50);
  transition: border-color .2s;
}
.notice-card:hover { border-color: rgba(200,73,14,.2); }
.notice-card__badge {
  display: inline-block;
  background: var(--orange-mute);
  color: var(--orange);
  font-size: .72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.notice-card__title {
  font-size: .98rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}
.notice-card__text {
  font-size: .88rem;
  color: #475569;
  line-height: 1.95;
}
@media (max-width: 980px) {
  .company-shell { grid-template-columns: 1fr; }
  .company-nav {
    position: static;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 8px;
  }
  .company-nav a { white-space: nowrap; }
  .fact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .fact-grid,
  .person-grid { grid-template-columns: 1fr; }
}

.page-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .page-grid-2 { grid-template-columns: 1fr; } }
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, border-color .25s;
}
.info-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(200,73,14,.12);
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
  width: 100%;
  max-width: 100%;
}
.contact-main {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 16px;
  align-items: stretch;
  min-width: 0;
  max-width: 100%;
}
.contact-map {
  display: flex;
  flex-direction: column;
  padding: 20px;
  min-height: 100%;
}
.contact-map .map-frame { flex: 1 1 auto; }
.map-frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--border);
  background: var(--gray-100, #f1f5f9);
  aspect-ratio: 1 / 1;
  min-height: 220px;
  max-height: 320px;
  z-index: 1;
  touch-action: pan-y;
}
.map-frame .leaflet-container {
  width: 100%;
  height: 100%;
  max-width: 100%;
  font-family: inherit;
  overflow: hidden !important;
}
@media (max-width: 1100px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .contact-main { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
}
@media (max-width: 700px) {
  .contact-main { grid-template-columns: minmax(0, 1fr); }
  .map-frame { aspect-ratio: 16 / 10; min-height: 200px; max-height: 260px; }
}
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 800px) { .project-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .project-grid { grid-template-columns: 1fr; } }
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.project-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.project-card__img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
  display: block;
}
.project-card__client {
  font-size: .72rem; font-weight: 700; color: var(--orange); margin-bottom: 6px;
}
.project-card__title { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; }
.project-card__desc { font-size: .85rem; color: var(--text-muted); line-height: 1.75; }
.project-card__emoji {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.3);
  font-size: 2.5rem;
}
.project-card__body { padding: 20px; }
.blog-list { display: flex; flex-direction: column; gap: 20px; }
.blog-row {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 20px; align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color .2s;
}
.blog-row:hover { border-color: rgba(200,73,14,.3); }
@media (max-width: 600px) { .blog-row { grid-template-columns: 1fr; } }
.blog-row__date { font-size: .8rem; color: var(--orange); font-weight: 700; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; }

/* ── Logo ────────────────────────────────── */
.navbar__logo-img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; }
.footer-logo { width: 40px; height: 40px; border-radius: 8px; }

/* ── Team / Managers ─────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: box-shadow .25s, transform .25s;
}
.team-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.team-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 760px) {
  .team-card--featured { grid-template-columns: 1fr; text-align: center; }
  .team-card--featured .btn { display: inline-flex; }
}

.team-card__photo {
  width: 100%;
  display: block;
  border-radius: var(--radius-lg);
  border: 3px solid var(--orange-mute);
  box-shadow: var(--shadow);
  aspect-ratio: auto;
  max-height: 360px;
  object-fit: contain;
  object-position: center;
  background: var(--gray-100);
}
.team-card__body { padding: 0; }
.team-card__role {
  font-size: .75rem; font-weight: 700; letter-spacing: .04em;
  color: var(--orange); margin-bottom: 8px;
}
.team-card__name { font-size: 1.25rem; font-weight: 800; margin-bottom: 10px; }
.team-card__bio { font-size: .9rem; color: var(--text-muted); line-height: 1.85; }

.team-preview {
  background: var(--bg);
  padding-block: var(--section-y);
}
.team-preview__stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.team-others-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow);
}
.team-others-card__head {
  font-size: .85rem;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  letter-spacing: .02em;
}
.team-others-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.team-other {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color .2s, box-shadow .2s;
}
.team-other:hover {
  border-color: rgba(200,73,14,.18);
  box-shadow: var(--shadow-sm);
}
.team-other__photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--orange-mute);
  background: var(--gray-100);
}
.team-other__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--orange-mute);
  color: var(--orange);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 800;
  flex-shrink: 0;
}
.team-other__role {
  font-size: .75rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 4px;
}
.team-other__name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 6px;
  line-height: 1.35;
}
.team-other__bio {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}
@media (max-width: 900px) {
  .team-others-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .team-others-grid { grid-template-columns: 1fr; }
}
.team-preview__inner {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow);
  transition: box-shadow .3s;
}
.team-preview__inner:hover { box-shadow: var(--shadow-lg); }
.team-preview__photo {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 3px solid var(--orange-mute);
  box-shadow: var(--shadow);
  aspect-ratio: auto;
  max-height: 380px;
  object-fit: contain;
  object-position: center;
  background: var(--gray-100);
}
.ceo-message {
  margin: 8px 0 0;
  padding: 20px 22px;
  background: var(--gray-50);
  border-right: 3px solid var(--orange);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.ceo-message__title {
  font-size: .95rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 12px;
}
.ceo-message__body {
  font-size: .92rem;
  line-height: 2;
  color: var(--text-muted);
  white-space: pre-line;
  margin: 0 0 16px;
}
.ceo-message__sign {
  font-size: .9rem;
  color: var(--text);
  margin: 0;
  line-height: 1.8;
}
.ceo-message__sign strong {
  font-weight: 800;
  color: var(--text);
}

@media (max-width: 700px) {
  .team-preview__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .team-preview__photo {
    max-width: 280px;
    margin-inline: auto;
  }
  .ceo-message {
    text-align: right;
  }
}

/* ── گالری تصاویر شرکت ── */
.gallery-section { margin-top: 48px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 20px;
}
.gallery-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.gallery-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.gallery-item__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  object-position: center;
  display: block;
  background: var(--gray-100);
}
@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 14px; }
  .gallery-item__img {
    aspect-ratio: auto;
    max-height: none;
    min-height: 200px;
    height: auto;
    object-fit: contain;
  }
}
.gallery-item__body { padding: 14px 16px; }
.gallery-item__section {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  color: var(--orange); margin-bottom: 6px;
}
.gallery-item__title { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.gallery-item__caption { font-size: .82rem; color: var(--text-muted); line-height: 1.7; }
.gallery-filters {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px;
}
.gallery-filter {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); font-size: .85rem; font-weight: 600; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.gallery-filter.active, .gallery-filter:hover {
  background: var(--orange); color: #fff; border-color: var(--orange);
}

/* ── Timeline ── */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  max-width: 100%;
  border: 0;
}
.timeline::before {
  content: '';
  position: absolute;
  inset-inline-start: 13px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--orange-mute);
  border-radius: 2px;
  pointer-events: none;
}
.timeline__item {
  position: relative;
  padding: 0 0 28px;
  padding-inline-start: 36px;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: '';
  position: absolute;
  inset-inline-start: 8px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-mute);
  box-sizing: border-box;
  z-index: 1;
}
@media (max-width: 560px) {
  .timeline::before { inset-inline-start: 11px; }
  .timeline__item { padding-inline-start: 32px; }
  .timeline__item::before { width: 10px; height: 10px; inset-inline-start: 7px; }
}
.timeline__year {
  font-size: .85rem; font-weight: 800; color: var(--orange);
  margin-bottom: 6px;
}
.timeline__text {
  font-size: .92rem; color: var(--text-muted); line-height: 1.85;
}
