/*
 Theme Name:   Early Home Center
 Theme URI:    https://earlyhomecenter.bilddealers.com/
 Description:  bmd-2020 child theme for Early Home Center (Early, TX). Brand palette taken from the logo: forest green, saddle brown and parchment cream.
 Author:       Sarah Martin
 Author URI:   https://sarahm.codes
 Template:     bmd-2020
 Version:      1.0.0
 Text Domain:  early-home-center
*/

/* ==========================================================================
   Brand layer over bmd-2020 + the black-brown color scheme.
   Every rule is scoped to :root body.ehc (added in functions.php) so it outranks
   the parent and color-scheme files regardless of load order.
   Fonts are untouched: Rubik headings, Montserrat UI, as set by the parent.
   ========================================================================== */

:root {
  --ehc-green-950: #21260f;
  --ehc-green-900: #2c3216;
  --ehc-green: #3d451e;
  --ehc-green-700: #525c2b;
  --ehc-sage: #8a9168;
  --ehc-sage-100: #eceddf;
  --ehc-brown: #8c6a43;
  --ehc-brown-text: #74552f;
  --ehc-brown-light: #d9bf97;
  --ehc-cream: #f8ecde;
  --ehc-cream-50: #fcf7f0;
  --ehc-line: #e9dcc9;
  --ehc-ink: #2a2b20;
  --ehc-muted: #5c5a4b;
  --ehc-white: #fff;
  --ehc-radius: 10px;
  --ehc-radius-sm: 6px;
  --ehc-shadow: 0 1px 2px rgba(33, 38, 15, .06), 0 10px 28px rgba(33, 38, 15, .08);
  --ehc-shadow-lg: 0 2px 4px rgba(33, 38, 15, .06), 0 18px 44px rgba(33, 38, 15, .14);
  --ehc-container: 1200px;
  --ehc-gutter: 24px;
  --ehc-section-y: clamp(64px, 8vw, 112px);
  --ehc-edge: max(var(--ehc-gutter), calc((100% - var(--ehc-container)) / 2));
  --ehc-icon-filter: brightness(0) saturate(100%) invert(23%) sepia(32%) saturate(714%) hue-rotate(32deg) brightness(92%) contrast(91%);
}

/* ---------- Base ---------- */

:root body.ehc {
  color: var(--ehc-ink);
  background: var(--ehc-white);
}

:root body.ehc p {
  color: var(--ehc-muted);
  line-height: 1.7;
}

:root body.ehc .bmd-h1,
:root body.ehc .bmd-h2,
:root body.ehc .bmd-h3,
:root body.ehc .bmd-gc-content h1,
:root body.ehc .bmd-gc-content h2,
:root body.ehc .bmd-gc-content h3,
:root body.ehc .bmd-bc-inner h1,
:root body.ehc .bmd-bc-inner h2,
:root body.ehc .bmd-bc-inner h3 {
  color: var(--ehc-green);
  letter-spacing: -.01em;
}

