/* Law Avenue | جادة القانون — site styles (shared by every page) */
:root {
  --forest: #1C3A2A;
  --forest-2: #2D5A40;
  --forest-deep: #12271C;
  --sand: #E8DCC4;
  --sand-2: #D9C9A8;
  --ornament: #BDAE8F;
  --ivory: #FAF8F3;
  --paper: #F2EDE3;
  --ink: #0F1A14;
  --muted: #4B5A51;
  --muted-on-dark: rgba(232, 220, 196, .78);
  --rule: rgba(28, 58, 42, .14);
  --rule-strong: rgba(28, 58, 42, .3);
  --rule-dark: rgba(232, 220, 196, .22);

  --display-ar: "Amiri", "Noto Naskh Arabic", "Times New Roman", serif;
  --body-ar: "Noto Naskh Arabic", "Amiri", "Geeza Pro", serif;
  --display-en: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --body-en: "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --display: var(--display-ar);
  --body: var(--body-ar);

  --wrap: 1280px;
  --gutter: clamp(20px, 4.2vw, 56px);
  --head-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
html[data-lang="en"] { --display: var(--display-en); --body: var(--body-en); }
html[data-lang="ar"] [lang="en"],
html[data-lang="en"] [lang="ar"] { display: none !important; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.85; }
html[data-lang="en"] body { font-size: 16.5px; line-height: 1.7; }
@media (min-width: 1400px) { body { font-size: 18px; } html[data-lang="en"] body { font-size: 17.5px; } }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; margin: 0; color: var(--forest); text-wrap: balance; }
html[data-lang="en"] :is(h1, h2, h3) { font-weight: 600; letter-spacing: -.01em; }
html[data-lang="en"] h4 { font-family: var(--body-en); font-weight: 600; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--ornament); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; top: 8px; inset-inline-start: 8px; transform: translateY(-300%); background: var(--forest); color: var(--ivory); padding: 8px 14px; z-index: 90; }
.skip:focus { transform: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Small type ---------- */
.kicker { font-family: var(--body); font-size: 14px; font-weight: 600; color: var(--forest-2); display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.kicker::before { content: ""; width: 36px; height: 1px; background: currentColor; opacity: .6; }
html[data-lang="en"] .kicker { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; }
.on-dark .kicker, .kicker.light { color: var(--sand); }
.muted { color: var(--muted); }
.lead { font-size: 1.18em; line-height: 1.9; color: var(--muted); max-width: 46em; }
html[data-lang="en"] .lead { line-height: 1.65; }

/* ---------- Buttons & links ---------- */
.btn { font-family: var(--body); font-size: 15px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 10px 22px; border-radius: 0; text-decoration: none; border: 1px solid var(--forest); background: transparent; color: var(--forest); transition: background .25s, color .25s, border-color .25s; white-space: nowrap; }
.btn:hover { background: var(--forest); color: var(--ivory); }
.btn.solid { background: var(--forest); color: var(--ivory); }
.btn.solid:hover { background: var(--forest-2); border-color: var(--forest-2); }
.btn.sand { background: var(--sand); border-color: var(--sand); color: var(--forest-deep); }
.btn.sand:hover { background: var(--ivory); border-color: var(--ivory); }
.btn.ghost-light { border-color: var(--rule-dark); color: var(--sand); }
.btn.ghost-light:hover { background: var(--sand); color: var(--forest-deep); border-color: var(--sand); }
html[data-lang="en"] .btn { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; }
.arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; color: var(--forest); border-bottom: 1px solid var(--ornament); padding-bottom: 3px; transition: gap .25s var(--ease), border-color .25s; }
.arrow::after { content: "←"; font-family: var(--body-en); }
html[dir="ltr"] .arrow::after { content: "→"; }
.arrow:hover { gap: 16px; border-color: var(--forest); }
:is(.on-dark, .band, .cta, .section.dark, .finder) .arrow { color: var(--sand); border-color: var(--rule-dark); }
:is(.band, .cta, .section.dark) .arrow:hover { border-color: var(--sand); }
.finder .muted { color: var(--muted-on-dark); }
html[data-lang="en"] .arrow { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Utility bar ---------- */
.util { background: var(--forest-deep); color: var(--muted-on-dark); font-size: 13.5px; }
.util .wrap { display: flex; align-items: center; gap: 22px; min-height: 38px; }
.util a { text-decoration: none; color: var(--sand); }
.util a:hover { color: var(--ivory); }
.util .sp { margin-inline-start: auto; }
.util bdi { font-family: var(--body-en); letter-spacing: .02em; }
@media (max-width: 760px) { .util .hide-sm { display: none; } }

/* ---------- Masthead ---------- */
.masthead { position: sticky; top: 0; z-index: 60; background: rgba(250, 248, 243, .96); backdrop-filter: saturate(1.3) blur(10px); border-bottom: 1px solid var(--rule); transition: box-shadow .3s; }
.masthead.scrolled { box-shadow: 0 10px 30px -20px rgba(15, 26, 20, .35); }
.masthead .wrap { display: flex; align-items: center; gap: 28px; height: var(--head-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand .medal { width: 48px; height: auto; }
.brand .wm-ar { height: 46px; width: auto; }
.brand .wm-en { height: 24px; width: auto; }
.mainnav { display: flex; align-items: stretch; height: 100%; margin-inline-start: auto; }
.mainnav > ul { display: flex; list-style: none; gap: 4px; height: 100%; }
.mainnav > ul > li { display: flex; align-items: stretch; }
.mainnav .top { display: flex; align-items: center; gap: 6px; padding: 0 12px; height: 100%; font-family: var(--body); font-size: 15.5px; font-weight: 500; color: var(--forest); text-decoration: none; background: none; border: 0; cursor: pointer; position: relative; }
.mainnav .top::after { content: ""; position: absolute; inset-inline: 12px; bottom: -1px; height: 2px; background: var(--forest); transform: scaleX(0); transition: transform .3s var(--ease); }
.mainnav .top:hover::after, .mainnav .top[aria-expanded="true"]::after, .mainnav .top[aria-current="page"]::after { transform: scaleX(1); }
.mainnav .top .chev { width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .25s; }
.mainnav .top[aria-expanded="true"] .chev { transform: translateY(2px) rotate(225deg); }
html[data-lang="en"] .mainnav .top { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; }
.tools { display: flex; align-items: center; gap: 8px; }
.iconbtn { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--rule); background: transparent; color: var(--forest); cursor: pointer; transition: background .2s, border-color .2s; }
.iconbtn:hover { border-color: var(--forest); }
.iconbtn svg { width: 19px; height: 19px; }
.langbtn { min-height: 44px; padding: 0 14px; border: 1px solid var(--rule); background: transparent; color: var(--forest); cursor: pointer; font-family: var(--body); font-size: 14px; }
.langbtn:hover { border-color: var(--forest); }
.langbtn [lang="en"] { font-family: var(--body-en); }
.burger { display: none; }
@media (max-width: 1180px) {
  .mainnav { display: none; }
  .burger { display: grid; }
  .mega { display: none; }
  .tools { margin-inline-start: auto; }
  .tools .btn { display: none; }
}
@media (max-width: 560px) { :root { --head-h: 70px; } .brand .medal { width: 38px; } .brand .wm-ar { height: 38px; } .brand .wm-en { height: 19px; } .langbtn { padding: 0 10px; } }

/* Mega menu */
.mega { position: absolute; inset-inline: 0; top: 100%; background: var(--ivory); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); box-shadow: 0 30px 50px -30px rgba(15, 26, 20, .4); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s; }
.mega.open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s var(--ease); }
.mega .wrap { display: grid; grid-template-columns: 1fr 1fr 1fr 1.15fr; gap: 40px; height: auto; padding-top: 40px; padding-bottom: 44px; align-items: start; }
.mega h3 { font-size: 1.3rem; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.mega h3 a { text-decoration: none; }
.mega ul { list-style: none; display: grid; gap: 4px; }
.mega li a { display: block; padding: 6px 0; text-decoration: none; color: var(--muted); transition: color .2s, padding .25s var(--ease); }
.mega li a:hover { color: var(--forest); padding-inline-start: 8px; }
.mega .feature { position: relative; min-height: 250px; overflow: hidden; color: var(--sand); text-decoration: none; display: flex; align-items: flex-end; }
.mega .feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mega .feature:hover img { transform: scale(1.05); }
.mega .feature::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18, 39, 28, .92), rgba(18, 39, 28, .1) 70%); z-index: 1; }
.mega .feature div { position: relative; z-index: 2; padding: 22px; }
.mega .feature b { display: block; font-family: var(--display); font-size: 1.35rem; color: var(--ivory); line-height: 1.4; margin-bottom: 6px; }

