/* Black/white theme. Specific selectors avoid overriding photo backgrounds and working header states. */
:root { --primary-color:#000; --primary-color-rgb:0,0,0; --primary-color-2:#000; --primary-color-2-rgb:0,0,0; }
html, body, #wrapper, #content { background-color:#fff; }
body { color:#000; }
section:not([data-bgimage]):not(.text-light):not(#section-highlight) { background-color:#fff !important; color:#000; }
section:not([data-bgimage]):not(.text-light):not(#section-highlight) h1,
section:not([data-bgimage]):not(.text-light):not(#section-highlight) h2,
section:not([data-bgimage]):not(.text-light):not(#section-highlight) h3,
section:not([data-bgimage]):not(.text-light):not(#section-highlight) h4,
section:not([data-bgimage]):not(.text-light):not(#section-highlight) h5,
section:not([data-bgimage]):not(.text-light):not(#section-highlight) h6 { color:#000; }
.bg-color, .bg-grey, .bg-gray, .bg-light, .bg-light-grey, .bg-light-gray { background-color:#fff !important; }
/* Photo hero/subheader: keep the original images and make every title readable. */
section[data-bgimage].text-light, #subheader { color:#fff !important; }
section[data-bgimage].text-light h1,section[data-bgimage].text-light h2,section[data-bgimage].text-light h3,section[data-bgimage].text-light h4,section[data-bgimage].text-light h5,section[data-bgimage].text-light p,
#subheader h1,#subheader h2 { color:#fff !important; }
/* Three service tiles: deliberate high-contrast white/black/white, no translucent gray. */
section.no-bottom.relative.text-light { background:#fff !important; }
section.no-bottom.relative.text-light .row.bg-color { background:#fff !important; }
section.no-bottom.relative.text-light .feature-box.f-boxed { background:#fff !important; color:#000 !important; box-shadow:none !important; border:1px solid #000 !important; min-height:100%; }
section.no-bottom.relative.text-light .col-lg-4:nth-child(2) .feature-box.f-boxed { background:#000 !important; color:#fff !important; }
section.no-bottom.relative.text-light .feature-box.f-boxed h4,
section.no-bottom.relative.text-light .feature-box.f-boxed .text,
section.no-bottom.relative.text-light .feature-box.f-boxed > i:not(.wm) { color:#000 !important; }
section.no-bottom.relative.text-light .col-lg-4:nth-child(2) .feature-box.f-boxed h4,
section.no-bottom.relative.text-light .col-lg-4:nth-child(2) .feature-box.f-boxed .text,
section.no-bottom.relative.text-light .col-lg-4:nth-child(2) .feature-box.f-boxed > i:not(.wm) { color:#fff !important; }
section.no-bottom.relative.text-light .feature-box.f-boxed i.wm { color:#000 !important; opacity:.07; }
section.no-bottom.relative.text-light .col-lg-4:nth-child(2) .feature-box.f-boxed i.wm { color:#fff !important; opacity:.12; }
/* Primary buttons: explicit text/background pairs, including focus and visited states. */
a.btn-custom, a.btn-custom:visited, a.btn-custom:focus, .btn-custom, .btn-main, .btn-primary, button[type=submit], input[type=submit] { background:#000 !important; border:1px solid #000 !important; color:#fff !important; }
a.btn-custom:hover, .btn-custom:hover, .btn-main:hover, .btn-primary:hover, button[type=submit]:hover, input[type=submit]:hover { background:#fff !important; border-color:#000 !important; color:#000 !important; }
section[data-bgimage].text-light a.btn-custom, section[data-bgimage].text-light a.btn-custom:visited, section[data-bgimage].text-light a.btn-custom:focus { background:#fff !important; border:1px solid #fff !important; color:#000 !important; }
section[data-bgimage].text-light a.btn-custom:hover { background:#000 !important; border-color:#fff !important; color:#fff !important; }
/* Dark sections and footer: no gray backgrounds or gray text. */
#section-highlight, section[data-bgcolor="#111111"], section[data-bgcolor="#242E3F"], footer, footer .subfooter, #topbar { background:#000 !important; color:#fff !important; }
#section-highlight h1,#section-highlight h2,#section-highlight h3,#section-highlight h4,#section-highlight h5,#section-highlight p,
footer, footer h1,footer h2,footer h3,footer h4,footer h5,footer p,footer a,footer a:visited,footer span,footer address,footer .disclaimer,footer .disclaimer *,footer .footer-disclaimer,footer .footer-disclaimer * { color:#fff !important; }
footer a:hover { text-decoration:underline; }
/* Forms and icons */
input:not([type=submit]),textarea,select,.form-control { background:#fff !important; color:#000 !important; border:1px solid #000 !important; }
input::placeholder,textarea::placeholder { color:#000; opacity:1; }
.id-color,.id-color-2 { color:inherit; }
.small-border { background:#000 !important; }
#section-highlight .small-border, footer .small-border { background:#fff !important; }
/* Keep existing transparent-white / scrolled-black navigation controlled by HTML. */
header #mainmenu ul { background:#fff !important; }
header #mainmenu ul li a { color:#000 !important; }

/* Hover/focus: invert each card as a unit, never just its text or background. */
section.no-bottom.relative.text-light .row .col-lg-4 .feature-box.f-boxed,
section.no-bottom.relative.text-light .row .col-lg-4 .feature-box.f-boxed:hover,
section.no-bottom.relative.text-light .row .col-lg-4 .feature-box.f-boxed:focus-within { transition:background-color .25s ease,color .25s ease,border-color .25s ease !important; }
/* First and third cards: white normally, black on hover. */
section.no-bottom.relative.text-light .row .col-lg-4:nth-child(odd) .feature-box.f-boxed:hover,
section.no-bottom.relative.text-light .row .col-lg-4:nth-child(odd) .feature-box.f-boxed:focus-within { background:#000 !important; color:#fff !important; border-color:#000 !important; }
section.no-bottom.relative.text-light .row .col-lg-4:nth-child(odd) .feature-box.f-boxed:hover .text,
section.no-bottom.relative.text-light .row .col-lg-4:nth-child(odd) .feature-box.f-boxed:hover .text h4,
section.no-bottom.relative.text-light .row .col-lg-4:nth-child(odd) .feature-box.f-boxed:hover > i:not(.wm),
section.no-bottom.relative.text-light .row .col-lg-4:nth-child(odd) .feature-box.f-boxed:focus-within .text,
section.no-bottom.relative.text-light .row .col-lg-4:nth-child(odd) .feature-box.f-boxed:focus-within .text h4,
section.no-bottom.relative.text-light .row .col-lg-4:nth-child(odd) .feature-box.f-boxed:focus-within > i:not(.wm) { color:#fff !important; }
section.no-bottom.relative.text-light .row .col-lg-4:nth-child(odd) .feature-box.f-boxed:hover i.wm,
section.no-bottom.relative.text-light .row .col-lg-4:nth-child(odd) .feature-box.f-boxed:focus-within i.wm { color:#fff !important; opacity:.12 !important; }
/* Middle card: black normally, white on hover. */
section.no-bottom.relative.text-light .row .col-lg-4:nth-child(2) .feature-box.f-boxed:hover,
section.no-bottom.relative.text-light .row .col-lg-4:nth-child(2) .feature-box.f-boxed:focus-within { background:#fff !important; color:#000 !important; border-color:#000 !important; }
section.no-bottom.relative.text-light .row .col-lg-4:nth-child(2) .feature-box.f-boxed:hover .text,
section.no-bottom.relative.text-light .row .col-lg-4:nth-child(2) .feature-box.f-boxed:hover .text h4,
section.no-bottom.relative.text-light .row .col-lg-4:nth-child(2) .feature-box.f-boxed:hover > i:not(.wm),
section.no-bottom.relative.text-light .row .col-lg-4:nth-child(2) .feature-box.f-boxed:focus-within .text,
section.no-bottom.relative.text-light .row .col-lg-4:nth-child(2) .feature-box.f-boxed:focus-within .text h4,
section.no-bottom.relative.text-light .row .col-lg-4:nth-child(2) .feature-box.f-boxed:focus-within > i:not(.wm) { color:#000 !important; }
section.no-bottom.relative.text-light .row .col-lg-4:nth-child(2) .feature-box.f-boxed:hover i.wm,
section.no-bottom.relative.text-light .row .col-lg-4:nth-child(2) .feature-box.f-boxed:focus-within i.wm { color:#000 !important; opacity:.07 !important; }
/* Default icons should match text rather than the old gray accent. */
section.no-bottom.relative.text-light .feature-box.f-boxed > i:not(.wm) { opacity:1 !important; }

/* About page ONLY: accessible black/white feature cards, including hover. */
body.about-feature-fix section .feature-box.f-boxed.style-3 {
  background:#fff !important; color:#000 !important;
  border:1px solid #000 !important;
}
body.about-feature-fix section .feature-box.f-boxed.style-3 .text,
body.about-feature-fix section .feature-box.f-boxed.style-3 .text h4,
body.about-feature-fix section .feature-box.f-boxed.style-3 > i:not(.wm) {
  color:#000 !important; opacity:1 !important;
}
body.about-feature-fix section .feature-box.f-boxed.style-3 > i.wm {
  color:#000 !important; opacity:.07 !important;
}
body.about-feature-fix section .feature-box.f-boxed.style-3:hover,
body.about-feature-fix section .feature-box.f-boxed.style-3:focus-within {
  background:#000 !important; color:#fff !important;
}
body.about-feature-fix section .feature-box.f-boxed.style-3:hover .text,
body.about-feature-fix section .feature-box.f-boxed.style-3:hover .text h4,
body.about-feature-fix section .feature-box.f-boxed.style-3:hover > i:not(.wm),
body.about-feature-fix section .feature-box.f-boxed.style-3:focus-within .text,
body.about-feature-fix section .feature-box.f-boxed.style-3:focus-within .text h4,
body.about-feature-fix section .feature-box.f-boxed.style-3:focus-within > i:not(.wm) {
  color:#fff !important; opacity:1 !important;
}
body.about-feature-fix section .feature-box.f-boxed.style-3:hover > i.wm,
body.about-feature-fix section .feature-box.f-boxed.style-3:focus-within > i.wm {
  color:#fff !important; opacity:.1 !important;
}

/* Dropdown contrast fix: scope only to nested Practice Areas links. */
header #mainmenu li ul { background:#fff !important; }
header #mainmenu li ul li > a,
header #mainmenu li ul li > a:visited { background:#fff !important; color:#000 !important; }
header #mainmenu li ul li:hover > a,
header #mainmenu li ul li > a:hover,
header #mainmenu li ul li > a:focus-visible,
header.smaller.scroll-light #mainmenu li ul li > a:hover,
header.header-mobile #mainmenu li ul li > a:hover { background:#000 !important; color:#fff !important; }

/* Areas We Service: display-only cascading dropdown */
header #mainmenu > li.areas-service-menu { position:relative; }
header #mainmenu .areas-top-label { display:block; padding:0 15px; cursor:default; }
header #mainmenu .areas-first-level,
header #mainmenu .areas-second-level { background:#000 !important; width:245px; padding:8px 0; border:0; box-shadow:0 7px 18px rgba(0,0,0,.18); }
header #mainmenu .areas-first-level { top:100%; }
header #mainmenu .areas-second-level { top:0; left:100%; width:260px; }
header #mainmenu .areas-region { position:relative; }
header #mainmenu .areas-first-level li > span { display:block; padding:12px 22px; color:#fff !important; background:#000 !important; font-size:14px; line-height:1.45; white-space:normal; cursor:default; }
header #mainmenu .areas-first-level li:hover > span,
header #mainmenu .areas-first-level li > span:focus-visible { background:#222 !important; color:#fff !important; }
header #mainmenu .areas-chevron { float:right; padding:0 !important; background:transparent !important; font-size:22px !important; line-height:18px !important; }
header #mainmenu .areas-service-menu:hover > .areas-first-level,
header #mainmenu .areas-service-menu:focus-within > .areas-first-level,
header #mainmenu .areas-region:hover > .areas-second-level,
header #mainmenu .areas-region:focus-within > .areas-second-level { visibility:visible; opacity:1; margin-top:0; }
@media(max-width:991px) {
 header #mainmenu .areas-top-label { padding:10px 0; }
 header #mainmenu .areas-first-level,
 header #mainmenu .areas-second-level { position:static !important; width:100% !important; box-shadow:none; padding:0; visibility:visible !important; opacity:1 !important; margin:0 !important; }
 header #mainmenu .areas-first-level li { padding-left:12px; margin:0; }
 header #mainmenu .areas-second-level li { padding-left:14px; }
 header #mainmenu .areas-first-level li > span { padding:9px 14px; }
}

/* Areas We Service header alignment and contrast repair (v7). */
@media (min-width: 992px) {
  header #mainmenu > li.areas-service-menu { float:left !important; display:inline-block !important; position:relative !important; }
  header #mainmenu > li.areas-service-menu > .areas-top-label {
    display:inline-block !important; position:relative !important;
    padding:30px 18px !important; margin:0 !important;
    line-height:inherit !important; vertical-align:middle !important;
    font:inherit !important; font-weight:600 !important;
    letter-spacing:inherit !important; white-space:nowrap !important;
    color:#fff !important; background:transparent !important;
  }
  header.smaller #mainmenu > li.areas-service-menu > .areas-top-label,
  header.header-light #mainmenu > li.areas-service-menu > .areas-top-label,
  header.scroll-light.smaller #mainmenu > li.areas-service-menu > .areas-top-label { color:#000 !important; }
  header #mainmenu > li.areas-service-menu > .areas-first-level { top:100% !important; left:0 !important; }
  header #mainmenu .areas-region > .areas-second-level { top:0 !important; left:100% !important; }
}
header #mainmenu .areas-first-level,
header #mainmenu .areas-second-level {
  height:auto !important; min-height:0 !important; overflow:visible !important;
  border-radius:0 !important; margin:0 !important;
}
header #mainmenu .areas-first-level > li,
header #mainmenu .areas-second-level > li { display:block !important; float:none !important; width:100% !important; }
header #mainmenu .areas-first-level li > span { text-align:left !important; }
@media (max-width:991px) {
  header #mainmenu > li.areas-service-menu > .areas-top-label {
    display:block !important; color:#000 !important; padding:10px 0 !important;
    font:inherit !important; font-weight:600 !important;
  }
}

/* Keep both header logo variants the same size before and after scrolling. */
header #logo img.logo,
header #logo img.logo-2,
header.smaller #logo img.logo,
header.smaller #logo img.logo-2,
body.ml-scrolled header #logo img.logo,
body.ml-scrolled header #logo img.logo-2 {
  height:64px !important;
  width:auto !important;
  max-height:64px !important;
  max-width:100% !important;
  object-fit:contain !important;
}

