/* =====================================================================
   immcase.ca — practitioner workspace finder.
   ImmCase "Forward Fan" brand system (green -> teal -> blue -> deep blue),
   navy ink, Plus Jakarta Sans. Sibling of the immportal.com finder, which
   uses the ImmPortal gateway-arch system instead.
   ===================================================================== */

:root {
  --green:       #8CC63F;
  --teal:        #3FB6A8;
  --blue:        #1CA3DC;
  --deep-blue:   #0E76BC;
  --bright-blue: #37B6EA;
  --ink:         #16314D;

  --bg:      #ffffff;
  --bg-soft: #f5f8fb;
  --bg-tint: #eef5fb;
  --line:    #e2e8f0;
  --text:    #1f2d3d;
  --muted:   #5b6b7e;

  --maxw: 720px;
  --radius: 16px;
  --shadow-sm: 0 8px 24px -14px rgba(14, 49, 77, .35);
  --shadow:    0 18px 50px -20px rgba(14, 49, 77, .28);
  --fan: linear-gradient(90deg, var(--green) 0%, var(--teal) 38%, var(--blue) 70%, var(--deep-blue) 100%);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--deep-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- arch bar + header ---------- */

.fanbar { height: 5px; background: var(--fan); }

.site-head { padding: 22px 0; }
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-block; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 158px; height: auto; }

.langs { display: flex; gap: 4px; }
.lang {
  appearance: none; border: 1px solid transparent; background: none; font: inherit;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--muted);
  padding: 6px 10px; border-radius: 8px; cursor: pointer;
}
.lang:hover { color: var(--ink); background: var(--bg-soft); }
.lang.is-on { color: var(--ink); background: var(--bg-tint); border-color: #d7e6f4; }
.lang:focus-visible { outline: 2px solid var(--deep-blue); outline-offset: 2px; }

/* ---------- finder ---------- */

.finder { padding: 46px 0 8px; }
.finder h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 800; }
.lede { margin: 14px 0 0; color: var(--muted); }

.search { position: relative; margin-top: 28px; }
.search-icon {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: var(--muted); pointer-events: none;
}
#firm-search {
  width: 100%;
  font: inherit;
  font-size: 18px;
  color: var(--ink);
  padding: 17px 18px 17px 50px;
  border: 1px solid #cddced;
  border-radius: 13px;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  transition: border-color .16s ease, box-shadow .16s ease;
}
#firm-search::placeholder { color: #93a5b8; }
#firm-search:focus {
  outline: none;
  border-color: var(--deep-blue);
  box-shadow: 0 0 0 3px rgba(14, 118, 188, .16);
}

/* ---------- results ---------- */

.results { list-style: none; margin: 14px 0 0; padding: 0; }
.results li + li { margin-top: 8px; }

.results a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--bg-soft);
  color: inherit;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.results a:hover,
.results li.is-active a {
  text-decoration: none;
  background: var(--bg);
  border-color: var(--deep-blue);
  transform: translateY(-1px);
}
.results a:focus-visible { outline: 2px solid var(--deep-blue); outline-offset: 2px; }

.firm-fan { flex: 0 0 auto; width: 26px; height: 26px; }
.firm-text { flex: 1 1 auto; min-width: 0; }
.firm-name { display: block; font-weight: 700; color: var(--ink); }
.firm-host { display: block; font-size: 14px; color: var(--muted); }
.firm-go { flex: 0 0 auto; color: var(--deep-blue); font-weight: 600; }

/* Highlighted portion of a matched name. */
.results mark { background: #dcefc6; color: inherit; border-radius: 3px; padding: 0 1px; }

.hint { margin: 14px 0 0; font-size: 15px; color: var(--muted); }
.hint-none { color: var(--text); }
.hint-none span { display: block; }
.hint-none span + span { margin-top: 4px; color: var(--muted); font-size: 14.5px; }

/* ---------- aside ---------- */

.aside {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 52px 0 64px;
  padding: 22px 24px;
  background: var(--bg-tint);
  border: 1px solid #d7e6f4;
  border-radius: var(--radius);
}
.aside-icon {
  flex: 0 0 auto;
  width: 40px; height: 40px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 11px;
}
.aside h2 { font-size: 17px; font-weight: 800; }
.aside p { margin: 7px 0 0; font-size: 15.5px; color: var(--muted); }
.aside-cta a { font-weight: 600; }

/* ---------- footer ---------- */

.site-foot { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 22px 0; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.site-foot p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* ---------- responsive ---------- */

@media (max-width: 620px) {
  .finder { padding-top: 32px; }
  .aside { flex-direction: column; margin: 40px 0 48px; }
  .foot-inner { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .results a:hover, .results li.is-active a { transform: none; }
}
