/* ============================================================
   Nawal — Brand Identity v1.0 (July 2026)
   Deep Teal #075E59 · Mint #77D6BD · Coral #F47B62
   Dark Ink #18302E · Warm Sand #F5F0E8 · Soft White #FFFDF9
   ============================================================ */

:root {
  --teal: #075E59;
  --mint: #77D6BD;
  --coral: #F47B62;
  --ink: #18302E;
  --sand: #F5F0E8;
  --white: #FFFDF9;

  --teal-dark: #054541;
  --muted: #5B6B68;
  --line: rgba(24, 48, 46, 0.12);

  --maxw: 1120px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(24,48,46,.04), 0 8px 24px rgba(24,48,46,.06);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 600; line-height: 1.25; color: var(--teal); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.25rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1.1em; }
a  { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
section { padding-block: clamp(56px, 8vw, 104px); }
.lead { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--muted); max-width: 60ch; }

/* ---------- Skip link (a11y) ---------- */
/* Visually hidden until focused. Uses clip rather than a large negative
   offset, which would create horizontal overflow in RTL. */
.skip {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
  background: var(--teal); color: var(--white); z-index: 100;
}
.skip:focus {
  position: fixed; inset-block-start: 0; inset-inline-start: 0;
  width: auto; height: auto; margin: 0; padding: 12px 18px;
  clip-path: none; border-radius: 0 0 10px 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,253,249,.88);
  backdrop-filter: saturate(160%) blur(12px);
  border-block-end: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 72px;
}
.lockup { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.lockup svg { display: block; width: 38px; height: 38px; flex: none; }
.lockup-text { display: flex; align-items: baseline; gap: 9px; }
.lockup-text .en { font-weight: 600; font-size: 1.42rem; color: var(--teal); letter-spacing: -.01em; }
.lockup-text .bar { width: 1.5px; height: 1.05em; background: var(--mint); border-radius: 2px; align-self: center; }
.lockup-text .ar { font-weight: 600; font-size: 1.42rem; color: var(--teal); }

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

/* ---------- Language toggle ---------- */
.lang {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); background: var(--white);
  border-radius: 999px; padding: 7px 15px;
  font-size: .92rem; font-weight: 600; color: var(--teal);
  text-decoration: none; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease;
}
.lang:hover { background: var(--sand); border-color: rgba(7,94,89,.3); }
.lang svg { width: 15px; height: 15px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 600; font-size: 1.02rem;
  padding: 15px 30px; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: var(--white); box-shadow: 0 6px 18px rgba(7,94,89,.22); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-ghost { background: transparent; color: var(--teal); border-color: rgba(7,94,89,.35); }
.btn-ghost:hover { background: var(--sand); }
.btn-sm { padding: 10px 20px; font-size: .95rem; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--sand) 0%, var(--white) 100%); padding-block: clamp(56px, 9vw, 112px); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(119,214,189,.28); color: var(--teal-dark);
  font-size: .87rem; font-weight: 600; padding: 7px 15px; border-radius: 999px;
  margin-block-end: 20px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); flex: none; }
