/* Gandi — shared layout for the plain content pages
   (ارسال و نصب، گارانتی، راهنمای پارچه … and the ones that follow).
   Loaded by each of those pages; nothing here is page-specific, so a new
   content page only needs its own markup. */

/* ── dark intro band (the header sits transparent over it) ─────────────── */
.gd-phero {
  background: var(--forest-900);
  color: var(--text-on-dark);
  padding: clamp(148px, 20vh, 216px) clamp(20px, 4vw, 44px) clamp(56px, 8vh, 96px);
}
.gd-phero-in { max-width: 780px; margin: 0 auto; text-align: center; }
.gd-eyebrow {
  font-family: var(--font-label); font-size: 11.5px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--brass-400);
}
.gd-phero h1 {
  font-family: var(--font-fa); font-weight: 500;
  font-size: clamp(27px, 5vw, 50px); line-height: 1.35;
  color: var(--paper-100); margin: 18px 0 0;
}
.gd-lead {
  font-family: var(--font-fa); font-weight: 300;
  font-size: clamp(15px, 1.8vw, 18px); line-height: 2;
  color: var(--text-on-dark-dim); max-width: 600px; margin: 20px auto 0;
}

/* ── body ──────────────────────────────────────────────────────────────── */
.gd-page {
  max-width: 880px; margin: 0 auto;
  padding: clamp(52px, 8vh, 92px) clamp(20px, 4vw, 44px) clamp(64px, 9vh, 104px);
}
.gd-sec { margin-bottom: clamp(44px, 7vh, 76px); }
.gd-sec:last-child { margin-bottom: 0; }
.gd-sec h2 {
  font-family: var(--font-fa); font-weight: 500;
  font-size: clamp(20px, 3vw, 29px); line-height: 1.45;
  color: var(--ink-900); margin: 0;
}
.gd-sec h3 {
  font-family: var(--font-fa); font-weight: 500; font-size: 17px;
  color: var(--ink-900); margin: 26px 0 10px;
}
.gd-rule { width: 42px; height: 2px; background: var(--brass-500); margin: 14px 0 22px; }
.gd-sec p, .gd-sec li, .gd-sec td, .gd-sec dd {
  font-family: var(--font-fa); font-weight: 300; font-size: 15.5px;
  line-height: 2.05; color: var(--text-secondary);
}
.gd-sec p { margin: 0 0 15px; }
.gd-sec p:last-child { margin-bottom: 0; }
.gd-sec strong { font-weight: 500; color: var(--ink-900); }
.gd-sec a { color: var(--text-accent); transition: color .2s; }
.gd-sec a:hover { color: var(--brass-500); }

ul.gd-list { list-style: none; margin: 0 0 15px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
ul.gd-list li { position: relative; padding-inline-start: 21px; }
ul.gd-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 13px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brass-500);
}

/* ── numbered path ─────────────────────────────────────────────────────── */
.gd-steps { display: flex; flex-direction: column; }
.gd-step { display: grid; grid-template-columns: 38px 1fr; gap: 18px; padding-bottom: 26px; position: relative; }
.gd-step:last-child { padding-bottom: 0; }
.gd-step:not(:last-child)::after {
  content: ""; position: absolute; inset-inline-start: 18px; top: 40px; bottom: 0;
  width: 1px; background: var(--border-hairline);
}
.gd-step .n {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--brass-500);
  color: var(--text-accent); background: var(--bg-canvas);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-label); font-size: 13px; position: relative; z-index: 1;
}
.gd-step h3 { margin: 6px 0 6px; }
.gd-step p { margin: 0; font-size: 15px; }

/* ── tables ────────────────────────────────────────────────────────────── */
table.gd-tbl { width: 100%; border-collapse: collapse; margin: 0 0 15px; }
table.gd-tbl th, table.gd-tbl td {
  text-align: start; padding: 14px 16px; border-bottom: 1px solid var(--border-hairline);
  vertical-align: top;
}
table.gd-tbl thead th {
  font-family: var(--font-label); font-weight: 500; font-size: 11.5px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted);
  background: var(--paper-100); border-bottom: 1px solid var(--border-strong);
}
table.gd-tbl tbody th {
  font-family: var(--font-fa); font-weight: 500; font-size: 15px; color: var(--ink-900);
}
table.gd-tbl td:last-child { color: var(--text-secondary); }

