/* =========================================================
   Legal24 — shared design system
   ========================================================= */
:root {
  --navy: #0A1628;
  --navy-700: #122039;
  --navy-600: #1B2C49;
  --navy-500: #2A3D5B;
  --gold: #C9A84C;
  --gold-soft: #E0C679;
  --gold-deep: #9F8334;
  --ivory: #FAF7F0;
  --ivory-2: #F2EDE0;
  --paper: #FFFFFF;
  --ink: #14202F;
  --ink-2: #44516A;
  --ink-3: #6B7689;
  --hair: #E6E0CE;
  --hair-2: #D7CFB7;
  --hair-dark: rgba(255,255,255,0.10);

  --serif: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --container: 1240px;
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 14px;

  --shadow-1: 0 1px 2px rgba(10,22,40,0.04), 0 1px 0 rgba(10,22,40,0.03);
  --shadow-2: 0 18px 40px -16px rgba(10,22,40,0.18), 0 4px 10px rgba(10,22,40,0.04);

  --tx: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--gold); color: var(--navy); }

/* page fade-in */
@keyframes pageIn { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: none; } }
main { animation: pageIn .55s var(--tx) both; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--tx), transform .8s var(--tx); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Typography ---------- */
.h-display, h1.display {
  font-family: var(--serif);
  font-weight: 500;
  font-style: normal;
  letter-spacing: -0.01em;
  line-height: 1.02;
  font-size: clamp(40px, 6.4vw, 88px);
  color: var(--navy);
  margin: 0;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--navy); letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.05; margin: 0 0 .4em; }
