/* ============================================================
   Sworah public site.

   Palette and type come from docs/BRAND.md — the guide's own values,
   not sampled from screenshots. Dark blocks are the apps' ground
   (#2D2828 splash), the light page carries gold and mint accents.

   Direction: the page flips between rtl (Arabic, default) and ltr
   (English) at runtime, so every offset in here is a LOGICAL property
   — no left/right anywhere. Letter-spacing is applied to Latin only:
   Arabic joins cursively and tracking breaks its ligatures.
   ============================================================ */

:root {
  --ink: #2D2828;          /* app ground — hero, footer, dark sections */
  --ink-2: #3A3535;        /* cards on dark */
  --ink-3: #4C4747;        /* the brand warm grey */
  --rule-dark: #5B5454;
  --gold: #FFD766;
  --gold-deep: #F2C94C;
  --pale-gold: #FFEBB3;
  --mint: #66FFDB;
  --paper: #FFFFFF;
  --ground: #FAF8F5;       /* warm off-white section ground */
  --wash: #FFF8E6;         /* pale gold wash */
  --text: #2D2828;
  --muted: #6E6767;
  --muted-dark: #BEB6B4;   /* muted text on dark */
  --line: #EAE5DF;         /* hairlines on light */
  --line-dark: rgba(255, 255, 255, 0.1);
  --radius: 16px;
  --shell: 1120px;
  --font-ar: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
  --font-en: 'Poppins', 'Cairo', 'Segoe UI', system-ui, Arial, sans-serif;
}

* { box-sizing: border-box; }

/* The hidden attribute must always win, even over display:flex classes —
   the contact form's success panel and the store badges rely on it. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-ar);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[lang="en"] body { font-family: var(--font-en); }

img { max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0; line-height: 1.35; }

p { margin: 0; }

.shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  inset-block-start: -48px;
  inset-inline-start: 16px;
  z-index: 100;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  transition: inset-block-start 0.15s ease;
}
.skip-link:focus { inset-block-start: 0; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}
.hero :focus-visible, .pro :focus-visible, .footer :focus-visible {
  outline-color: var(--mint);
}

/* ===================== Wordmark sizing =====================
   The lockup's viewBox is 388 x 173; width follows from height. */
