/* ═══════════════════════════════════════════
   پیروز گاز — One Page Premium Company Layout
   ═══════════════════════════════════════════ */

.page-shell {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page-shell__main {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.page-shell__main > .cp-section > .wrap,
.page-shell__main > .trust-bar > .wrap,
.page-shell__main > section > .wrap {
  max-width: none;
  padding-inline: 0;
}

/* Side nav: same grid row, physical right */
.side-nav {
  display: none;
}
@media (min-width: 1100px) {
  .page-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    grid-template-rows: 1fr;
    column-gap: 20px;
    align-items: start;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 20px 0 40px;
    box-sizing: border-box;
    /* فقط برای چیدمان گرید: سایدبار فیزیکی راست — جهت متن از html می‌آید */
    direction: ltr;
  }
  .page-shell__main {
    grid-column: 1;
    grid-row: 1;
    direction: rtl; /* فارسی / کردی پیش‌فرض */
    width: 100%;
    max-width: none;
    justify-self: stretch;
    min-width: 0;
  }
  html[dir="ltr"] .page-shell__main {
    direction: ltr;
  }
  .page-shell__main > .cp-section > .wrap,
  .page-shell__main > .trust-bar > .wrap,
  .page-shell__main > section > .wrap {
    max-width: 1100px;
    margin-inline: auto;
    padding-inline: 0;
  }
  .side-nav {
    display: block;
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    direction: rtl;
    position: sticky;
    top: calc(var(--nav-h) + 20px);
    z-index: 40;
    width: 210px;
    max-height: calc(100vh - var(--nav-h) - 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 10px;
    box-shadow: var(--shadow);
    box-sizing: border-box;
  }
}
@media (max-width: 1099px) {
  .page-shell {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 20px;
  }
}
@media (max-width: 1099px) and (min-width: 768px) {
  .page-shell { padding-inline: 32px; }
}
@media (max-width: 1099px) and (min-width: 1024px) {
  .page-shell { padding-inline: 48px; }
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  font-size: .74rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: background .2s, color .2s;
  border-right: 2px solid transparent;
}
.side-nav a:hover {
  background: var(--orange-mute);
  color: var(--text);
}
.side-nav a.is-active {
  background: var(--orange-mute);
  color: var(--orange);
  border-right-color: var(--orange);
}
.side-nav__icon {
  width: 28px; height: 28px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--gray-100);
  display: grid;
  place-items: center;
  color: inherit;
}
.side-nav a.is-active .side-nav__icon {
  background: rgba(200,73,14,.15);
  color: var(--orange);
}
.side-nav__icon svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ── Trust bar (white) ─────────────────── */
.trust-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 5;
  box-shadow: 0 8px 24px rgba(15,23,36,.04);
}
[data-theme="dark"] .trust-bar {
  background: var(--surface);
}
.trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: clamp(22px, 3vw, 32px) clamp(14px, 2vw, 24px);
  border-left: 1px solid var(--border);
}
.trust-bar__item:last-child { border-left: none; }
.trust-bar__num {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}
[data-theme="dark"] .trust-bar__num { color: #fff; }
.trust-bar__num .accent { color: var(--orange); }
.trust-bar__lbl {
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 600;
}
@media (max-width: 800px) {
  .trust-bar__grid { grid-template-columns: 1fr 1fr; }
  .trust-bar__item { border-left: none; border-bottom: 1px solid var(--border); }
  .trust-bar__item:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 480px) {
  .trust-bar__grid { grid-template-columns: 1fr; }
  .trust-bar__item { border-bottom: 1px solid var(--border); }
  .trust-bar__item:last-child { border-bottom: none; }
}

/* ── Section base ──────────────────────── */
.cp-section {
  padding-block: clamp(48px, 6vw, 72px);
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
.cp-section--soft { background: var(--gray-50); }
[data-theme="dark"] .cp-section--soft { background: var(--navy-mid); }
.cp-head { margin-bottom: clamp(20px, 3vw, 32px); }
.cp-head__label {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--orange); font-size: .75rem; font-weight: 700;
  letter-spacing: .08em; margin-bottom: 8px;
}
.cp-head__label::before {
  content: ''; width: 18px; height: 2px;
  background: var(--orange); border-radius: 2px;
}
.cp-head__title {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 800; line-height: 1.3; margin: 0 0 8px;
}
.cp-head__text {
  max-width: 560px; color: var(--text-muted);
  line-height: 1.85; font-size: 1.02rem; margin: 0;
}
.cp-rule {
  width: 48px; height: 3px; background: var(--orange);
  border-radius: 2px; margin: 14px 0 22px;
}

/* ── CEO message ───────────────────────── */
.ceo-layout {
  display: grid;
  grid-template-columns: minmax(0, min(380px, 100%)) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.ceo-photo-wrap {
  position: relative;
}
.ceo-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 48% 28%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-premium);
  background: var(--gray-100);
  border: 1px solid var(--border);
}
.ceo-copy__title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800; margin: 0;
}
.ceo-copy__body {
  color: var(--text-muted); line-height: 2.05;
  font-size: 1.02rem; white-space: pre-line; margin: 0 0 28px;
}
.ceo-sign {
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.ceo-sign__name { font-size: 1.1rem; font-weight: 800; margin: 0 0 4px; }
.ceo-sign__role { font-size: .85rem; color: var(--orange); font-weight: 700; margin: 0 0 8px; }
.ceo-sign__mark {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic; font-size: 1.35rem;
  color: var(--navy-soft); opacity: .55;
}
@media (max-width: 800px) {
  .ceo-layout { grid-template-columns: 1fr; }
  .ceo-photo { max-width: 320px; margin-inline: auto; aspect-ratio: 1; }
}

/* ── About two-col ─────────────────────── */
.about-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  margin-bottom: 28px;
}
.about-layout__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
  align-self: start;
  margin-top: -72px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  background: var(--gray-100);
}
.about-layout__text {
  color: var(--text-muted); line-height: 2.05; font-size: 1.02rem;
}
.mini-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.mini-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.mini-stat__val {
  font-size: 1.25rem; font-weight: 800; color: var(--orange); margin-bottom: 6px;
}
.mini-stat__lbl { font-size: .8rem; color: var(--text-muted); font-weight: 600; }
@media (max-width: 900px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-layout__media { margin-top: 0; }
  .mini-stats { grid-template-columns: 1fr 1fr; }
}

