/* Homepage (index2). Shares the portal look: deep green panels, gold accents, rounded tiles with icon squares. */

/* ---------- Section rhythm ---------- */
.hm-sec { padding: clamp(64px, 7.5vw, 100px) 0; }
.hm-sec--tint { background: #EEF2EF; }
.hm-sec--tight { padding: clamp(40px, 5vw, 64px) 0; }
.hm-head { max-width: 660px; margin-bottom: 36px; }
.hm-head h2 { font: 700 clamp(28px, 3.1vw, 40px)/1.14 var(--heading); letter-spacing: -.02em; margin: 0 0 12px; color: var(--ink); }
.hm-head p { margin: 0; font-size: 17.5px; line-height: 1.6; color: var(--slate); }
.hm-head--split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.hm-head--split > div { max-width: 660px; }
.hm-link { display: inline-flex; align-items: center; gap: 6px; font: 700 15px var(--sans); color: var(--action); text-decoration: none; }
.hm-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.hm-ico {
    flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
    background: #E4EFE9; color: var(--action); font-size: 24px; transition: background-color .15s, color .15s;
}
.hm-ico--gold { background: #E9D7A8; color: var(--binding); }

.hm-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px;
    border-radius: 12px; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
    font: 700 15.5px var(--sans); text-decoration: none; transition: background-color .15s, border-color .15s, color .15s;
}
.hm-btn--green { background: linear-gradient(155deg, #24524A, #163A32); color: #fff; }
.hm-btn--green:hover { color: #E9D7A8; }
.hm-btn--gold { background: #E9D7A8; color: var(--binding); }
.hm-btn--gold:hover { background: #F5E9C8; }
.hm-btn--line { background: #fff; color: var(--ink); border-color: var(--rule); }
.hm-btn--line:hover { border-color: var(--binding); color: var(--binding); }
.hm-btn:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

/* ---------- Hero ---------- */
.hm-hero { padding: 14px clamp(10px, 1.6vw, 22px) 0; }
.hm-hero__panel {
    position: relative; overflow: hidden; border-radius: 30px; color: #fff;
    background:
        radial-gradient(760px 460px at 88% 8%, rgba(233, 215, 168, .17), transparent 62%),
        radial-gradient(600px 400px at 0% 100%, rgba(30, 107, 82, .45), transparent 65%),
        linear-gradient(155deg, #24524A 0%, #163A32 58%, #12302A 100%);
    padding: clamp(48px, 6vw, 88px) 0 clamp(52px, 6vw, 92px);
}
/* The LawPlainly bubble, set large and faint, anchors the brand */
.hm-hero__panel::before {
    content: ""; position: absolute; left: -50px; bottom: -150px; width: 400px; height: 447px; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='15 13 34 38'%3E%3Cpath fill-rule='evenodd' fill='%23E9D7A8' fill-opacity='.06' d='M26 13H38A11 11 0 0 1 49 24V29A11 11 0 0 1 38 40H37.5L32 51L26.5 40H26A11 11 0 0 1 15 29V24A11 11 0 0 1 26 13ZM21.5 23L32 17L42.5 23ZM24 24.5h3v8h-3zM30.5 24.5h3v8h-3zM37 24.5h3v8h-3zM21.5 33.5h21v2.6h-21z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.hm-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.hm-hero__kicker {
    display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 7px 14px 7px 10px;
    border-radius: 999px; background: rgba(233, 215, 168, .14); border: 1px solid rgba(233, 215, 168, .3);
    color: #F1E3BE; font: 600 14px var(--sans);
}
.hm-hero__kicker i { font-size: 17px; color: #E9D7A8; }
.hm-hero__title { font: 700 clamp(38px, 5vw, 66px)/1.04 var(--heading); letter-spacing: -.03em; margin: 0 0 18px; color: #fff; max-width: 14ch; }
.hm-hero__lede { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.55; color: #CFDDD6; margin: 0 0 30px; max-width: 46ch; }

/* Intent switcher (search card) */
.intent { background: #fff; color: var(--ink); border-radius: 20px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .6); overflow: hidden; }
.intent__tabs { display: flex; gap: 4px; padding: 6px; background: #F1F5F2; border-bottom: 1px solid var(--rule); }
.intent__tabs button {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 10px; border: 0; border-radius: 14px; background: transparent; cursor: pointer;
    font: 600 14.5px var(--sans); color: var(--slate); transition: background-color .15s, color .15s;
}
.intent__tabs button i { font-size: 19px; color: #8A9690; }
.intent__tabs button:hover { color: var(--ink); }
.intent__tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -2px rgba(24, 58, 51, .2); }
.intent__tabs button[aria-selected="true"] i { color: var(--brass); }
.intent__tabs button:focus-visible { outline: 3px solid var(--brass); outline-offset: -3px; }
.intent__panel { padding: 20px 22px 18px; }
.intent__fields { display: flex; gap: 12px; align-items: flex-end; }
.intent__field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.intent__field > span { font: 600 13px var(--sans); color: var(--slate); }
.intent__field select, .intent__field input {
    height: 52px; width: 100%; padding: 0 14px; border: 1px solid #C9D0CC; border-radius: 12px;
    font: 500 16px var(--sans); color: var(--ink); background-color: #fff;
}
.intent__field select {
    appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235B6661' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
.intent__field select:focus, .intent__field input:focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 3px rgba(30, 107, 82, .18); }
.intent__go {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 52px; padding: 0 24px; border: 0; border-radius: 12px; cursor: pointer; white-space: nowrap;
    background: linear-gradient(155deg, #24524A, #163A32); color: #fff; font: 700 16px var(--sans);
}
.intent__go:hover { color: #E9D7A8; }
.intent__go:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.intent__more { margin: 14px 0 0; font-size: 14px; color: var(--slate); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.intent__more a { color: var(--action); font-weight: 600; text-underline-offset: 3px; }

/* Hero bento */
.hm-bento { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hm-tile {
    position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 22px;
    text-decoration: none; color: #fff; background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12); transition: background-color .2s, border-color .2s, transform .2s;
}
a.hm-tile:hover { background: rgba(255, 255, 255, .11); border-color: rgba(233, 215, 168, .4); transform: translateY(-2px); }
a.hm-tile:focus-visible { outline: 3px solid #E9D7A8; outline-offset: 3px; }
.hm-tile__ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(233, 215, 168, .16); color: #E9D7A8; font-size: 20px; margin-bottom: 8px; }
.hm-tile--stat strong { font: 700 clamp(30px, 3vw, 40px)/1 var(--heading); letter-spacing: -.02em; }
.hm-tile--stat > span:last-child { font-size: 14px; color: #BFD0C8; }

.hm-tile--lawyer { grid-column: 1 / -1; background: #fff; color: var(--ink); border-color: #fff; gap: 12px; box-shadow: 0 26px 50px -30px rgba(0, 0, 0, .7); }
a.hm-tile--lawyer:hover { background: #fff; border-color: #E9D7A8; }
.hm-tile__label { align-self: flex-start; display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--brass-soft); color: #7A5414; font: 700 12.5px var(--sans); }
.hm-tile__label i { font-size: 13px; margin-right: 4px; color: #B07D24; }
.hm-tile__label .hm-tile__verified { margin: 0 0 0 4px; color: var(--action); }
.hm-spot { display: flex; align-items: center; gap: 14px; }
.hm-spot__empty { flex: 0 0 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; border: 2px dashed #C9D6CF; color: var(--action); font-size: 22px; }
.hm-spot__body span { white-space: normal; }
.hm-spot__avatar { border-radius: 16px !important; }
.hm-spot__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hm-spot__body strong { font: 700 19px/1.2 var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-spot__body span { font-size: 14px; color: var(--slate); }
.hm-tile__go { display: inline-flex; align-items: center; gap: 6px; font: 700 14px var(--sans); color: var(--action); }

.hm-tile--gold { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 14px; background: linear-gradient(120deg, #EEDDB0, #E2C98B); color: #2E220C; border-color: transparent; }
a.hm-tile--gold:hover { background: linear-gradient(120deg, #F3E5BF, #E8D198); border-color: transparent; }
.hm-tile--gold .hm-tile__ico { margin: 0; background: rgba(24, 58, 51, .12); color: var(--binding); flex-shrink: 0; }
.hm-tile__text { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.hm-tile__text strong { font: 700 17px var(--heading); }
.hm-tile__text span { font-size: 13.5px; color: #5E4A28; }
.hm-tile__arrow { font-size: 20px; transition: transform .2s; }
a.hm-tile--gold:hover .hm-tile__arrow { transform: translateX(4px); }

/* ---------- Problems ---------- */
.hm-problems { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hm-problem {
    display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 20px;
    background: #fff; border: 1px solid var(--rule); border-radius: 20px;
    color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
.hm-problem .hm-ico { margin-bottom: 6px; }
.hm-problem:hover { border-color: #9DBFB1; box-shadow: 0 18px 36px -26px rgba(24, 58, 51, .55); }
.hm-problem:hover .hm-ico { background: var(--binding); color: #E9D7A8; }
.hm-problem__label { font: 600 16.5px/1.35 var(--heading); flex: 1; }
.hm-problem__area { display: inline-flex; align-items: center; gap: 6px; font: 600 13.5px var(--sans); color: var(--slate); }
.hm-problem__area i { transition: transform .15s; }
.hm-problem:hover .hm-problem__area { color: var(--action); }
.hm-problem:hover .hm-problem__area i { transform: translateX(3px); }
.hm-problem:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

/* ---------- Areas ---------- */
.hm-areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hm-area { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--rule); border-radius: 22px; padding: 24px; }
.hm-area__head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.hm-area h3 { font: 700 20px/1.2 var(--heading); margin: 2px 0 4px; }
.hm-area h3 a { color: inherit; text-decoration: none; }
.hm-area h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hm-area__head p { margin: 0; font-size: 14px; color: var(--slate); }
.hm-area__issues { list-style: none; margin: 0 0 18px; padding: 0; flex: 1; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.hm-area__issues a {
    display: inline-block; padding: 7px 12px; border-radius: 999px; background: #F1F5F2; border: 1px solid transparent;
    color: var(--ink); font: 500 14px var(--sans); text-decoration: none;
}
.hm-area__issues a:hover { border-color: #9DBFB1; color: var(--action); background: #fff; }
.hm-area__cta { display: inline-flex; align-items: center; gap: 6px; padding-top: 16px; border-top: 1px solid var(--rule); font: 700 14.5px var(--sans); color: var(--action); text-decoration: none; }
.hm-area__cta:hover { text-decoration: underline; text-underline-offset: 3px; }

.hm-area--lead { background: linear-gradient(160deg, #24524A, #163A32); border-color: transparent; color: #fff; }
.hm-area--lead .hm-ico { background: #E9D7A8; color: var(--binding); }
.hm-area--lead .hm-area__head p { color: #BFD0C8; }
.hm-area--lead .hm-area__issues a { background: rgba(255, 255, 255, .1); color: #fff; }
.hm-area--lead .hm-area__issues a:hover { background: rgba(255, 255, 255, .16); border-color: rgba(233, 215, 168, .5); color: #fff; }
.hm-area--lead .hm-area__cta { color: #E9D7A8; border-top-color: rgba(255, 255, 255, .14); }

.hm-more { margin-top: 26px; padding: 22px 24px; border-radius: 22px; background: #fff; border: 1px solid var(--rule); }
.hm-more h3 { margin: 0 0 14px; font: 700 16px var(--heading); }
.hm-more ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.hm-more a {
    display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 46px; padding: 0 14px;
    border-radius: 12px; border: 1px solid var(--rule); background: #F7F9F8; color: var(--ink); font: 600 14.5px var(--sans); text-decoration: none; white-space: nowrap;
}
.hm-more a::after { content: "\2192"; color: var(--slate); transition: transform .15s, color .15s; }
.hm-more a:hover { border-color: #9DBFB1; background: #fff; color: var(--action); }
.hm-more a:hover::after { color: var(--action); transform: translateX(3px); }

/* ---------- Featured lawyers ---------- */
.hm-lawyers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hm-lawyer {
    position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
    background: #fff; border: 1px solid var(--rule); border-radius: 22px; padding: 0 22px 22px; overflow: hidden;
}
.hm-lawyer__band {
    align-self: stretch; height: 84px; margin: 0 -22px; position: relative;
    background: radial-gradient(260px 120px at 85% 0%, rgba(233, 215, 168, .3), transparent 70%), linear-gradient(150deg, #24524A, #163A32);
}
.hm-lawyer__seal { margin-left: 6px; color: var(--action); font-size: 20px; vertical-align: -3px; }
.hm-lawyer__feat { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(233, 215, 168, .45); color: #F3E6C2; font: 700 12.5px var(--sans); }
.hm-featured-tag { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px !important; color: #9A7B2F !important; font: 700 14px var(--sans) !important; }

/* Hero spotlight rotator */
.hm-rotator { grid-column: 1 / -1; position: relative; display: grid; }
.hm-rotator > .hm-tile[hidden] { display: none; }
.hm-rotator > .hm-tile { animation: hmFade .45s ease; }
.hm-rotator__dots { position: absolute; right: 20px; top: 22px; display: flex; gap: 6px; z-index: 2; }
.hm-rotator__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #D5DED9; cursor: pointer; transition: width .2s, background .2s; }
.hm-rotator__dots button[aria-current="true"] { width: 20px; background: var(--action); }
.hm-rotator__dots button:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
@keyframes hmFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hm-rotator > .hm-tile { animation: none; } }
.hm-lawyer__avatar { position: relative; z-index: 1; margin-top: -40px; border: 4px solid #fff; border-radius: 20px !important; box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .4); }
.hm-lawyer__name { margin: 6px 0 0; font: 700 20px/1.2 var(--heading); }
.hm-lawyer__name a { color: var(--ink); text-decoration: none; }
.hm-lawyer__name a::after { content: ""; position: absolute; inset: 0; }
.hm-lawyer:hover { border-color: #9DBFB1; box-shadow: 0 22px 44px -30px rgba(24, 58, 51, .55); }
.hm-lawyer:hover .hm-lawyer__name a { color: var(--action); }
.hm-lawyer__meta { margin: 0; font-size: 14px; color: var(--slate); }
.hm-lawyer__tags { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hm-lawyer__tags li { padding: 4px 10px; border-radius: 999px; background: #E4EFE9; color: #165340; font: 600 12.5px var(--sans); }
.hm-lawyer__bio { margin: 4px 0 6px; font-size: 14.5px; line-height: 1.55; color: var(--slate); flex: 1; }
.hm-lawyer .hm-btn { align-self: stretch; position: relative; z-index: 1; margin-top: auto; height: 44px; }

/* ---------- Match + Ask ---------- */
.hm-duo { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; }
.hm-match, .hm-ask { border-radius: 26px; padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; align-items: flex-start; }
.hm-match h2, .hm-ask h2 { font: 700 clamp(24px, 2.3vw, 30px)/1.18 var(--heading); letter-spacing: -.015em; margin: 18px 0 10px; }
.hm-match > p, .hm-ask > p { margin: 0 0 20px; font-size: 16px; line-height: 1.6; max-width: 52ch; }

.hm-match { color: #fff; background: radial-gradient(500px 300px at 100% 0%, rgba(233, 215, 168, .16), transparent 65%), linear-gradient(155deg, #24524A, #163A32); }
.hm-match > p { color: #C9D9D2; }
.hm-steps { list-style: none; counter-reset: s; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hm-steps li { counter-increment: s; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); font: 600 14px var(--sans); color: #E6EEEA; }
.hm-steps li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #E9D7A8; color: var(--binding); font: 700 12.5px var(--heading); }
.hm-match__form { align-self: stretch; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.hm-match__form .hm-btn { grid-column: 1 / -1; }
.hm-match__form .intent__field > span { color: #C9D9D2; }
.hm-match__form .intent__field select { border-color: transparent; }
.hm-match__form .hm-btn { height: 52px; }
.hm-match__note { display: flex; align-items: center; gap: 6px; margin: 14px 0 0; font-size: 13.5px; color: #A9BFB5; }

.hm-ask { background: #FBF6EA; border: 1px solid #EADFC4; color: var(--ink); }
.hm-ask > p { color: #5E5440; }
.hm-ask .hm-ico { background: #E9D7A8; color: var(--binding); }
.hm-qa { list-style: none; margin: 0 0 22px; padding: 0; align-self: stretch; display: grid; gap: 8px; }
.hm-qa a, .hm-qa--steps li { display: flex; flex-direction: column; gap: 3px; padding: 13px 16px; border-radius: 16px; background: #fff; border: 1px solid #EFE6D0; text-decoration: none; color: var(--ink); }
.hm-qa a:hover { border-color: #D7BF86; }
.hm-qa__q { font: 600 15px/1.4 var(--heading); }
.hm-qa a:hover .hm-qa__q { color: var(--action); }
.hm-qa__meta { font-size: 13px; color: var(--slate); }
.hm-ask__actions { margin-top: auto; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* ---------- Resources ---------- */
.hm-res { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-auto-rows: minmax(150px, auto); gap: 16px; }
.hm-res__states {
    grid-row: span 3; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 28px; border-radius: 24px; color: #fff;
    background: radial-gradient(420px 300px at 100% 100%, rgba(233, 215, 168, .15), transparent 65%), linear-gradient(160deg, #24524A, #163A32);
}
.hm-res__states h3 { margin: 16px 0 4px; font: 700 24px var(--heading); }
.hm-res__states p { margin: 0 0 20px; color: #C9D9D2; font-size: 15.5px; line-height: 1.55; }
.hm-res__pick { align-self: stretch; display: flex; gap: 8px; }
.hm-res__pick select {
    flex: 1; min-width: 0; height: 48px; padding: 0 38px 0 14px; border-radius: 12px; border: 0; cursor: pointer;
    font: 500 15.5px var(--sans); color: var(--ink); background-color: #fff; appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235B6661' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
.hm-res__pick select:focus-visible { outline: 3px solid #E9D7A8; outline-offset: 2px; }
.hm-res__chips { list-style: none; margin: auto 0 0; padding: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hm-res__chips a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 14px; text-decoration: none; }
.hm-res__chips a:hover { background: rgba(233, 215, 168, .25); }
.hm-res__tile { display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: 22px; background: #fff; border: 1px solid var(--rule); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.hm-res__tile .hm-ico { width: 42px; height: 42px; flex-basis: 42px; border-radius: 12px; font-size: 21px; margin-bottom: 10px; }
.hm-res__tile h3 { margin: 0; font: 700 17px var(--heading); }
.hm-res__tile p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--slate); }
.hm-res__tile:hover { border-color: #9DBFB1; box-shadow: 0 18px 36px -26px rgba(24, 58, 51, .5); }
.hm-res__tile:hover .hm-ico { background: var(--binding); color: #E9D7A8; }
.hm-res__tile:hover h3 { color: var(--action); }

/* ---------- Forms ---------- */
.hm-forms { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hm-form {
    position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
    min-height: 240px; padding: 32px; border-radius: 26px; text-decoration: none; color: var(--ink); border: 1px solid transparent;
    transition: box-shadow .2s, border-color .2s;
}
.hm-form--estate { background: linear-gradient(140deg, #F7EFDC, #EEDDB0); }
.hm-form--business { background: linear-gradient(140deg, #E6F0EA, #CFE2D7); }
.hm-form:hover { box-shadow: 0 24px 50px -32px rgba(24, 58, 51, .6); border-color: rgba(24, 58, 51, .15); }
.hm-form__ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; background: var(--binding); color: #E9D7A8; margin-bottom: 10px; }
.hm-form h3 { margin: 0; font: 700 24px/1.2 var(--heading); letter-spacing: -.01em; }
.hm-form p { margin: 0; font-size: 15.5px; color: #4C5652; max-width: 40ch; }
.hm-form__cta { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 6px; font: 700 15px var(--sans); color: var(--binding); }
.hm-form:hover .hm-form__cta { text-decoration: underline; text-underline-offset: 4px; }
.hm-form::after { content: ""; position: absolute; right: 18px; bottom: -50px; width: 170px; height: 190px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='15 13 34 38'%3E%3Cpath fill-rule='evenodd' fill='%23183A33' fill-opacity='.06' d='M26 13H38A11 11 0 0 1 49 24V29A11 11 0 0 1 38 40H37.5L32 51L26.5 40H26A11 11 0 0 1 15 29V24A11 11 0 0 1 26 13ZM21.5 23L32 17L42.5 23ZM24 24.5h3v8h-3zM30.5 24.5h3v8h-3zM37 24.5h3v8h-3zM21.5 33.5h21v2.6h-21z'/%3E%3C/svg%3E") no-repeat center / contain; pointer-events: none; }

/* ---------- Articles ---------- */
.hm-articles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hm-article { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: 22px; overflow: hidden; border: 1px solid var(--rule); text-decoration: none; color: var(--ink); transition: box-shadow .2s, border-color .2s; }
.hm-article__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #DCE6E0; }
.hm-article__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.hm-article:hover { border-color: #9DBFB1; box-shadow: 0 22px 44px -30px rgba(24, 58, 51, .55); }
.hm-article:hover img { transform: scale(1.04); }
.hm-article__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; flex: 1; }
.hm-article__cat { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--brass-soft); color: #7A5414; font: 700 12.5px var(--sans); }
.hm-article__title { font: 700 18px/1.3 var(--heading); }
.hm-article:hover .hm-article__title { color: var(--action); }
.hm-article__meta { margin-top: auto; font-size: 13.5px; color: var(--slate); }

/* ---------- For lawyers ---------- */
.hm-pro {
    position: relative; overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
    padding: clamp(30px, 4vw, 56px); border-radius: 30px; color: #fff;
    background: radial-gradient(560px 360px at 100% 0%, rgba(233, 215, 168, .18), transparent 62%), linear-gradient(155deg, #24524A, #163A32 60%, #12302A);
}
.hm-pro h2 { font: 700 clamp(26px, 2.8vw, 36px)/1.15 var(--heading); letter-spacing: -.02em; margin: 0 0 20px; max-width: 20ch; }
.hm-pro__list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.hm-pro__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; color: #DCE7E2; }
.hm-pro__list i { color: #E9D7A8; font-size: 20px; margin-top: 1px; }
.hm-pro__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hm-pro__signin { color: #E9D7A8; font-weight: 700; text-underline-offset: 4px; }

/* Illustration of the lawyer dashboard */
.hm-dash { background: #F7F8F5; border-radius: 22px; padding: 16px; color: var(--ink); box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .8); transform: rotate(-1.5deg); }
.hm-dash__top { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.hm-dash__top span { width: 9px; height: 9px; border-radius: 50%; background: #D3D9D5; }
.hm-dash__top em { margin-left: 8px; font: 700 13px var(--heading); font-style: normal; color: var(--slate); }
.hm-dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.hm-dash__kpis div { background: #fff; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 6px; border: 1px solid #E6EBE7; }
.hm-dash__kpis i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #E4EFE9; color: var(--action); font-size: 15px; }
.hm-dash__kpis b { font: 600 12px var(--sans); color: var(--slate); }
.hm-dash__bar { height: 6px; border-radius: 3px; background: #EDF1EE; position: relative; overflow: hidden; }
.hm-dash__bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 3px; background: linear-gradient(90deg, #1E6B52, #C2913A); }
.hm-dash__chart { display: flex; align-items: flex-end; gap: 6px; height: 96px; padding: 12px; background: #fff; border-radius: 14px; border: 1px solid #E6EBE7; margin-bottom: 10px; }
.hm-dash__chart span { flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #2B6B5C, #183A33); }
.hm-dash__chart span:last-child { background: linear-gradient(180deg, #E9D7A8, #C2913A); }
.hm-dash__row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border-radius: 12px; border: 1px solid #E6EBE7; font-size: 13px; }
.hm-dash__row + .hm-dash__row { margin-top: 6px; }
.hm-dash__row b { font-weight: 600; flex: 1; }
.hm-dash__row em { font-style: normal; font-weight: 600; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #E4EFE9; color: #165340; }
.hm-dash__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--action); }
.hm-dash__dot--gold { background: var(--brass); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .hm-problems { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .intent__fields { flex-wrap: wrap; }
    .intent__field { flex: 1 1 180px; }
    .intent__go { flex: 1 1 100%; }
}
@media (max-width: 1024px) {
    .hm-hero__grid { grid-template-columns: 1fr; }
    .hm-bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hm-tile--lawyer, .hm-rotator { grid-column: span 2; }
    .hm-tile--gold { grid-column: 1 / -1; }
    .hm-areas, .hm-lawyers, .hm-articles { grid-template-columns: 1fr 1fr; }
    .hm-duo { grid-template-columns: 1fr; }
    .hm-res { grid-template-columns: 1fr 1fr; }
    .hm-res__states { grid-row: auto; grid-column: 1 / -1; }
    .hm-pro { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .hm-bento { grid-template-columns: 1fr 1fr; }
    .hm-tile--lawyer, .hm-rotator { grid-column: 1 / -1; }
    .hm-problems { grid-template-columns: 1fr 1fr; gap: 10px; }
    .hm-problem { padding: 16px; border-radius: 18px; }
    .hm-problem__label { font-size: 15px; }
    .hm-areas, .hm-lawyers, .hm-articles, .hm-forms { grid-template-columns: 1fr; }
    .hm-match__form { grid-template-columns: 1fr; }
    .hm-pro__preview { display: none; }
}
@media (max-width: 640px) {
    .hm-hero { padding: 8px 8px 0; }
    .hm-hero__panel { border-radius: 22px; }
    .intent__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 5px; }
    .intent__tabs button { flex-direction: column; gap: 4px; min-width: 0; min-height: 60px; font-size: 13.5px; padding: 8px 4px; white-space: nowrap; }
    .intent__fields { flex-direction: column; align-items: stretch; }
    .intent__field, .intent__go { flex: none; width: 100%; }
    .hm-res { grid-template-columns: 1fr; }
    .hm-res__states { grid-column: auto; }
    .hm-form { padding: 24px; min-height: 0; }
}
@media (max-width: 400px) {
    .hm-problems { grid-template-columns: 1fr; }
}
.hm-rotator > .hm-tile--lawyer { grid-column: auto; }

/* ---------- Hero: featured lawyers panel ----------
   A frosted roster on the green hero: paid members sit on ivory nameplates,
   open spots are brass outlines. Stretches to the height of the left column. */
.hm-hero__grid { align-items: stretch; }
.hm-fp {
    position: relative; display: flex; flex-direction: column; gap: 16px;
    padding: 22px; border-radius: 28px; color: #fff;
    background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .04));
    border: 1px solid rgba(233, 215, 168, .22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 40px 80px -40px rgba(0, 0, 0, .7);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.hm-fp__head { display: flex; align-items: center; gap: 12px; padding: 2px 2px 0; }
.hm-fp__seal {
    flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
    background: radial-gradient(circle at 30% 30%, #F6E7BD, #C9A257 70%); color: #3B2F12; font-size: 20px;
    box-shadow: 0 0 0 4px rgba(233, 215, 168, .14);
}
.hm-fp__titles { flex: 1; min-width: 0; }
.hm-fp__titles h2 { margin: 0; font: 700 20px/1.15 var(--heading); letter-spacing: -.01em; color: #fff; }
.hm-fp__titles p { margin: 3px 0 0; display: flex; align-items: center; gap: 4px; font: 500 13.5px var(--sans); color: #B9CCC3; }
.hm-fp__titles p i { color: #E9D7A8; }
.hm-fp__all { flex-shrink: 0; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(233, 215, 168, .35); color: #F1E3BE; font: 700 13.5px var(--sans); text-decoration: none; transition: background .2s, color .2s; }
.hm-fp__all:hover { background: #E9D7A8; color: #163A32; }
.hm-fp__all:focus-visible { outline: 3px solid #E9D7A8; outline-offset: 2px; }

.hm-fp__list { flex: 1; list-style: none; margin: 0; padding: 0; display: grid; grid-auto-rows: 1fr; gap: 10px; }
.hm-fp__row {
    position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr) 34px; align-items: center; gap: 14px;
    min-height: 76px; padding: 12px 14px 12px 12px; border-radius: 18px;
    background: #FBF8EF; color: var(--ink);
    box-shadow: inset 4px 0 0 #C9A257, 0 12px 26px -18px rgba(0, 0, 0, .8);
    transition: transform .2s, box-shadow .2s;
}
.hm-fp__row:hover { transform: translateX(-3px); box-shadow: inset 6px 0 0 #C9A257, 0 16px 30px -18px rgba(0, 0, 0, .85); }
.hm-fp__row:focus-within { outline: 3px solid #E9D7A8; outline-offset: 2px; }
.hm-fp__avatar { border-radius: 14px !important; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #E9D7A8; }
.hm-fp__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hm-fp__name { font: 700 16.5px/1.2 var(--heading); color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; outline: 0; }
.hm-fp__name::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.hm-fp__name i { color: var(--action); font-size: 15px; vertical-align: -1px; }
.hm-fp__meta { font-size: 13.5px; color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-fp__rating { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--slate); }
.hm-fp__rating i { color: #E19B2D; font-size: 14px; }
.hm-fp__rating b { color: var(--ink); }
.hm-fp__rating--new { color: #1E6B52; font-weight: 600; }
.hm-fp__go { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #163A32; color: #E9D7A8; font-size: 14px; transition: transform .2s; }
.hm-fp__row:hover .hm-fp__go { transform: rotate(45deg); }

/* Open spots: an outline waiting to be filled */
.hm-fp__row--open { background: transparent; color: #fff; box-shadow: none; border: 1.5px dashed rgba(233, 215, 168, .4); }
.hm-fp__row--open:hover { background: rgba(233, 215, 168, .08); box-shadow: none; border-color: rgba(233, 215, 168, .75); }
.hm-fp__plus { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; border: 1.5px dashed rgba(233, 215, 168, .55); color: #E9D7A8; font-size: 20px; }
.hm-fp__row--open .hm-fp__name { color: #F6EDD3; white-space: normal; }
.hm-fp__row--open .hm-fp__meta { color: #A9BFB5; white-space: normal; }
.hm-fp__row--open .hm-fp__go { background: rgba(233, 215, 168, .14); }

.hm-fp__foot {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 18px; border-radius: 16px; text-decoration: none;
    background: linear-gradient(100deg, #F3E4B8, #D9B76A); color: #163A32; font: 800 15.5px var(--sans);
    transition: filter .2s;
}
.hm-fp__foot small { display: block; font: 600 12.5px var(--sans); color: #5B4A20; }
.hm-fp__foot i { font-size: 18px; transition: transform .2s; }
.hm-fp__foot:hover { filter: brightness(1.05); }
.hm-fp__foot:hover i { transform: translateX(3px); }
.hm-fp__foot:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

@media (max-width: 1024px) { .hm-fp__list { grid-auto-rows: auto; } }
@media (max-width: 560px) {
    .hm-fp { padding: 16px 12px 12px; border-radius: 22px; }
    .hm-fp__row { grid-template-columns: 46px minmax(0, 1fr) 30px; gap: 12px; padding: 10px; min-height: 0; }
    .hm-fp__avatar, .hm-fp__plus { width: 46px !important; height: 46px !important; }
    .hm-fp__all { padding: 6px 11px; }
    .hm-fp__seal { width: 36px; height: 36px; font-size: 16px; }
    .hm-fp__titles h2 { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .hm-fp__row, .hm-fp__go, .hm-fp__foot i { transition: none; } .hm-fp__row:hover { transform: none; } .hm-fp__row:hover .hm-fp__go { transform: none; } }

/* Phones: the featured list becomes a swipeable slider, one nameplate at a time */
.hm-fp__dots { display: none; }
@media (max-width: 760px) {
    .hm-hero__grid { grid-template-columns: minmax(0, 1fr); }
    .hm-fp { min-width: 0; }
    .hm-fp__list {
        display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
        margin: 0 -12px; padding: 4px 12px 6px; scroll-padding: 0 12px; scrollbar-width: none;
    }
    .hm-fp__list::-webkit-scrollbar { display: none; }
    .hm-fp__row { flex: 0 0 86%; scroll-snap-align: start; min-height: 84px; }
    .hm-fp__row:hover { transform: none; }
    .hm-fp__meta { white-space: normal; }
    .hm-fp__row--open .hm-fp__name { font-size: 15.5px; }
    .hm-fp__dots { display: flex; justify-content: center; gap: 6px; margin-top: -6px; }
    .hm-fp__dots span { width: 7px; height: 7px; border-radius: 99px; background: rgba(233, 215, 168, .3); transition: width .2s, background .2s; }
    .hm-fp__dots span.on { width: 22px; background: #E9D7A8; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) { .hm-fp__dots span { transition: none; } }

/* ---------- Phones: shorter page, swipe rows, two-up tiles ---------- */
@media (max-width: 640px) {
    .hm-sec { padding-top: 44px; padding-bottom: 44px; }
    .hm-head { margin-bottom: 18px; }
    .hm-head h2 { font-size: 26px; }
    .hm-head p { font-size: 15.5px; }

    /* "Start with what happened": compact two-up tiles */
    .hm-problems { grid-template-columns: 1fr 1fr !important; gap: 8px; }
    .hm-problem { padding: 14px 12px; border-radius: 16px; gap: 4px; min-height: 0; }
    .hm-problem .hm-ico { width: 34px; height: 34px; border-radius: 10px; font-size: 17px; margin-bottom: 6px; }
    .hm-problem__label { font-size: 14px !important; line-height: 1.3; }
    .hm-problem__area { font-size: 12px; }

    /* Swipe rows: practice areas, featured lawyers, articles */
    .hm-areas, .hm-lawyers, .hm-articles {
        display: flex !important; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
        margin-left: calc(-1 * var(--gutter, 20px)); margin-right: calc(-1 * var(--gutter, 20px));
        padding: 4px var(--gutter, 20px) 10px; scroll-padding: 0 var(--gutter, 20px); scrollbar-width: none;
    }
    .hm-areas::-webkit-scrollbar, .hm-lawyers::-webkit-scrollbar, .hm-articles::-webkit-scrollbar { display: none; }
    .hm-areas > *, .hm-lawyers > *, .hm-articles > * { flex: 0 0 84%; scroll-snap-align: start; }
    .hm-area { padding: 20px; border-radius: 20px; }
    .hm-lawyer__bio { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

    /* Free resources: state picker full width, the rest two-up */
    .hm-res { grid-template-columns: 1fr 1fr !important; grid-auto-rows: auto; gap: 8px; }
    .hm-res__states { grid-column: 1 / -1 !important; }
    .hm-res__tile { padding: 14px; border-radius: 16px; }
    .hm-res__tile p { display: none; }
    .hm-res__tile h3 { font-size: 15px; }
}
@media (max-width: 640px) {
    .hm-more { padding: 18px; }
    .hm-more ul { display: flex; flex-wrap: wrap; gap: 6px; }
    .hm-more a { padding: 8px 12px !important; border-radius: 999px !important; font-size: 13.5px; min-height: 38px; }
    .hm-more a::after { display: none; }
}

/* Find a lawyer in your city */
.hm-near { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hm-near .hm-head { margin-bottom: 0; }
.hm-near .hm-link { margin-top: 16px; }
.hm-cities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.hm-cities a { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--rule); color: var(--ink); text-decoration: none; font: 600 15px var(--sans); transition: border-color .2s, box-shadow .2s; }
.hm-cities a i { color: var(--action); font-size: 17px; }
.hm-cities a span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-cities a b { font: 700 12.5px var(--sans); color: var(--action); background: #EEF5F1; padding: 2px 8px; border-radius: 999px; }
.hm-cities a:hover { border-color: #9DBFB1; box-shadow: 0 14px 28px -22px rgba(24, 58, 51, .55); }
.hm-cities a:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
@media (max-width: 900px) { .hm-near { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
    .hm-cities { grid-template-columns: 1fr 1fr; gap: 6px; }
    .hm-cities a { min-height: 46px; padding: 8px 10px; font-size: 13.5px; gap: 6px; }
    .hm-cities a i { display: none; }
}

/* Search tabs: short labels on phones so all three sit on one line */
.intent__short { display: none; }
@media (max-width: 640px) {
    .intent__tabs .intent__long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .intent__tabs .intent__short { display: block; }
}
