/* Shawwir marketing site — shared stylesheet (RTL + LTR via logical properties). */

:root {
  --navy-900: #0f1e2b;
  --navy-800: #1a2f3f;
  --navy-700: #2d4f67;
  --navy-600: #3d6480;
  --teal: #5dd5d5;
  --green: #00d4aa;
  --green-700: #00b894;
  --whatsapp: #25d366;
  --ink: #1f2933;
  --ink-2: #4b5563;
  --ink-3: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-2: #f6f8fa;
  --bg-3: #e8f6f6;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 30, 43, 0.08);
  --header-h: 64px;
  /* Typography: institutional Kufi for headings/buttons, formal Naskh for reading text (Arabic pages).
     Swap these two lines to change the whole site's look. */
  --font-head: "Noto Kufi Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  --font-body: "Noto Naskh Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  --body-size: 17px;
}
html[lang="en"] {
  --font-head: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  --body-size: 17px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--body-size);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, h4, .btn, .brand, .nav-links, .mobile-nav a, .lang-switch, .eyebrow, .tier-badge, .step-num, .faq-q, .ask-card label, .ask-examples button, .tag, .article-card .more {
  font-family: var(--font-head);
}
h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-lg { width: 28px; height: 28px; }

.container { width: min(1100px, 100% - 32px); margin-inline: auto; }
.section { padding-block: 64px; }
.section-tight { padding-block: 40px; }
.section-alt { background: var(--bg-2); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.eyebrow { color: var(--green-700); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 34px); color: var(--navy-800); }
.section-head p { color: var(--ink-2); margin-top: 10px; font-size: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background .2s, transform .1s, box-shadow .2s; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid rgba(93, 213, 213, .7); outline-offset: 2px; }
.btn-primary { background: linear-gradient(135deg, var(--green) 0%, var(--green-700) 100%); color: #fff; box-shadow: 0 8px 24px rgba(0, 212, 170, .35); }
.btn-primary:hover { box-shadow: 0 10px 28px rgba(0, 212, 170, .45); }
.btn-lg { min-height: 56px; font-size: 18px; padding-inline: 28px; }
.btn-secondary { background: #fff; color: var(--navy-700); border-color: var(--line); }
.btn-secondary:hover { background: var(--bg-2); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #1fbf5b; }
.btn-block { width: 100%; }
.link { color: var(--green-700); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Header */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 1000; height: var(--header-h);
  background: rgba(22, 43, 60, .96); color: #fff; backdrop-filter: blur(8px);
}
.site-header .container { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 20px; }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 6px; margin-inline-start: auto; }
.nav-links a { color: #e5eef2; text-decoration: none; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.nav-links a:hover { color: var(--teal); background: rgba(255,255,255,.06); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 10px; border: 0; background: transparent; color: #fff; cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: rgba(255,255,255,.1); }
.lang-switch { color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.25); min-height: 40px; display: inline-flex; align-items: center; }
.menu-toggle { display: none; }
.mobile-nav { display: none; position: fixed; top: var(--header-h); inset-inline: 0; z-index: 999; background: rgba(22, 43, 60, .98); padding: 8px 16px 20px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: flex; align-items: center; min-height: 48px; color: #fff; text-decoration: none; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-nav .mobile-nav-actions { display: flex; gap: 10px; margin-top: 14px; }
.mobile-nav .mobile-nav-actions a { flex: 1; border: 0; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(900px 500px at 85% -10%, rgba(93,213,213,.18), transparent 60%), linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 100%);
  padding: calc(var(--header-h) + 48px) 0 56px;
}
.hero .container { display: grid; gap: 28px; grid-template-columns: 1.1fr .9fr; align-items: center; }
.hero h1 { font-size: clamp(28px, 4.2vw, 46px); margin-bottom: 14px; }
.hero h1 .highlight { color: var(--teal); }
.hero-lead { font-size: clamp(16px, 1.6vw, 19px); color: rgba(255,255,255,.88); max-width: 560px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 22px; font-size: 14px; color: rgba(255,255,255,.9); }
.hero-proof li { display: inline-flex; align-items: center; gap: 6px; }
.hero-proof .icon { color: var(--green); }
.hero-proof .stat { font-family: var(--font-head); font-weight: 700; color: #fff; }
.hero-proof .stat strong { color: var(--teal); font-size: 1.1em; }

.ask-card { background: #fff; color: var(--ink); border-radius: 18px; padding: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.ask-card label { display: block; font-weight: 700; color: var(--navy-800); margin-bottom: 8px; font-size: 15px; }
.ask-card textarea {
  width: 100%; min-height: 108px; resize: none; border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px;
  font: inherit; font-size: 16px; line-height: 1.5; color: var(--ink); background: #fff;
}
.ask-card textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(0,212,170,.15); }
.ask-examples { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.ask-examples button {
  border: 1px solid var(--line); background: var(--bg-2); color: var(--ink-2); border-radius: 999px; padding: 8px 12px; font-size: 13px; cursor: pointer; min-height: 36px;
}
.ask-examples button:hover { border-color: var(--teal); color: var(--navy-700); }
.ask-note { margin-top: 10px; font-size: 12px; color: var(--ink-3); text-align: center; }
.ask-alt { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; font-size: 14px; color: var(--ink-2); }
.ask-alt a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; min-height: 40px; padding: 4px 10px; border-radius: 8px; }
.ask-alt a.whatsapp { color: #0d8f45; background: rgba(37,211,102,.12); }
.ask-alt a.call { color: var(--navy-700); background: var(--bg-2); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--navy-700); color: #fff; font-weight: 700; display: grid; place-items: center; margin-bottom: 14px; }
.step h3 { font-size: 18px; color: var(--navy-800); margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: 15px; }

/* Practice areas */
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.area {
  display: flex; align-items: center; gap: 14px; text-align: start; width: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .1s; min-height: 76px;
}
.area:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.area:active { transform: translateY(1px); }
.area .icon-wrap { width: 46px; height: 46px; border-radius: 12px; background: var(--bg-3); color: var(--navy-700); display: grid; place-items: center; flex-shrink: 0; }
.area h3 { font-size: 16px; color: var(--navy-800); }
.area p { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.area .chev { margin-inline-start: auto; color: var(--ink-3); }
[dir="rtl"] .chev { transform: scaleX(-1); }
.areas-more { text-align: center; margin-top: 18px; color: var(--ink-2); font-size: 15px; }

/* Pricing */
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; margin: 0 auto; }
.tier { background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; }
.tier.free { border-color: var(--green); }
.tier.paid { border-color: var(--navy-700); }
.tier-badge { display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; color: #fff; background: var(--green-700); margin-bottom: 12px; }
.tier.paid .tier-badge { background: var(--navy-700); }
.tier h3 { font-size: 20px; color: var(--navy-800); }
.tier .price { font-size: 32px; font-weight: 800; color: var(--green-700); margin: 6px 0 14px; }
.tier.paid .price { color: var(--navy-700); }
.tier .price small { font-size: 14px; font-weight: 500; color: var(--ink-3); margin-inline-start: 6px; }
.tier ul { display: grid; gap: 8px; margin-bottom: 18px; }
.tier li { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-2); font-size: 15px; }
.tier li .icon { color: var(--green-700); margin-top: 3px; }
.tier .when { font-size: 13px; color: var(--ink-3); margin-bottom: 16px; }
.tier .btn { margin-top: auto; }

/* Trust strip */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.trust .icon-wrap { width: 40px; height: 40px; border-radius: 10px; background: var(--bg-3); color: var(--navy-700); display: grid; place-items: center; flex-shrink: 0; }
.trust h3 { font-size: 15px; color: var(--navy-800); }
.trust p { font-size: 13px; color: var(--ink-3); margin-top: 2px; }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: start;
  background: none; border: 0; padding: 16px 18px; font-weight: 700; font-size: 16px; color: var(--navy-800); cursor: pointer; min-height: 56px;
}
.faq-q .icon { transition: transform .2s; color: var(--ink-3); }
.faq-q[aria-expanded="true"] .icon { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 18px 16px; color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.faq-item.is-open .faq-a { display: block; }
.faq-cta { text-align: center; margin-top: 28px; }

/* Articles */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.article-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: inherit; transition: box-shadow .2s, border-color .2s; }
.article-card:hover { box-shadow: var(--shadow); border-color: var(--teal); }
.article-card .tag { display: inline-block; font-size: 12px; color: var(--green-700); font-weight: 600; margin-bottom: 8px; }
.article-card h3 { font-size: 17px; color: var(--navy-800); margin-bottom: 6px; }
.article-card p { font-size: 14px; color: var(--ink-2); }
.article-card .more { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--green-700); }

/* Lawyers CTA */
.lawyers { background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 100%); color: #fff; text-align: center; }
.lawyers h2 { font-size: clamp(24px, 3vw, 32px); }
.lawyers p { color: rgba(255,255,255,.85); max-width: 600px; margin: 10px auto 22px; }
.store-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.store-row .btn img { width: 18px; height: 18px; }

/* Footer */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.8); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; }
.site-footer a:hover { color: var(--teal); }
.footer-links a { display: flex; }
.footer-contact a { display: flex; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; color: rgba(255,255,255,.55); }