/* ── Founder ───────────────────────────── */
.founder-card {
  background: linear-gradient(135deg, var(--navy) 0%, #0A1018 100%);
  border-radius: var(--radius-xl);
  padding: clamp(18px, 2.5vw, 26px) clamp(22px, 3vw, 32px);
  color: #fff;
  box-shadow: var(--shadow-premium);
  max-width: 980px;
}
.founder-card__label {
  color: var(--copper); font-size: .72rem; font-weight: 800;
  letter-spacing: .06em; margin-bottom: 4px;
}
.founder-card__name {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 800; margin: 0 0 8px;
}
.founder-card__text {
  color: rgba(255,255,255,.62); line-height: 1.75; margin: 0;
  font-size: .95rem;
}

/* ── Board cards ───────────────────────── */
.board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.board-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
}
.board-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.board-card__photo {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid var(--orange-mute);
  background: var(--gray-100);
  display: block;
}
.board-card__avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: var(--orange-mute);
  color: var(--orange);
  display: grid; place-items: center;
  font-size: 2rem; font-weight: 800;
}
.board-card__role {
  font-size: .75rem; font-weight: 700; color: var(--orange); margin-bottom: 6px;
}
.board-card__name {
  font-size: 1.1rem; font-weight: 800; margin: 0 0 10px;
}
.board-card__bio {
  font-size: .85rem; color: var(--text-muted); line-height: 1.75; margin: 0;
}
@media (max-width: 900px) { .board-grid { grid-template-columns: 1fr; max-width: 400px; margin-inline: auto; } }

/* ── Timeline pro ──────────────────────── */
.tl-pro {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  max-width: 100%;
  border: 0;
}
/* خط کنار متن (سمت شروع اینلاین) — نه لبه‌ی بیرونی صفحه */
.tl-pro::before {
  content: '';
  position: absolute;
  inset-inline-start: 13px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--orange-mute);
  border-radius: 2px;
  pointer-events: none;
}
.tl-pro__item {
  position: relative;
  padding-block: 0 36px;
  padding-inline-start: 36px;
  padding-inline-end: 0;
}
.tl-pro__item:last-child { padding-bottom: 0; }
.tl-pro__item::before {
  content: '';
  position: absolute;
  inset-inline-start: 8px;
  top: 6px;
  width: 14px;
  height: 14px;
  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) {
  .tl-pro::before { inset-inline-start: 11px; }
  .tl-pro__item { padding-inline-start: 32px; }
  .tl-pro__item::before {
    width: 12px;
    height: 12px;
    inset-inline-start: 7px;
  }
}
.tl-pro__year {
  font-size: 1.05rem; font-weight: 800; color: var(--orange); margin-bottom: 6px;
}
.tl-pro__text {
  font-size: .95rem; color: var(--text-muted); line-height: 1.85;
}