:root body.ehc a {
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

:root body.ehc .bmd-gc-content a:not([class]),
:root body.ehc .bmd-none-found p a {
  color: var(--ehc-brown-text) !important;
}

:root body.ehc ::selection {
  background: var(--ehc-cream);
  color: var(--ehc-green-950);
}

:root body.ehc :focus-visible {
  outline: 3px solid var(--ehc-brown);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */

:root body.ehc .bmd-red-button,
:root body.ehc .bmd-red-button-heavy,
:root body.ehc .bmd-blue-button,
:root body.ehc .bmd-blue-button-light,
:root body.ehc .bmd-general-content a.my-button,
:root body.ehc .wpforms-submit {
  background: var(--ehc-green) !important;
  border: 2px solid var(--ehc-green) !important;
  color: var(--ehc-white) !important;
  border-radius: var(--ehc-radius-sm);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: none;
}

:root body.ehc .bmd-red-button:hover,
:root body.ehc .bmd-red-button:focus,
:root body.ehc .bmd-red-button-heavy:hover,
:root body.ehc .bmd-red-button-heavy:focus,
:root body.ehc .bmd-blue-button:hover,
:root body.ehc .bmd-blue-button:focus,
:root body.ehc .bmd-blue-button-light:hover,
:root body.ehc .bmd-blue-button-light:focus,
:root body.ehc .bmd-general-content a.my-button:hover,
:root body.ehc .bmd-general-content a.my-button:focus,
:root body.ehc .wpforms-submit:hover,
:root body.ehc .wpforms-submit:focus {
  background: var(--ehc-green-950) !important;
  border-color: var(--ehc-green-950) !important;
  color: var(--ehc-white) !important;
  opacity: 1;
}

/* ---------- Header ---------- */

:root body.ehc .bmd-main-hero,
:root body.ehc header#masthead,
:root body.ehc .bmd-site-header {
  background: var(--ehc-cream) !important;
}

:root body.ehc .bmd-main-hero {
  box-shadow: none !important;
  border-bottom: 1px solid var(--ehc-line);
  position: relative;
  z-index: 50;
}

:root body.ehc .bmd-sh-inner {
  max-width: var(--ehc-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--ehc-gutter);
  padding-right: var(--ehc-gutter);
  box-sizing: border-box;
}

:root body.ehc .bmd-site-header .menu-main-nav-container li.menu-item a {
  color: var(--ehc-green) !important;
  font-weight: 500;
  letter-spacing: .02em;
  position: relative;
}

:root body.ehc .bmd-site-header .menu-main-nav-container li.menu-item a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: -6px;
  height: 2px;
  background: var(--ehc-brown);
  transition: left .2s ease, right .2s ease;
}

:root body.ehc .bmd-site-header .menu-main-nav-container li.menu-item a:hover,
:root body.ehc .bmd-site-header .menu-main-nav-container li.current-menu-item > a {
  color: var(--ehc-brown-text) !important;
}

:root body.ehc .bmd-site-header .menu-main-nav-container li.menu-item a:hover::after,
:root body.ehc .bmd-site-header .menu-main-nav-container li.current-menu-item > a::after {
  left: 0;
  right: 0;
}

:root body.ehc .bmd-header-contact .bmd-red-button-heavy {
  background: var(--ehc-green) !important;
  border-color: var(--ehc-green) !important;
  font-size: 15px !important;
  padding: 14px 26px !important;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

:root body.ehc .bmd-header-contact .bmd-red-button-heavy:hover,
:root body.ehc .bmd-header-contact .bmd-red-button-heavy:focus {
  background: var(--ehc-green-950) !important;
  border-color: var(--ehc-green-950) !important;
}

:root body.ehc .bmd-header-contact .bmd-red-button-heavy::before {
  content: "\f095";
  font-family: FontAwesome;
  font-size: 15px;
  letter-spacing: 0;
}

/* ---------- Shared section frame ---------- */

:root body.ehc .bmd-two-column.banner_heading_wt,
:root body.ehc .bmd-two-column.get_in_touch_wt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  padding: var(--ehc-section-y) var(--ehc-edge) !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
  box-sizing: border-box;
}

:root body.ehc .bmd-two-column::before,
:root body.ehc .bmd-two-column::after {
  content: none !important;
  display: none !important;
}

:root body.ehc .bmd-two-column .bmd-tc-left,
:root body.ehc .bmd-two-column .bmd-tc-right {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

:root body.ehc .bmd-two-column .bmd-tc-touch {
  margin: 0 !important;
  padding: 0 !important;
  border-radius: var(--ehc-radius);
  overflow: hidden;
  box-shadow: var(--ehc-shadow-lg);
  aspect-ratio: 4 / 3;
  height: auto !important;
}

:root body.ehc .bmd-two-column .bmd-tc-touch img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  max-width: none;
}

:root body.ehc .bmd-two-column .bmd-tc-left .bmd-h2 {
  font-size: clamp(32px, 3.4vw, 46px) !important;
  line-height: 1.15 !important;
  margin: 0 0 20px !important;
  color: var(--ehc-green);
}

:root body.ehc .bmd-two-column .bmd-tc-left .bmd-h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 20px;
  background: var(--ehc-brown);
  border-radius: 2px;
}

:root body.ehc .bmd-two-column .bmd-tc-left p {
  font-size: 17px !important;
  max-width: 58ch;
  margin: 0;
}

/* ---------- Hero / intro band ---------- */

:root body.ehc .bmd-two-column.banner_heading_wt {
  background:
    radial-gradient(1200px 500px at 85% 0%, rgba(140, 106, 67, .08), transparent 60%),
    var(--ehc-cream-50);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  border-bottom: 1px solid var(--ehc-line);
}

:root body.ehc .bmd-two-column.banner_heading_wt .bmd-tc-left h5.bmd-h2 {
  order: -1;
  color: var(--ehc-brown-text) !important;
  font-size: 14px !important;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 18px !important;
  line-height: 1.4 !important;
}

:root body.ehc .bmd-two-column.banner_heading_wt .bmd-tc-left h5.bmd-h2::after,
:root body.ehc .bmd-two-column.banner_heading_wt .bmd-tc-left h4.bmd-h2::after {
  display: none;
}

:root body.ehc .banner_heading_wt .bmd-tc-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

:root body.ehc .bmd-two-column.banner_heading_wt .bmd-tc-left h4.bmd-h2 {
  font-size: clamp(40px, 5vw, 64px) !important;
  line-height: 1.05 !important;
  font-weight: 500;
  margin: 0 0 24px !important;
}

:root body.ehc .banner_heading_wt .bmd-tc-left p {
  font-size: 18px !important;
  margin-bottom: 32px;
}

:root body.ehc .banner_heading_wt .bmd-header-contact {
  margin: 0;
}

:root body.ehc .banner_heading_wt .bmd-red-button {
  padding: 18px 32px !important;
  font-size: 14px !important;
}

:root body.ehc .banner_heading_wt .bmd-tc-touch {
  aspect-ratio: 5 / 4;
  position: relative;
  overflow: visible;
  box-shadow: none;
}

