/* Almohami / Lawyer App — marketing site
   Brand: green #19724B + gold #CFAC47 (from the app logo). Bilingual EN/AR. */

:root {
  --green: #19724b;
  --green-dark: #0f4f34;
  --green-050: #eef5f1;
  --gold: #cfac47;
  --gold-dark: #b5922f;
  --ink: #16211c;
  --body: #33413b;
  --muted: #6b7a73;
  --line: #e4eae6;
  --bg: #ffffff;
  --soft: #f6f8f7;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 40, 30, .04), 0 12px 30px -12px rgba(16, 40, 30, .12);
  --container: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-ar: "Cairo", system-ui, "Segoe UI", Tahoma, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

html[lang="ar"] body { font-family: var(--font-ar); line-height: 1.9; }

/* --- language visibility: English is the default; Arabic shows only when lang=ar --- */
.ar { display: none; }
html[lang="ar"] .ar { display: revert; }
html[lang="ar"] .en { display: none; }

img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: 72px 0; }
.section--soft { background: var(--soft); }
.eyebrow { color: var(--green); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; margin: 0 0 .6rem; }
.lead { font-size: 1.12rem; color: var(--body); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .06s ease, background .2s, border-color .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--green); color: var(--green); }

/* --- header --- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 1.25rem; height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--ink); font-size: 1.15rem; }
.brand svg, .brand img { width: 30px; height: 38px; }
.brand small { display: block; font-weight: 500; font-size: .68rem; color: var(--muted); letter-spacing: .04em; }
.nav-links { display: flex; gap: 1.25rem; margin-inline-start: auto; align-items: center; }
.nav-links a { color: var(--body); font-weight: 500; font-size: .96rem; }
.nav-links a:hover { color: var(--green); }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.lang-toggle {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  padding: .45rem .8rem; border-radius: 999px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
}
.lang-toggle:hover { border-color: var(--green); color: var(--green); }

/* --- hero --- */
.hero { position: relative; padding: 84px 0 72px; background:
    radial-gradient(1200px 400px at 80% -10%, var(--green-050), transparent 60%),
    linear-gradient(180deg, #fff, var(--soft)); overflow: hidden; }
.hero .container { position: relative; }
.hero h1 { max-width: 16ch; }
.hero .lead { margin-top: .5rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-note { margin-top: 1rem; color: var(--muted); font-size: .88rem; }
.badge-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.store-badge {
  display: inline-flex; align-items: center; gap: .6rem; padding: .6rem 1rem; border-radius: 12px;
  background: var(--ink); color: #fff; font-size: .8rem; line-height: 1.15;
}
.store-badge b { font-size: 1rem; font-weight: 700; }
.store-badge span { opacity: .8; }

/* --- feature grid --- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--green-050); color: var(--green); margin-bottom: 14px;
}
.card .ico svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .3rem; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }

/* --- steps --- */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding-top: 8px; }
.step .num {
  width: 40px; height: 40px; border-radius: 999px; background: var(--green); color: #fff;
  display: grid; place-items: center; font-weight: 700; margin-bottom: 12px;
}
.step h3 { font-size: 1.05rem; }
.step p { color: var(--muted); font-size: .94rem; margin: 0; }

/* --- CTA band --- */
.cta {
  background: linear-gradient(120deg, var(--green-dark), var(--green));
  color: #fff; border-radius: 20px; padding: 48px; text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .9); max-width: 54ch; margin-inline: auto; }
.cta .btn--primary { background: var(--gold); color: #2a2200; }
.cta .btn--primary:hover { background: var(--gold-dark); color: #2a2200; }

/* --- legal / prose pages --- */
.prose { max-width: 780px; margin-inline: auto; }
.prose h1 { margin-bottom: .2rem; }
.prose .updated { color: var(--muted); font-size: .9rem; margin-bottom: 2rem; }
.prose h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.prose h3 { margin-top: 1.4rem; }
.prose ul { padding-inline-start: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose a { text-decoration: underline; }

/* --- contact cards --- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.contact-card .label { color: var(--muted); font-size: .85rem; margin-bottom: .2rem; }
.contact-card .value { font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.faq { margin-top: 8px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; margin-bottom: 12px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); padding: 14px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: inline-end; color: var(--green); font-weight: 700; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { color: var(--muted); padding-bottom: 14px; margin: 0; }

/* --- footer --- */
.site-footer { background: var(--ink); color: #cdd8d2; padding: 54px 0 30px; }
.site-footer a { color: #cdd8d2; }
.site-footer a:hover { color: #fff; }
.footer-top { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; }
.footer-brand { max-width: 320px; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand small { color: #9fb0a8; }
.footer-brand p { color: #9fb0a8; font-size: .92rem; margin-top: 12px; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h4 { color: #fff; font-size: .95rem; margin: 0 0 12px; }
.footer-col a { display: block; font-size: .92rem; margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 34px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; color: #8a9c94; font-size: .85rem; }

/* --- RTL --- */
html[dir="rtl"] .nav-links { margin-inline-start: auto; }
html[dir="rtl"] .badge-row, html[dir="rtl"] .hero-cta { justify-content: flex-start; }

/* --- responsive --- */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .grid--3, .grid--2, .steps, .contact-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .cta { padding: 34px 22px; }
  .section { padding: 54px 0; }
}
