
:root{
  --brand:#0B5ED7; --brand-hover:#0A53BE;
  --hero-from:#020F2B; --hero-to:#0B5ED7;
  --blue-50:#EFF6FF; --blue-100:#DBEAFE;
  --green:#16A34A; --amber:#F59E0B;
  --gray-950:#030712; --gray-900:#101828; --gray-800:#1E2939;
  --gray-700:#364153; --gray-600:#4A5565; --gray-500:#6A7282;
  --gray-400:#99A1AF; --gray-200:#E5E7EB; --gray-100:#F3F4F6;
  --gray-50:#F9FAFB;
  --container:1200px; --gutter:24px;
  --radius-card:14px; --radius-input:10px;
  --shadow-card:0 1px 2px rgba(16,24,40,.04),0 1px 3px rgba(16,24,40,.06);
  --shadow-float:0 10px 30px rgba(2,15,43,.18);
}


body{font-family:'outfit',sans-serif;}
img,svg{display:block;max-width:100%}
button{font:inherit;cursor:pointer;border:none}
input,select{font:inherit;color:var(--gray-900);width:100%}
a{text-decoration:none;color:inherit}
.container{max-width:var(--container);margin-inline:auto;padding-inline:var(--gutter)}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--brand);color:#fff;font-size:14px;font-weight:600;border-radius:var(--radius-input);height:46px;padding:0 20px;white-space:nowrap;transition:background .2s,transform .1s}
.btn:hover{background:var(--brand-hover)}
.btn:active{transform:translateY(1px)}
.btn:focus-visible{outline:3px solid rgba(11,94,215,.35);outline-offset:2px}
.btn svg{width:16px;height:16px}