:root body.ehc .banner_heading_wt .bmd-tc-touch::before {
  content: "";
  position: absolute;
  inset: 24px -24px -24px 24px;
  border: 2px solid var(--ehc-brown-light);
  border-radius: var(--ehc-radius);
  z-index: 0;
}

:root body.ehc .banner_heading_wt .bmd-tc-touch img {
  position: relative;
  z-index: 1;
  border-radius: var(--ehc-radius);
  box-shadow: var(--ehc-shadow-lg);
}

/* ---------- Section headings (centered blocks) ---------- */

:root body.ehc .bmd-featured-homes .bmd-fh-inner > .bmd-h2,
:root body.ehc .what_we_serve .bmd-fh-inner > .bmd-h2,
:root body.ehc .bmd-client-tests > .bmd-h2 {
  font-size: clamp(32px, 3.4vw, 46px) !important;
  line-height: 1.15 !important;
  text-align: center;
  margin: 0 auto 16px !important;
}

:root body.ehc .bmd-featured-homes .bmd-fh-inner > .bmd-h2::after,
:root body.ehc .what_we_serve .bmd-fh-inner > .bmd-h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 20px auto 0;
  background: var(--ehc-brown);
  border-radius: 2px;
}

:root body.ehc .bmd_fh_desc {
  max-width: 760px;
  margin: 0 auto 48px !important;
  text-align: center;
}

:root body.ehc .bmd_fh_desc,
:root body.ehc .bmd_fh_desc p {
  font-size: 17px !important;
  color: var(--ehc-muted);
  line-height: 1.7;
}

:root body.ehc .bmd-fh-inner {
  max-width: var(--ehc-container) !important;
  width: 100% !important;
  float: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--ehc-gutter);
  padding-right: var(--ehc-gutter);
  box-sizing: border-box;
}

:root body.ehc .bmd-featured-homes,
:root body.ehc .what_we_serve {
  float: none !important;
  width: 100% !important;
  display: block;
  overflow: hidden;
}

/* ---------- Featured homes ---------- */

:root body.ehc .bmd-featured-homes {
  background: var(--ehc-white);
  padding: var(--ehc-section-y) 0 !important;
}

:root body.ehc .bmd-fh-homes {
  padding: 0 !important;
}

:root body.ehc .bmd-featured-homes .bmd-cta-centered.desktop {
  margin: 0 0 40px !important;
  text-align: center;
}

:root body.ehc .bmd-featured-homes .bmd-cta-centered .bmd-red-button {
  background: transparent !important;
  color: var(--ehc-green) !important;
  padding: 12px 28px !important;
  font-size: 13px !important;
}

:root body.ehc .bmd-featured-homes .bmd-cta-centered .bmd-red-button:hover,
:root body.ehc .bmd-featured-homes .bmd-cta-centered .bmd-red-button:focus {
  background: var(--ehc-green) !important;
  border-color: var(--ehc-green) !important;
  color: var(--ehc-white) !important;
}

:root body.ehc .bmd-fh-homes .slick-list {
  padding: 8px 0 24px !important;
}

:root body.ehc .bmd-home-card {
  background: var(--ehc-white);
  border: 1px solid var(--ehc-line) !important;
  border-radius: var(--ehc-radius);
  overflow: hidden;
  box-shadow: var(--ehc-shadow);
  transition: box-shadow .25s ease, border-color .25s ease;
  position: relative;
}

:root body.ehc .bmd-home-card:hover {
  box-shadow: var(--ehc-shadow-lg);
  border-color: var(--ehc-brown-light) !important;
}

:root body.ehc .bmd-home-card .bmd-hc-photo {
  transition: transform .5s ease;
}

:root body.ehc .bmd-home-card:hover .bmd-hc-photo {
  transform: scale(1.03);
}

:root body.ehc .bmd-home-card > a {
  display: block;
  overflow: hidden;
}

:root body.ehc ul.tags_bilddealers_home {
  z-index: 3;
}

:root body.ehc ul.tags_bilddealers_home li,
:root body.ehc .bmd-on-display,
:root body.ehc .bmd-on-sale,
:root body.ehc .image-labels.image_property_tags .label,
:root body.ehc .bmd-featured-homes.all-homes.specials .bmd-hc-discount {
  background: var(--ehc-green) !important;
  color: var(--ehc-white) !important;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: .04em;
}

:root body.ehc ul.tags_bilddealers_home li {
  padding: 5px 12px !important;
  box-shadow: 0 2px 6px rgba(33, 38, 15, .25);
}

:root body.ehc .bmd-hc-details {
  padding: 24px 24px 20px !important;
}