.brand-mark  { height: 38px;  width: calc(38px * 2.2428); display: block; }
.hero-mark   { height: 118px; width: calc(118px * 2.2428); display: block; }
.footer-mark { height: 72px;  width: calc(72px * 2.2428); display: block; }
.brand-mark, .hero-mark, .footer-mark { color: #fff; --wm-accent: var(--gold); }

/* ===================== Nav ===================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(45, 40, 40, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-block-end: 1px solid var(--line-dark);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  color: var(--muted-dark);
  font-size: 15px;
  font-weight: 600;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--gold); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--ink-2);
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 999px;
  padding: 8px 15px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.lang-toggle:hover { border-color: var(--gold); }

.nav-contact {
  background: var(--gold);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 9px 18px;
  transition: background 0.15s ease;
}
.nav-contact:hover { background: var(--gold-deep); }

/* ===================== Hero ===================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.17;
  pointer-events: none;
}
.hero-glow-gold {
  width: 520px; height: 520px;
  background: var(--gold);
  inset-block-start: -160px;
  inset-inline-start: -140px;
}
.hero-glow-mint {
  width: 420px; height: 420px;
  background: var(--mint);
  inset-block-end: -180px;
  inset-inline-end: -120px;
  opacity: 0.1;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 40px;
  padding-block: 64px 72px;
}

.hero-tagline {
  color: var(--gold);
  font-weight: 700;
  font-size: 16px;
  margin-block-start: 14px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-block-start: 18px;
  border: 1px solid rgba(102, 255, 219, 0.35);
  background: rgba(102, 255, 219, 0.08);
  color: var(--mint);
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  padding: 6px 14px;
}
.hero-pill .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--mint);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }

.hero-title {
  font-size: clamp(32px, 5.2vw, 54px);
  font-weight: 800;
  line-height: 1.3;
  margin-block-start: 16px;
  max-width: 15ch;
}
html[lang="en"] .hero-title { letter-spacing: -1px; max-width: 17ch; }
.hero-title .accent { color: var(--gold); }

.hero-sub {
  color: var(--muted-dark);
  font-size: 16.5px;
  max-width: 52ch;
  margin-block-start: 18px;
}

.badges-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-dark);
  margin-block-start: 28px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block-start: 10px;
}

.badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #1F1B1B;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  border-radius: 13px;
  padding: 9px 18px 9px;
  padding-inline-end: 22px;
  min-width: 168px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.badge[aria-disabled="true"] { cursor: default; }
.badge:not([aria-disabled="true"]):hover { border-color: var(--gold); transform: translateY(-2px); }

.badge-icon { width: 26px; height: 26px; flex: none; }

.badge-lines { display: flex; flex-direction: column; line-height: 1.3; }
.badge-lines small { font-size: 10.5px; color: var(--muted-dark); }
.badge-lines strong { font-size: 15.5px; font-weight: 700; font-family: var(--font-en); }

.badge-tag {
  position: absolute;
  inset-block-start: -9px;
  inset-inline-end: 10px;
  background: var(--gold);
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 800;
  border-radius: 999px;
  padding: 1.5px 9px;
}
.badge-tag-mint { background: var(--mint); }
.badge[href] .badge-tag { display: none; }

.hero-chips {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 640px;
}
.hero-chips li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  background: rgba(58, 53, 53, 0.55);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: 13px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: #E9E4E1;
}
.hero-chips svg { width: 20px; height: 20px; }

/* Phone frames */
.hero-phone { display: flex; justify-content: center; }

.phone {
  margin: 0;
  background: #191515;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 42px;
  padding: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  position: relative;
}
.phone::after {
  /* the speaker notch — centred with auto margins so it needs no
     direction-specific transform */
  content: "";
  position: absolute;
  inset-block-start: 20px;
  inset-inline: 0;
  margin-inline: auto;
  width: 34%;
  height: 17px;
  background: #191515;
  border-radius: 999px;
}
.phone img {
  display: block;
  width: 100%;
  border-radius: 33px;
}
.phone-lg { width: min(310px, 78vw); }
.phone-md { width: min(280px, 74vw); }
.phone-sm { width: 218px; border-radius: 34px; padding: 8px; }
.phone-sm::after { height: 14px; inset-block-start: 16px; }
.phone-sm img { border-radius: 27px; }
.phone-mint { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(102, 255, 219, 0.18); }

/* ===================== What is Sworah ===================== */
.what { background: var(--wash); }
.what-inner {
  padding-block: 46px;
  text-align: center;
}
.what-inner p {
  font-size: clamp(17px, 2.4vw, 21px);
  line-height: 1.9;
  color: var(--ink-3);
  max-width: 46ch;
  margin-inline: auto;
}
.what-name { color: var(--ink); font-weight: 800; }

/* ===================== Sections shared ===================== */
.section-head {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
  margin-block-end: 44px;
}

.kicker {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 700;
  margin-block-end: 12px;
}
.kicker-gold { background: var(--pale-gold); color: var(--ink-3); }
.kicker-mint { background: rgba(102, 255, 219, 0.12); color: var(--mint); border: 1px solid rgba(102, 255, 219, 0.25); }

.section-head h2, .pro h2, .contact h2 {
  font-size: clamp(25px, 3.6vw, 34px);
  font-weight: 800;
}
html[lang="en"] .section-head h2,
html[lang="en"] .pro h2,
html[lang="en"] .contact h2 { letter-spacing: -0.6px; }

.section-sub {
  color: var(--muted);
  font-size: 15.5px;
  margin-block-start: 12px;
}
.section-sub.on-dark { color: var(--muted-dark); }

/* ===================== How it works ===================== */
.how { background: var(--paper); padding-block: 72px; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}

.step-card {
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.step-num {
  display: inline-flex;
  background: var(--pale-gold);
  color: var(--ink-3);
  font-weight: 800;
  font-size: 14px;
  border-radius: 9px;
  padding: 2px 11px;
  margin-block-end: 14px;
}
.step-card h3 { font-size: 16.5px; font-weight: 700; }
.step-card p { font-size: 14px; color: var(--muted); margin-block-start: 7px; }

/* ===================== Services ===================== */
.services { background: var(--ground); padding-block: 72px; }

.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.cat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.cat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: #fff;
  padding: 18px 22px;
}
.cat-head svg { width: 26px; height: 26px; color: var(--gold); flex: none; }
.cat-head h3 { font-size: 19px; font-weight: 800; }

.svc-list { list-style: none; margin: 0; padding: 6px 22px 18px; }

.svc-row { padding-block: 16px; }
.svc-row + .svc-row { border-block-start: 1px solid var(--line); }

.svc-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.svc-name h4 { font-size: 16px; font-weight: 700; }

.unit {
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 11px;
}

.subs { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 10px; }
.sub-chip {
  background: var(--pale-gold);
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 12px;
}

.floor { font-size: 12.5px; color: var(--muted); margin-block-start: 9px; }

.svc-note {
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  max-width: 62ch;
  margin: 26px auto 0;
}

/* ===================== For photographers ===================== */
.pro {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding-block: 76px;
}
.pro-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.1;
  pointer-events: none;
}
.pro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(45, 40, 40, 0.2), rgba(45, 40, 40, 0.92));
  pointer-events: none;
}