/* Drawer (mobile) */
.drawer { position: fixed; inset: 0; z-index: 80; background: var(--forest-deep); color: var(--sand); padding: 22px var(--gutter) 40px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .4s var(--ease), visibility 0s .4s; }
html[dir="ltr"] .drawer { transform: translateX(-100%); }
.drawer.open { transform: none; visibility: visible; transition: transform .4s var(--ease); }
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.drawer-top img { height: 40px; width: auto; }
.drawer .iconbtn { color: var(--sand); border-color: var(--rule-dark); }
.drawer nav a, .drawer summary { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule-dark); text-decoration: none; font-family: var(--display); font-size: 1.45rem; color: var(--ivory); cursor: pointer; list-style: none; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer details ul { list-style: none; padding: 6px 0 12px; }
.drawer details li a { font-family: var(--body); font-size: 1rem; padding: 8px 0; border: 0; color: var(--muted-on-dark); }
.drawer .drawer-cta { display: grid; gap: 10px; margin-top: 28px; }

/* Search overlay */
.search { position: fixed; inset: 0; z-index: 85; background: rgba(15, 26, 20, .55); backdrop-filter: blur(4px); display: none; }
.search.open { display: block; }
.search-panel { background: var(--ivory); padding: 34px 0 40px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); }
.search-row { display: flex; gap: 12px; align-items: center; border-bottom: 2px solid var(--forest); }
.search-row svg { width: 26px; height: 26px; color: var(--forest); flex-shrink: 0; }
.search-row input { flex: 1; border: 0; background: transparent; font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.3rem); color: var(--forest); padding: 12px 0; min-width: 0; }
.search-row input:focus { outline: none; }
.search-results { list-style: none; margin-top: 22px; display: grid; gap: 2px; max-height: 56vh; overflow-y: auto; }
.search-results a { display: flex; justify-content: space-between; gap: 20px; padding: 13px 4px; border-bottom: 1px solid var(--rule); text-decoration: none; }
.search-results a:hover, .search-results a:focus { background: var(--paper); outline: none; }
.search-results .t { font-weight: 600; color: var(--forest); }
.search-results .c { font-size: .85em; color: var(--muted); }
.search-hint { margin-top: 18px; color: var(--muted); font-size: .92em; }
.search-hint a { color: var(--forest); }