h2 { font-size: clamp(26px, 3vw, 40px); line-height: 1.1; margin: 0 0 .4em; }
h3 { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.2; margin: 0 0 .35em; }
h4 { font-size: 18px; line-height: 1.3; margin: 0 0 .35em; }
p  { margin: 0 0 1em; color: var(--ink-2); }
.lead { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px; background: var(--gold-deep);
}
.serif-italic { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section--dark { background: var(--navy); color: #E7EAF1; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #B5BDD0; }
.section--ivory { background: var(--ivory); }
.section--paper { background: var(--paper); }
.hair { height: 1px; background: var(--hair); border: 0; margin: 0; }
.hair--dark { background: rgba(255,255,255,.10); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,22,40,0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #E7EAF1;
}
.site-header .row {
  display: flex; align-items: center; gap: 28px;
  height: 72px;
}
.brand {
  display: inline-flex; align-items: baseline;
  font-family: var(--serif); font-size: 28px; color: #fff;
  letter-spacing: -0.015em;
  line-height: 1;
}
.brand sup {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1em;
  letter-spacing: -0.015em;
  font-style: italic;
  font-weight: 500;
  margin-left: 2px;
  vertical-align: baseline;
  top: 0;
}

.nav { display: flex; align-items: center; gap: 26px; margin-left: 18px; }
.nav a {
  font-size: 14px; color: #C7CEDD;
  position: relative; padding: 6px 0;
  transition: color .2s var(--tx);
  white-space: nowrap;
}
.nav a:hover, .nav a.is-active { color: #fff; }
.nav a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -22px;
  height: 2px; background: var(--gold);
}

.header-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  padding: 3px;
}
.lang a {
  display: inline-block; padding: 6px 12px;
  font-size: 12px; letter-spacing: .08em;
  color: #B5BDD0; border-radius: 999px;
  transition: all .2s var(--tx);
}
.lang a.is-active {
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
}
.lang a:hover:not(.is-active) { color: #fff; }

.hamburger {
  display: none;
  background: transparent; border: 1px solid rgba(255,255,255,.18);
  width: 40px; height: 40px; border-radius: 6px; color: #fff;
  align-items: center; justify-content: center;
}
.hamburger svg { width: 18px; height: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-size: 14px; font-weight: 500; letter-spacing: .02em;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: all .25s var(--tx);
  white-space: nowrap;
}
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-soft); transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(201,168,76,.55); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.22); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-600); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--sm { padding: 10px 16px; font-size: 13px; }
.btn--lg { padding: 18px 28px; font-size: 15px; }
.btn--block { width: 100%; justify-content: center; }
.btn .arr { transition: transform .25s var(--tx); }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy);
  color: #E7EAF1;
  padding: clamp(96px, 14vw, 168px) 0 clamp(80px, 10vw, 140px);
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(201,168,76,.10), transparent 60%),
    radial-gradient(45% 60% at 12% 90%, rgba(201,168,76,.06), transparent 60%);
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 80%);
  z-index: -1;
  pointer-events: none;
}
.hero h1 { color: #fff; max-width: 18ch; }
.hero h1 em { color: var(--gold-soft); font-style: italic; font-weight: 400; }
.hero p { color: #B5BDD0; max-width: 52ch; font-size: 18px; }
.hero-meta {
  display: flex; gap: 36px; margin-top: 56px;
  border-top: 1px solid rgba(255,255,255,.10);
  padding-top: 24px;
  flex-wrap: wrap;
}
.hero-meta div b { color: #fff; font-family: var(--serif); font-size: 28px; font-weight: 500; display:block; }
.hero-meta div span { color: #8C97AE; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }

/* Search panel */
.search-panel {
  margin-top: 36px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 10px;
  display: grid;
  grid-template-columns: 1.2fr 1.2fr auto;
  gap: 8px;
  max-width: 720px;
  backdrop-filter: blur(8px);
}
.search-panel select, .search-panel input {
  background: transparent;
  border: 0;
  color: #fff;
  padding: 14px 16px;
  font: 500 15px var(--sans);
  outline: none;
  appearance: none;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.search-panel select option { color: #000; }
.search-panel select:last-of-type { border-right: 0; }
.search-panel .btn { padding: 14px 22px; }

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--paper);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.trust-bar .grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.trust-bar .cell {
  padding: 36px 24px;
  text-align: center;
  border-right: 1px solid var(--hair);
}
.trust-bar .cell:last-child { border-right: 0; }
.trust-bar b {
  display: block;
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1;
}
.trust-bar span {
  display: block; margin-top: 8px;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}

/* ---------- Practice areas ---------- */
.areas-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--hair);
  border-left: 1px solid var(--hair);
}
.area-card {
  padding: 32px;
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  display: flex; flex-direction: column;
  min-height: 220px;
  background: var(--paper);
  transition: background .3s var(--tx);
}
.area-card:hover { background: var(--ivory); }
.area-card .ico {
  width: 36px; height: 36px; color: var(--gold-deep);
  margin-bottom: 28px;
}
.area-card h3 { color: var(--navy); }
.area-card p { font-size: 14px; color: var(--ink-3); margin: 0; }
.area-card .more {
  margin-top: auto; padding-top: 20px;
  font-size: 13px; color: var(--navy); letter-spacing: .04em;
  display: inline-flex; align-items: center; gap: 8px;
  border-top: 1px solid transparent;
  transition: gap .25s var(--tx);
}
.area-card:hover .more { gap: 14px; color: var(--gold-deep); }

/* ---------- Lawyer cards ---------- */
.lawyer-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.lawyer-card {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 6px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s var(--tx), box-shadow .25s var(--tx), border-color .25s var(--tx);
}
.lawyer-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--hair-2); }
.lawyer-card .ph {
  aspect-ratio: 4 / 3;
  position: relative;
  background:
    repeating-linear-gradient(135deg, var(--ivory-2) 0 6px, var(--ivory) 6px 14px);
  display: flex; align-items: flex-end; justify-content: flex-start; padding: 16px;
}
.lawyer-card .ph .badge {
  position: absolute; top: 14px; right: 14px;
  background: var(--navy); color: var(--gold); font-size: 11px; padding: 6px 10px;
  letter-spacing: .12em; text-transform: uppercase; border-radius: 4px;
  display: inline-flex; gap: 6px; align-items: center;
}
.lawyer-card .ph .label {
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  background: rgba(255,255,255,.85); padding: 4px 8px; border-radius: 3px;
}
.lawyer-card .body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.lawyer-card h3 { font-size: 22px; margin-bottom: 4px; }
.lawyer-card .spec { font-size: 13px; color: var(--gold-deep); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.lawyer-card .meta {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-3);
  padding-bottom: 16px;
}
.lawyer-card .meta .dot { width: 3px; height: 3px; background: var(--hair-2); border-radius: 50%; }
.lawyer-card .rate { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 500; }
.lawyer-card .rate svg { color: var(--gold); width: 14px; height: 14px; }
.lawyer-card .bottom {
  margin-top: auto;
  padding-top: 16px; border-top: 1px solid var(--hair);
  display: flex; justify-content: space-between; align-items: center;
}
.lawyer-card .price { font-size: 13px; color: var(--ink-3); }
.lawyer-card .price b { color: var(--navy); font-weight: 600; }

/* Section heading row */
.sec-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 24px; margin-bottom: 56px;
}
.sec-head .left { max-width: 56ch; }
.sec-head h2 { margin: 12px 0 0; }
.sec-head .right { display: flex; align-items: center; gap: 14px; }