.pro-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 40px;
}

.pro h2 { margin-block-start: 4px; }

.pro-points {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 54ch;
}
.pro-points li {
  border-inline-start: 3px solid var(--mint);
  padding-inline-start: 16px;
}
.pro-points h3 { font-size: 16.5px; font-weight: 700; color: var(--mint); }
.pro-points p { font-size: 14.5px; color: var(--muted-dark); margin-block-start: 5px; }

.pro .badges-label { margin-block-start: 30px; }
.badge-dark { background: rgba(25, 21, 21, 0.85); }
.pro-phone { display: flex; justify-content: center; }

/* ===================== Screenshots band ===================== */
.screens { background: var(--paper); padding-block: 72px 64px; }

.band-track {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  padding: 14px max(20px, calc((100vw - var(--shell)) / 2 + 20px)) 26px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}

.band-item {
  margin: 0;
  flex: none;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.app-tag {
  font-size: 11.5px;
  font-weight: 800;
  border-radius: 999px;
  padding: 3px 12px;
}
.tag-gold { background: var(--pale-gold); color: var(--ink-3); }
.tag-mint { background: rgba(102, 255, 219, 0.25); color: #0E6E56; }

.band-item .phone { box-shadow: 0 16px 40px rgba(45, 40, 40, 0.22); }

.band-item figcaption {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}

/* ===================== FAQ ===================== */
.faq { background: var(--ground); padding-block: 72px; }
.faq-shell { max-width: 760px; }

.faq-group {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--muted);
  margin-block: 26px 10px;
}

.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-block-end: 10px;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  list-style: none;
  font-size: 15.5px;
  font-weight: 700;
  padding: 16px 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .chev { width: 18px; height: 18px; flex: none; color: var(--muted); transition: transform 0.2s ease; }
.faq-item[open] .chev { transform: rotate(180deg); }
.faq-item p {
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 14.5px;
}

/* ===================== Contact ===================== */
.contact { background: var(--paper); padding-block: 72px 84px; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  align-items: start;
}

.contact-info h2 { margin-block-start: 4px; }

.contact-lines {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-lines li { display: flex; align-items: center; gap: 12px; }
.contact-lines svg {
  width: 38px; height: 38px;
  padding: 8px;
  border-radius: 11px;
  background: var(--wash);
  color: var(--ink-3);
  flex: none;
}
.contact-lines a { font-weight: 600; font-size: 15px; }
.contact-lines a:hover { color: var(--ink-3); text-decoration: underline; }

.contact-form {
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
}

.form-row { margin-block-end: 15px; }
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-block-end: 6px;
}
.req { color: #C0392B; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #DDD6CE;
  background: var(--paper);
  border-radius: 11px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 215, 102, 0.3);
}
.contact-form textarea { resize: vertical; min-height: 110px; }

.contact-form input[dir="ltr"]::placeholder { text-align: start; }

