/* ===== Tashawr Clone — Pure HTML/CSS/JS ===== */
:root{
  --primary:#0f5132;
  --primary-dark:#0a3d25;
  --primary-light:#e6f1ec;
  --accent:#d4a017;
  --bg:#ffffff;
  --bg-soft:#f7f8f7;
  --text:#0e1a14;
  --text-muted:#5b6b62;
  --border:#e3e8e5;
  --radius:14px;
  --radius-sm:8px;
  --shadow-sm:0 1px 2px rgba(14,26,20,.06);
  --shadow:0 8px 28px rgba(14,26,20,.08);
  --maxw:1200px;
  --font:"Tajawal","Segoe UI",system-ui,-apple-system,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:var(--font);
  color:var(--text);
  background:var(--bg);
  line-height:1.7;
  direction:rtl;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
button{font-family:inherit;cursor:pointer;border:none;background:none}

.container{max-width:var(--maxw);margin:0 auto;padding:0 20px}
.section{padding:80px 0}
.section-sm{padding:48px 0}

/* ===== Header ===== */
.site-header{
  position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);
  backdrop-filter:blur(10px);border-bottom:1px solid var(--border);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:72px}
.logo{display:flex;align-items:center;gap:8px;font-weight:800;font-size:22px;color:var(--primary)}
.logo-mark{width:34px;height:34px;border-radius:9px;background:var(--primary);color:#fff;
  display:grid;place-items:center;font-weight:900;font-size:14px;letter-spacing:.5px}