/* Sticky mobile bar */
.sticky-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 998; display: none; gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(15,30,43,.12);
  transform: translateY(110%); transition: transform .25s;
}
.sticky-bar.is-visible { transform: translateY(0); }
.sticky-bar .btn-primary { flex: 1; min-height: 50px; }
.sticky-bar .btn-whatsapp { width: 50px; min-height: 50px; padding: 0; border-radius: 12px; }
body.has-sticky { padding-bottom: 80px; }

/* Responsive */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-lead, .hero-proof { margin-inline: auto; justify-content: center; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions .lang-switch { display: none; }
  .hero { padding: calc(var(--header-h) + 20px) 0 36px; }
  .hero .container { gap: 18px; }
  .hero h1 { font-size: clamp(24px, 6.4vw, 30px); margin-bottom: 8px; }
  /* The headline + question box carry the message on phones; keep the first screen short
     so the submit button is visible without scrolling. */
  .hero-lead { display: none; }
  .hero-proof { margin-top: 8px; gap: 6px 14px; font-size: 13px; }
  .hero-proof .stat { flex-basis: 100%; justify-content: center; font-size: 15px; }
  .ask-card { padding: 16px; }
  .ask-card textarea { min-height: 96px; }
  .ask-examples { margin: 8px 0 12px; }
  .steps, .areas-grid, .tiers { grid-template-columns: 1fr; }
  .steps { gap: 12px; }
  .step { padding: 18px; }
  .step-num { width: 32px; height: 32px; margin-bottom: 10px; }
  .section { padding-block: 40px; }
  .section-head { margin-bottom: 20px; }
  .trust-grid { gap: 10px; }
  .trust { padding: 12px; }
  /* Articles: one swipeable row instead of a 5-card column. */
  .articles-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; margin-inline: -16px; padding: 4px 16px 10px; scrollbar-width: none; }
  .articles-grid::-webkit-scrollbar { display: none; }
  .article-card { flex: 0 0 76%; scroll-snap-align: start; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .sticky-bar { display: flex; }
}
@media (max-width: 480px) {
  .brand span { font-size: 18px; }
  .trust h3 { font-size: 14px; }
  .trust p { font-size: 12px; }
}
