/* Ekal public website: Find lawyers (/find-lawyers; 2026-10-29, in the approved design's language;
   docs/WEBSITE.md). Linked after ek-site-pages.css, whose system it uses: the night hero
   (hero_bg(): gradients, Riyadh's skyline, the guilloche), the home's case sheet, the glass cards,
   the buttons, the lawyer card's pieces (.ver, .rate). The AI matcher keeps its own markup and
   sheet (partials/ai_lawyer_search.html, ai-lawyer-search.css, also on the profile page and the
   client's dashboard): here it is restyled as the home's case sheet, scoped to body.ek-find.
   Nothing waits for a script or a scroll; nothing moves under reduced motion (ek-site-pages.css
   stops every transition there). Logical properties only: the Arabic page mirrors itself. */

/* ---------- hero: the title beside the matcher (the home's hero with its case sheet) ---------- */
.fhero { padding-block: 136px 72px; min-height: 0; }
.fhero .hero-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 52px; align-items: start; }
.fh-copy { padding-top: 30px; }
.fhero h1 { font-size: clamp(34px, 3.4vw, 50px); }
:root:lang(ar) .fhero h1 { font-size: clamp(32px, 3.2vw, 46px); }
.fhero .lead { max-width: 30em; }
.fhero .proof { margin-top: 28px; flex-direction: column; align-items: flex-start; gap: 10px; }
.fh-browse { flex-wrap: wrap; gap: 4px 8px; }
.fh-browse > span, .fh-browse > u { white-space: nowrap; }
.fh-browse .i { color: #c7cdff; }

/* ---------- the matcher, as the home's case sheet ---------- */
.ek-find .ekls-section { padding: 0; }
/* the page's own scroll-padding (ek-site.css) already clears the header: no second offset */
.ek-find .ekls-section, .ek-find .ekls-out, .ek-find .ekls-gate { scroll-margin-top: 0; }
.ek-find .ekls-wrap { max-width: none; margin: 0; padding: 0; }
.ek-find .ekls-card { position: relative; padding: 22px; border-radius: var(--r-xl); color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, .97), rgba(255, 255, 255, .91)); border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: inset 0 1px 0 #fff, 0 40px 90px rgba(4, 6, 30, .5), 0 2px 10px rgba(4, 6, 30, .2); }
.ek-find .ekls-head { margin-bottom: 14px; }
.ek-find .ekls-badge { padding: 4px 11px; background: rgba(59, 69, 176, .08); color: var(--navy-2); font-size: 12.5px; font-weight: 700; }
.ek-find .ekls-badge svg { color: #d98a00; }
.ek-find .ekls-title { margin: 12px 0 6px; color: var(--ink); font-size: 23px; font-weight: 700; line-height: 1.35; }
:root:lang(ar) .ek-find .ekls-title { font-size: 22px; line-height: 1.55; }
.ek-find .ekls-sub { color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.ek-find .ekls-hint { margin-bottom: 12px; border-radius: 14px; background: #fff4dc; color: #8a5a00; box-shadow: inset 0 0 0 1px rgba(217, 138, 0, .25); }
.ek-find .ekls-input { min-height: 108px; padding: 12px 14px; border: 0; border-radius: 18px; background: #fff; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2); font-size: 16px; line-height: 1.7; }
.ek-find .ekls-input::placeholder { color: var(--faint); }
.ek-find .ekls-input:focus { background: #fff; box-shadow: inset 0 0 0 2px var(--navy-2), 0 0 0 4px rgba(59, 69, 176, .12); }
.ek-find .ekls-input:focus-visible { outline: none; }
.ek-find .ekls-row { gap: 10px; }
.ek-find .ekls-city { height: 48px; padding-inline: 12px; border: 0; border-radius: 14px; background: #fff; color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14.5px; font-weight: 600; }
.ek-find .ekls-go { height: 50px; padding-inline: 22px; border-radius: 16px; font-size: 15.5px; font-weight: 700;
  background: linear-gradient(180deg, var(--navy-2), var(--navy)); box-shadow: 0 10px 24px rgba(42, 48, 110, .28), inset 0 1px 0 rgba(255, 255, 255, .18); }
.ek-find .ekls-go:hover:not(:disabled) { box-shadow: 0 14px 30px rgba(42, 48, 110, .36), inset 0 1px 0 rgba(255, 255, 255, .18); }
.ek-find .ekls-note { color: var(--muted); }
/* its answer: Ekal's reading, then one lawyer a row (the hero's column is narrow) */
.ek-find .ekls-out { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.ek-find .ekls-analysis { border-radius: 16px; background: linear-gradient(135deg, rgba(59, 69, 176, .08), rgba(59, 69, 176, .02));
  box-shadow: inset 0 0 0 1px rgba(59, 69, 176, .12); }
.ek-find .ekls-cat { background: linear-gradient(180deg, var(--navy-2), var(--navy)); font-weight: 700; }
.ek-find .ekls-chip { background: #fff; color: var(--navy); font-weight: 600; box-shadow: inset 0 0 0 1px rgba(59, 69, 176, .2); }
.ek-find .ekls-reason { color: var(--ink-2); }
.ek-find .ekls-list-head h3 { color: var(--ink); font-size: 16px; font-weight: 700; }
.ek-find .ekls-list-head a { color: var(--navy); }
.ek-find .ekls-grid, .ek-find .ekls-section--directory .ekls-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.ek-find .ekls-lawyer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; padding: 12px;
  border: 0; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.ek-find .ekls-lawyer:hover { transform: none; box-shadow: inset 0 0 0 1px rgba(59, 69, 176, .25), 0 10px 26px rgba(34, 40, 110, .1); }
.ek-find .ekls-lawyer-top, .ek-find .ekls-lawyer .ekls-keywords { grid-column: 1; }
.ek-find .ekls-lawyer .ekav { width: 46px; height: 46px; border-radius: 50%; font-size: 14px; background: linear-gradient(135deg, #5b66d6, #2a306e); }
.ek-find .ekls-lawyer-name { font-size: 15px; font-weight: 700; }
.ek-find .ekls-view { grid-column: 2; grid-row: 1 / span 2; margin: 0; padding: 9px 14px; border: 0; border-radius: 12px;
  background: rgba(42, 48, 110, .07); color: var(--navy); font-size: 13.5px; font-weight: 700; }
.ek-find .ekls-view:hover { background: var(--navy); color: #fff; }
/* the whole row opens the profile, as the list's cards do */
.ek-find .ekls-lawyer { position: relative; }
.ek-find .ekls-view::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.ek-find .ekls-lawyer:hover .ekls-view { background: var(--navy); color: #fff; }
.ek-find .ekls-empty { background: rgba(42, 48, 110, .04); color: var(--ink-2); }

/* ---------- browse: the filters, then the one list ---------- */
.fl { padding-block: 88px 104px; }
.sec-h.fl-h { margin-bottom: 24px; }
.fl-bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; max-width: 880px; padding: 10px; border-radius: 24px;
  background: var(--glass); border: 1px solid rgba(255, 255, 255, .85); box-shadow: inset 0 1px 0 #fff, var(--glass-shadow); }
.fl-field { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 1px; min-width: 0; padding: 8px 16px;
  border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; }
.fl-field > span { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.fl-field select { -webkit-appearance: none; appearance: none; width: 100%; padding: 0; padding-inline-end: 22px; border: 0; outline: 0;
  background: transparent; color: var(--ink); font-size: 16px; font-weight: 700; text-overflow: ellipsis; cursor: pointer; }
.ek-site main .fl-field select:focus-visible { outline: none; }
.fl-field::after { content: ""; position: absolute; inset-inline-end: 16px; top: 50%; width: 8px; height: 8px; border: solid var(--muted);
  border-width: 0 2px 2px 0; transform: translateY(-30%) rotate(45deg); pointer-events: none; }
.fl-field:focus-within { box-shadow: inset 0 0 0 2px var(--navy-2); }
.fl-bar .btn { height: auto; min-height: 60px; border-radius: 16px; }

.fl-results { margin-top: 30px; transition: opacity .2s var(--ease); }
.fl-results.is-loading { opacity: .5; }
.fl-count { margin: 0 0 14px; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.fl-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
/* a lawyer: the whole card opens the profile (the name's link covers it), like the library's cards */
.fl-card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px 18px;
  border-radius: 22px; background: var(--glass); border: 1px solid rgba(255, 255, 255, .85); box-shadow: inset 0 1px 0 #fff, 0 12px 30px rgba(34, 40, 110, .08);
  transition: transform .45s var(--spring-1), box-shadow .3s; }
.fl-card:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 #fff, 0 20px 44px rgba(34, 40, 110, .14); }
.fl-card:active { transition-duration: 0s; transform: scale(.99); }
.fl-card .ekav { width: 54px; height: 54px; border-radius: 50%; font-size: 16px; font-weight: 700;
  background: linear-gradient(135deg, #5b66d6, #2a306e); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }
.fl-id { min-width: 0; }
.fl-nm { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.fl-name { margin: 0; min-width: 0; font-size: 17px; font-weight: 700; line-height: 1.4; color: var(--ink); }
.fl-name a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.fl-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.fl-card:hover .fl-name a { color: var(--navy); }
@supports selector(:has(*)) {
  .ek-site main .fl-name a:focus-visible { outline: none; }
  .fl-card:has(.fl-name a:focus-visible) { outline: 2px solid var(--navy-2); outline-offset: 3px; }
}
.fl-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 5px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.fl-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.fl-meta .i { font-size: 15px; }
.fl-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.fl-side .rate { gap: 5px; font-size: 14px; }
.fl-side .rate .i { font-size: 16px; }
.fl-side .rate em { font-size: 12.5px; }
.fl-go { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.fl-go .i { font-size: 14px; transition: transform .35s var(--spring); }
.fl-card:hover .fl-go .i { transform: translateX(3px); }
[dir="rtl"] .fl-card:hover .fl-go .i { transform: scaleX(-1) translateX(3px); }

/* nobody: say so, and take the visitor to the matcher (static/js/ek-site-find.js) */
.fl-empty { display: grid; justify-items: center; gap: 10px; padding: 40px 24px; border-radius: 26px; text-align: center;
  background: var(--glass); border: 1px solid rgba(255, 255, 255, .85); box-shadow: inset 0 1px 0 #fff, 0 18px 44px rgba(34, 40, 110, .1); }
.fl-empty-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(180deg, var(--navy-2), var(--navy)); box-shadow: 0 10px 24px rgba(42, 48, 110, .28); }
.fl-empty-ic .i { font-size: 26px; }
.fl-empty h3 { margin: 6px 0 0; font-size: 21px; font-weight: 700; line-height: 1.4; color: var(--ink); }
.fl-empty p { margin: 0; max-width: 34em; font-size: 16px; color: var(--muted); }
.fl-empty-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; margin-top: 10px; }

/* ---------- compact desktops: 1920x1080 at 125-150 % (1536x730, 1280x600) ---------- */
@media (min-width: 1024px) and (max-width: 1439.98px), (min-width: 1024px) and (max-height: 819.98px) {
  .fhero { padding-block: 104px 44px; }
  .fhero .hero-grid { gap: 44px; }
  .fh-copy { padding-top: 18px; }
  .fhero h1 { font-size: clamp(32px, 3.1vw, 44px); }
  :root:lang(ar) .fhero h1 { font-size: clamp(30px, 2.9vw, 40px); }
  .fhero .proof { margin-top: 22px; }
  .ek-find .ekls-card { padding: 18px 20px; }
  .ek-find .ekls-title { margin-top: 10px; font-size: 20px; }
  :root:lang(ar) .ek-find .ekls-title { font-size: 19.5px; }
  .ek-find .ekls-sub { font-size: 14px; }
  .ek-find .ekls-input { min-height: 92px; }
  .fl { padding-block: 72px 88px; }
}
@media (min-width: 1024px) and (max-height: 699.98px) {
  /* the site drops the hero's proof line here (the home needs the room); beside the taller
     matcher this column has it */
  .fhero .proof { display: flex; margin-top: 18px; }
  .ek-find .ekls-sub { display: none; }
  .ek-find .ekls-head { margin-bottom: 10px; }
  .ek-find .ekls-input { min-height: 84px; }
}

/* ---------- tablets ---------- */
@media (max-width: 1023.98px) {
  .fhero { padding-block: 108px 36px; }
  .fhero .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .fh-copy { padding-top: 0; }
  .fhero .proof { flex-direction: row; flex-wrap: wrap; margin-top: 20px; }
  .fl { padding-block: 64px 80px; }
}

/* ---------- phones ---------- */
@media (max-width: 639.98px) {
  .fhero { padding-block: 96px 20px; }
  .fhero h1 { font-size: 29px; }
  :root:lang(ar) .fhero h1 { font-size: 28px; }
  .fhero .lead { margin-top: 12px; font-size: 16px; }
  :root:lang(ar) .fhero .lead { font-size: 16px; }
  .fh-browse { margin-top: 14px; font-size: 14.5px; }
  .fhero .proof { display: none; }
  .ek-find .ekls-card { padding: 16px; border-radius: 22px; }
  .ek-find .ekls-title { font-size: 19px; }
  :root:lang(ar) .ek-find .ekls-title { font-size: 18.5px; }
  .ek-find .ekls-sub { font-size: 13.5px; line-height: 1.65; }
  .ek-find .ekls-input { min-height: 96px; }
  .ek-find .ekls-view { padding: 8px 12px; }
  .fl { padding-block: 44px 64px; }
  .sec-h.fl-h { margin-bottom: 18px; }
  .fl-bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding: 8px; border-radius: 20px; }
  .fl-bar .btn { grid-column: 1 / -1; min-height: 50px; }
  .fl-field { padding: 7px 12px; border-radius: 14px; }
  .fl-field select { font-size: 15px; }
  .fl-field::after { inset-inline-end: 12px; }
  .fl-results { margin-top: 22px; }
  .fl-list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .fl-card { gap: 12px; padding: 12px 14px; border-radius: 18px; }
  .fl-card .ekav { width: 46px; height: 46px; font-size: 14px; }
  .fl-name { font-size: 16px; }
  .fl-meta { gap: 0 10px; font-size: 13px; }
  .fl-meta .i { font-size: 14px; }
  /* the seal stays; its words are read, not shown, where the row is narrow */
  .fl-nm .ver { padding: 3px; }
  .fl-nm .ver > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  /* the rating under the meta, the chevron alone at the end: one tidy row height */
  .fl-card { row-gap: 2px; }
  .fl-card .ekav { grid-row: 1 / span 2; }
  .fl-id { grid-column: 2; grid-row: 1; }
  .fl-side { display: contents; }
  .fl-side .rate { grid-column: 2; grid-row: 2; justify-self: start; font-size: 13px; }
  .fl-side .rate .i { font-size: 14px; }
  .fl-go { grid-column: 3; grid-row: 1 / span 2; }
  .fl-go > span { display: none; }
  .fl-empty { padding: 28px 18px; border-radius: 22px; }
  .fl-empty h3 { font-size: 19px; }
  .fl-empty p { font-size: 15px; }
}

/* when the visitor asks for less: no glass, stronger borders */
@media (prefers-reduced-transparency: reduce) {
  .fl-bar, .fl-card, .fl-empty { background: #fff !important; }
}
@media (prefers-contrast: more) {
  .fl-bar, .fl-card, .fl-empty, .ek-find .ekls-card { box-shadow: 0 0 0 1.5px var(--ink) !important; }
  .fl-meta, .fl-field > span, .ek-find .ekls-sub { color: var(--ink-2) !important; }
}