/* ---------- Home hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: min(calc(100vh - var(--head-h) - 38px), 900px); background: var(--forest); color: var(--sand); }
.hero-text { overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: clamp(48px, 7vw, 110px) var(--gutter); padding-inline-start: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); position: relative; }
.hero-text .tree { position: absolute; inset-inline-end: -40px; bottom: -30px; width: 280px; opacity: .07; pointer-events: none; }
.hero h1 { color: var(--ivory); font-size: clamp(2.6rem, 4.6vw, 4.6rem); line-height: 1.55; margin: 6px 0 26px; }
html[data-lang="en"] .hero h1 { font-size: clamp(3rem, 5.6vw, 5.6rem); line-height: 1.02; }
.hero h1 em { font-style: normal; color: var(--sand); }
html[data-lang="en"] .hero h1 em { font-style: italic; font-weight: 500; }
.hero .lead { color: var(--muted-on-dark); font-size: 1.08em; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-media { position: relative; overflow: hidden; min-height: 420px; background: var(--forest-deep); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.slide.on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 9s linear; }
.slide.on img { transform: scale(1); }
.hero-media::before { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(to left, rgba(28, 58, 42, .55), rgba(28, 58, 42, 0) 28%); pointer-events: none; }
html[dir="ltr"] .hero-media::before { background: linear-gradient(to right, rgba(28, 58, 42, .55), rgba(28, 58, 42, 0) 28%); }
.hero-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; z-index: 2; background: linear-gradient(to top, rgba(15, 26, 20, .7), transparent); pointer-events: none; }
.hero-caption { position: absolute; z-index: 3; inset-inline: 28px; bottom: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; color: var(--sand); font-size: 13.5px; }
.hero-caption b { display: block; font-family: var(--display); font-size: 1.25rem; color: var(--ivory); font-weight: 700; }
.dots { display: flex; gap: 8px; position: absolute; top: -9999px; }
.hero-media .dots { top: 26px; inset-inline-end: 28px; z-index: 3; }
.dots button { width: 28px; height: 3px; padding: 0; border: 0; background: rgba(232, 220, 196, .35); cursor: pointer; }
.dots button[aria-pressed="true"] { background: var(--sand); }
@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-media { min-height: 56vw; order: -1; }
  .hero-media::before { display: none; }
}

/* ---------- Page hero (inner pages) ---------- */
.phero { position: relative; color: var(--sand); background: var(--forest-deep); overflow: hidden; }
.phero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.phero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(18, 39, 28, .96) 25%, rgba(18, 39, 28, .55) 70%, rgba(18, 39, 28, .25)); }
html[dir="ltr"] .phero::after { background: linear-gradient(to right, rgba(18, 39, 28, .96) 25%, rgba(18, 39, 28, .55) 70%, rgba(18, 39, 28, .25)); }
.phero .wrap { position: relative; z-index: 2; padding-top: clamp(56px, 8vw, 120px); padding-bottom: clamp(56px, 7vw, 100px); }
.phero h1 { color: var(--ivory); font-size: clamp(2.3rem, 4.4vw, 4rem); line-height: 1.5; max-width: 17em; margin-bottom: 18px; }
html[data-lang="en"] .phero h1 { line-height: 1.08; }
.phero .lead { color: var(--muted-on-dark); max-width: 40em; }
.phero.plain::after { background: none; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; font-size: 13.5px; margin-bottom: 26px; color: var(--muted-on-dark); }
.crumbs li + li::before { content: "/"; margin-inline-end: 10px; opacity: .5; }
.crumbs a { text-decoration: none; color: var(--sand); }
.photo-credit { position: absolute; z-index: 3; inset-inline-end: 16px; bottom: 10px; font-size: 11.5px; color: rgba(232, 220, 196, .6); }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 140px) 0; }
.section.tight { padding: clamp(56px, 6vw, 90px) 0; }
.section.alt { background: var(--paper); }
.section.dark { background: var(--forest); color: var(--sand); }
.section.dark h2, .section.dark h3 { color: var(--ivory); }
.section.dark .muted, .section.dark .lead { color: var(--muted-on-dark); }
.shead { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 30px; margin-bottom: clamp(40px, 5vw, 64px); }
.shead h2 { font-size: clamp(2rem, 3.4vw, 3.1rem); line-height: 1.5; max-width: 18em; }
html[data-lang="en"] .shead h2 { line-height: 1.1; }
.shead p { margin-top: 16px; }
@media (max-width: 760px) { .shead { grid-template-columns: minmax(0, 1fr); } }

