/* Shared styles for the secondary pages: /services, the two articles, and
   /privacy-policy. The landing page has its own styles.css and does not use
   this file — these pages are long-form reading, not a conversion flow, so
   they get their own much smaller sheet rather than dragging in 28 KB of
   order-card CSS.

   The palette below is copied from the `#bb-root` block in styles.css. It is
   duplicated because these pages have no #bb-root wrapper; if a brand colour
   changes, change it in both files. */

:root{
  --brand-orange:#fc4631;
  --brand-navy:#10276b;

  --paper:#f9fafd;
  --card:#ffffff;
  --ink:#232833;
  --muted:#727a88;
  --line:#e0e5ee;
  --wash:#f4f6fa;

  --accent:var(--brand-orange);
  --mint:#0e7d3a;
  --mint-soft:#e7f4ea;

  --r-lg:24px;
  --r-md:16px;
  --shadow:0 10px 30px rgba(35,45,70,.08);

  --mx:820px;          /* article measure — wider than this hurts readability */

  color-scheme:light;
}

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

body{
  background:var(--paper);
  color:var(--ink);
  font-family:Tajawal,-apple-system,"SF Arabic",BlinkMacSystemFont,"Segoe UI","Noto Sans Arabic",sans-serif;
  line-height:1.85;
  font-size:17px;
  -webkit-text-size-adjust:100%;
}

img{max-width:100%;height:auto}
a{color:var(--accent)}

/* ---------- header ---------- */
/* Logo sits at the left edge, matching .bb-header on the landing page. The auto
   margin is on the inline-start side (the right, in RTL) so it stays correct if
   the page ever renders LTR. */
.pg-header{
  max-width:var(--mx);margin:0 auto;padding:22px 20px 0;
  display:flex;align-items:center;
}
.pg-header a{display:block;line-height:0;margin-inline-start:auto}
.pg-logo{width:132px;height:auto;display:block}
@media(max-width:400px){ .pg-logo{width:118px} }

/* ---------- layout ---------- */
main{max-width:var(--mx);margin:0 auto;padding:8px 20px 72px}

.pg-crumb{font-size:.9rem;color:var(--muted);margin:20px 0 10px}
.pg-crumb a{color:var(--muted);text-decoration:none}
.pg-crumb a:hover{color:var(--accent)}

h1{
  font-size:clamp(1.75rem,5vw,2.5rem);font-weight:800;line-height:1.35;
  color:var(--brand-navy);margin:6px 0 20px;letter-spacing:-.01em;
}
.pg-lead{color:var(--muted);font-size:1.05rem;margin:0 0 28px}

.pg-hero-img{width:100%;border-radius:var(--r-lg);display:block;margin:0 0 28px;box-shadow:var(--shadow)}

/* ---------- sections ---------- */
section{
  background:var(--card);border:1px solid var(--line);border-radius:var(--r-lg);
  box-shadow:var(--shadow);padding:26px 24px;margin:0 0 20px;
}
h2{
  font-size:clamp(1.25rem,3.6vw,1.6rem);font-weight:800;line-height:1.45;
  color:var(--brand-navy);margin:0 0 14px;
}
h3{font-size:1.1rem;font-weight:700;color:var(--ink);margin:22px 0 6px}
h3:first-of-type{margin-top:10px}

p + p{margin-top:14px}
section p strong{color:var(--ink)}

ul,ol{padding-inline-start:1.3em;margin-top:10px}
li + li{margin-top:8px}
li::marker{color:var(--accent)}

/* ---------- keyword chips ---------- */
.pg-chips{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:18px 0 0}
.pg-chips li{
  background:var(--wash);border:1px solid var(--line);border-radius:999px;
  padding:6px 14px;font-size:.9rem;color:var(--muted);margin:0;
}
.pg-chips li a{color:var(--accent);text-decoration:none;font-weight:500}
.pg-chips li a:hover{text-decoration:underline}

