/* ijtaz.app — shared styles */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue-primary:   #1A56B0;
  --blue-dark:      #0F3A7A;
  --blue-light:     #EBF2FF;
  --blue-accent:    #1A1AE8;
  --text-main:      #1A202C;
  --text-muted:     #4A5568;
  --text-inverse:   #FFFFFF;
  --border:         #CBD5E0;
  --bg-page:        #F7FAFC;
  --bg-card:        #FFFFFF;
  --radius:         12px;
  --max-w:          780px;
  --font-ar:        'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, 'Arabic Typesetting', Arial, sans-serif;
}

html {
  direction: rtl;
  lang: ar;
}

body {
  font-family: var(--font-ar);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-main);
  background: var(--bg-page);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Site header ──────────────────────────────────── */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 58, 122, 0.10);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: rtl;
}

.brand-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: auto;
  max-height: 52px;
  max-width: 280px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--blue-dark);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--blue-primary);
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-accent) 100%);
  color: var(--text-inverse);
  padding: 48px 24px 44px;
  text-align: center;
}

.hero h1 {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.3;
}

.hero p {
  font-size: 1rem;
  opacity: 0.9;
  max-width: 500px;
  margin: 0 auto 24px;
  line-height: 1.65;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  height: 52px;
  min-width: 160px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-primary {
  background: #FFFFFF;
  color: var(--blue-dark);
}

.btn-outline {
  background: transparent;
  color: #FFFFFF;
  border: 2px solid rgba(255,255,255,0.7);
  padding: 0 32px;
}

.btn-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Main content ─────────────────────────────────── */
main {
  flex: 1;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 36px 24px 52px;
}

/* ── Feature cards ────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--blue-dark);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ── Section headings ─────────────────────────────── */
.section-heading {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blue-light);
}

/* ── Official store badge images (links disabled — not live yet) ── */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.store-badge-wrap {
  display: inline-block;
  opacity: 1;
  cursor: not-allowed;
  pointer-events: none;
  user-select: none;
  line-height: 0;
}

.store-badge-img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* ── Page header (inner pages) ────────────────────── */
.page-header {
  background: var(--blue-dark);
  color: var(--text-inverse);
  padding: 40px 24px;
  text-align: center;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.page-header p {
  opacity: 0.8;
  font-size: 0.95rem;
}

/* ── Prose (policy / terms / support) ────────────── */
.prose h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-top: 36px;
  margin-bottom: 10px;
}

.prose p {
  margin-bottom: 14px;
  color: var(--text-main);
}

.prose ul, .prose ol {
  padding-right: 22px;
  margin-bottom: 14px;
}

.prose li {
  margin-bottom: 6px;
  color: var(--text-main);
}

.prose a {
  color: var(--blue-primary);
}

.prose .note {
  background: var(--blue-light);
  border-right: 4px solid var(--blue-primary);
  border-radius: 4px;
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 0.95rem;
  color: var(--blue-dark);
}

/* ── FAQ ──────────────────────────────────────────── */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 14px;
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── Contact card ─────────────────────────────────── */
.contact-card {
  background: var(--blue-light);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-top: 32px;
  margin-bottom: 28px;
  text-align: center;
}

.contact-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--blue-dark);
}

.contact-card a {
  color: var(--blue-primary);
  font-weight: 600;
}

/* ── Footer ───────────────────────────────────────── */
footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.75);
  text-align: center;
  padding: 24px;
  font-size: 0.85rem;
}

footer a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  margin: 0 8px;
}

footer a:hover {
  color: #FFFFFF;
}

.footer-links {
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}

/* ── Trust strip (homepage) ──────────────────── */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  background: var(--blue-light);
  padding: 14px 18px;
  margin: 0 auto 32px;
  max-width: 880px;
  border-radius: 12px;
}
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: var(--blue-dark);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(26, 86, 176, 0.18);
  white-space: nowrap;
}

/* ── Disabled-looking primary CTA ────────────── */
.btn-disabled {
  cursor: not-allowed;
  opacity: 0.85;
  pointer-events: none;
}

/* ── Responsive ───────────────────────────────────── */@media (min-width: 900px) {
  .features { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  .hero { padding: 32px 16px 28px; }
  .hero h1 { font-size: 1.65rem; }
  .brand-logo { max-height: 40px; max-width: 180px; }
  .site-nav {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
  }
  .nav-links {
    gap: 6px 18px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .nav-links a { padding: 8px 6px; font-size: 14px; }
  .hero p { font-size: 0.98rem; }
  main { padding: 24px 16px 40px; }
  .features { grid-template-columns: 1fr; }
  .store-badges { flex-direction: column; align-items: center; margin-bottom: 28px; }
  .store-badge-img { height: 40px; }
}

/* ── Extra-small phones (≤360px) ────────────────────────── */
@media (max-width: 360px) {
  .brand-logo { max-height: 36px; max-width: 160px; }
  .hero { padding: 28px 14px 24px; }
  .hero h1 { font-size: 1.5rem; }
  main { padding: 22px 14px 36px; }
}

/* ── Global safety: prevent overflow & responsive media ── */
html, body { overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }

/* ── Tap-target padding for nav links (≥44px hit area) ── */
.nav-links a {
  display: inline-block;
  padding: 10px 4px;
  line-height: 1.2;
}