/* Statement + stats */
.statement { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.statement blockquote { margin: 0; font-family: var(--display); font-size: clamp(1.7rem, 2.7vw, 2.55rem); line-height: 1.75; color: var(--forest); }
html[data-lang="en"] .statement blockquote { line-height: 1.3; }
.statement .body p + p { margin-top: 1em; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong); margin-top: clamp(48px, 6vw, 80px); }
.stat { padding: 28px 0 0; padding-inline-end: 20px; }
.stat + .stat { border-inline-start: 1px solid var(--rule); padding-inline-start: 28px; }
.stat b { display: block; font-family: var(--display-en); font-size: clamp(3rem, 5vw, 4.6rem); line-height: 1; color: var(--forest); font-weight: 600; }
.stat span { display: block; margin-top: 12px; font-weight: 600; color: var(--forest); }
.stat small { color: var(--muted); font-size: .88em; }
@media (max-width: 900px) { .statement { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat:nth-child(3) { grid-column: 1 / -1; border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--rule); margin-top: 24px; } }

/* Practice pillars (image cards) */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2vw, 30px); }
.pcard { background: var(--ivory); display: flex; flex-direction: column; border: 1px solid var(--rule); }
.section.alt .pcard { background: var(--ivory); }
.pcard .ph { position: relative; aspect-ratio: 4 / 3.2; overflow: hidden; display: block; }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.pcard:hover .ph img { transform: scale(1.05); }
.pcard .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18, 39, 28, .85), rgba(18, 39, 28, 0) 55%); }
.pcard .ph h3 { position: absolute; z-index: 2; inset-inline: 24px; bottom: 20px; color: var(--ivory); font-size: clamp(1.5rem, 2vw, 1.9rem); line-height: 1.4; }
.pcard .pb { padding: 24px; display: flex; flex-direction: column; gap: 18px; flex: 1; }
.pcard .pb > p { color: var(--muted); }
.pcard ul { list-style: none; border-top: 1px solid var(--rule); }
.pcard li a { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--forest); font-weight: 500; transition: padding .25s var(--ease); }
.pcard li a::after { content: "←"; font-family: var(--body-en); color: var(--ornament); transition: color .2s; }
html[dir="ltr"] .pcard li a::after { content: "→"; }
.pcard li a:hover { padding-inline-start: 6px; }
.pcard li a:hover::after { color: var(--forest); }
@media (max-width: 980px) { .pillars { grid-template-columns: minmax(0, 1fr); } .pcard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); } .pcard .ph { aspect-ratio: auto; min-height: 100%; } }
@media (max-width: 640px) { .pcard { display: flex; } .pcard .ph { aspect-ratio: 16 / 10; min-height: 0; } }