:root body.ehc .bmd-hc-details h6.bmd-h6 {
  color: var(--ehc-brown-text);
  font-size: 12px !important;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

:root body.ehc .bmd-hc-details h3.bmd-h3 {
  color: var(--ehc-green);
  font-size: 28px !important;
  line-height: 1.2;
  margin-bottom: 8px;
}

:root body.ehc .bmd-hc-details p strong {
  color: var(--ehc-ink);
  font-weight: 500;
}

:root body.ehc .bmd-hc-details .bmd-price {
  color: var(--ehc-brown-text);
  font-weight: 700;
}

:root body.ehc .bmd-hc-specs {
  position: static !important;
  width: auto !important;
  border-top: 1px solid var(--ehc-line);
  border-bottom: 1px solid var(--ehc-line);
  padding: 14px 0 !important;
  margin: 16px 0 20px !important;
}

:root body.ehc .bmd-hc-spec .bmd-hc-icon {
  filter: var(--ehc-icon-filter);
}

:root body.ehc .bmd-fh-homes .slick-track {
  display: flex !important;
}

:root body.ehc .bmd-home-card {
  height: auto !important;
  padding-bottom: 92px !important;
}

:root body.ehc .bmd-hc-buttons {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 !important;
  background: transparent !important;
  left: 24px !important;
  right: 24px !important;
  bottom: 24px !important;
  width: auto !important;
}

:root body.ehc .bmd-hc-buttons a.bmd-blue-button {
  width: auto !important;
  margin: 0 !important;
  padding: 13px 8px !important;
  font-size: 12px !important;
  text-align: center;
  border-right-width: 2px !important;
}

:root body.ehc .bmd-hc-buttons a.bmd-blue-button:not(.more_info_btn) {
  background: transparent !important;
  color: var(--ehc-green) !important;
}

:root body.ehc .bmd-hc-buttons a.bmd-blue-button:not(.more_info_btn):hover,
:root body.ehc .bmd-hc-buttons a.bmd-blue-button:not(.more_info_btn):focus {
  background: var(--ehc-green) !important;
  color: var(--ehc-white) !important;
}

:root body.ehc .slick-dots li button::before {
  color: var(--ehc-green) !important;
}

:root body.ehc .bmd-fl-inner ul.slick-dots li {
  background: var(--ehc-green) !important;
}

/* ---------- Welcome / Get in touch two-column ---------- */

:root body.ehc .bmd-two-column.get_in_touch_wt {
  background: var(--ehc-cream-50);
}

:root body.ehc .wt_find_your_home ~ .bmd-two-column.get_in_touch_wt {
  background: var(--ehc-white);
}

:root body.ehc .wt_find_your_home ~ .bmd-two-column.get_in_touch_wt .bmd-tc-left {
  order: 2;
}

/* ---------- Full-width contact CTA ---------- */

:root body.ehc .bmd-full-width-cta {
  border: 0 !important;
  position: relative;
  padding: clamp(72px, 9vw, 120px) var(--ehc-gutter) !important;
  isolation: isolate;
}

:root body.ehc .bmd-full-width-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(33, 38, 15, .88), rgba(44, 50, 22, .82)) !important;
  z-index: 0;
  opacity: 1 !important;
}

:root body.ehc .bmd-full-width-cta .bmd-fwc-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  background: transparent !important;
}

:root body.ehc .bmd-full-width-cta .bmd-h3 {
  color: var(--ehc-cream) !important;
  font-size: clamp(30px, 3.4vw, 44px) !important;
  line-height: 1.15;
}

:root body.ehc .bmd-full-width-cta p {
  color: rgba(248, 236, 222, .85) !important;
  font-size: 18px !important;
  margin: 0 auto 32px;
}

:root body.ehc .bmd-full-width-cta .bmd-fwc-inner .bmd-red-button {
  background: var(--ehc-cream) !important;
  border-color: var(--ehc-cream) !important;
  color: var(--ehc-green-950) !important;
  padding: 16px 32px !important;
}

:root body.ehc .bmd-full-width-cta .bmd-fwc-inner .bmd-red-button:hover,
:root body.ehc .bmd-full-width-cta .bmd-fwc-inner .bmd-red-button:focus {
  background: var(--ehc-brown) !important;
  border-color: var(--ehc-brown) !important;
  color: var(--ehc-white) !important;
}

/* ---------- Find your home grid ---------- */

:root body.ehc .wt_find_your_home {
  background: var(--ehc-white);
}

:root body.ehc .bmd-fh-find_your_home .slick-list {
  margin: 0 -12px !important;
  padding: 8px 0 28px !important;
}

:root body.ehc .bmd-fh-find_your_home .slick-track {
  display: flex !important;
}

:root body.ehc .bmd-fh-find_your_home .slick-slide {
  height: auto !important;
}

:root body.ehc .bmd-fh-find_your_home .bmd-homes-card {
  margin: 0 12px !important;
  padding: 0 !important;
  background: var(--ehc-white);
  border: 1px solid var(--ehc-line) !important;
  border-radius: var(--ehc-radius);
  overflow: hidden;
  box-shadow: var(--ehc-shadow);
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}

:root body.ehc .bmd-fh-find_your_home .bmd-homes-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ehc-shadow-lg);
  border-color: var(--ehc-brown-light) !important;
}

:root body.ehc .bmd-fh-find_your_home .bmd-homes-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