/* ---------- callout ---------- */
.pg-note{
  background:var(--wash);border:1px solid var(--line);border-inline-start:3px solid var(--accent);
  border-radius:var(--r-md);padding:14px 16px;margin:18px 0 0;font-size:.98rem;
}
.pg-note a{font-weight:700}

/* ---------- FAQ ---------- */
details{
  border:1px solid var(--line);border-radius:var(--r-md);
  background:var(--card);margin-top:10px;overflow:hidden;
}
details[open]{background:var(--wash)}
summary{
  cursor:pointer;padding:14px 16px;font-weight:700;list-style:none;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
}
summary::-webkit-details-marker{display:none}
/* Physical borders on purpose: a chevron points DOWN in both directions, so the
   logical border-inline-end would flip it sideways under dir="rtl". */
summary::after{
  content:'';flex:none;width:9px;height:9px;
  border-right:2.2px solid var(--muted);border-bottom:2.2px solid var(--muted);
  transform:rotate(45deg);transition:transform .2s;margin-top:-5px;
}
details[open] summary::after{transform:rotate(-135deg);margin-top:4px}
details > div{padding:0 16px 14px}

/* ---------- table of contents (privacy policy) ---------- */
.pg-toc{background:var(--card);border:1px solid var(--line);border-radius:var(--r-lg);padding:20px 24px;margin:0 0 22px;box-shadow:var(--shadow)}
.pg-toc strong{display:block;margin-bottom:10px;color:var(--brand-navy)}
.pg-toc ol{columns:2;column-gap:28px;padding-inline-start:1.3em}
.pg-toc li{break-inside:avoid;margin:0 0 4px}
.pg-toc a{color:var(--ink);text-decoration:none}
.pg-toc a:hover{color:var(--accent);text-decoration:underline}
@media (max-width:560px){ .pg-toc ol{columns:1} }

/* ---------- reviews (live players, same approach as the landing page) ---------- */
.pg-yt-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px;margin-top:6px}
.pg-yt{position:relative;aspect-ratio:9/16;border-radius:var(--r-md);overflow:hidden;background:#0b0c0f}
.pg-yt-link{
  position:absolute;inset:0;display:grid;place-items:center;padding:14px;
  color:#fff;font-weight:700;font-size:.85rem;text-align:center;text-decoration:none;
  background:linear-gradient(150deg,#1c2130,#8a2f1c 55%,#fc4631);
}
.pg-yt iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}

/* ---------- CTA ---------- */
.pg-cta-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-top:14px}
.pg-appstore img{width:180px;height:auto;display:block}
.pg-appstore{display:block;transition:transform .15s}
.pg-appstore:hover{transform:translateY(-2px)}

/* ---------- footer ---------- */
.pg-footer{
  max-width:var(--mx);margin:0 auto;padding:24px 20px 40px;
  border-top:1px solid var(--line);color:var(--muted);font-size:.9rem;
  display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;
}
.pg-footer a{color:var(--muted);text-decoration:none}
.pg-footer a:hover{color:var(--accent)}
.pg-footer nav{display:flex;flex-wrap:wrap;gap:14px}

/* ---------- WhatsApp FAB (matches .bb-wa on the landing page) ---------- */
.pg-wa{
  position:fixed;bottom:18px;inset-inline-end:16px;z-index:50;
  width:54px;height:54px;border-radius:50%;background:#25D366;
  display:grid;place-items:center;
  box-shadow:0 10px 26px rgba(0,0,0,.22);transition:transform .15s;
}
.pg-wa:hover{transform:translateY(-2px)}
.pg-wa svg{width:28px;height:28px;fill:#fff}

@media print{
  body{background:#fff}
  section,.pg-toc{box-shadow:none;border-color:#ddd;break-inside:avoid}
  .pg-wa,.pg-yt-grid,.pg-cta-actions{display:none}
  a{color:#000;text-decoration:underline}
}
