/* Esnad Al-Daleel Law Firm — one visual world: the firm's navy and silver, set like a court pleading.
   Layout idea: a navy masthead with a licence "docket", hairline-ruled sections, numbered procedure. */
:root {
  --navy: #213858;
  --navy-ink: #13233b;
  --ink: #1b2533;
  --muted: #586373;
  --silver: #a7b0bb;
  --line: #dce1e7;
  --paper: #f3f5f7;
  --white: #ffffff;
  --gold: #a8873f;
  --wa: #1f9d55;
  --font-display: "Noto Naskh Arabic", "Amiri", "Times New Roman", serif;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  --radius: 6px;
  --wrap: 1180px;
  color-scheme: light;
}
html[lang="en"] {
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", "IBM Plex Sans Arabic", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
}
html[lang="en"] body { line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--font-display); color: var(--navy-ink); line-height: 1.35; margin: 0; text-wrap: balance; font-weight: 700; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { line-height: 1.15; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .06em; }
.arrow { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.2em; }
[dir="rtl"] .arrow { transform: scaleX(-1); }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--navy-ink); color: var(--white); padding: 10px 16px; z-index: 100; border-radius: var(--radius); }
.skip:focus { top: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy-ink); flex: none; }
.brand img { width: 40px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.brand-text span { font-size: .78rem; color: var(--muted); }
html[lang="en"] .brand-text strong { font-size: 1.3rem; }
.site-nav { display: flex; align-items: center; gap: 24px; margin-inline-start: auto; }
.site-nav ul { list-style: none; display: flex; gap: 22px; }
.site-nav ul a { text-decoration: none; color: var(--ink); font-size: .95rem; font-weight: 500; padding-block: 6px; border-bottom: 2px solid transparent; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { font-size: .9rem; text-decoration: none; color: var(--navy); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; font-family: var(--font-body); }
.lang-switch[lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; }
.lang-switch:hover { border-color: var(--navy); }
.menu-toggle { display: none; margin-inline-start: auto; font: inherit; font-size: .95rem; background: none; border: 1px solid var(--line); color: var(--navy-ink); padding: 6px 14px; border-radius: var(--radius); cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; padding: 12px 22px; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; line-height: 1.3; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--wa); color: var(--white); }
.btn-primary:hover { background: #17834a; color: var(--white); }
.btn-ghost { color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.06); }
.btn-small { background: var(--navy); color: var(--white); padding: 8px 16px; font-size: .9rem; }
.btn-small:hover { background: var(--navy-ink); color: var(--white); }

/* Hero */
.hero { background: var(--navy-ink); color: var(--white); padding-block: 72px 80px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .7; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.kicker { color: var(--silver); font-size: .95rem; letter-spacing: .01em; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid rgba(167,176,187,.35); display: inline-block; }
html[lang="en"] .kicker { letter-spacing: .04em; text-transform: uppercase; font-size: .8rem; }
.hero h1 { color: var(--white); font-size: clamp(2rem, 4.4vw, 3.25rem); max-width: 16ch; }
html[lang="en"] .hero h1 { font-size: clamp(2.3rem, 4.8vw, 3.6rem); max-width: 18ch; }
.hero-lead { margin-top: 22px; font-size: 1.12rem; color: #d4dae2; max-width: 52ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.docket { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 26px 28px; border-top: 4px solid var(--gold); }
.docket-head { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--navy-ink); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.docket-head img { width: 34px; }
.docket dl { margin: 0; }
.docket dl div { display: flex; justify-content: space-between; gap: 16px; padding-block: 10px; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.docket dt { color: var(--muted); }
.docket dd { margin: 0; font-weight: 600; text-align: end; font-variant-numeric: tabular-nums; }
.docket-label { margin-top: 18px; font-size: .85rem; color: var(--muted); }
.forums { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.forums li { font-size: .85rem; padding: 4px 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; color: var(--navy-ink); }

/* Sections */
.section { padding-block: 84px; }
.section-paper { background: var(--paper); }
.section-dark { background: var(--navy-ink); color: #d4dae2; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { margin-bottom: 40px; max-width: 62ch; }
.section-head h2 { font-size: clamp(1.7rem, 2.8vw, 2.25rem); }
html[lang="en"] .section-head h2 { font-size: clamp(2rem, 3.2vw, 2.6rem); }
.section-head p { margin-top: 10px; color: var(--muted); font-size: 1.05rem; }
.section-dark .section-head p { color: var(--silver); }
.section-head.split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head.split > div { max-width: 62ch; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--navy); }
.text-link:hover { text-decoration: underline; }
.text-link svg:not(.arrow) { width: 18px; height: 18px; }

/* Practice: hairline-ruled grid */
.practice-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.practice-item { background: var(--white); padding: 28px 28px 32px; display: flex; flex-direction: column; gap: 10px; }
.practice-item h3 { font-size: 1.3rem; }
html[lang="en"] .practice-item h3 { font-size: 1.5rem; }
.practice-item p { color: var(--muted); font-size: .97rem; }
.tag { align-self: flex-start; font-size: .78rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; border: 1px solid currentColor; }
.tag-c { color: var(--navy); }
.tag-i { color: #7a5f22; }
.tag-b { color: var(--muted); }

/* Method */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(167,176,187,.3); }
.step { padding: 28px 24px 8px; border-inline-start: 1px solid rgba(167,176,187,.3); display: flex; flex-direction: column; gap: 10px; }
.step:first-child { border-inline-start: 0; padding-inline-start: 0; }
.step-no { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.step h3 { font-size: 1.2rem; }
html[lang="en"] .step h3 { font-size: 1.4rem; }
.step p { font-size: .95rem; color: var(--silver); }

/* Posts */
.post-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.post { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 2px solid var(--navy); }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .85rem; color: var(--muted); }
.post-cat { color: var(--gold); font-weight: 600; font-size: .85rem; }
.post-title { font-size: 1.25rem; }
html[lang="en"] .post-title { font-size: 1.5rem; }
.post-title a { color: var(--navy-ink); text-decoration: none; }
.post-title a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.post-desc { color: var(--muted); font-size: .95rem; }
.post-link { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: .92rem; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.post-list { list-style: none; display: grid; gap: 0; max-width: 860px; }
.post-list .post { border-top: 1px solid var(--line); padding-block: 30px; }
.post-list .post:first-child { border-top: 2px solid var(--navy); }
.post-list .post-title { font-size: 1.6rem; }
html[lang="en"] .post-list .post-title { font-size: 1.9rem; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.about-copy { display: flex; flex-direction: column; gap: 16px; max-width: 62ch; }
.about-copy h2 { font-size: clamp(1.7rem, 2.8vw, 2.25rem); margin-bottom: 6px; }
html[lang="en"] .about-copy h2 { font-size: clamp(2rem, 3.2vw, 2.6rem); }
.lawyer { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.lawyer-role { font-size: .85rem; color: var(--gold); font-weight: 600; }
.lawyer-name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; color: var(--navy-ink); line-height: 1.4; }
.lawyer p:not(.lawyer-role):not(.lawyer-name) { color: var(--muted); font-size: .97rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.contact-list { margin: 0; border-top: 1px solid var(--line); }
.contact-list div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--muted); font-size: .92rem; }
.contact-list dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.contact-list dd a { text-decoration: none; }
.contact-list dd a:hover { text-decoration: underline; }
.contact-list .text-link { margin-top: 4px; font-size: .92rem; }
.panel { background: var(--navy-ink); color: #d4dae2; border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; border-top: 4px solid var(--gold); }
.panel h3, .panel h2 { color: var(--white); font-size: 1.4rem; }
html[lang="en"] .panel h3, html[lang="en"] .panel h2 { font-size: 1.6rem; }
.panel-compact { padding: 24px; }
.panel-compact p { font-size: .93rem; }
.panel-phone a { color: var(--white); text-decoration: none; font-weight: 600; }

/* Page hero (listing + article) */
.page-hero { background: var(--navy-ink); color: #d4dae2; padding-block: 48px 52px; }
.page-hero h1 { color: var(--white); font-size: clamp(1.9rem, 3.6vw, 2.7rem); max-width: 30ch; }
html[lang="en"] .page-hero h1 { font-size: clamp(2.2rem, 4vw, 3.1rem); }
.page-intro { margin-top: 14px; max-width: 60ch; color: var(--silver); font-size: 1.05rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--silver); margin-bottom: 18px; }
.crumbs a { color: var(--silver); }
.crumbs a:hover { color: var(--white); }
.article-hero .post-cat { margin-bottom: 10px; }
.article-meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: .92rem; color: var(--silver); }
.article-meta a { color: var(--white); }

/* Article */
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; padding-block: 56px 80px; align-items: start; }
.prose { max-width: 70ch; font-size: 1.06rem; }
html[lang="en"] .prose { font-size: 1.05rem; }
.prose > * + * { margin-top: 1.1em; }
.prose .lead { font-size: 1.2rem; color: var(--navy-ink); padding-bottom: 1.2em; border-bottom: 1px solid var(--line); }
.prose h2 { font-size: 1.55rem; margin-top: 2em; padding-top: .2em; }
html[lang="en"] .prose h2 { font-size: 1.85rem; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li + li { margin-top: .55em; }
.prose li::marker { color: var(--gold); }
.prose strong { color: var(--navy-ink); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 640px; }
.prose th, .prose td { padding: 12px 14px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: var(--paper); color: var(--navy-ink); font-weight: 600; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose td:nth-child(2), .prose td:nth-child(3) { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; color: var(--navy-ink); }
.article-note { margin-top: 2.4em !important; padding: 16px 18px; background: var(--paper); border-inline-start: 3px solid var(--silver); font-size: .9rem; color: var(--muted); }
.article-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 24px; }
.toc { border-top: 2px solid var(--navy); padding-top: 14px; }
.toc-h { font-weight: 600; color: var(--navy-ink); margin-bottom: 8px; font-size: .95rem; }
.toc ol { list-style: none; display: flex; flex-direction: column; gap: 2px; counter-reset: toc; }
.toc li { counter-increment: toc; display: flex; gap: 10px; font-size: .9rem; line-height: 1.6; }
.toc li::before { content: counter(toc); color: var(--gold); font-variant-numeric: tabular-nums; min-width: 1.2em; }
.toc a { color: var(--muted); text-decoration: none; padding-block: 4px; }
.toc a:hover { color: var(--navy); }

/* Footer */
.site-footer { background: #0d1a2c; color: var(--silver); padding-top: 56px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-bottom: 40px; }
.footer-name { font-family: var(--font-display); color: var(--white); font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
html[lang="en"] .footer-name { font-size: 1.35rem; }
.footer-legal, .footer-addr { line-height: 1.8; }
.footer-nav, .footer-contact { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.site-footer a { color: #d4dae2; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-base { border-top: 1px solid rgba(167,176,187,.2); padding-block: 22px 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: .85rem; }

.wa-float { position: fixed; bottom: 20px; inset-inline-end: 20px; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: var(--white); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(13,26,44,.28); z-index: 40; }
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { background: #17834a; color: var(--white); }

/* Responsive */
@media (max-width: 1080px) {
  .site-nav ul { gap: 16px; }
  .site-nav ul a { font-size: .9rem; }
}
@media (max-width: 980px) {
  .menu-toggle { display: inline-block; }
  .bar { flex-wrap: wrap; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 14px; padding-bottom: 18px; margin: 0; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding-block: 10px; border-bottom: 1px solid var(--line); }
  .nav-actions { justify-content: space-between; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .practice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .post-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .article-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .article-aside { position: static; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 18px; }
  .hero { padding-block: 48px 56px; }
  .section { padding-block: 60px; }
  .practice-grid, .steps { grid-template-columns: minmax(0, 1fr); }
  .step { border-inline-start: 0; padding-inline: 0; border-bottom: 1px solid rgba(167,176,187,.3); padding-bottom: 22px; }
  .contact-list div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .docket { padding: 22px; }
  .brand-text span { display: none; }
  .cta-row .btn { width: 100%; }
}
@media (max-width: 600px) {
  .table-wrap { border: 0; overflow: visible; }
  .prose table { min-width: 0; font-size: .95rem; }
  .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .prose table, .prose tbody, .prose tr, .prose td { display: block; width: 100%; }
  .prose tr { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
  .prose td { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 10px; padding: 9px 12px; white-space: normal !important; }
  .prose td::before { content: attr(data-label); color: var(--muted); font-weight: 500; font-size: .86rem; }
  .prose td:first-child { background: var(--paper); font-weight: 600; color: var(--navy-ink); }
  .prose tbody tr:last-child td { border-bottom: 1px solid var(--line); }
  .prose tbody tr td:last-child { border-bottom: 0; }
}

/* Hero without side panel */
.hero-grid.hero-solo { grid-template-columns: minmax(0, 1fr); }
.hero-solo .hero-copy { max-width: 760px; }
.about-grid.about-solo { grid-template-columns: minmax(0, 1fr); }

/* Team */
.team-group + .team-group { margin-top: 36px; }
.team-group-h { font-size: 1.05rem; color: var(--gold); font-weight: 600; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
html[lang="en"] .team-group-h { font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.team-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.member { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.team-group-lead .member { border-top-color: var(--navy); }
.member-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--navy-ink); line-height: 1.45; }
.member-role { color: var(--muted); font-size: .92rem; }
.team-link { margin-top: auto; padding-top: 6px; font-size: .88rem; color: var(--navy); }
@media (max-width: 980px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .team-grid { grid-template-columns: minmax(0, 1fr); } }

/* Intake card in hero */
.intake-sub { margin-top: 14px; font-size: .92rem; color: var(--muted); }
.intake-steps { list-style: none; margin: 10px 0 0; padding: 0; }
.intake-steps li { display: flex; gap: 14px; align-items: flex-start; padding-block: 12px; border-bottom: 1px dashed var(--line); }
.intake-no { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); color: var(--gold); font-weight: 700; font-size: .9rem; }
.intake-t { font-weight: 700; color: var(--navy-ink); }
.intake-d { font-size: .9rem; color: var(--muted); margin-top: 2px; }
.intake-btn { width: 100%; margin-top: 18px; }
.intake-phone { margin-top: 12px; text-align: center; font-size: .92rem; color: var(--muted); }
.intake-phone a { color: var(--navy); font-weight: 600; }