/* ── Service cards ─────────────────────── */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.svc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 26px 22px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(200,73,14,.18);
}
.svc-card__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: var(--orange-mute);
  color: var(--orange);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.svc-card__icon svg {
  width: 22px; height: 22px; stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.svc-card__title { font-size: 1.02rem; font-weight: 800; margin: 0 0 8px; }
.svc-card__desc { font-size: .875rem; color: var(--text-muted); line-height: 1.75; margin: 0; }
@media (max-width: 1000px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }

/* ── Honors golden ─────────────────────── */
.honor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.honor-card {
  background: linear-gradient(145deg, #FBF6EA 0%, #F3E6C8 100%);
  border: 1px solid rgba(184,146,46,.28);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  box-shadow: 0 8px 28px rgba(184,146,46,.12);
}
[data-theme="dark"] .honor-card {
  background: linear-gradient(145deg, #2A2418 0%, #1C1810 100%);
  border-color: rgba(184,146,46,.25);
}
.honor-card__badge {
  display: inline-block;
  font-size: .7rem; font-weight: 800;
  color: #8A6A1A;
  background: rgba(184,146,46,.18);
  padding: 4px 10px; border-radius: 999px;
  margin-bottom: 12px;
}
[data-theme="dark"] .honor-card__badge { color: #E0C56A; }
.honor-card__title {
  font-size: 1.05rem; font-weight: 800; margin: 0 0 8px; color: #3D2E0A;
}
[data-theme="dark"] .honor-card__title { color: #F5E6B8; }
.honor-card__text {
  font-size: .88rem; color: #6B5728; line-height: 1.8; margin: 0;
}
[data-theme="dark"] .honor-card__text { color: rgba(245,230,184,.65); }
@media (max-width: 800px) { .honor-grid { grid-template-columns: 1fr; } }

/* ── Partners ──────────────────────────── */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.partner-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--orange);
}
.partner-card__label {
  font-size: .72rem;
  font-weight: 700;
  color: var(--orange);
  margin: 0 0 10px;
  letter-spacing: .04em;
}
.partner-card__name {
  font-size: 1.02rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.55;
}
@media (max-width: 800px) { .partner-grid { grid-template-columns: 1fr; } }

/* ── Facilities tabs ───────────────────── */
.fac-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px;
}
.fac-tab {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: .85rem; font-weight: 700;
  color: var(--text-muted); cursor: pointer;
  transition: all .2s;
}
.fac-tab.is-active,
.fac-tab:hover {
  background: var(--orange); color: #fff; border-color: var(--orange);
}
.fac-panel[hidden] { display: none !important; }

/* ── LPG history ───────────────────────── */
.lpg-hero-img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--radius-xl);
  margin-bottom: 28px;
  background: var(--gray-100);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 700px) {
  .lpg-hero-img { aspect-ratio: 16 / 10; }
}
.lpg-body {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.lpg-body__text {
  color: var(--text-muted);
  line-height: 2.05;
  font-size: 1.02rem;
  white-space: pre-line;
  margin: 0;
}
.lpg-body__timeline { margin-top: 4px; }
@media (max-width: 900px) {
  .lpg-body { grid-template-columns: 1fr; }
}

/* ── News / Articles ───────────────────── */
.news-grid,
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.news-card,
.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
  height: 100%;
  display: flex; flex-direction: column;
}
.news-card:hover,
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.news-card__media,
.article-card__media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
  display: grid; place-items: center;
  color: rgba(255,255,255,.35);
  font-size: 1.5rem; font-weight: 800;
}
.news-card__body,
.article-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.news-card__date,
.article-card__tag {
  font-size: .72rem; font-weight: 700; color: var(--orange); margin-bottom: 8px;
}
.news-card__title,
.article-card__title {
  font-size: 1.02rem; font-weight: 800; margin: 0 0 10px; line-height: 1.5;
}
.news-card__excerpt,
.article-card__excerpt {
  font-size: .875rem; color: var(--text-muted); line-height: 1.75; margin: 0;
  flex: 1;
}
@media (max-width: 900px) {
  .news-grid, .article-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
}

/* Contact reuse existing styles; slight polish */
.cp-contact .contact-layout { margin-top: 8px; }
.contact-tagline {
  margin: 28px 0 0;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.8;
}