/* ---------- Steps (How it works) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
.step { padding: 40px 32px; background: var(--paper); position: relative; min-height: 240px;}
.step .num { font-family: var(--serif); font-size: 56px; color: var(--gold); line-height: 1; margin-bottom: 18px; }
.step h3 { color: var(--navy); }
.step p { font-size: 14px; color: var(--ink-3); margin: 0; }

/* ---------- Blog cards ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.article {
  display: flex; flex-direction: column;
  border: 1px solid var(--hair); border-radius: 6px;
  background: var(--paper); overflow: hidden;
  transition: border-color .25s var(--tx), transform .25s var(--tx);
}
.article:hover { border-color: var(--hair-2); transform: translateY(-2px); }
.article .cover {
  aspect-ratio: 16 / 10;
  background:
    repeating-linear-gradient(45deg, var(--ivory-2) 0 6px, var(--ivory) 6px 14px);
  position: relative;
}
.article .cover .tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--navy); color: var(--gold);
  font-size: 11px; padding: 6px 10px; border-radius: 4px;
  letter-spacing: .12em; text-transform: uppercase;
}
.article .body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.article h3 { font-size: 22px; line-height: 1.2; margin-bottom: 10px; }
.article p { font-size: 14px; color: var(--ink-3); margin-bottom: 16px; }
.article .meta { margin-top: auto; font-size: 12px; color: var(--ink-3); letter-spacing: .06em; display: flex; gap: 12px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--navy);
  color: #fff; border-radius: 8px;
  padding: clamp(40px, 6vw, 80px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(40% 80% at 100% 0%, rgba(201,168,76,.18), transparent 70%);
}
.cta-banner h2 { color: #fff; margin: 8px 0 0; position: relative; }
.cta-banner p { color: #B5BDD0; max-width: 50ch; position: relative; }
.cta-banner .right { position: relative; text-align: right; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #B5BDD0; padding: 80px 0 28px; }
.site-footer h4 {
  color: #fff; font-family: var(--sans); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 22px;
  font-weight: 500;
}
.site-footer a { display: block; padding: 6px 0; color: #B5BDD0; font-size: 14px; transition: color .2s var(--tx); }
.site-footer a:hover { color: var(--gold); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; }
.foot-brand .brand { color: #fff; }
.foot-brand p { color: #8C97AE; font-size: 14px; max-width: 32ch; margin-top: 18px; }
.socials { display: flex; gap: 12px; margin-top: 20px; }
.socials a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.12); border-radius: 50%;
  padding: 0;
}
.socials a:hover { border-color: var(--gold); color: var(--gold); }
.socials svg { width: 16px; height: 16px; }
.foot-bottom {
  margin-top: 60px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.10);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  font-size: 12px; color: #6F7A92;
}
.foot-bottom a { display: inline; color: #B5BDD0; }
.foot-bottom .links a { margin-right: 18px; }
.foot-bottom .powered { color: #6F7A92; }
.foot-bottom .powered a { color: var(--gold-soft); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
  display: flex; gap: 10px; flex-wrap: wrap; padding: 24px 0 0;
}
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb .sep { color: var(--hair-2); }

/* ---------- Sub-hero (compact) ---------- */
.subhero {
  background: var(--navy);
  color: #fff;
  padding: clamp(64px, 9vw, 112px) 0 clamp(56px, 7vw, 88px);
  position: relative; overflow: hidden;
}
.subhero::after {
  content:""; position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 80%);
  pointer-events:none;
}
.subhero .eyebrow { color: var(--gold-soft); }
.subhero .eyebrow::before { background: var(--gold-soft); }
.subhero h1 { color: #fff; max-width: 22ch; position: relative; }
.subhero p { color: #B5BDD0; max-width: 60ch; position: relative; }
.subhero .breadcrumb { color: #8C97AE; padding-top: 0; margin-bottom: 28px; }
.subhero .breadcrumb a { color: #B5BDD0; }

/* ---------- Directory filters ---------- */
.dir-layout { display: grid; grid-template-columns: 280px 1fr; gap: 40px; }
.filters {
  position: sticky; top: 96px;
  align-self: start;
  border: 1px solid var(--hair);
  background: var(--paper);
  border-radius: 6px;
  padding: 24px 22px;
}
.filters h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; font-weight: 500; }
.filters .group { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--hair); }
.filters .group:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.filters label.row {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--ink-2); padding: 6px 0;
  cursor: pointer;
}
.filters input[type="checkbox"], .filters input[type="radio"] {
  appearance: none;
  width: 16px; height: 16px;
  border: 1.4px solid var(--hair-2); border-radius: 3px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .2s var(--tx);
}
.filters input[type="radio"] { border-radius: 50%; }
.filters input[type="checkbox"]:checked,
.filters input[type="radio"]:checked { background: var(--navy); border-color: var(--navy); }
.filters input[type="checkbox"]:checked::after {
  content: ""; width: 9px; height: 5px; border: 1.6px solid var(--gold);
  border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg);
}
.filters input[type="radio"]:checked::after { content:""; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }
.filters .count { margin-left: auto; font-size: 12px; color: var(--ink-3); }

