/* ============================================================
   صحيفتي · صفحة "فريق صحيفتي" / About & Team
   RTL · cream + green/gold glassy aesthetic
   Loads BEFORE site-nav.css and site-polish.css, which own:
     - the sticky header (.site-header / .nav-shell / .nav-links)
     - the footer (footer .footer-* , fully scoped there)
     - the aurora body::before background + card hover lifts
   So this file styles ONLY the about-page content (hero,
   team sections, people cards, partners). No header/footer.
   ============================================================ */

/* ────────────────────────────────────────────────────────────
   Design tokens
   Brand colours preserved; a few spacing/type helpers added.
   ──────────────────────────────────────────────────────────── */
:root {
  --bg: #fcfaf5;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --surface-soft: #f5f8ef;
  --text: #1a1a1a;
  --muted: #5a6b66;
  --line: rgba(29, 102, 82, 0.12);
  --brand: #1d6652;
  --brand-soft: #edf3d7;
  --accent: #f2a43a;
  --accent-soft: #fff2de;
  --navy: #0f284a;
  --shadow: 0 24px 60px rgba(29, 102, 82, 0.09);
  --shadow-soft: 0 16px 36px rgba(29, 102, 82, 0.06);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1180px;

  /* spacing scale (about-page content rhythm) */
  --space-xs: 0.5rem;
  --space-sm: 0.85rem;
  --space-md: 1.25rem;
  --space-lg: 1.75rem;
  --space-xl: 2.5rem;
}

/* ────────────────────────────────────────────────────────────
   Base
   ──────────────────────────────────────────────────────────── */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DIN Next LT Arabic", "IBM Plex Sans Arabic", sans-serif;
  /* calm cream gradient behind the (transparent) aurora layer */
  background:
    radial-gradient(circle at top right, rgba(29, 102, 82, 0.10), transparent 15%),
    radial-gradient(circle at 18% 8%, rgba(224, 162, 59, 0.09), transparent 24%),
    linear-gradient(180deg, #eef4e1 0%, #fdfcf8 52%, #eef4e1 100%);
  color: var(--text);
  line-height: 1.75;
  /* NOTE: body::before (aurora) is owned by site-polish.css; not set here. */
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

/* ────────────────────────────────────────────────────────────
   Page shell & main
   ──────────────────────────────────────────────────────────── */
.about-page {
  position: relative;
}

/* shared max-width wrapper used by hero / sections / partners */
.about-shell {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.about-main {
  padding: var(--space-lg) 0 var(--space-xl);
}

/* ────────────────────────────────────────────────────────────
   Panels (glassy surfaces)
   ──────────────────────────────────────────────────────────── */
.panel {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: var(--space-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ────────────────────────────────────────────────────────────
   Hero
   ──────────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.9fr);
  gap: var(--space-md);
  align-items: stretch;
}

.hero-copy {
  position: relative;
  overflow: hidden;
}

/* soft gold glow in the corner */
.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -60px -80px auto;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(224, 162, 59, 0.20), transparent 72%);
  pointer-events: none;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-title {
  margin: 0.85rem 0 0.7rem;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.hero-intro {
  margin: 0;
  max-width: 52rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

/* stats row */
.hero-stats {
  margin-top: var(--space-md);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-sm);
}

.stat-card {
  border-radius: var(--radius-md);
  padding: 0.85rem 0.9rem;
  background: rgba(237, 243, 215, 0.82);
  border: 1px solid var(--line);
}

.stat-card strong {
  display: block;
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--brand);
}

.stat-card span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* hero logo column */
.hero-logos {
  display: grid;
  gap: var(--space-md);
}

/* single logo card, full width */
.logo-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

.logo-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(237, 243, 215, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0.85rem;
  box-shadow: var(--shadow-soft);
}

.logo-card-label {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 0.55rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #8e5d12;
  font-size: 0.74rem;
  font-weight: 700;
}

.logo-card-media {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
  border-radius: 18px;
  background: #fff;
  border: 1px dashed rgba(29, 102, 82, 0.12);
}

.logo-card-media img {
  max-height: 72px;
  object-fit: contain;
}

.logo-card-copy {
  margin-top: 0.55rem;
}

.logo-card-copy strong {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.92rem;
}

.logo-card-copy span {
  color: var(--muted);
  font-size: 0.86rem;
}

/* ────────────────────────────────────────────────────────────
   Sections (team panels)
   ──────────────────────────────────────────────────────────── */
.sections {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.team-section {
  position: relative;
  overflow: hidden;
}

/* decorative shield watermark for the security panel */
.team-section.security::before {
  content: "🛡";
  position: absolute;
  inset: 1.1rem 1.4rem auto auto;
  font-size: 4.5rem;
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
}

/* section header: title block + numbered badge */
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.section-badge {
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand), #2f8a6e);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(29, 102, 82, 0.22);
}

.section-title {
  margin: 0;
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  line-height: 1.4;
  font-weight: 700;
}

.section-text {
  margin: 0.3rem 0 0;
  color: var(--muted);
  max-width: 55rem;
  font-size: 0.96rem;
  line-height: 1.75;
}

/* ────────────────────────────────────────────────────────────
   People grids & cards
   ──────────────────────────────────────────────────────────── */
.people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
}