.form-error {
  color: #C0392B;
  font-size: 13.5px;
  font-weight: 600;
  margin-block-end: 12px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--ink);
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  border-radius: 12px;
  padding: 13px 30px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-primary:hover { background: var(--gold-deep); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary[disabled] { opacity: 0.6; cursor: wait; }

.form-success {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(102, 255, 219, 0.16);
  border: 1px solid rgba(14, 110, 86, 0.25);
  color: #0E6E56;
  border-radius: 13px;
  padding: 15px 18px;
  font-weight: 700;
}
.form-success svg { width: 26px; height: 26px; flex: none; }

/* ===================== Footer ===================== */
.footer {
  background: var(--ink);
  color: var(--muted-dark);
  padding-block: 56px 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer-brand p { margin-block-start: 16px; font-size: 14px; }

.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h3 {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  margin-block-end: 6px;
}
.footer-col a { font-size: 14px; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--gold); }

.socials { display: flex; gap: 10px; }
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--muted-dark);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.socials a:hover { color: var(--gold); border-color: var(--gold); }
.socials svg { width: 18px; height: 18px; }

.footer-mail { margin-block-start: 12px; font-size: 13.5px; }
.footer-mail:hover { color: var(--gold); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  border-block-start: 1px solid var(--line-dark);
  margin-block-start: 44px;
  padding-block-start: 22px;
  font-size: 12.5px;
  color: #8D8482;
}

/* ===================== Legal reader ===================== */
.reader {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.reader[hidden] { display: none; }

.reader-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 21, 21, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.reader-card {
  position: relative;
  background: var(--paper);
  border-radius: 20px;
  width: min(720px, 100%);
  max-height: min(82vh, 720px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.reader-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px 0;
}
.reader-head h2 { font-size: 21px; font-weight: 800; }

.reader-close {
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  cursor: pointer;
  flex: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.reader-close:hover { color: var(--ink); border-color: var(--gold); }
.reader-close svg { width: 17px; height: 17px; }

.reader-updated {
  padding: 4px 26px 0;
  font-size: 12.5px;
  color: var(--muted);
}

.reader-body {
  padding: 14px 26px 28px;
  overflow-y: auto;
  font-size: 15.5px;
  line-height: 2;
  color: var(--ink-3);
}
.reader-body p + p { margin-block-start: 12px; }

/* ===================== Responsive ===================== */
@media (max-width: 960px) {
  .nav-links { display: none; }

  .hero-inner, .pro-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-block: 48px 56px;
  }
  .hero-mark { margin-inline: auto; }
  .hero-title, .hero-sub { margin-inline: auto; }
  .badges, .hero-chips { justify-content: center; margin-inline: auto; }
  .hero-chips { grid-template-columns: repeat(2, 1fr); }
  .hero-phone { margin-block-start: 8px; }

  .pro-points { margin-inline: auto; text-align: start; }
  .pro-inner { gap: 32px; }

  .steps { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
  .steps { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-base { flex-direction: column; }
  .nav-contact { display: none; }
  .hero-chips { grid-template-columns: repeat(2, 1fr); }
  .phone-sm { width: 190px; }
  .reader { padding: 12px; }
  .reader-card { max-height: 88vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ===================== Counters, testimonials, partners =====================
   Three sections the hand-written page never had. They exist because the
   landing page is content-managed now: the old panel's «اراء عملائنا» and
   «فريق العمل» finally have somewhere to render, and a counter row is the
   obvious third. All three stay hidden until the console adds a row, so
   nothing below changes the page as it stands.
   ========================================================================= */

.stats { background: var(--paper); padding-block: 64px; }

.stat-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.stat-card {
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 34px;
  font-weight: 800;
  color: var(--ink-3);
  font-family: var(--font-en);
  line-height: 1.2;
}

.stat-label { display: block; margin-block-start: 6px; font-size: 15px; font-weight: 600; }
.stat-note { font-size: 13px; color: var(--muted); margin-block-start: 6px; }

.quotes { background: var(--ground); padding-block: 72px; }

.quote-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.quote-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.quote-body { font-size: 15px; color: var(--ink-3); line-height: 1.9; }

.quote-by { display: flex; align-items: center; gap: 12px; }

.quote-face {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: var(--wash);
}

.quote-by strong { display: block; font-size: 14.5px; font-weight: 700; }
.quote-by small { display: block; font-size: 12.5px; color: var(--muted); }

.partners { background: var(--paper); padding-block: 64px; }

.partner-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.partner-item {
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 22px;
  min-width: 140px;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-item img { max-height: 42px; width: auto; object-fit: contain; }
.partner-item span { font-size: 14.5px; font-weight: 700; color: var(--ink-3); }
