/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--c-line); }
.site-header.is-overlay { position: absolute; inset-inline: 0; background: transparent; border-bottom-color: transparent; }
.site-header .bar { display: flex; align-items: center; gap: 40px; height: var(--header-h); }
.brand { flex-shrink: 0; }
.brand img { height: 44px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { font-size: 15px; font-weight: 500; color: var(--c-ink-2); }
.main-nav a:hover, .main-nav a.is-active { color: var(--c-ink); }
.main-nav a.is-active { font-weight: 600; }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.85); border: 1px solid var(--c-line); color: var(--c-ink); }
.icon-btn:hover { color: var(--c-primary); }
.hdr-pill { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding-inline: 16px; border-radius: var(--r-pill); background: rgba(255,255,255,.85); border: 1px solid var(--c-line); color: var(--c-ink); font-size: 14px; font-weight: 600; }
.hdr-pill:hover { color: var(--c-primary); }
.lang-switch .sep { color: var(--c-line-3); font-weight: 400; }
.lang-switch .off { color: var(--c-muted); font-weight: 500; }
.lang-switch a { color: inherit; }
.user-menu { position: relative; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--c-primary); color: #fff; display: grid; place-items: center; font-weight: 700; border: 0; }
.user-menu .popover { inset-inline-start: auto; inset-inline-end: 0; min-width: 240px; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; border: 0; background: none; color: var(--c-ink); font-size: 14px; font-weight: 600; text-align: start; }
.menu-item:hover { background: var(--c-bg-soft); color: var(--c-ink); }
.menu-meta { padding: 10px 12px; font-size: 12px; color: var(--c-muted); border-bottom: 1px solid var(--c-line); margin-bottom: 6px; word-break: break-all; }
.nav-toggle { display: none; }

@media (max-width: 1100px) {
  .main-nav { display: none; }
  .site-header.nav-open .main-nav { display: flex; position: absolute; top: var(--header-h); inset-inline: 0; flex-direction: column; align-items: flex-start; gap: 0; padding: 8px var(--gutter) 16px; background: #fff; border-bottom: 1px solid var(--c-line); box-shadow: var(--shadow-card); }
  .site-header.nav-open .main-nav a { padding: 12px 0; width: 100%; }
  .nav-toggle { display: grid; }
  .hide-md { display: none !important; }
}
@media (max-width: 640px) {
  .brand img { height: 34px; }
  .site-header .bar { gap: 12px; }
  .hide-sm { display: none !important; }
  /* Phones: keep logo, language, sign-in and menu on one line (Arabic labels are longer). */
  .header-actions { gap: 6px; }
  .hdr-pill { height: 40px; padding-inline: 12px; }
  .lang-switch svg, .lang-switch .sep, .lang-switch > span { display: none; }
  .header-actions .btn { height: 40px; padding-inline: 14px; font-size: 14px; }
}

/* ---------------------------------------------------------------- page sections */
.section { padding-block: 96px; }
.section-soft { background: var(--c-bg-soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head p.sub { margin-top: 14px; color: var(--c-ink-2); font-size: 16px; max-width: 520px; }
@media (max-width: 640px) { .section { padding-block: 64px; } .section-head { flex-direction: column; align-items: flex-start; } }

/* ---------------------------------------------------------------- footer */
.site-footer { padding-block: 64px 32px; border-top: 1px solid var(--c-line); background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr) 1.1fr; gap: 32px; }
.footer-brand img { height: 52px; width: auto; margin-bottom: 14px; }
.footer-brand p { color: var(--c-ink-2); font-size: 15px; }
.pay-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; max-width: 220px; }
.pay-badges span { height: 28px; padding-inline: 10px; border-radius: 8px; border: 1px solid var(--c-line); display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; color: var(--c-ink); }
.footer-col h4 { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.footer-col nav { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--c-ink-2); font-size: 15px; }
.footer-col a:hover { color: var(--c-primary); }
.socials { display: flex; gap: 10px; margin-bottom: 24px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--c-line); display: grid; place-items: center; color: var(--c-ink); }
.footer-tag { font-size: 18px; font-weight: 700; color: var(--c-primary); line-height: 1.3; }
.footer-tag::after { content: ""; display: block; width: 32px; height: 3px; background: var(--c-primary); border-radius: 2px; margin-top: 12px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--c-line); font-size: 14px; color: var(--c-muted); }
@media (max-width: 1100px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- simple pages */
.page-narrow { max-width: 720px; margin-inline: auto; padding-block: 96px; text-align: center; }
.page-narrow .icon-tile { width: 64px; height: 64px; border-radius: 18px; margin-bottom: 24px; }
.page-narrow p { color: var(--c-ink-2); margin-top: 14px; font-size: 17px; }
.page-narrow .actions { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