:root body.ehc .bmd-fh-find_your_home .bmd-hc-photo {
  aspect-ratio: 4 / 3;
  height: auto !important;
  width: 100% !important;
  background-size: cover !important;
  background-position: center !important;
  margin: 0 !important;
}

:root body.ehc .wt_find_your_home .bmd-homes-card .bmd-h3 {
  color: var(--ehc-green) !important;
  font-size: 17px !important;
  font-weight: 500;
  line-height: 1.35;
  text-align: left !important;
  padding: 16px 44px 18px 18px !important;
  margin: 0 !important;
  border: 0 !important;
  position: relative;
  flex: 1;
  background: transparent !important;
}

:root body.ehc .wt_find_your_home .bmd-homes-card .bmd-h3::after {
  content: "\2192";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ehc-brown);
  transition: right .2s ease;
}

:root body.ehc .wt_find_your_home .bmd-homes-card:hover .bmd-h3::after {
  right: 14px;
}

/* ---------- Why choose us ---------- */

:root body.ehc .what_we_serve {
  background: var(--ehc-cream) !important;
  padding: var(--ehc-section-y) 0 !important;
  height: auto !important;
}

:root body.ehc .what_we_serve .we_serve_slider {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0 !important;
}

:root body.ehc .what_we_serve .bmd-fh-inner {
  display: block !important;
}

:root body.ehc .what_we_serve .bmd-we_serve-card {
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  float: none !important;
  background: var(--ehc-white) !important;
  border: 1px solid var(--ehc-line);
  border-radius: var(--ehc-radius);
  padding: 32px 28px !important;
  box-shadow: var(--ehc-shadow);
  text-align: left;
}

:root body.ehc .what_we_serve .cover_feat_image {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ehc-sage-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 20px !important;
}

:root body.ehc .what_we_serve .cover_feat_image img {
  width: 36px !important;
  height: 36px !important;
  object-fit: contain;
  filter: var(--ehc-icon-filter);
  margin: 0 !important;
}

:root body.ehc .what_we_serve .cover_feat_title {
  color: var(--ehc-green) !important;
  font-family: "Rubik", sans-serif !important;
  font-size: 21px !important;
  font-weight: 500;
  margin: 0 0 10px !important;
}

:root body.ehc .what_we_serve .cover_feat_excerpt,
:root body.ehc .what_we_serve .cover_feat_excerpt p {
  color: var(--ehc-muted) !important;
  font-size: 15px !important;
  line-height: 1.7;
}

:root body.ehc .we_serve_slider .cover_feat_learnMore a {
  color: var(--ehc-brown-text) !important;
}

/* ---------- Testimonials ---------- */

:root body.ehc .bmd-client-tests {
  background: var(--ehc-green) !important;
  padding: var(--ehc-section-y) var(--ehc-gutter) !important;
  position: relative;
  overflow: hidden;
}

:root body.ehc .bmd-client-tests::before {
  content: "\201C";
  position: absolute;
  top: -110px;
  left: 50%;
  transform: translateX(-50%);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 320px;
  line-height: 1;
  color: rgba(217, 191, 151, .1);
  pointer-events: none;
}

:root body.ehc .bmd-client-tests > .bmd-h2 {
  color: var(--ehc-cream) !important;
  position: relative;
}

:root body.ehc .bmd-client-tests > .bmd-h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 20px auto 0;
  background: var(--ehc-brown-light);
  border-radius: 2px;
}

:root body.ehc .bmd-client-tests .bmd-ct-inner {
  max-width: 860px;
  margin: 40px auto 0;
  position: relative;
}

:root body.ehc .bmd-client-tests h4.bmd-ct-test {
  color: rgba(248, 236, 222, .92) !important;
  font-size: clamp(18px, 1.8vw, 22px) !important;
  line-height: 1.7 !important;
  font-weight: 300;
}

:root body.ehc .bmd-client-tests h4.bmd-ct-author {
  color: var(--ehc-brown-light) !important;
  font-size: 14px !important;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-top: 24px;
}

:root body.ehc .bmd-client-tests .slick-dots li button::before {
  color: var(--ehc-cream) !important;
}

:root body.ehc .bmd-client-tests .slick-arrow::before {
  color: var(--ehc-cream) !important;
}

/* ---------- Footer ---------- */

:root body.ehc .bmd-site-footer {
  background: var(--ehc-green-950) !important;
  color: rgba(248, 236, 222, .78);
  padding: clamp(56px, 6vw, 80px) var(--ehc-gutter) 32px !important;
  border-top: 4px solid var(--ehc-brown);
}

:root body.ehc .bmd-site-footer .bmd-sf-inner {
  max-width: var(--ehc-container);
  margin: 0 auto;
}