/* Engineering section: 5 people → wraps 3 + 2 (3-col grid,
   matching .three for visual consistency; the 2 orphans sit in
   cells 1–2 of row 2, which reads cleanly under RTL). */
.people-grid.five {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.people-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.person-card {
  padding: 0.95rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  /* hover-lift handled by site-polish.css for [class*="-card"] */
}

.person-card.placeholder {
  background: linear-gradient(180deg, rgba(237, 243, 215, 0.96), rgba(255, 255, 255, 0.92));
  border-style: dashed;
}

.person-visual {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.65rem;
}

.person-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(29, 102, 82, 0.14), rgba(224, 162, 59, 0.22));
  border: 1px solid rgba(29, 102, 82, 0.14);
  color: var(--brand);
  font-size: 1.05rem;
  font-weight: 700;
}

.person-avatar-photo {
  padding: 0;
  overflow: hidden;
  background: #eef4e3;
}

.person-avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-visual h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.4;
  font-weight: 700;
}

.person-role {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.person-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* contact / action pills */
.inline-actions,
.contact-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.action-pill,
.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.78rem;
  border-radius: 999px;
  background: rgba(237, 243, 215, 0.9);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.85rem;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.action-pill:hover,
.contact-pill:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

.contact-pill.muted,
.action-pill.muted {
  color: var(--muted);
  background: rgba(237, 243, 215, 0.95);
}

/* ────────────────────────────────────────────────────────────
   Partners section
   ──────────────────────────────────────────────────────────── */
.partners-section {
  margin-top: var(--space-md);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-sm);
}

.partner-card {
  display: flex;
  flex-direction: column;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(237, 243, 215, 0.94));
  box-shadow: var(--shadow-soft);
}

.partner-card-media {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem;
  margin-bottom: 0.7rem;
  border-radius: 16px;
  background: #fff;
  border: 1px dashed rgba(29, 102, 82, 0.12);
}

.partner-card-media img {
  max-height: 64px;
  object-fit: contain;
}

.partner-card-title {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  font-weight: 700;
}

.partner-card-role {
  margin: 0 0 0.4rem;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.84rem;
  line-height: 1.5;
}

.partner-card-text {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
  flex-grow: 1;
}

/* ────────────────────────────────────────────────────────────
   Responsive
   ──────────────────────────────────────────────────────────── */

/* Narrower tablet — partners → 2 cols (keeps 3 cols wider longer) */
@media (max-width: 820px) {
  .partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Narrower tablet — hero stacks, people grids tighten */
@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
  }

  /* logo cards stay 2 cols side by side under the hero on tablet,
     then collapse to 1 col on phones */
}

@media (max-width: 760px) {
  .logo-stack {
    grid-template-columns: 1fr;
  }

  /* tablet-tight: people grids → 2 cols (five wraps 2+2+1) */
  .people-grid.five,
  .people-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile — everything single column, head stacks vertically */
@media (max-width: 620px) {
  .about-main {
    padding: var(--space-md) 0 var(--space-lg);
  }

  .panel {
    padding: 1rem;
    border-radius: var(--radius-lg);
  }

  .hero-stats,
  .people-grid,
  .people-grid.five,
  .people-grid.three,
  .partners-grid,
  .logo-stack {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .section-badge {
    width: 2.4rem;
    height: 2.4rem;
    font-size: 0.9rem;
  }

  .person-visual {
    align-items: flex-start;
  }

  .hero-copy::after {
    width: 180px;
    height: 180px;
  }
}