.sort-bar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
  padding-bottom: 18px; border-bottom: 1px solid var(--hair);
  font-size: 14px; color: var(--ink-3);
}
.sort-bar select {
  background: transparent; border: 1px solid var(--hair); border-radius: 4px;
  padding: 8px 30px 8px 12px;
  font: 14px var(--sans); color: var(--ink); cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: right 14px top 16px, right 9px top 16px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

/* Pager */
.pager { display: flex; justify-content: center; gap: 4px; margin-top: 56px; }
.pager a, .pager span {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--hair); color: var(--navy); border-radius: 4px;
  font-size: 14px; font-weight: 500;
}
.pager .is-active { background: var(--navy); color: var(--gold); border-color: var(--navy); }
.pager a:hover { background: var(--ivory); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form .field { display: grid; gap: 8px; }
.form label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.form .req { color: var(--gold-deep); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="number"], .form input[type="file"], .form select, .form textarea {
  background: var(--paper); border: 1px solid var(--hair); border-radius: 4px;
  padding: 14px 16px; font: 15px var(--sans); color: var(--ink);
  width: 100%; transition: border-color .2s var(--tx), background .2s var(--tx);
}
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--navy); outline: 2px solid rgba(201,168,76,.25); }
.form input.is-invalid, .form select.is-invalid, .form textarea.is-invalid { border-color: #B23A3A; background: #FFF8F6; }
.form .err { font-size: 12px; color: #B23A3A; min-height: 14px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ---------- Pricing ---------- */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tier {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 8px;
  padding: 40px 36px;
  display: flex; flex-direction: column;
  position: relative;
}
.tier.is-feature { background: var(--navy); color: #fff; border-color: var(--navy); transform: scale(1.02); }
.tier.is-feature h3 { color: #fff; }
.tier.is-feature p, .tier.is-feature li { color: #B5BDD0; }
.tier .ribbon {
  position: absolute; top: -12px; left: 36px;
  background: var(--gold); color: var(--navy);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 6px 12px; border-radius: 4px; font-weight: 600;
}
.tier .price { font-family: var(--serif); font-size: 56px; line-height: 1; color: var(--navy); margin: 16px 0 6px; }
.tier.is-feature .price { color: var(--gold-soft); }
.tier .price small { font-family: var(--sans); font-size: 14px; color: var(--ink-3); margin-left: 8px; }
.tier.is-feature .price small { color: #8C97AE; }
.tier ul { list-style: none; padding: 0; margin: 24px 0 32px; }
.tier li { padding: 10px 0; font-size: 14px; display: flex; gap: 10px; border-top: 1px solid var(--hair); }
.tier.is-feature li { border-top-color: rgba(255,255,255,.10); }
.tier li::before {
  content: ""; width: 14px; height: 14px; margin-top: 4px; flex: none;
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23000' d='M9 16.2L5.5 12.7 4 14.2l5 5 11-11-1.5-1.4z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23000' d='M9 16.2L5.5 12.7 4 14.2l5 5 11-11-1.5-1.4z'/></svg>") center/contain no-repeat;
}
.tier li.is-off { opacity: .45; }
.tier li.is-off::before { background: var(--ink-3); }
.tier .btn { margin-top: auto; }

/* Comparison table */
.compare {
  width: 100%; border-collapse: collapse; margin-top: 64px;
  border: 1px solid var(--hair); background: var(--paper);
  font-size: 14px;
}
.compare th, .compare td {
  padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--hair);
}
.compare th { font-weight: 500; color: var(--ink-3); font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.compare td.center, .compare th.center { text-align: center; }
.compare tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--gold-deep); font-weight: 600; }
.compare .no { color: var(--hair-2); }

/* ---------- FAQ accordion ---------- */
.faq { border-top: 1px solid var(--hair); }
.faq details {
  border-bottom: 1px solid var(--hair);
  padding: 28px 0;
}
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; gap: 20px; align-items: start;
  font-family: var(--serif); font-size: 22px; color: var(--navy);
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; margin-left: auto; font-family: var(--sans);
  color: var(--gold-deep); font-weight: 400; font-size: 28px;
  line-height: 1;
  transition: transform .25s var(--tx);
}
.faq details[open] summary::after { content: "–"; transform: rotate(0); }
.faq .ans { padding: 16px 0 0 36px; color: var(--ink-2); font-size: 15px; max-width: 70ch; }
.faq .qnum {
  font-family: var(--mono); color: var(--gold-deep); font-size: 12px;
  letter-spacing: .12em; padding-top: 8px;
}

/* ---------- Tags / pills ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--hair-2);
  font-size: 13px; color: var(--ink-2);
  background: var(--paper);
}
.tag.is-on { background: var(--navy); color: var(--gold); border-color: var(--navy); }

/* ---------- Reviews ---------- */
.review {
  padding: 28px 0;
  border-bottom: 1px solid var(--hair);
}
.review .head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.review .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ivory-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif); color: var(--navy); font-size: 18px;
}
.review .stars { color: var(--gold); display: inline-flex; gap: 2px; }
.review .stars svg { width: 14px; height: 14px; }
.review p { font-family: var(--serif); font-size: 19px; color: var(--navy); line-height: 1.45; }