.hero h1 { margin-block-end: .45em; }
.hero .lead { margin-block-end: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { font-size: .9rem; color: var(--muted); margin-block-start: 16px; }

/* ---------- WhatsApp mockup ---------- */
.phone {
  background: #0B141A;
  border-radius: 30px; padding: 13px;
  box-shadow: 0 24px 60px rgba(24,48,46,.20), 0 2px 8px rgba(24,48,46,.10);
  max-width: 370px; margin-inline: auto; width: 100%;
}
.phone-screen { background: #0B141A; border-radius: 20px; overflow: hidden; }
.phone-bar {
  display: flex; align-items: center; gap: 10px;
  background: #1F2C34; padding: 13px 15px; color: #E9EDEF;
}
.phone-avatar {
  width: 33px; height: 33px; border-radius: 50%; flex: none;
  background: var(--teal); color: #fff;
  display: grid; place-items: center; font-size: .78rem; font-weight: 600;
}
.phone-name { font-size: .93rem; font-weight: 600; line-height: 1.3; }
.phone-sub { font-size: .72rem; color: #8696A0; line-height: 1.3; }
.phone-body {
  padding: 18px 14px 22px;
  background: #0B141A;
  background-image: radial-gradient(rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 18px 18px;
  min-height: 268px;
}
.bubble {
  background: #1F2C34; color: #E9EDEF;
  border-radius: 12px; padding: 12px 14px 9px;
  font-size: .9rem; line-height: 1.65; max-width: 92%;
  box-shadow: 0 1px 1px rgba(0,0,0,.2);
}
.bubble strong { color: var(--mint); font-weight: 600; }
.bubble .time { font-size: .68rem; color: #8696A0; display: block; margin-block-start: 5px; }
.bubble-btn {
  display: block; text-align: center; margin-block-start: 11px;
  border-block-start: 1px solid rgba(233,237,239,.14);
  padding-block-start: 10px; color: #53BDEB; font-weight: 600; font-size: .88rem;
}
.bubble-meta {
  font-size: .68rem; color: #8696A0; margin-block-start: 9px;
  padding-inline-start: 3px; max-width: 92%;
}

/* ---------- Problem ---------- */
.problem { background: var(--ink); color: var(--sand); }
.problem h2 { color: var(--white); }
.problem .lead { color: rgba(245,240,232,.78); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-block-start: 44px; }
.stat-card {
  background: rgba(255,253,249,.06); border: 1px solid rgba(255,253,249,.10);
  border-radius: var(--radius); padding: 26px 24px;
}
.stat-card h3 { color: var(--mint); margin-block-end: .4em; }
.stat-card p { color: rgba(245,240,232,.75); margin: 0; font-size: .97rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-block-start: 48px; }
.step {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px 26px; box-shadow: var(--shadow);
}
.step-num {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--sand); color: var(--teal);
  display: grid; place-items: center; font-weight: 600; font-size: 1.08rem;
  margin-block-end: 16px;
}
.step p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- Why ---------- */
.why { background: var(--sand); }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-block-start: 44px; }
.why-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 28px 26px; border: 1px solid var(--line);
  display: flex; gap: 18px; align-items: flex-start;
}
.why-icon {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  background: rgba(119,214,189,.30); color: var(--teal);
  display: grid; place-items: center;
}
.why-icon svg { width: 22px; height: 22px; }
.why-card h3 { margin-block-end: .35em; }
.why-card p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--teal); color: var(--white); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band .lead { color: rgba(255,253,249,.85); margin-inline: auto; }
.cta-band .btn-primary { background: var(--white); color: var(--teal); box-shadow: none; margin-block-start: 12px; }
.cta-band .btn-primary:hover { background: var(--sand); }
.cta-band .hero-note { color: rgba(255,253,249,.7); }

/* ---------- Prose (utility pages) ---------- */
.prose { max-width: 74ch; }
.prose h2 { margin-block-start: 1.8em; }
.prose h3 { margin-block-start: 1.5em; color: var(--ink); }
.prose ul { padding-inline-start: 1.3em; margin-block-end: 1.2em; }
.prose li { margin-block-end: .5em; }
.page-head { background: var(--sand); padding-block: clamp(44px, 6vw, 72px); }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; }
.page-head .updated { color: var(--muted); font-size: .93rem; margin-block-start: 10px; }
.callout {
  background: var(--sand); border-inline-start: 3px solid var(--mint);
  border-radius: 10px; padding: 18px 22px; margin-block: 1.5em;
}
.callout p:last-child { margin-block-end: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(245,240,232,.82); padding-block: 56px 30px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 36px; justify-content: space-between; }
.site-footer .lockup-text .en,
.site-footer .lockup-text .ar { color: var(--white); }
.footer-tag { font-size: .95rem; color: rgba(245,240,232,.62); margin-block-start: 12px; max-width: 34ch; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 28px; }
.footer-col h4 { color: var(--mint); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; margin-block-end: 14px; }
.footer-col a { display: block; color: rgba(245,240,232,.82); text-decoration: none; font-size: .96rem; margin-block-end: 9px; }
.footer-col a:hover { color: var(--white); text-decoration: underline; }

/* ============================================================
   CR LEGAL FOOTER — ISOLATED COMPONENT
   ------------------------------------------------------------
   Commercial Registration details, required for Meta business
   verification. To remove or replace the CR line later, edit
   ONLY the <div class="cr-footer"> block in each HTML file
   (it is marked with matching comments) and this rule set.
   Nothing else depends on it.
   ============================================================ */
.cr-footer {
  margin-block-start: 34px;
  padding-block-start: 22px;
  border-block-start: 1px solid rgba(245,240,232,.14);
  font-size: .78rem;
  line-height: 1.85;
  color: rgba(245,240,232,.50);
}
.cr-footer p { margin: 0; }
/* Each line keeps its own writing direction so the mixed Arabic/Latin and
   the CR digits render correctly, but both align to the page's edge. */
.cr-footer .cr-ar { direction: rtl; unicode-bidi: isolate; }
.cr-footer .cr-en { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .cr-footer .cr-ar,
[dir="rtl"] .cr-footer .cr-en { text-align: right; }
[dir="ltr"] .cr-footer .cr-ar,
[dir="ltr"] .cr-footer .cr-en { text-align: left; }
/* ===================== END CR LEGAL FOOTER ==================== */

.copyright { font-size: .82rem; color: rgba(245,240,232,.45); margin-block-start: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .phone { margin-block-start: 8px; }
  .steps, .stat-row, .why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .lockup-text .en, .lockup-text .ar { font-size: 1.2rem; }
  .lockup svg { width: 28px; height: 28px; }
  /* Full-width CTAs on phones — but never the compact header button,
     which would blow out the header and cause horizontal overflow. */
  .btn:not(.btn-sm) { width: 100%; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .header-actions { gap: 6px; }
  .lang { padding: 6px 12px; font-size: .87rem; }
  /* The header CTA is redundant on phones — the hero CTA sits directly
     below it — and the two controls together overflow a 390px viewport. */
  .header-actions .btn-sm { display: none; }
  .footer-nav { gap: 24px; flex-direction: column; }
}

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