.nav{display:flex;align-items:center;gap:6px}
.nav a{padding:8px 14px;border-radius:8px;font-size:15px;color:var(--text);transition:.2s}
.nav a:hover{background:var(--primary-light);color:var(--primary)}
.nav a.active{background:var(--primary-light);color:var(--primary);font-weight:700}
.header-cta{display:flex;align-items:center;gap:10px}
.btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:11px 20px;border-radius:10px;font-weight:700;font-size:14.5px;
  transition:.2s;border:1px solid transparent;cursor:pointer;
}
.btn-primary{background:var(--primary);color:#fff}
.btn-primary:hover{background:var(--primary-dark)}
.btn-ghost{background:transparent;color:var(--text);border:1px solid var(--border)}
.btn-ghost:hover{border-color:var(--primary);color:var(--primary)}
.btn-outline{border:1px solid var(--primary);color:var(--primary);background:#fff}
.btn-outline:hover{background:var(--primary);color:#fff}
.menu-toggle{display:none;width:42px;height:42px;border-radius:10px;border:1px solid var(--border);
  background:#fff;align-items:center;justify-content:center;font-size:22px}

/* ===== Hero ===== */
.hero{padding:60px 0 80px;background:linear-gradient(180deg,#fff 0%,var(--bg-soft) 100%);overflow:hidden}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:60px;align-items:center}
.eyebrow{display:inline-block;font-size:13px;font-weight:700;color:var(--primary);
  background:var(--primary-light);padding:6px 12px;border-radius:999px;margin-bottom:18px}
.hero h1{font-size:clamp(34px,5vw,56px);font-weight:900;line-height:1.18;letter-spacing:-.02em;margin-bottom:18px}
.hero h1 .accent{color:var(--primary)}
.hero p.lead{font-size:18px;color:var(--text-muted);max-width:540px;margin-bottom:26px}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:24px}
.hero-meta{display:flex;flex-wrap:wrap;gap:18px;color:var(--text-muted);font-size:14px}
.hero-meta span{display:inline-flex;align-items:center;gap:6px}
.hero-meta .dot{width:6px;height:6px;border-radius:50%;background:var(--primary)}
.hero-visual{position:relative;display:grid;place-items:center;min-height:520px}
.hero-visual img{max-width:380px;filter:drop-shadow(0 30px 60px rgba(15,81,50,.18))}
.hero-blob{position:absolute;inset:0;background:
  radial-gradient(circle at 30% 30%, rgba(15,81,50,.10), transparent 60%),
  radial-gradient(circle at 70% 70%, rgba(212,160,23,.10), transparent 60%);
  z-index:-1}

/* ===== Section heading ===== */
.section-head{text-align:center;max-width:680px;margin:0 auto 48px}
.section-head .eyebrow{margin-bottom:14px}
.section-head h2{font-size:clamp(28px,3.6vw,42px);font-weight:900;line-height:1.25;margin-bottom:12px}
.section-head p{color:var(--text-muted);font-size:17px}

/* ===== Stats grid ===== */
.stats{background:var(--bg-soft)}
.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.stat-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:28px;text-align:center;transition:.25s}
.stat-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.stat-value{font-size:38px;font-weight:900;color:var(--primary);line-height:1}
.stat-label{margin-top:10px;font-weight:700}
.stat-desc{margin-top:6px;font-size:14px;color:var(--text-muted)}

/* ===== Services / Tabs ===== */
.tabs{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-bottom:32px}
.tab{padding:9px 16px;border-radius:999px;border:1px solid var(--border);background:#fff;
  font-size:14px;font-weight:600;color:var(--text-muted);transition:.2s;display:inline-flex;align-items:center;gap:6px}
.tab .count{background:var(--bg-soft);padding:1px 8px;border-radius:999px;font-size:12px}
.tab.active{background:var(--primary);color:#fff;border-color:var(--primary)}
.tab.active .count{background:rgba(255,255,255,.2);color:#fff}

.service-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.service-card{
  background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:24px;
  display:flex;flex-direction:column;gap:14px;transition:.25s;position:relative;overflow:hidden;
}
.service-card:hover{border-color:var(--primary);transform:translateY(-4px);box-shadow:var(--shadow)}
.service-card .num{font-size:13px;color:var(--text-muted);font-weight:700}
.service-card .icon{width:54px;height:54px;border-radius:12px;background:var(--primary-light);
  display:grid;place-items:center;font-size:24px;color:var(--primary)}
.service-card h3{font-size:18px;font-weight:800}
.service-card p{font-size:14px;color:var(--text-muted);flex:1}
.service-card .price{font-weight:800;color:var(--primary);font-size:15px}
.service-card .price small{font-weight:500;color:var(--text-muted);font-size:12px;display:block}

/* ===== Lawyers grid ===== */
.filter-bar{display:flex;flex-wrap:wrap;gap:12px;background:#fff;border:1px solid var(--border);
  border-radius:var(--radius);padding:18px;margin-bottom:28px}
.filter-bar input,.filter-bar select{
  flex:1;min-width:180px;padding:11px 14px;border-radius:10px;border:1px solid var(--border);
  background:#fff;font-family:inherit;font-size:14.5px;color:var(--text);
}
.filter-bar input:focus,.filter-bar select:focus{outline:none;border-color:var(--primary)}

.lawyers-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.lawyer-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);
  padding:22px;transition:.25s;display:flex;flex-direction:column;gap:14px}
.lawyer-card:hover{border-color:var(--primary);box-shadow:var(--shadow);transform:translateY(-3px)}
.lawyer-head{display:flex;gap:14px;align-items:center}
.lawyer-avatar{width:62px;height:62px;border-radius:50%;background:var(--primary-light);
  color:var(--primary);font-weight:900;font-size:22px;display:grid;place-items:center;flex-shrink:0}
.lawyer-name{font-weight:800;font-size:17px}
.lawyer-meta{font-size:13px;color:var(--text-muted)}
.badge-moj{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--primary);
  background:var(--primary-light);padding:4px 10px;border-radius:999px;font-weight:700;width:fit-content}
.lawyer-rating{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--text-muted)}
.lawyer-rating .star{color:var(--accent)}
.lawyer-tags{display:flex;flex-wrap:wrap;gap:6px}
.tag{font-size:12px;background:var(--bg-soft);padding:3px 10px;border-radius:999px;color:var(--text-muted)}
.lawyer-bio{font-size:13.5px;color:var(--text-muted);line-height:1.7;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.lawyer-foot{display:flex;justify-content:space-between;align-items:center;padding-top:12px;border-top:1px solid var(--border)}
.lawyer-foot small{color:var(--text-muted);font-size:12.5px}

/* ===== Features list ===== */
.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.feature-card{padding:28px;border:1px solid var(--border);border-radius:var(--radius);background:#fff;transition:.25s}
.feature-card:hover{border-color:var(--primary);transform:translateY(-3px);box-shadow:var(--shadow)}
.feature-icon{width:50px;height:50px;border-radius:12px;background:var(--primary-light);
  color:var(--primary);display:grid;place-items:center;font-size:22px;margin-bottom:14px}
.feature-card h3{font-size:18px;font-weight:800;margin-bottom:8px}
.feature-card p{color:var(--text-muted);font-size:14.5px}

/* ===== Steps ===== */
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;counter-reset:step}
.step{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:28px;position:relative}
.step:before{counter-increment:step;content:"0" counter(step);
  position:absolute;top:18px;left:18px;font-weight:900;color:var(--primary);font-size:13px;
  background:var(--primary-light);padding:4px 10px;border-radius:999px}
.step h3{font-size:18px;font-weight:800;margin:30px 0 8px}
.step p{color:var(--text-muted);font-size:14.5px}

/* ===== CTA ===== */
.cta{background:linear-gradient(135deg,var(--primary) 0%,var(--primary-dark) 100%);color:#fff;border-radius:24px;padding:60px 40px;text-align:center;margin:40px 0}
.cta h2{font-size:clamp(26px,3.4vw,38px);font-weight:900;margin-bottom:14px}
.cta p{font-size:17px;opacity:.9;margin-bottom:24px;max-width:560px;margin-inline:auto}
.cta .btn{padding:13px 26px}
.cta .btn-primary{background:#fff;color:var(--primary)}
.cta .btn-primary:hover{background:var(--bg-soft)}
.cta .btn-outline{border-color:rgba(255,255,255,.45);color:#fff;background:transparent}
.cta .btn-outline:hover{background:rgba(255,255,255,.12);color:#fff}

/* ===== Blog ===== */
.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.blog-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;transition:.25s;display:flex;flex-direction:column}
.blog-card:hover{border-color:var(--primary);box-shadow:var(--shadow);transform:translateY(-3px)}
.blog-cover{height:200px;background:linear-gradient(135deg,var(--primary-light),#d8e9e0);position:relative;display:grid;place-items:center;color:var(--primary);font-size:42px}
.blog-body{padding:22px;display:flex;flex-direction:column;gap:10px;flex:1}
.blog-meta{font-size:12.5px;color:var(--text-muted)}
.blog-card h3{font-size:18px;font-weight:800;line-height:1.45}
.blog-card p{color:var(--text-muted);font-size:14.5px;flex:1}
.read-more{color:var(--primary);font-weight:700;font-size:14px}

/* ===== Forms ===== */
.form{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:32px;max-width:680px;margin:0 auto}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}
.field{display:flex;flex-direction:column;gap:6px}
.field label{font-size:13.5px;font-weight:700}
.field input,.field select,.field textarea{
  padding:12px 14px;border-radius:10px;border:1px solid var(--border);font-family:inherit;font-size:15px;background:#fff;
}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--primary)}
.field textarea{min-height:130px;resize:vertical}
.form .btn{width:100%;justify-content:center;margin-top:10px;padding:14px}

/* ===== FAQ ===== */
.faq{max-width:780px;margin:0 auto;display:flex;flex-direction:column;gap:12px}
.faq-item{border:1px solid var(--border);border-radius:12px;background:#fff;overflow:hidden}
.faq-q{width:100%;text-align:right;padding:18px 22px;font-weight:700;font-size:16px;
  display:flex;justify-content:space-between;align-items:center;background:#fff}
.faq-q:after{content:"+";font-size:22px;color:var(--primary);transition:.2s}
.faq-item.open .faq-q:after{transform:rotate(45deg)}
.faq-a{max-height:0;overflow:hidden;transition:max-height .3s ease;color:var(--text-muted);font-size:14.5px}
.faq-a div{padding:0 22px 18px}
.faq-item.open .faq-a{max-height:400px}

/* ===== App download ===== */
.app-cta{display:flex;gap:14px;flex-wrap:wrap;margin-top:20px}
.store-btn{display:inline-flex;align-items:center;gap:10px;background:#0e1a14;color:#fff;
  padding:12px 22px;border-radius:12px;font-weight:700;font-size:14px;transition:.2s}
.store-btn:hover{transform:translateY(-2px);background:#000}
.store-btn .lbl{display:flex;flex-direction:column;line-height:1.2}
.store-btn .lbl small{font-size:11px;font-weight:500;opacity:.8}

/* ===== Page header (subpages) ===== */
.page-hero{padding:70px 0 50px;background:linear-gradient(180deg,var(--primary-light) 0%,#fff 100%);text-align:center}
.page-hero h1{font-size:clamp(32px,4.4vw,48px);font-weight:900;margin-bottom:14px}
.page-hero p{color:var(--text-muted);font-size:17px;max-width:620px;margin:0 auto}
.crumbs{font-size:13.5px;color:var(--text-muted);margin-bottom:18px}
.crumbs a{color:var(--primary);font-weight:600}

/* ===== Prose (blog post, terms) ===== */
.prose{max-width:780px;margin:0 auto;font-size:16.5px;line-height:1.95;color:#1a2922}
.prose h2{font-size:26px;font-weight:900;margin:36px 0 14px;color:var(--primary)}
.prose h3{font-size:20px;font-weight:800;margin:28px 0 10px}
.prose p{margin-bottom:14px;color:#2a3a32}
.prose ul,.prose ol{margin:14px 24px}
.prose li{margin-bottom:6px}
.prose blockquote{border-right:4px solid var(--primary);background:var(--primary-light);
  padding:18px 22px;border-radius:8px;margin:20px 0;font-weight:600;color:var(--primary-dark)}

/* ===== Footer ===== */
.site-footer{background:#0a1a12;color:#cdd6d1;padding:60px 0 24px;margin-top:60px}
.foot-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:40px;margin-bottom:40px}
.foot-col h4{color:#fff;font-size:15px;font-weight:800;margin-bottom:14px}
.foot-col a{display:block;padding:6px 0;font-size:14px;color:#9aa9a2;transition:.2s}
.foot-col a:hover{color:#fff}
.foot-about p{font-size:14px;color:#9aa9a2;margin:12px 0;line-height:1.8}
.socials{display:flex;gap:10px;margin-top:14px}
.socials a{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.06);
  display:grid;place-items:center;color:#fff;padding:0}
.socials a:hover{background:var(--primary)}
.foot-bottom{border-top:1px solid rgba(255,255,255,.08);padding-top:20px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;font-size:13px;color:#7e8c85}

/* ===== Floating WhatsApp ===== */
.fab-wa{position:fixed;bottom:24px;left:24px;width:56px;height:56px;border-radius:50%;
  background:#25d366;color:#fff;display:grid;place-items:center;font-size:26px;
  box-shadow:0 10px 24px rgba(37,211,102,.4);z-index:60;transition:.2s}
.fab-wa:hover{transform:scale(1.06)}

/* ===== Responsive ===== */
@media (max-width:960px){
  .hero-grid{grid-template-columns:1fr;text-align:center}
  .hero-actions,.hero-meta{justify-content:center}
  .hero-visual{min-height:380px}
  .stat-grid,.service-grid,.lawyers-grid,.blog-grid,.feature-grid,.steps{grid-template-columns:repeat(2,1fr)}
  .foot-grid{grid-template-columns:1fr 1fr}
  .nav{display:none;position:absolute;top:72px;right:0;left:0;background:#fff;
    flex-direction:column;align-items:stretch;padding:14px;border-bottom:1px solid var(--border);box-shadow:var(--shadow)}
  .nav.open{display:flex}
  .nav a{padding:12px 14px}
  .menu-toggle{display:inline-flex}
  .header-cta .btn-ghost{display:none}
}
@media (max-width:560px){
  .stat-grid,.service-grid,.lawyers-grid,.blog-grid,.feature-grid,.steps,.form-row{grid-template-columns:1fr}
  .foot-grid{grid-template-columns:1fr}
  .cta{padding:40px 22px}
  .section{padding:56px 0}
}