:root body.ehc .bmd-site-footer strong {
  color: var(--ehc-cream) !important;
  font-size: 12px !important;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

:root body.ehc .bmd-site-footer,
:root body.ehc .bmd-site-footer .bmd-sf-row,
:root body.ehc .bmd-site-footer .bmd-sf-row span,
:root body.ehc .bmd-site-footer .bmd-sf-copy {
  color: rgba(248, 236, 222, .78) !important;
}

:root body.ehc .bmd-site-footer a {
  color: rgba(248, 236, 222, .9) !important;
}

:root body.ehc .bmd-site-footer a:hover,
:root body.ehc .bmd-site-footer a:focus {
  color: var(--ehc-brown-light) !important;
}

:root body.ehc .bmd-sf-row a i,
:root body.ehc .bmd-site-footer .map_marker i {
  color: var(--ehc-brown-light) !important;
}

:root body.ehc .bmd-site-footer .bmd-sf-image {
  background-color: var(--ehc-white);
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--ehc-white);
}

:root body.ehc .bmd-site-footer .bmd-sf-copy {
  font-size: 13px;
}

:root body.ehc .bmd-site-footer svg,
:root body.ehc .bmd-site-footer svg path {
  fill: rgba(248, 236, 222, .9) !important;
}

/* ---------- Interior templates ---------- */

:root body.ehc .bmd-secondary-hero .bmd-shero-heading h1,
:root body.ehc .bmd-secondary-hero .bmd-h1 {
  color: var(--ehc-white) !important;
}

:root body.ehc .bmd-shero-overlay {
  background: linear-gradient(180deg, rgba(33, 38, 15, .72), rgba(33, 38, 15, .55)) !important;
  opacity: 1 !important;
}

:root body.ehc .bmd-home-filter {
  background: var(--ehc-green-900) !important;
  border-radius: var(--ehc-radius);
}

:root body.ehc .bmd-all-homes {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
}

:root body.ehc .bmd-all-homes::before,
:root body.ehc .bmd-all-homes::after {
  content: none !important;
  display: none !important;
}

:root body.ehc .bmd-all-homes .bmd-home-card {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  float: none !important;
}

:root body.ehc .bmd-lenders-wrapper,
:root body.ehc .bmd-fl-inner .slick-list:after,
:root body.ehc .bmd-inventory-details,
:root body.ehc .bmd-feat-tabs .tablink.active:after,
:root body.ehc .bmd-home-specs,
:root body.ehc .bmd-featured-homes-single,
:root body.ehc .bmd-featured-homes-single .bmd-fh-homes.slick-initialized .slick-list:after {
  background: var(--ehc-cream-50) !important;
}

:root body.ehc .bmd-featured-homes.all-homes nav.posts-navigation .nav-links .nav-previous,
:root body.ehc .bmd-featured-homes.all-homes nav.posts-navigation .nav-links .nav-next,
:root body.ehc .wtpage_numbers ul.page-numbers li a {
  background-color: var(--ehc-green) !important;
  border-color: var(--ehc-green) !important;
  border-radius: var(--ehc-radius-sm);
}

:root body.ehc .bmd-featured-homes.all-homes nav.posts-navigation .nav-links .nav-previous:hover,
:root body.ehc .bmd-featured-homes.all-homes nav.posts-navigation .nav-links .nav-next:hover,
:root body.ehc .wtpage_numbers ul.page-numbers li span.page-numbers.current {
  background-color: var(--ehc-brown) !important;
  border-color: var(--ehc-brown) !important;
  border-radius: var(--ehc-radius-sm);
}

:root body.ehc .wtpage_numbers ul.page-numbers li span.page-numbers.dots {
  color: var(--ehc-brown);
}

:root body.ehc .wt-top-wrapper {
  background-color: var(--ehc-green-900) !important;
}

:root body.ehc .wt-top-wrapper .wt-main-wrapper a {
  color: var(--ehc-cream) !important;
}

:root body.ehc #content .wpforms-required-label {
  color: var(--ehc-brown-text) !important;
}

:root body.ehc .bmd-cf-inner div.wpforms-container-full .wpforms-form input:focus,
:root body.ehc .bmd-cf-inner div.wpforms-container-full .wpforms-form textarea:focus,
:root body.ehc .bmd-cf-inner div.wpforms-container-full .wpforms-form select:focus {
  border: 1px solid var(--ehc-green) !important;
  box-shadow: 0 0 0 3px rgba(61, 69, 30, .15) !important;
}

:root body.ehc .bmw_layout_bodysm .bmw_header_view .main-navigation ul li:hover,
:root body.ehc .bmw_layout_bodysm .bmw_header_view .main-navigation ul li.current_page_item {
  border-bottom-color: var(--ehc-brown) !important;
}

/* ---------- Logo: show the whole mark ---------- */

/* The uploaded logo is a 1019px square with ~15% cream padding top and
   bottom; scaling to 125% of the box height crops that padding so the
   artwork fills the header without clipping the tree or the wordmark. */
:root body.ehc .bmd-site-branding a {
  background-size: auto 125% !important;
  background-position: left center !important;
  background-repeat: no-repeat !important;
  margin-top: 0 !important;
  top: 0 !important;
}

/* ---------- Slider shadows / dots ---------- */