/* ===================== HERO ===================== */
.hero{position:relative;color:#fff;overflow:hidden;background:linear-gradient(100deg,var(--hero-from) 0%,#06224f 48%,var(--hero-to) 100%)}
.hero-top{padding:24px 0 30px}
.breadcrumb{display:flex;align-items:center;gap:10px;font-size:13px;color:rgba(255,255,255,.82);margin-bottom:26px;flex-wrap:wrap}
.breadcrumb a{display:inline-flex;align-items:center;color:rgba(255,255,255,.82);transition:color .2s}
.breadcrumb a:hover{color:#fff}
.breadcrumb .crumb-sep svg{width:13px;height:13px;stroke:rgba(255,255,255,.55);stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.breadcrumb .current{color:#fff;font-weight:500}
.hero h1{font-size:26px;font-weight:700;letter-spacing:-.01em;margin-bottom:6px}
.hero .hero-sub{font-size:13px;color:rgba(255,255,255,.8);margin-bottom:22px}
.search-card{background:#fff;border-radius:var(--radius-card);box-shadow:var(--shadow-float);padding:18px 20px;display:grid;grid-template-columns:1fr 1.2fr auto;gap:18px;align-items:end}
.field-label{display:block;font-size:12.5px;font-weight:500;color:var(--gray-700);margin-bottom:8px}
.select-wrap{position:relative}
.select-wrap select{appearance:none;-webkit-appearance:none;background:var(--gray-50);border:1px solid var(--gray-200);border-radius:var(--radius-input);height:46px;padding:0 40px 0 14px;font-size:14px;color:var(--gray-500);outline:none;transition:border-color .2s,box-shadow .2s}
.select-wrap::after{content:"";position:absolute;right:16px;top:50%;width:9px;height:9px;border-right:1.8px solid var(--gray-400);border-bottom:1.8px solid var(--gray-400);transform:translateY(-70%) rotate(45deg);pointer-events:none}
.search-card input[type=text]{background:var(--gray-50);border:1px solid var(--gray-200);border-radius:var(--radius-input);height:46px;padding:0 14px;font-size:14px;outline:none;transition:border-color .2s,box-shadow .2s,background .2s}
.search-card input::placeholder{color:var(--gray-400)}
.search-card select:focus,.search-card input:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(11,94,215,.12);background:#fff}

/* ===================== LISTING HEADER ===================== */
.listing{padding:34px 0 10px}
.listing-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:26px}
.listing-head h2{font-size:21px;font-weight:700;color:var(--gray-900);letter-spacing:-.01em;margin-bottom:4px}
.listing-head .count{font-size:12.5px;color:var(--gray-500)}
.view-toggle{display:flex;gap:8px;flex:0 0 auto}
.view-toggle button{width:38px;height:38px;border-radius:9px;background:var(--blue-50);display:flex;align-items:center;justify-content:center;transition:background .2s,color .2s}
.view-toggle button svg{width:18px;height:18px;stroke:var(--brand);stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.view-toggle button.active{background:var(--brand)}
.view-toggle button.active svg{stroke:#fff}
.view-toggle button:not(.active):hover{background:var(--blue-100)}

/* ===================== CARDS WRAP ===================== */
.cards{display:grid;gap:24px}
.cards.grid-view{grid-template-columns:repeat(2,1fr)}
.cards.list-view{grid-template-columns:1fr}

/* Card base */
.lawyer-card{position:relative;background:#fff;border:1px solid var(--gray-100);border-radius:var(--radius-card);box-shadow:var(--shadow-card);overflow:hidden;transition:box-shadow .2s,transform .2s}
.lawyer-card:hover{box-shadow:0 8px 24px rgba(16,24,40,.10);transform:translateY(-2px)}
.lc-photo{position:relative;background:var(--gray-100)}
.lc-photo img{width:100%;height:100%;object-fit:cover;display:block}
.badge-verified{position:absolute;top:14px;left:14px;display:inline-flex;align-items:center;gap:5px;background:var(--brand);color:#fff;font-size:11px;font-weight:600;padding:5px 10px;border-radius:999px;box-shadow:0 2px 6px rgba(11,94,215,.3)}
.badge-verified svg{width:12px;height:12px;stroke:#fff;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}

.lc-body{padding:16px 18px 18px;display:flex;flex-direction:column;gap:0}
.lc-name-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.lc-name{font-size:15px;font-weight:600;color:var(--gray-900)}
.lc-rating{display:inline-flex;align-items:center;gap:4px;font-size:12.5px;font-weight:600;color:var(--gray-800)}
.lc-rating svg{width:14px;height:14px;fill:var(--amber);stroke:none}
.lc-practice{font-size:12.5px;font-weight:500;color:var(--brand);margin-top:2px}
.lc-desc{font-size:12px;color:var(--gray-500);line-height:1.65;margin-top:8px}
.lc-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin-top:12px;font-size:11.5px;color:var(--gray-500)}
.lc-meta .mi{display:inline-flex;align-items:center;gap:5px}
.lc-meta .mi svg{width:13px;height:13px;stroke:var(--gray-400);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.lc-stats{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}
.lc-exp{font-size:12px;color:var(--gray-700)}
.lc-exp b{font-weight:600;color:var(--gray-900)}
.lc-extra{font-size:12px;font-weight:600}
.lc-extra.free{color:var(--green)}
.lc-extra.price{color:var(--gray-900)}
.lc-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}
.btn-outline{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:#fff;color:var(--gray-700);font-size:13px;font-weight:600;border:1px solid var(--gray-200);border-radius:var(--radius-input);height:42px;transition:border-color .2s,color .2s,background .2s}
.btn-outline:hover{border-color:var(--brand);color:var(--brand);background:var(--blue-50)}
.btn-outline svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.btn-primary{height:42px;font-size:13px}

/* GRID view: photo on top */
.cards.grid-view .lc-photo{aspect-ratio:16/10;width:100%}

/* LIST view: photo left, body right */
.cards.list-view .lawyer-card{display:grid;grid-template-columns:240px 1fr}
.cards.list-view .lc-photo{height:100%;min-height:240px}
.cards.list-view .lc-body{padding:20px 24px}
.cards.list-view .lc-desc{max-width:none}
.cards.list-view .lc-actions{grid-template-columns:1fr 1fr;max-width:560px}

/* ===================== PAGINATION ===================== */
.pager{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:30px;flex-wrap:wrap}
.pager .viewed{font-size:12.5px;color:var(--gray-500)}
.pager .pages{display:flex;gap:8px}
.pager .pages button{min-width:38px;height:38px;border-radius:9px;background:#fff;border:1px solid var(--gray-200);font-size:13px;font-weight:500;color:var(--gray-700);padding:0 6px;display:inline-flex;align-items:center;justify-content:center;transition:background .2s,color .2s,border-color .2s}
.pager .pages button.active{background:var(--brand);border-color:var(--brand);color:#fff}
.pager .pages button:not(.active):hover{border-color:var(--brand);color:var(--brand)}
.pager .pages button svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* ===================== MORE ATTORNEYS ===================== */
.more{background:var(--blue-50);padding:44px 0 50px;margin-top:40px}
.more h2{font-size:20px;font-weight:700;color:var(--gray-900);letter-spacing:-.01em;margin-bottom:24px}
.more .sub-label{font-size:13px;font-weight:600;color:var(--gray-700);margin-bottom:12px}
.chip-row{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:26px}
.chip-row:last-child{margin-bottom:0}
.chip{display:inline-flex;align-items:center;gap:7px;background:#fff;border:1px solid var(--gray-200);border-radius:999px;padding:8px 14px;font-size:12.5px;font-weight:500;color:var(--gray-700);transition:border-color .2s,color .2s}
.chip:hover{border-color:var(--brand);color:var(--brand)}
.chip svg{width:12px;height:12px;stroke:var(--gray-400);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:stroke .2s,transform .2s}
.chip:hover svg{stroke:var(--brand);transform:translateX(2px)}

/* ===================== FAQ ===================== */
.faq{padding:54px 0 70px}
.faq .eyebrow{display:inline-flex;align-items:center;gap:7px;background:var(--blue-50);color:var(--brand);font-size:12px;font-weight:600;border-radius:999px;padding:6px 14px;margin-bottom:14px}
.faq .eyebrow svg{width:13px;height:13px;stroke:var(--brand);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.faq h2{font-size:24px;font-weight:700;color:var(--gray-900);letter-spacing:-.01em;margin-bottom:26px}
.faq-item{background:var(--gray-50);border:1px solid var(--gray-100);border-radius:12px;padding:18px 20px;margin-bottom:14px;transition:background .2s}
.faq-item:hover{background:#fff;border-color:var(--gray-200)}
.faq-q{display:flex;align-items:flex-start;gap:12px}
.faq-q .qi{flex:0 0 20px;width:20px;height:20px;margin-top:1px}
.faq-q .qi svg{width:20px;height:20px;stroke:var(--brand);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.faq-q h3{font-size:14px;font-weight:600;color:var(--gray-900);margin-bottom:8px}
.faq-q p{font-size:12.5px;color:var(--gray-500);line-height:1.7}

/* ===================== RESPONSIVE ===================== */
@media (max-width:880px){
  .cards.grid-view{grid-template-columns:1fr}
  .cards.list-view .lawyer-card{grid-template-columns:200px 1fr}
}
@media (max-width:680px){
  .hero h1{font-size:22px}
  .listing-head h2{font-size:18px}
  .search-card{grid-template-columns:1fr 1fr}
  .search-card .btn{grid-column:1 / -1;width:100%}
  /* list view collapses to stacked like grid on mobile */
  .cards.list-view .lawyer-card{grid-template-columns:1fr}
  .cards.list-view .lc-photo{aspect-ratio:16/10;min-height:0;height:auto}
  .faq h2{font-size:20px}
}
@media (max-width:520px){
  :root{--gutter:16px}
  .search-card{grid-template-columns:1fr;padding:16px}
  .lc-actions{grid-template-columns:1fr !important}
  .pager{justify-content:center}
}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition:none !important}html{scroll-behavior:auto}}