/* ---------- Profile ---------- */
.profile-grid { display: grid; grid-template-columns: 1fr 360px; gap: 56px; }
.profile-photo {
  aspect-ratio: 4/5;
  background: repeating-linear-gradient(135deg, var(--ivory-2) 0 8px, var(--ivory) 8px 18px);
  border-radius: 8px;
  display: flex; align-items: end; padding: 16px;
  position: relative;
}
.profile-photo .verified {
  position: absolute; top: 14px; right: 14px;
  background: rgba(255,255,255,.92); color: var(--gold-deep);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 4px; display: inline-flex; align-items: center; gap: 6px;
}
.profile-photo .label { font-family: var(--mono); font-size: 11px; color: var(--ink-3); background: rgba(255,255,255,.85); padding: 4px 8px; border-radius: 3px; }
.profile-card {
  position: sticky; top: 96px; align-self: start;
  border: 1px solid var(--hair); border-radius: 8px;
  padding: 28px; background: var(--paper);
}
.profile-card .price { font-family: var(--serif); font-size: 36px; color: var(--navy); line-height: 1; }
.profile-card .price small { font-size: 14px; color: var(--ink-3); font-family: var(--sans); margin-left: 4px; }
.profile-card .info { display: grid; gap: 12px; margin: 20px 0 22px; font-size: 14px; color: var(--ink-2); }
.profile-card .info div { display: flex; gap: 10px; align-items: center; }
.profile-card .info svg { width: 16px; height: 16px; color: var(--ink-3); }
.profile-card hr.hair { margin: 20px 0; }

/* ---------- Blog article ---------- */
.article-grid { display: grid; grid-template-columns: 1fr 280px; gap: 64px; }
.article-body { max-width: 70ch; }
.article-body h2 { margin-top: 1.4em; }
.article-body h3 { margin-top: 1.2em; }
.article-body p, .article-body ul, .article-body ol { font-size: 17px; color: var(--ink-2); line-height: 1.7; }
.article-body figure { margin: 32px 0; }
.article-body blockquote {
  margin: 32px 0; padding: 28px 32px;
  border-left: 3px solid var(--gold);
  background: var(--ivory);
  font-family: var(--serif); font-size: 22px; color: var(--navy); line-height: 1.4;
}
.toc {
  position: sticky; top: 96px; align-self: start;
  font-size: 13px; color: var(--ink-3);
}
.toc h4 { font-family: var(--sans); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); margin-bottom: 14px; }
.toc a { display: block; padding: 8px 0; border-left: 1px solid var(--hair); padding-left: 14px; }
.toc a:hover, .toc a.is-active { color: var(--navy); border-left-color: var(--gold); }