:root body.ehc .bmd-fh-homes .slick-list,
:root body.ehc .bmd-fh-find_your_home .slick-list {
  padding-top: 12px !important;
  padding-bottom: 44px !important;
  margin-bottom: -20px !important;
}

:root body.ehc .bmd-fh-homes .bmd-home-card,
:root body.ehc .bmd-fh-find_your_home .bmd-homes-card {
  box-shadow: 0 1px 2px rgba(33, 38, 15, .05), 0 6px 16px rgba(33, 38, 15, .06);
}

:root body.ehc .bmd-fh-homes .bmd-home-card:hover,
:root body.ehc .bmd-fh-find_your_home .bmd-homes-card:hover {
  box-shadow: 0 2px 4px rgba(33, 38, 15, .06), 0 12px 24px rgba(33, 38, 15, .10);
}

:root body.ehc .slick-dots {
  position: static !important;
  margin: 12px 0 0 !important;
  padding: 0 !important;
  background: none !important;
  box-shadow: none !important;
  line-height: 1;
}

:root body.ehc .slick-dots li {
  background: none !important;
  box-shadow: none !important;
}

/* ---------- Interior page heroes ----------
   The parent pulls the inventory/specials listing up over the hero with
   position:relative + a negative top (-600px / -215px) and a -130px bottom
   margin that tucks it under the next section, and pads the
   inventory hero to 580px to make room. With the listing on a solid
   background that just hides the photo, so both go back into normal flow
   and every interior hero matches the standard 475px page hero. */

:root body.ehc .bmd-featured-homes.all-homes {
  top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 64px !important;
  padding-bottom: var(--ehc-section-y) !important;
}