/* Full-bleed editorial band */
.band { position: relative; min-height: clamp(460px, 62vh, 680px); display: flex; align-items: center; color: var(--sand); overflow: hidden; background: var(--forest-deep); }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(15, 26, 20, .88) 30%, rgba(15, 26, 20, .25)); z-index: 1; }
html[dir="ltr"] .band::before { background: linear-gradient(to right, rgba(15, 26, 20, .88) 30%, rgba(15, 26, 20, .25)); }
.band .wrap { position: relative; z-index: 2; width: 100%; padding-top: 80px; padding-bottom: 80px; }
.band-box { max-width: 36em; }
.band h2 { color: var(--ivory); font-size: clamp(2rem, 3.4vw, 3.1rem); line-height: 1.55; margin-bottom: 20px; }
html[data-lang="en"] .band h2 { line-height: 1.1; }
.band p { color: var(--muted-on-dark); }
.laws { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 28px 0 32px; list-style: none; border-top: 1px solid var(--rule-dark); }
.laws li { padding: 14px 0; border-bottom: 1px solid var(--rule-dark); }
.laws b { display: block; color: var(--ivory); font-weight: 600; }
.laws small { color: var(--muted-on-dark); font-size: .86em; }
@media (max-width: 640px) { .laws { grid-template-columns: minmax(0, 1fr); } }

/* Sectors grid */
.sectors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong); border-inline-start: 1px solid var(--rule); }
.sector { padding: 30px 26px 32px; border-inline-end: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 10px; text-decoration: none; transition: background .3s; min-height: 210px; }
a.sector:hover { background: var(--ivory); }
.section:not(.alt) a.sector:hover { background: var(--paper); }
.sector .n { font-family: var(--display-en); font-size: 1.05rem; color: var(--ornament); font-weight: 600; }
.sector h3 { font-size: 1.32rem; line-height: 1.45; }
.sector p { color: var(--muted); font-size: .94em; }
@media (max-width: 1080px) { .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sectors { grid-template-columns: minmax(0, 1fr); } .sector { min-height: 0; } }

/* People */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1fr); gap: clamp(18px, 2vw, 30px); }
.person { position: relative; border: 1px solid var(--rule); background: var(--ivory); text-decoration: none; display: flex; flex-direction: column; transition: border-color .3s, transform .4s var(--ease); }
.person:hover { border-color: var(--forest); transform: translateY(-3px); }
.person .pic { aspect-ratio: 1 / 1; background: var(--forest); display: grid; place-items: center; position: relative; overflow: hidden; }
.person .pic img.tree { position: absolute; width: 70%; opacity: .1; inset-inline-end: -10%; bottom: -12%; }
.person .mono { font-family: var(--display); font-size: clamp(3.5rem, 6vw, 5.5rem); color: var(--sand); line-height: 1; position: relative; }
html[data-lang="en"] .person .mono { font-family: var(--display-en); letter-spacing: .04em; }
.person .info { padding: 22px 24px 26px; }
.person .role { font-size: .88em; color: var(--forest-2); font-weight: 600; }
.person h3 { font-size: 1.5rem; margin: 4px 0 8px; line-height: 1.4; }
.person p { color: var(--muted); font-size: .93em; }
.finder { background: var(--forest); color: var(--sand); padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; justify-content: space-between; gap: 26px; }
.finder h3 { color: var(--ivory); font-size: 1.7rem; line-height: 1.45; }
.finder form { display: flex; border-bottom: 1px solid var(--sand); }
.finder input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--ivory); font-family: var(--body); font-size: 1rem; padding: 12px 0; }
.finder input::placeholder { color: var(--muted-on-dark); }
.finder input:focus { outline: none; }
.finder button { background: none; border: 0; color: var(--sand); cursor: pointer; padding: 0 4px; }
.finder button svg { width: 22px; height: 22px; }
.roster { display: flex; gap: 8px; flex-wrap: wrap; }
.roster i { width: 14px; height: 14px; border-radius: 50%; background: var(--sand); opacity: .9; }
@media (max-width: 980px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } .finder { grid-column: 1 / -1; } }
@media (max-width: 560px) { .people { grid-template-columns: minmax(0, 1fr); } .person .pic { aspect-ratio: 16 / 9; } }

