/* ============================================================================
   istqdam — Inner public pages (About / Contact / Privacy / Terms) — Phase 1.5
   Shared Arabic identity, consistent with the homepage. Uses design tokens
   from assets/common/css/arabic-theme.css. Prefix: .ist-p-
   ============================================================================ */

.ist-p {
  font-family: var(--ist-font-ar);
  color: var(--ist-text);
  background: var(--ist-bg);
  line-height: 1.9;
}
.ist-p * { box-sizing: border-box; }
.ist-p__container { max-width: 1080px; margin-inline: auto; padding-inline: 20px; }

/* Page hero (banner) */
.ist-p__hero {
  background: linear-gradient(135deg, #0A4E32 0%, #0E6B45 70%);
  color: #fff; padding-block: 56px; text-align: center;
}
.ist-p__hero h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin: 0 0 8px; }
.ist-p__hero p { opacity: .9; margin: 0; }
.ist-p__breadcrumb { color: #cdeee7; font-size: .9rem; margin-top: 10px; }
.ist-p__breadcrumb a { color: #fff; text-decoration: none; }

/* Content sections */
.ist-p section { padding-block: 56px; }
.ist-p__eyebrow { color: var(--ist-primary); font-weight: 700; margin-bottom: 8px; }
.ist-p__title { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 800; margin: 0 0 14px; }
.ist-p__lead { color: var(--ist-text-muted); max-width: 720px; }

.ist-p__card {
  background: #fff; border: 1px solid var(--ist-border);
  border-radius: var(--ist-radius); padding: 28px;
}
.ist-p__prose h2 { font-size: 1.25rem; font-weight: 800; margin: 26px 0 10px; color: var(--ist-text); }
.ist-p__prose h3 { font-size: 1.08rem; font-weight: 700; margin: 20px 0 8px; }
.ist-p__prose p { color: #374151; margin: 0 0 12px; }
.ist-p__prose ul { color: #374151; padding-inline-start: 22px; margin: 0 0 14px; }
.ist-p__prose li { margin-bottom: 8px; }

/* Value / feature grid */
.ist-p__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ist-p__feature { background: #fff; border: 1px solid var(--ist-border); border-radius: var(--ist-radius); padding: 24px; }
.ist-p__feature-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--ist-primary-soft);
  color: var(--ist-primary); display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 12px;
}
.ist-p__feature h3 { font-weight: 700; margin: 0 0 6px; font-size: 1.05rem; }
.ist-p__feature p { color: var(--ist-text-muted); margin: 0; font-size: .95rem; }

/* Contact layout */
.ist-p__contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: start; }
.ist-p__info-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.ist-p__info-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--ist-primary-soft);
  color: var(--ist-primary); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.ist-p__info-item h4 { margin: 0 0 2px; font-weight: 700; }
.ist-p__info-item p { margin: 0; color: var(--ist-text-muted); }

/* Form */
.ist-p__form label { display: block; font-weight: 700; margin-bottom: 6px; }
.ist-p__field {
  width: 100%; border: 1px solid var(--ist-border); border-radius: var(--ist-radius-sm);
  padding: 12px 14px; font-family: var(--ist-font-ar); font-size: 1rem; color: var(--ist-text);
  background: #fff; margin-bottom: 16px; outline: none; transition: .15s;
}
.ist-p__field:focus { border-color: var(--ist-primary); box-shadow: 0 0 0 3px var(--ist-primary-soft); }
textarea.ist-p__field { min-height: 130px; resize: vertical; }
.ist-p__btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px;
  border-radius: var(--ist-radius); font-weight: 700; font-size: 1rem; cursor: pointer;
  border: 0; background: var(--ist-primary); color: #fff; transition: .18s;
}
.ist-p__btn:hover { background: var(--ist-primary-dark); }

/* Alerts */
.ist-p__alert { border-radius: var(--ist-radius-sm); padding: 12px 16px; margin-bottom: 18px; font-weight: 600; }
.ist-p__alert--success { background: var(--ist-success-soft); color: var(--ist-success); }
.ist-p__alert--error { background: var(--ist-danger-soft); color: var(--ist-danger); }

/* Responsive */
@media (max-width: 860px) {
  .ist-p__grid { grid-template-columns: 1fr; }
  .ist-p__contact { grid-template-columns: 1fr; }
  .ist-p section { padding-block: 40px; }
}
