/*
 * /lawyers/ hub (template-lawyers-hub.php). Every rule is scoped to .lh.
 * House rules (CLAUDE.md): no translateY on hover, no coral/red shadows, no left-border callouts.
 * Hover = background or border colour change only. Cards: white, 1px border, 16px radius.
 */

.lh {
    --lh-navy: #0f2440;
    --lh-navy-2: #16345c;
    --lh-blue: #1f5fae;
    --lh-blue-soft: #e9f1fb;
    --lh-ink: #13233a;
    --lh-muted: #55657a;
    --lh-line: #dfe6ef;
    --lh-bg: #f5f8fc;
    --lh-red: #d63031;
    --lh-red-dark: #b71c1c;
    --lh-gold: #f5c66a;
    --lh-radius: 16px;
    color: var(--lh-ink);
    font-size: 18px;
    line-height: 1.6;
}

.lh h1, .lh h2, .lh h3 { color: var(--lh-ink); letter-spacing: -0.015em; }
.lh h2 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.15; margin: 0 0 14px; font-weight: 700; }
.lh h3 { font-size: 1.2rem; line-height: 1.3; margin: 0 0 6px; font-weight: 700; }
.lh p { margin: 0 0 12px; }
.lh ul, .lh ol { list-style: none; margin: 0; padding: 0; }
.lh a { text-decoration: none; }
.lh svg { flex-shrink: 0; }
.lh .container { max-width: 1240px; padding-left: 24px; padding-right: 24px; }

/* Buttons */
.lh-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 56px; padding: 0 26px; border-radius: 12px;
    font-family: var(--font-primary); font-weight: 700; font-size: 1.05rem;
    border: 2px solid transparent; transition: background-color .2s, border-color .2s, color .2s;
}
.lh-btn-red { background: var(--lh-red); color: #fff; }
.lh-btn-red:hover, .lh-btn-red:focus-visible { background: var(--lh-red-dark); color: #fff; }
.lh-btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); }
.lh-btn-ghost:hover, .lh-btn-ghost:focus-visible { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .6); color: #fff; }