/* Steps */
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule-dark); }
.steps li { counter-increment: s; padding: 30px 26px 10px 0; padding-inline: 0 26px; }
.steps li + li { border-inline-start: 1px solid var(--rule-dark); padding-inline-start: 26px; }
.steps li::before { content: "0" counter(s); display: block; font-family: var(--display-en); font-size: 2.4rem; line-height: 1; color: var(--sand); font-weight: 500; margin-bottom: 18px; }
.steps h3 { font-size: 1.3rem; line-height: 1.45; margin-bottom: 10px; }
.steps p { color: var(--muted-on-dark); font-size: .94em; }
.section:not(.dark) .steps { border-color: var(--rule-strong); }
.section:not(.dark) .steps li + li { border-color: var(--rule); }
.section:not(.dark) .steps li::before { color: var(--ornament); }
.section:not(.dark) .steps p { color: var(--muted); }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps li:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } .steps li + li { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--rule-dark); } }

/* Insights */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2vw, 30px); }
.tile { border-top: 2px solid var(--forest); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.tile .tag { font-size: .82em; font-weight: 600; color: var(--forest-2); }
html[data-lang="en"] .tile .tag { letter-spacing: .14em; text-transform: uppercase; font-size: .72em; }
.tile h3 { font-size: 1.4rem; line-height: 1.5; }
.tile p { color: var(--muted); }
.soon { display: inline-block; margin-top: 6px; font-size: .82em; color: var(--muted); border: 1px solid var(--rule-strong); padding: 2px 10px; width: fit-content; }
@media (max-width: 900px) { .tiles { grid-template-columns: minmax(0, 1fr); } }

/* CTA band */
.cta { position: relative; background: var(--forest-deep); color: var(--sand); overflow: hidden; }
.cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.cta .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 50px; align-items: center; padding-top: clamp(70px, 8vw, 120px); padding-bottom: clamp(70px, 8vw, 120px); }
.cta h2 { color: var(--ivory); font-size: clamp(2.1rem, 3.6vw, 3.3rem); line-height: 1.5; margin-bottom: 14px; }
html[data-lang="en"] .cta h2 { line-height: 1.1; }
.cta p { color: var(--muted-on-dark); }
.cta-actions { display: grid; gap: 12px; }
.cta-line { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--rule-dark); text-decoration: none; color: var(--ivory); }
.cta-line span:first-child { color: var(--muted-on-dark); }
.cta-line bdi { font-family: var(--body-en); }
@media (max-width: 900px) { .cta .wrap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Inner page layouts ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(40px, 6vw, 96px); align-items: start; }
.split aside { position: sticky; top: calc(var(--head-h) + 24px); display: grid; gap: 24px; }
@media (max-width: 1000px) { .split { grid-template-columns: minmax(0, 1fr); } .split aside { position: static; } }
.prose { max-width: 44em; }
.prose p + p { margin-top: 1.05em; }
.prose h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.5; margin: 1.6em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
html[data-lang="en"] .prose h2 { line-height: 1.15; }
.prose h3 { font-size: 1.35rem; margin: 1.4em 0 .4em; }
.checks { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--rule-strong); margin-top: 14px; }
.checks li { padding: 15px 0; padding-inline-start: 34px; border-bottom: 1px solid var(--rule); position: relative; }
.checks li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 25px; width: 12px; height: 12px; border: 1.5px solid var(--forest-2); transform: rotate(45deg); }
.box { border: 1px solid var(--rule); background: var(--ivory); padding: 26px; }
.section.alt .box { background: var(--ivory); }
.box h3 { font-size: 1.2rem; margin-bottom: 14px; }
html[data-lang="en"] .box h3 { font-family: var(--body-en); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; }
.box.dark { background: var(--forest); color: var(--sand); border: 0; }
.box.dark h3 { color: var(--ivory); }
.box.dark p { color: var(--muted-on-dark); margin-bottom: 18px; }
.box ul { list-style: none; }
.box li a { display: block; padding: 8px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--forest); }
.box li:last-child a { border-bottom: 0; }
.box li a:hover { color: var(--forest-2); }
.mini { display: flex; gap: 14px; align-items: center; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.mini:last-child { border-bottom: 0; }
.mini .m { width: 52px; height: 52px; background: var(--forest); color: var(--sand); display: grid; place-items: center; font-family: var(--display); font-size: 1.5rem; flex-shrink: 0; }
html[data-lang="en"] .mini .m { font-family: var(--display-en); font-size: 1.1rem; }
.mini b { display: block; color: var(--forest); }
.mini small { color: var(--muted); }

/* Practices index */
.pillar-block { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); gap: clamp(30px, 5vw, 80px); padding: clamp(46px, 5vw, 70px) 0; border-top: 1px solid var(--rule-strong); }
.pillar-block:first-child { border-top: 0; padding-top: 0; }
.pillar-block .pimg { aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 22px; }
.pillar-block .pimg img { width: 100%; height: 100%; object-fit: cover; }
.pillar-block h2 { font-size: clamp(1.8rem, 2.8vw, 2.5rem); line-height: 1.45; margin-bottom: 10px; }
.areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.area { display: block; padding: 22px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.area h3 { font-size: 1.35rem; line-height: 1.45; margin-bottom: 6px; display: flex; justify-content: space-between; gap: 12px; }
.area h3::after { content: "←"; font-family: var(--body-en); font-size: .9em; color: var(--ornament); transition: transform .3s var(--ease); }
html[dir="ltr"] .area h3::after { content: "→"; }
.area:hover h3::after { transform: translateX(-6px); color: var(--forest); }
html[dir="ltr"] .area:hover h3::after { transform: translateX(6px); }
.area p { color: var(--muted); font-size: .94em; }
@media (max-width: 900px) { .pillar-block { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .areas { grid-template-columns: minmax(0, 1fr); } }

/* Lawyer directory */
.dir-tools { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: end; margin-bottom: 30px; }
.field label { display: block; font-size: .88em; font-weight: 600; color: var(--forest); margin-bottom: 8px; }
.field input, .field select, .field textarea { width: 100%; font-family: var(--body); font-size: 1rem; color: var(--ink); background: var(--ivory); border: 1px solid var(--rule-strong); border-radius: 0; padding: 13px 14px; min-height: 50px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(45, 90, 64, .12); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip { font-family: var(--body); font-size: 14px; padding: 7px 14px; border: 1px solid var(--rule-strong); background: transparent; color: var(--forest); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--forest); color: var(--ivory); border-color: var(--forest); }
.rows { border-top: 1px solid var(--rule-strong); }
.lrow { display: grid; grid-template-columns: 72px minmax(0, 1.2fr) minmax(0, 1.6fr) 90px 30px; gap: 22px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--rule); text-decoration: none; transition: background .2s; }
.lrow:hover { background: var(--paper); }
.lrow .m { width: 72px; height: 72px; background: var(--forest); color: var(--sand); display: grid; place-items: center; font-family: var(--display); font-size: 2rem; }
html[data-lang="en"] .lrow .m { font-family: var(--display-en); font-size: 1.45rem; }
.lrow b { display: block; font-family: var(--display); font-size: 1.35rem; color: var(--forest); line-height: 1.4; }
.lrow small, .lrow .pr { color: var(--muted); font-size: .92em; }
.lrow .go { color: var(--ornament); font-family: var(--body-en); }
.lrow .go::after { content: "←"; }
html[dir="ltr"] .lrow .go::after { content: "→"; }
.empty { padding: 26px 0; color: var(--muted); }
@media (max-width: 760px) { .dir-tools { grid-template-columns: minmax(0, 1fr); } .lrow { grid-template-columns: 56px 1fr 20px; } .lrow .m { width: 56px; height: 56px; font-size: 1.6rem; } .lrow .pr, .lrow .city { display: none; } }

/* Lawyer profile */
.profile-head { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 4vw, 60px); align-items: end; }
.profile-head .pic { aspect-ratio: 1; background: var(--forest-2); border: 1px solid var(--rule-dark); display: grid; place-items: center; position: relative; overflow: hidden; }
.profile-head .pic .mono { font-family: var(--display); font-size: 6rem; color: var(--sand); line-height: 1; }
html[data-lang="en"] .profile-head .pic .mono { font-family: var(--display-en); font-size: 4.4rem; }
.profile-head .pic img { position: absolute; width: 80%; opacity: .1; inset-inline-end: -12%; bottom: -14%; }
.profile-head .role { color: var(--sand); font-weight: 600; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 18px; color: var(--muted-on-dark); font-size: .95em; }
.profile-meta a { color: var(--sand); }
@media (max-width: 700px) { .profile-head { grid-template-columns: minmax(0, 1fr); } .profile-head .pic { width: 150px; } }

