/* service-hero.css — minimal glue so the lawyer-new HEADER + HERO render
   correctly on the taxonomy-service archive (which uses get_header(), i.e.
   the OLD astlp body — base.css is NOT loaded here).

   Loaded ALONGSIDE: tokens.css, header.css, lawyer-page.css, mobile.css.
   Keep this SMALL — never override the header/banner text colors. */

/* ----- box-sizing + list/img resets that base.css would normally provide
        (scoped to the new elements; harmless to the old body) ----- */
.site-header, .site-header *, .site-header *::before, .site-header *::after,
.site-menu, .site-menu *, .mobile-bar, .mobile-bar *,
.lawyer-banner, .lawyer-banner *, .lawyer-banner *::before, .lawyer-banner *::after,
.lawyer-banner-callout-wrap, .lawyer-banner-callout-wrap *,
.awards, .awards *, .awards *::before, .awards *::after {
    box-sizing: border-box;
}
.site-header__menu, .site-header__submenu,
.site-menu__list, .site-menu__item,
.lawyer-banner__features {
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-header img, .site-menu img, .mobile-bar img,
.lawyer-banner img, .lawyer-banner-callout-wrap img {
    display: block;
}

/* ----- KILL the old theme's global `main ul li:after` gold checkmark
        (it was decorating every nav / menu item → broken header). ----- */
.site-header li::after,
.site-header__menu li::after,
.site-header__submenu li::after,
.site-menu li::after,
.site-menu__list li::after,
.mobile-bar li::after,
.lawyer-banner li::after {
    content: none !important;
    display: none !important;
    background: none !important;
}

/* ----- Neutralize old-theme `main ul li` / `main li` rules that LEAK onto the
        new header (it sits inside <main> on this template, unlike about.php where
        it's a sibling). They added padding-right:30px + width:100% + margins,
        widening the nav so it rode over the phone. Reset to match about.php. ----- */
.site-header li,
.site-header__menu-item,
.site-header__submenu li,
.site-menu li,
.site-menu__item {
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    font-size: inherit !important;
    line-height: normal;
}

/* ----- Hide the OLD astlp header + old hero blocks on service AND city pages -----
        (city taxonomy now reuses the same new lawyer-banner header/hero — digidash-31) */
.tax-service > .header,
body.tax-service .header.header,
.tax-service .heading-main,
.tax-service .heading-description,
.tax-city > .header,
body.tax-city .header.header,
.tax-city .heading-main,
.tax-city .heading-description {
    display: none !important;
}
.tax-service .fixed-contacts,
.tax-service .scroll-to-top,
.tax-city .fixed-contacts,
.tax-city .scroll-to-top { display: none !important; }

/* banner sits flush at the very top under the fixed header */
.tax-service #main,
.tax-city #main { margin-top: 0 !important; padding-top: 0 !important; }

/* ----- Callout fed by seo_content (raw WP HTML — restore <p> rhythm) ----- */
.lawyer-banner-callout__text p {
    font-family: var(--ff-he);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--c-blk);
    text-align: center;
    direction: rtl;
    margin: 0 0 16px;
}
.lawyer-banner-callout__text p:last-child { margin-bottom: 0; }
.lawyer-banner-callout__text p strong { font-weight: 700; }

@media (max-width: 1024px) {
    .lawyer-banner-callout__text p { font-size: 14px; line-height: 1.7; }
}