/* Hero */
.lh-hero {
    background:
        radial-gradient(900px 500px at 85% 10%, rgba(31, 95, 174, .45), transparent 60%),
        linear-gradient(180deg, var(--lh-navy) 0%, var(--lh-navy-2) 100%);
    color: #fff;
    padding: 18px 0 64px;
}
.lh-hero .breadcrumbs { background: transparent; padding: 0 0 28px; font-size: .85rem; }
.lh-hero .breadcrumbs .container { padding: 0; max-width: none; }
.lh-hero .breadcrumb-list a { color: rgba(255, 255, 255, .75); }
.lh-hero .breadcrumb-list a:hover { color: #fff; }
.lh-hero .breadcrumb-list li:not(:last-child)::after { color: rgba(255, 255, 255, .4); }
.lh-hero .breadcrumb-item.current { color: #fff; }

.lh-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.lh-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px 6px 10px; border-radius: 999px;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
    color: rgba(255, 255, 255, .9); font-size: .85rem; font-weight: 600; margin-bottom: 20px;
}
.lh-eyebrow svg { color: var(--lh-gold); }
.lh-hero h1 { color: #fff; font-size: clamp(2.3rem, 1.4rem + 3vw, 3.6rem); line-height: 1.05; margin: 0 0 18px; font-weight: 800; letter-spacing: -0.025em; }
.lh-hero-lead { color: rgba(255, 255, 255, .85); font-size: 1.15rem; max-width: 560px; margin-bottom: 28px; }
.lh-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.lh-hero-stats { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin: 0; max-width: 580px; }
.lh-hero-stats div { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 14px 16px; }
.lh-hero-stats dt { font-family: var(--font-primary); font-size: 1.3rem; white-space: nowrap; font-weight: 800; color: #fff; line-height: 1.2; }
.lh-hero-stats dd { margin: 4px 0 0; font-size: .85rem; line-height: 1.35; color: rgba(255, 255, 255, .72); }

.lh-hero-photo { margin: 0; position: relative; border-radius: 22px; overflow: hidden; background: #1b2f4d; aspect-ratio: 1600 / 887; }
.lh-hero-photo > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.lh-hero-photo figcaption {
    position: absolute; left: 14px; right: 14px; bottom: 14px;
    display: flex; align-items: center; gap: 12px;
    background: rgba(255, 255, 255, .96); color: var(--lh-ink);
    border-radius: 14px; padding: 10px 14px; font-size: .9rem; line-height: 1.35;
}
.lh-hero-photo figcaption strong { display: block; font-family: var(--font-primary); font-size: .95rem; }
.lh-photo-faces { display: flex; flex-shrink: 0; }
.lh-photo-faces img, .lh-cta-faces img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; border: 2px solid #fff; margin-left: -10px; background: #ccd6e3; }
.lh-photo-faces img:first-child, .lh-cta-faces img:first-child { margin-left: 0; }

/* Jump nav */
.lh-jump { background: #fff; border-bottom: 1px solid var(--lh-line); position: sticky; top: var(--lh-sticky-top, 0px); z-index: 50; }
.lh-jump .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lh-jump ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.lh-jump ul::-webkit-scrollbar { display: none; }
.lh-jump ul a { display: block; padding: 16px 14px; color: var(--lh-muted); font-weight: 600; font-size: .95rem; white-space: nowrap; border-radius: 8px; }
.lh-jump ul a:hover, .lh-jump ul a:focus-visible { color: var(--lh-ink); background: var(--lh-bg); }
.lh-jump-cta { flex-shrink: 0; padding: 10px 18px; border-radius: 10px; background: var(--lh-blue-soft); color: var(--lh-blue); font-weight: 700; font-size: .95rem; }
.lh-jump-cta:hover, .lh-jump-cta:focus-visible { background: var(--lh-blue); color: #fff; }

/* Sections */
.lh-section { padding: 88px 0; scroll-margin-top: 140px; }
.lh-alt { background: var(--lh-bg); }
.lh-head { max-width: 720px; margin-bottom: 40px; }
.lh-head > p:last-child { color: var(--lh-muted); font-size: 1.08rem; margin: 0; }
.lh-head-split { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.lh-head-split h2 { margin: 0; }
.lh-kicker { font-family: var(--font-primary); font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lh-blue); margin: 0 0 10px !important; }
.lh-more { margin: 32px 0 0; }
.lh-more a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--lh-blue); padding: 10px 16px; border-radius: 10px; margin-left: -16px; }
.lh-more a:hover, .lh-more a:focus-visible { background: var(--lh-blue-soft); }

/* Lawyers: the three cards are in our-lawyers.css (shared with the city pages) */

/* Finder */
.lh-finder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: start; }
.lh-map-card { background: var(--lh-bg); border: 1px solid var(--lh-line); border-radius: 20px; padding: 24px; position: sticky; top: 150px; }
.lh-map { display: block; width: 100%; height: auto; overflow: visible; }
.lh-map-state { fill: #dbe6f3; stroke: #9fb4cf; stroke-width: 2; stroke-linejoin: round; }
.lh-map-pin { cursor: pointer; outline: none; }
.lh-pin-halo { fill: var(--lh-blue); opacity: 0; transition: opacity .2s; }
.lh-pin-dot { fill: var(--lh-blue); stroke: #fff; stroke-width: 4; transition: fill .2s; }
.lh-pin-label { font-family: var(--font-primary); font-size: 30px; font-weight: 700; fill: var(--lh-ink); paint-order: stroke; stroke: #dbe6f3; stroke-width: 6px; stroke-linejoin: round; pointer-events: none; }
.lh-pin-label-minor { opacity: 0; transition: opacity .2s; }
.lh-map-pin:hover .lh-pin-halo, .lh-map-pin:focus .lh-pin-halo, .lh-map-pin.is-hot .lh-pin-halo { opacity: .2; }
.lh-map-pin:hover .lh-pin-dot, .lh-map-pin:focus .lh-pin-dot, .lh-map-pin.is-hot .lh-pin-dot { fill: var(--lh-red); }
.lh-map-pin:hover .lh-pin-label-minor, .lh-map-pin:focus .lh-pin-label-minor, .lh-map-pin.is-hot .lh-pin-label-minor { opacity: 1; }
.lh-map-pin:focus-visible .lh-pin-dot { stroke: var(--lh-ink); }
.lh-map-note { margin: 12px 0 0 !important; text-align: center; color: var(--lh-muted); font-size: .9rem; }

.lh-search { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--lh-line); border-radius: 14px; padding: 0 16px; margin-bottom: 14px; transition: border-color .2s; }
.lh-search:focus-within { border-color: var(--lh-blue); }
.lh-search svg { color: var(--lh-muted); }
.lh-search input { flex: 1; border: 0; outline: 0; background: transparent; min-height: 56px; font-size: 1.05rem; color: var(--lh-ink); font-family: inherit; }
.lh .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.lh-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.lh-chip { font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; padding: 9px 16px; min-height: 44px; border-radius: 999px; border: 1px solid var(--lh-line); background: #fff; color: var(--lh-ink); transition: background-color .2s, border-color .2s, color .2s; }
.lh-chip:hover { border-color: var(--lh-blue); }
.lh-chip.is-active { background: var(--lh-ink); border-color: var(--lh-ink); color: #fff; }

.lh-region { margin-bottom: 26px; }
.lh-region h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--lh-muted); margin: 0 0 10px; }
.lh-city-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lh-city {
    display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px;
    background: #fff; border: 1px solid var(--lh-line); border-radius: 12px; padding: 14px 16px; min-height: 64px;
    color: var(--lh-ink); transition: background-color .2s, border-color .2s;
}
.lh-city-name { font-family: var(--font-primary); font-weight: 700; font-size: 1rem; }
.lh-city-meta { grid-column: 1; font-size: .85rem; color: var(--lh-muted); }
.lh-city-arrow { grid-column: 2; grid-row: 1 / span 2; color: var(--lh-blue); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--lh-blue-soft); transition: background-color .2s, color .2s; }
.lh-city:hover, .lh-city:focus-visible, .lh-city.is-hot { background: var(--lh-blue-soft); border-color: var(--lh-blue); color: var(--lh-ink); }
.lh-city:hover .lh-city-arrow, .lh-city:focus-visible .lh-city-arrow, .lh-city.is-hot .lh-city-arrow { background: var(--lh-blue); color: #fff; }
.lh-empty { background: var(--lh-bg); border-radius: 12px; padding: 16px 18px; }
.lh-empty a { color: var(--lh-blue); font-weight: 700; }

/* Results */
.lh-results { background: var(--lh-navy); color: #fff; }
.lh-results h2, .lh-results .lh-kicker { color: #fff; }
.lh-results .lh-kicker { color: var(--lh-gold); }
.lh-results .lh-head > p:last-child { color: rgba(255, 255, 255, .72); }
.lh-result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lh-result { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--lh-radius); padding: 26px; }
.lh-result-amount { display: block; font-family: var(--font-primary); font-size: 2.1rem; font-weight: 800; line-height: 1.1; color: #fff; letter-spacing: -0.02em; }
.lh-result-type { display: inline-block; margin: 10px 0 12px; padding: 4px 10px; border-radius: 999px; background: rgba(245, 198, 106, .14); color: var(--lh-gold); font-size: .85rem; font-weight: 700; }
.lh-result p { color: rgba(255, 255, 255, .75); font-size: .95rem; margin: 0; }
.lh-results .lh-more a { color: #fff; }
.lh-results .lh-more a:hover, .lh-results .lh-more a:focus-visible { background: rgba(255, 255, 255, .1); }

/* Cases */
.lh-case-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lh-case-grid li { display: flex; }
.lh-case {
    display: flex; flex-direction: column; width: 100%;
    background: #fff; border: 1px solid var(--lh-line); border-radius: var(--lh-radius); padding: 22px;
    color: var(--lh-ink); transition: background-color .2s, border-color .2s;
}
.lh-case-title { font-family: var(--font-primary); font-weight: 700; font-size: 1.08rem; margin-bottom: 8px; }
.lh-case-text { color: var(--lh-muted); font-size: .92rem; line-height: 1.5; flex: 1; }
.lh-case-arrow { margin-top: 16px; color: var(--lh-blue); }
.lh-case:hover, .lh-case:focus-visible { background: var(--lh-blue-soft); border-color: var(--lh-blue); color: var(--lh-ink); }

/* Steps */
.lh-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.lh-step { background: var(--lh-bg); border-radius: var(--lh-radius); padding: 26px 24px; }
.lh-step-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--lh-ink); color: #fff; font-family: var(--font-primary); font-weight: 800; margin-bottom: 18px; }
.lh-step p { color: var(--lh-muted); font-size: .95rem; margin: 0; }

/* Rules */
.lh-rules-section { padding-top: 0; }
.lh-rules { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; background: var(--lh-blue-soft); border-radius: 24px; padding: 48px; }
.lh-rules-intro p:not(.lh-kicker) { color: var(--lh-muted); margin-bottom: 24px; }
.lh-rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lh-rule { background: #fff; border-radius: 14px; padding: 20px; }
.lh-rule strong { display: block; font-family: var(--font-primary); font-size: 1.25rem; color: var(--lh-ink); margin-bottom: 6px; }
.lh-rule span { color: var(--lh-muted); font-size: .92rem; line-height: 1.5; display: block; }
.lh-rule a { color: var(--lh-blue); font-weight: 700; }

/* FAQ */
.lh-faq-wrap { max-width: 880px; }
.lh-faqs { display: grid; gap: 12px; }
.lh-faq { background: #fff; border: 1px solid var(--lh-line); border-radius: 14px; transition: border-color .2s; }
.lh-faq[open] { border-color: #b9cbe2; }
.lh-faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative; font-family: var(--font-primary); font-weight: 700; font-size: 1.05rem; color: var(--lh-ink); border-radius: 14px; }
.lh-faq summary::-webkit-details-marker { display: none; }
.lh-faq summary::after { content: '+'; position: absolute; right: 20px; top: 50%; margin-top: -16px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--lh-blue-soft); color: var(--lh-blue); font-size: 1.3rem; line-height: 1; }
.lh-faq[open] summary::after { content: '\2212'; }
.lh-faq summary:hover { background: var(--lh-bg); }
.lh-faq p { padding: 0 22px 20px; color: var(--lh-muted); margin: 0; }

/* CTA */
.lh-cta-section { padding-top: 0; background: var(--lh-bg); }
.lh-cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; background: linear-gradient(160deg, var(--lh-navy), var(--lh-navy-2)); color: #fff; border-radius: 28px; padding: 56px; }
.lh-cta h2 { color: #fff; }
.lh-cta-copy > p { color: rgba(255, 255, 255, .8); font-size: 1.08rem; }
.lh-cta-phone { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-primary); font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); font-weight: 800; color: #fff; margin: 8px 0 20px; padding: 6px 12px; margin-left: -12px; border-radius: 12px; }
.lh-cta-phone:hover, .lh-cta-phone:focus-visible { background: rgba(255, 255, 255, .1); color: #fff; }
.lh-cta-phone svg { width: 30px; height: 30px; color: var(--lh-gold); }
.lh-cta-points { display: grid; gap: 10px; margin-bottom: 28px !important; }
.lh-cta-points li { display: flex; gap: 10px; align-items: center; color: rgba(255, 255, 255, .9); }
.lh-cta-points svg { color: var(--lh-gold); }
.lh-cta-faces { display: flex; align-items: center; gap: 0; }
.lh-cta-faces img { width: 48px; height: 48px; border-color: var(--lh-navy-2); }
.lh-cta-faces span { margin-left: 14px; font-size: .88rem; color: rgba(255, 255, 255, .72); line-height: 1.4; }
.lh-cta-form { background: #fff; color: var(--lh-ink); border-radius: 20px; padding: 28px; }
.lh-cta-form h3 { font-size: 1.3rem; margin-bottom: 14px; }

/* Tablet */
@media (max-width: 1100px) {
    .lh-case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lh-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lh-rules { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 992px) {
    .lh-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .lh-hero-photo { order: 2; }
    .lh-finder { grid-template-columns: minmax(0, 1fr); }
    .lh-map-card { position: static; max-width: 560px; width: 100%; margin: 0 auto; }
    .lh-head-split { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .lh-result-grid { grid-template-columns: 1fr 1fr; }
    .lh-cta { grid-template-columns: 1fr; padding: 40px 32px; }
    .lh-jump-cta { display: none; }
}

/* Phone */
@media (max-width: 720px) {
    .lh { font-size: 17px; }
    .lh .container { padding-left: 16px; padding-right: 16px; }
    .lh-hero { padding: 12px 0 40px; }
    .lh-hero .breadcrumbs { padding-bottom: 18px; }
    .lh-hero-actions .lh-btn { width: 100%; }
    .lh-hero-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
    .lh-hero-stats div:first-child { grid-column: 1 / -1; }
    .lh-hero-stats div { padding: 10px; }
    .lh-hero-stats dt { font-size: 1.05rem; }
    .lh-hero-stats dd { font-size: .85rem; }
    .lh-hero-photo { aspect-ratio: auto; border-radius: 16px; background: #fff; }
    .lh-hero-photo > img { height: auto; aspect-ratio: 1600 / 887; }
    .lh-hero-photo figcaption { position: static; border-radius: 0; background: #fff; font-size: .85rem; }
    .lh-section { padding: 56px 0; scroll-margin-top: 120px; }
    .lh-head { margin-bottom: 28px; }
    .lh-map-card { display: none; }
    .lh-city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .lh-city { grid-template-columns: minmax(0, 1fr); padding: 12px; min-height: 60px; }
    .lh-city-name { font-size: .95rem; }
    .lh-city-meta { font-size: .85rem; }
    .lh-city-arrow { display: none; }
    .lh-region { margin-bottom: 20px; }
    .lh-chips { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; scrollbar-width: none; }
    .lh-chip { white-space: nowrap; }
    .lh-result-grid, .lh-case-grid, .lh-steps, .lh-rule-grid { grid-template-columns: 1fr; }
    .lh-result-amount { font-size: 1.8rem; }
    .lh-rules { padding: 28px 20px; border-radius: 18px; }
    .lh-cta { padding: 32px 20px; border-radius: 20px; }
    .lh-cta-form { padding: 20px 16px; }
    .lh-jump { position: static; } /* phones: the sticky header and the bottom call bar already take that space */
    .lh-jump ul a { padding: 14px 10px; font-size: .9rem; }
}