/* ── callout ───────────────────────────────────────────────────────────── */
.gd-note {
  background: var(--paper-100); border: 1px solid var(--border-hairline);
  border-inline-start: 3px solid var(--brass-500); border-radius: var(--radius-md);
  padding: 20px 22px; margin: 22px 0 0;
}
.gd-note p { font-size: 14.5px; line-height: 1.95; }

/* ── cards ─────────────────────────────────────────────────────────────── */
.gd-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.gd-fcard {
  background: var(--surface-card); border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md); padding: 24px 22px;
}
.gd-fcard h3 { margin: 0 0 4px; font-size: 17.5px; }
.gd-fcard .en {
  font-family: var(--font-label); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-muted); display: block; margin-bottom: 14px;
}
.gd-fcard p { font-size: 14.5px; line-height: 1.95; margin: 0 0 12px; }
.gd-fcard dl { margin: 0; display: flex; flex-direction: column; gap: 7px; }
.gd-fcard dt {
  font-family: var(--font-label); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brass-500);
}
.gd-fcard dd { margin: 0 0 4px; font-size: 14px; line-height: 1.85; }
.gd-swatch { height: 7px; border-radius: 99px; margin-bottom: 16px; }

/* ── closing band ──────────────────────────────────────────────────────── */
.gd-cta { background: var(--forest-900); color: var(--text-on-dark); text-align: center; }
.gd-cta-in { max-width: 700px; margin: 0 auto; padding: clamp(56px, 8vh, 96px) clamp(20px, 4vw, 44px); }
.gd-cta h2 {
  font-family: var(--font-fa); font-weight: 500; font-size: clamp(21px, 3.2vw, 32px);
  line-height: 1.5; color: var(--paper-100); margin: 16px 0 0;
}
.gd-cta p {
  font-family: var(--font-fa); font-weight: 300; font-size: clamp(14.5px, 1.7vw, 16.5px);
  line-height: 1.95; color: var(--text-on-dark-dim); margin: 16px auto 0; max-width: 460px;
}
.gd-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
.gd-pbtn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-label); font-size: 12.5px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  border-radius: var(--radius-pill); padding: 15px 32px;
  transition: background .25s, color .25s, border-color .25s, transform .18s;
}
.gd-pbtn-solid { background: var(--brass-500); color: var(--forest-900); border: 1px solid var(--brass-500); }
.gd-pbtn-solid:hover { background: var(--brass-400); border-color: var(--brass-400); transform: translateY(-2px); }
.gd-pbtn-ghost { background: transparent; color: var(--text-on-dark); border: 1px solid var(--border-dark); }
.gd-pbtn-ghost:hover { color: var(--brass-300); border-color: var(--brass-500); transform: translateY(-2px); }

/* ── phone ─────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  /* a 3-column table does not fit a phone: stack each row and let every cell
     carry its own column label through data-l */
  table.gd-tbl thead { display: none; }
  table.gd-tbl tr {
    display: block; padding: 14px 0; border-bottom: 1px solid var(--border-hairline);
  }
  table.gd-tbl tr:last-child { border-bottom: 0; }
  table.gd-tbl th, table.gd-tbl td {
    display: flex; gap: 14px; justify-content: space-between; align-items: baseline;
    border: 0; padding: 5px 0;
  }
  table.gd-tbl td::before {
    content: attr(data-l); font-family: var(--font-label); font-size: 10.5px;
    letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted);
    flex-shrink: 0; padding-top: 4px;
  }
  table.gd-tbl td { text-align: end; }
  table.gd-tbl tbody th { padding-bottom: 2px; }
  .gd-step { grid-template-columns: 32px 1fr; gap: 14px; }
  .gd-step .n { width: 32px; height: 32px; font-size: 12px; }
  .gd-step:not(:last-child)::after { inset-inline-start: 15px; top: 34px; }
}