/* Forms */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form .full { grid-column: 1 / -1; }
.form .consent { display: flex; gap: 12px; align-items: flex-start; font-size: .92em; color: var(--muted); }
.form .consent input { width: 20px; height: 20px; margin-top: 5px; accent-color: var(--forest); flex-shrink: 0; }
.hp { display: none; }
@media (max-width: 640px) { .form { grid-template-columns: minmax(0, 1fr); } }
.info-list { list-style: none; border-top: 1px solid var(--rule-strong); }
.info-list li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.info-list .k { color: var(--muted); font-size: .92em; }
.info-list .v { color: var(--forest); font-weight: 500; }
.info-list a { color: var(--forest); }
.info-list bdi { font-family: var(--body-en); }
@media (max-width: 560px) { .info-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* Gallery (about) */
.gallery { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 280px 280px; gap: 14px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; }
.gallery figure:first-child { grid-row: 1 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 30px 16px 12px; background: linear-gradient(to top, rgba(15, 26, 20, .8), transparent); color: var(--sand); font-size: 13px; }
@media (max-width: 800px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 300px 200px 200px; } .gallery figure:first-child { grid-column: 1 / -1; grid-row: auto; } }

.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.value h3 { font-size: 1.45rem; margin-bottom: 10px; padding-top: 18px; border-top: 2px solid var(--forest); }
.value p { color: var(--muted); }
@media (max-width: 860px) { .values { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.foot { background: var(--forest-deep); color: var(--muted-on-dark); font-size: .94em; }
.foot a { text-decoration: none; color: var(--sand); }
.foot a:hover { color: var(--ivory); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding: clamp(60px, 7vw, 96px) 0 50px; }
.foot-brand img.medal { width: 64px; margin-bottom: 18px; }
.foot-brand img.wm { height: 54px; width: auto; margin-bottom: 18px; }
.foot-brand .en { font-family: var(--display-en); color: var(--sand); font-size: 1.5rem; letter-spacing: .12em; margin-bottom: 14px; }
.foot-brand .en small { display: block; font-family: var(--body-en); font-size: .5em; letter-spacing: .24em; opacity: .8; }
.foot h4 { color: var(--ivory); font-size: 1.05rem; margin-bottom: 16px; }
html[data-lang="en"] .foot h4 { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; }
.foot ul { list-style: none; display: grid; gap: 9px; }
.foot bdi { font-family: var(--body-en); }
.foot-legal { border-top: 1px solid var(--rule-dark); padding: 26px 0 34px; display: grid; gap: 14px; font-size: .88em; }
.foot-legal .row { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.brandbar { height: 5px; display: flex; }
.brandbar span { flex: 1; }
.brandbar span:first-child { background: var(--forest-2); }
.brandbar span:last-child { background: var(--sand); }
@media (max-width: 980px) { .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-top { grid-template-columns: minmax(0, 1fr); } }

/* WhatsApp button */
.wa-fab { position: fixed; z-index: 70; inset-inline-start: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 10px; background: var(--forest); color: var(--ivory); text-decoration: none; padding: 12px 18px 12px 16px; box-shadow: 0 14px 30px -14px rgba(15, 26, 20, .7); font-weight: 500; border: 1px solid rgba(232, 220, 196, .25); transition: transform .3s var(--ease), background .2s; }
html[dir="rtl"] .wa-fab { inset-inline-start: auto; inset-inline-end: auto; left: 20px; }
html[dir="ltr"] .wa-fab { right: 20px; left: auto; }
.wa-fab:hover { background: var(--forest-2); transform: translateY(-2px); }
.wa-fab svg { width: 22px; height: 22px; color: #6FD596; }
@media (max-width: 560px) { .wa-fab span { display: none; } .wa-fab { padding: 13px; } }

/* Reveal on scroll */
html.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .rv { opacity: 1; transform: none; transition: none; } .slide, .slide img { transition: none !important; } }

@media print { .util, .masthead, .wa-fab, .search, .drawer, .cta, .hero-media { display: none !important; } body { background: #fff; } }