:root body.ehc .bmd-featured-homes.all-homes .bmd-fh-inner {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

:root body.ehc .bmd-secondary-hero .bmd-shero-inner {
  padding-top: 200px !important;
  padding-bottom: 200px !important;
}

:root body.ehc .bmd-secondary-hero .bmd-shero-heading p {
  color: rgba(255, 255, 255, .88) !important;
  max-width: 720px;
  margin: 16px auto 0;
  font-size: 18px !important;
}

/* Single-home hero: everything sits on a darkened photo, so the global
   green heading color can't apply here. Series reads as a warm accent. */

:root body.ehc .bmd-secondary-hero .bmd-shero-heading .bmd-h1,
:root body.ehc .bmd-secondary-hero .bmd-shero-heading .bmd-h6 {
  color: var(--ehc-white) !important;
}

:root body.ehc .bmd-secondary-hero .bmd-shero-heading .bmd-h3 {
  color: var(--ehc-brown-light) !important;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}

:root body.ehc .bmd-secondary-hero .bmd-white-button {
  color: var(--ehc-green) !important;
  border-radius: var(--ehc-radius-sm);
  font-weight: 600;
  letter-spacing: .08em;
}

:root body.ehc .bmd-secondary-hero .bmd-white-button:hover,
:root body.ehc .bmd-secondary-hero .bmd-white-button:focus {
  background: var(--ehc-cream) !important;
  color: var(--ehc-green-950) !important;
}

/* ---------- Empty listing state (e.g. no specials) ---------- */

:root body.ehc .bmd-none-found {
  height: auto !important;
  min-height: 0 !important;
  max-width: 760px;
  margin: 0 auto !important;
  padding: 56px 32px !important;
  background: var(--ehc-cream-50);
  border: 1px solid var(--ehc-line);
  border-radius: var(--ehc-radius);
  text-align: center;
  float: none !important;
  width: auto !important;
}

:root body.ehc .bmd-none-found h1,
:root body.ehc .bmd-none-found .bmd-h1 {
  font-size: clamp(24px, 2.6vw, 34px) !important;
  line-height: 1.25 !important;
  text-transform: none !important;
  letter-spacing: -.01em;
  margin: 0 0 12px !important;
  position: static !important;
  height: auto !important;
}

:root body.ehc .bmd-none-found p {
  width: auto !important;
  max-width: 52ch !important;
  margin: 0 auto !important;
  font-size: 17px !important;
  line-height: 1.7;
  position: static !important;
}

:root body.ehc .bmd-none-found p a {
  color: var(--ehc-green) !important;
  font-weight: 600;
  text-decoration: underline !important;
  text-decoration-color: var(--ehc-brown-light) !important;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

:root body.ehc .bmd-none-found p a:hover,
:root body.ehc .bmd-none-found p a:focus {
  color: var(--ehc-brown-text) !important;
  text-decoration-color: var(--ehc-brown) !important;
}

/* ---------- Wide desktop: fit sliders to the 1200px container ---------- */

@media (min-width: 1240px) {
  :root body.ehc .bmd-fh-homes .bmd-home-card {
    width: 372px !important;
    margin-right: 18px !important;
  }

  :root body.ehc .bmd-fh-homes .slick-list {
    margin-right: -18px !important;
  }

  :root body.ehc .bmd-fh-find_your_home .bmd-homes-card {
    width: 270px !important;
  }
}

/* ---------- Tablet ---------- */

@media (max-width: 1024px) {
  :root body.ehc .bmd-all-homes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  :root body.ehc .what_we_serve .we_serve_slider {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Mobile nav / stacked layout ---------- */

@media (max-width: 991px) {
  :root body.ehc #content.site-content {
    margin-top: 0 !important;
  }

  :root body.ehc .bmd-mobile-contact {
    background: var(--ehc-green) !important;
  }

  :root body.ehc .bmd-mobile-contact a {
    color: var(--ehc-white) !important;
    font-weight: 600;
    letter-spacing: .06em;
  }

  :root body.ehc .bmd-sh-wrap {
    background: var(--ehc-cream) !important;
  }

  :root body.ehc .hamburger .hamburger-box .hamburger-inner,
  :root body.ehc .hamburger .hamburger-box .hamburger-inner::before,
  :root body.ehc .hamburger .hamburger-box .hamburger-inner::after {
    background: var(--ehc-green) !important;
  }

  :root body.ehc .bmd-mobile-nav,
  :root body.ehc .bmw-bmd-mobile-nav {
    background: var(--ehc-cream) !important;
    border-top: 1px solid var(--ehc-line);
  }

  :root body.ehc .bmd-mobile-nav li a,
  :root body.ehc .bmw-bmd-mobile-nav li a {
    color: var(--ehc-green) !important;
  }

  :root body.ehc .bmd-site-header .menu-main-nav-container li.menu-item a::after {
    display: none;
  }

  :root body.ehc .bmd-two-column.banner_heading_wt,
  :root body.ehc .bmd-two-column.get_in_touch_wt {
    grid-template-columns: minmax(0, 1fr);
  }

  :root body.ehc .bmd-two-column .bmd-tc-left,
  :root body.ehc .wt_find_your_home ~ .bmd-two-column.get_in_touch_wt .bmd-tc-left {
    order: 0;
  }

  :root body.ehc .banner_heading_wt .bmd-tc-touch::before {
    inset: 16px -12px -12px 16px;
  }
}

@media (max-width: 767px) {
  :root body.ehc .bmd-two-column.banner_heading_wt {
    padding-top: 48px !important;
  }

  :root body.ehc .bmd-secondary-hero .bmd-shero-inner {
    padding-top: 112px !important;
    padding-bottom: 112px !important;
  }

  :root body.ehc .bmd-featured-homes.all-homes {
    padding-top: 40px !important;
  }

  :root body.ehc .bmd-none-found {
    padding: 40px 20px !important;
  }

  :root body.ehc .bmd-fh-homes {
    margin: 0 !important;
  }

  :root body.ehc .bmd-fh-homes .bmd-home-card {
    width: calc(100vw - (var(--ehc-gutter) * 2)) !important;
    margin-right: 12px !important;
  }

  :root body.ehc .bmd-all-homes {
    grid-template-columns: minmax(0, 1fr);
  }

  :root body.ehc .bmd-featured-homes.all-homes .bmd-all-homes .bmd-home-card {
    display: block !important;
    height: auto !important;
    padding: 0 0 92px !important;
  }

  :root body.ehc .bmd-featured-homes.all-homes .bmd-all-homes .bmd-home-card > a {
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }

  :root body.ehc .bmd-featured-homes.all-homes .bmd-all-homes .bmd-hc-photo {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
    background-size: cover !important;
    background-position: center !important;
  }

  :root body.ehc .bmd-featured-homes.all-homes .bmd-all-homes .bmd-hc-details {
    width: 100% !important;
    height: auto !important;
    padding: 20px 20px 0 !important;
  }

  :root body.ehc .bmd-featured-homes.all-homes .bmd-all-homes .bmd-hc-specs {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
    width: auto !important;
    height: auto !important;
  }

  :root body.ehc .bmd-featured-homes.all-homes .bmd-all-homes .bmd-hc-spec {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
  }

  :root body.ehc .bmd-featured-homes.all-homes .bmd-all-homes .bmd-hc-buttons {
    left: 20px !important;
    right: 20px !important;
    bottom: 20px !important;
  }

  :root body.ehc .bmd-featured-homes .bmd-cta-centered.mobile {
    margin: 32px 0 0 !important;
    text-align: center;
  }

  :root body.ehc .bmd-hc-details h3.bmd-h3 {
    font-size: 24px !important;
  }

  :root body.ehc .wt_find_your_home .bmd-homes-card .bmd-h3 {
    font-size: 15px !important;
    padding: 12px 32px 14px 14px !important;
  }

  :root body.ehc .wt_find_your_home .bmd-homes-card .bmd-h3::after {
    right: 12px;
  }

  :root body.ehc .what_we_serve .we_serve_slider {
    grid-template-columns: minmax(0, 1fr);
  }

  :root body.ehc .bmd-client-tests::before {
    display: none;
  }

  :root body.ehc .bmd-hc-buttons a.bmd-blue-button {
    font-size: 11px !important;
    letter-spacing: .04em;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root body.ehc *,
  :root body.ehc *::before,
  :root body.ehc *::after {
    transition: none !important;
  }
}