/* ---------- Two-column register page ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.benefit-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 22px; }
.benefit-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.benefit-list .ico {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(201,168,76,.15);
  color: var(--gold-deep);
}
.benefit-list .ico svg { width: 20px; height: 20px; }
.benefit-list h4 { font-family: var(--sans); font-size: 16px; font-weight: 600; color: var(--navy); margin: 4px 0 4px; }
.benefit-list p { font-size: 14px; color: var(--ink-3); margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; }
.map-placeholder {
  aspect-ratio: 16/11;
  background:
    repeating-linear-gradient(0deg, var(--ivory-2) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, var(--ivory-2) 0 1px, transparent 1px 32px),
    var(--ivory);
  border: 1px solid var(--hair);
  border-radius: 8px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.map-placeholder .pin {
  width: 28px; height: 28px; background: var(--gold); border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  box-shadow: 0 6px 14px rgba(201,168,76,.4);
}
.map-placeholder .pin::after {
  content:""; position: absolute; left: 8px; top: 8px;
  width: 12px; height: 12px; background: var(--navy); border-radius: 50%;
}
.map-placeholder .lbl {
  position: absolute; bottom: 16px; left: 16px;
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  background: rgba(255,255,255,.85); padding: 4px 8px; border-radius: 3px;
}
.contact-info { display: grid; gap: 20px; }
.contact-info .item { padding: 22px 0; border-bottom: 1px solid var(--hair); }
.contact-info .item:last-child { border-bottom: 0; }
.contact-info .lbl { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.contact-info .val { font-family: var(--serif); font-size: 20px; color: var(--navy); }

/* ---------- Timeline (About) ---------- */
.timeline { display: grid; grid-template-columns: 180px 1fr; gap: 48px; padding: 32px 0; border-top: 1px solid var(--hair); }
.timeline:last-of-type { border-bottom: 1px solid var(--hair); }
.timeline .year { font-family: var(--serif); font-size: 36px; color: var(--gold-deep); line-height: 1; }
.timeline h3 { margin: 0 0 8px; }
.timeline p { color: var(--ink-2); margin: 0; max-width: 60ch; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-card { display: flex; flex-direction: column; }
.team-card .ph {
  aspect-ratio: 3/4;
  background: repeating-linear-gradient(135deg, var(--ivory-2) 0 6px, var(--ivory) 6px 14px);
  border-radius: 6px;
  margin-bottom: 18px;
}
.team-card h4 { margin: 0 0 4px; font-family: var(--serif); font-size: 22px; }
.team-card .role { color: var(--gold-deep); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Quote / mission ---------- */
.quote {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(28px, 3.6vw, 48px); line-height: 1.2;
  color: var(--navy);
  max-width: 22ch;
}
.quote-mark {
  font-family: var(--serif); font-size: 120px; line-height: .8; color: var(--gold); display: block; margin-bottom: -20px;
}

/* ---------- Mobile ---------- */
@media (max-width: 1024px) {
  .areas-grid, .lawyer-grid, .blog-grid, .tier-grid, .team-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .trust-bar .grid { grid-template-columns: repeat(2, 1fr); }
  .trust-bar .cell:nth-child(2) { border-right: 0; }
  .trust-bar .cell:nth-child(-n+2) { border-bottom: 1px solid var(--hair); }
  .profile-grid, .article-grid, .contact-grid, .split, .dir-layout, .cta-banner, .foot-grid { grid-template-columns: 1fr; gap: 40px; }
  .filters { position: static; }
  .profile-card, .toc { position: static; }
  .hero-meta { gap: 24px; }
  .timeline { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 720px) {
  .nav, .header-right .btn { display: none; }
  .hamburger { display: inline-flex; }
  .header-right { gap: 10px; }
  .areas-grid, .lawyer-grid, .blog-grid, .tier-grid, .team-grid, .steps { grid-template-columns: 1fr; }
  .trust-bar .grid { grid-template-columns: 1fr 1fr; }
  .search-panel { grid-template-columns: 1fr; }
  .search-panel select, .search-panel input { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .form .two { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; align-items: start; }
}

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 100;
  background: var(--navy);
  display: none;
  flex-direction: column;
  padding: 80px 32px 32px;
}
.drawer.is-open { display: flex; }
.drawer a { color: #fff; font-family: var(--serif); font-size: 28px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.drawer .close {
  position: absolute; top: 22px; right: 22px;
  background: transparent; border: 0; color: #fff; font-size: 32px;
}
.drawer .lang { margin-top: 24px; }
