/* Theme rules touch only originally-light surfaces; natural dark sections remain unchanged. */
html.sbd-dark, html.sbd-dark body { color-scheme: dark; }
html.sbd-dark body.sbd-light-surface,
html.sbd-dark .sbd-light-surface {
    background-color: #141414 !important;
}
html.sbd-dark .sbd-offwhite-surface { background-color: #202020 !important; }
html.sbd-dark .sbd-darken-text { color: #f3f1ec !important; }
html.sbd-dark .sbd-muted-text { color: #cfcbc2 !important; }
/* Preserve brand gold regardless of mode. */
html.sbd-dark .sbd-brand-gold { color: #b68a31 !important; }
html.sbd-dark .sbd-gold-bg { background-color: #b68a31 !important; }
html.sbd-dark .sbd-gold-border { border-color: #b68a31 !important; }
/* Do not modify media, gradients, overlays or intentionally black surfaces. */
html.sbd-dark .sbd-mode-switch { filter: none !important; }

.sbd-mode-switch {
    position:relative!important; isolation:isolate; display:inline-flex!important;
    align-items:center!important; justify-content:space-between!important;
    width:68px!important; min-width:68px!important; height:35px!important;
    padding:4px 8px!important; box-sizing:border-box!important;
    border:1px solid rgba(182,138,49,.65)!important; border-radius:999px!important;
    background:rgba(21,20,19,.9)!important; color:#d8bc7b!important;
    box-shadow:0 2px 10px rgba(0,0,0,.15)!important;
    cursor:pointer!important; vertical-align:middle!important;
    transform:none!important; text-decoration:none!important; overflow:hidden!important;
    transition:background-color .2s ease,border-color .2s ease!important;
    -webkit-appearance:none; appearance:none;
}
.sbd-mode-switch .sbd-switch-thumb {
    position:absolute; z-index:0; width:27px; height:27px; left:3px; top:3px;
    border-radius:50%; background:#f7f5ef; box-shadow:0 1px 3px rgba(0,0,0,.3);
    transition:transform .22s ease; pointer-events:none;
}
.sbd-mode-switch .sbd-icon {position:relative; z-index:1; display:block!important;width:19px!important;height:19px!important;flex:none;pointer-events:none;transition:color .2s ease;}
.sbd-mode-switch .sbd-moon { color:#171717; }
.sbd-mode-switch .sbd-sun { color:#d3ae60; }
html.sbd-dark .sbd-mode-switch .sbd-switch-thumb { transform:translateX(33px); }
html.sbd-dark .sbd-mode-switch .sbd-moon { color:#d3ae60; }
html.sbd-dark .sbd-mode-switch .sbd-sun { color:#171717; }
.sbd-mode-switch:focus-visible {outline:2px solid #b68a31!important; outline-offset:3px!important;}
@media (prefers-reduced-motion:reduce) {.sbd-mode-switch,.sbd-mode-switch * {transition:none!important;}}


/* SBD v1.1.0 – isolated switch; prevents Elementor / Woodmart global button,
   SVG, hover and box-sizing rules distorting the control. */
.sbd-mode-switch,
.sbd-mode-switch:hover,
.sbd-mode-switch:active,
.sbd-mode-switch:focus {
  font-size: initial !important;
  line-height: normal !important;
  letter-spacing: normal !important;
  font-family: inherit !important;
  width: 68px !important;
  min-width: 68px !important;
  max-width: 68px !important;
  height: 35px !important;
  min-height: 35px !important;
  max-height: 35px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid #b68a31 !important;
  border-radius: 999px !important;
  background: #191815 !important;
  background-image: none !important;
  box-shadow: 0 2px 10px rgba(0,0,0,.16) !important;
  display: inline-block !important;
  flex: 0 0 68px !important;
  overflow: hidden !important;
  vertical-align: middle !important;
  text-align: initial !important;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
}
.sbd-mode-switch::before,.sbd-mode-switch::after {content:none!important;display:none!important;}
.sbd-mode-switch .sbd-switch-thumb {
  display:block !important;
  box-sizing:border-box !important;
  position:absolute !important;
  width:27px!important;height:27px!important;
  top:3px!important;left:3px!important;right:auto!important;bottom:auto!important;
  padding:0!important;margin:0!important;
  border:none!important;border-radius:50%!important;
  background:#f7f5ef!important;
  transform:translateX(0)!important;
  transition:transform .22s ease!important;
}
html.sbd-dark .sbd-mode-switch .sbd-switch-thumb {transform:translateX(33px)!important;}
.sbd-mode-switch svg.sbd-icon {
  position:absolute!important;top:7px!important;
  display:block!important;width:19px!important;height:19px!important;
  min-width:19px!important;max-width:19px!important;
  min-height:19px!important;max-height:19px!important;
  padding:0!important;margin:0!important;
  border:0!important;opacity:1!important;visibility:visible!important;
  fill:none!important;stroke:currentColor!important;stroke-width:1.7!important;
  transform:none!important;filter:none!important;
}
.sbd-mode-switch svg.sbd-moon {left:7px!important;right:auto!important;}
.sbd-mode-switch svg.sbd-sun {right:7px!important;left:auto!important;}
.sbd-mode-switch .sbd-moon {color:#171717!important;}
.sbd-mode-switch .sbd-sun {color:#d3ae60!important;}
html.sbd-dark .sbd-mode-switch .sbd-moon {color:#d3ae60!important;}
html.sbd-dark .sbd-mode-switch .sbd-sun {color:#171717!important;}

/* Third homepage section: steps cards are intentionally black, so their
   dark text must become white in dark mode without lightening the cards. */
html.sbd-dark .sbd-process-card,
html.sbd-dark .sbd-process-card p,
html.sbd-dark .sbd-process-card h2,
html.sbd-dark .sbd-process-card h3,
html.sbd-dark .sbd-process-card h4,
html.sbd-dark .sbd-process-card .elementor-heading-title,
html.sbd-dark .sbd-process-card .elementor-widget-text-editor,
html.sbd-dark .sbd-process-card .elementor-widget-text-editor * {
  color:#f7f5ef!important;
}
html.sbd-dark .sbd-process-card .sbd-brand-gold {color:#b68a31!important;}
html.sbd-dark .sbd-process-card {border-color:rgba(255,255,255,.72)!important;}

/* WPForms: consistent readable dark inputs, including international phone
   dropdowns and select fields. Applies only when the dark mode is active. */
html.sbd-dark .wpforms-container input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=hidden]),
html.sbd-dark .wpforms-container textarea,
html.sbd-dark .wpforms-container select,
html.sbd-dark .wpforms-container .wpforms-field-address input,
html.sbd-dark .wpforms-container .wpforms-field-name input,
html.sbd-dark .wpforms-container .wpforms-field-phone input {
  background-color:#202020!important;
  background-image:none!important;
  color:#f5f3ef!important;
  -webkit-text-fill-color:#f5f3ef!important;
  border:1px solid #5c5c5c!important;
  box-shadow:none!important;
  color-scheme:dark;
}
html.sbd-dark .wpforms-container input::placeholder,
html.sbd-dark .wpforms-container textarea::placeholder {
  color:#bdbdbd!important;
  opacity:1!important;
  -webkit-text-fill-color:#bdbdbd!important;
}
html.sbd-dark .wpforms-container select option,
html.sbd-dark .wpforms-container select optgroup {background-color:#202020!important;color:#f5f3ef!important;}
html.sbd-dark .wpforms-container .wpforms-field-label,
html.sbd-dark .wpforms-container .wpforms-field-sublabel,
html.sbd-dark .wpforms-container .wpforms-field-description,
html.sbd-dark .wpforms-container label,
html.sbd-dark .wpforms-container legend {
  color:#f5f3ef!important;
}
html.sbd-dark .wpforms-container input:focus,
html.sbd-dark .wpforms-container textarea:focus,
html.sbd-dark .wpforms-container select:focus {border-color:#b68a31!important;outline-color:#b68a31!important;}
html.sbd-dark .wpforms-container .iti__country-list,
html.sbd-dark .wpforms-container .iti__dropdown-content,
html.sbd-dark .wpforms-container .iti__country,
html.sbd-dark .wpforms-container .iti__dial-code {
  background-color:#202020!important;color:#f5f3ef!important;
}
html.sbd-dark .wpforms-container .iti__selected-flag,
html.sbd-dark .wpforms-container .iti__selected-country {background:transparent!important;}
html.sbd-dark .wpforms-container .wpforms-submit,
html.sbd-dark .wpforms-container button[type=submit] {
  background-color:#b68a31!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
html.sbd-dark .wpforms-container input[type=checkbox],
html.sbd-dark .wpforms-container input[type=radio] {accent-color:#b68a31;}


/* v1.2.0: deterministic, static card colors. Covers homepage + services page.
   No runtime color scan is triggered during slide/form mutations. */
html.sbd-dark .sbd-service-card {
  background-color:#141414!important;
  border-color:rgba(255,255,255,.78)!important;
  color:#f7f5ef!important;
}
html.sbd-dark .sbd-service-card :is(h1,h2,h3,h4,h5,h6,p,span,small,strong,li),
html.sbd-dark .sbd-service-card .elementor-heading-title,
html.sbd-dark .sbd-service-card .elementor-widget-text-editor,
html.sbd-dark .sbd-service-card .elementor-widget-text-editor * {
  color:#f7f5ef!important;
  -webkit-text-fill-color:#f7f5ef!important;
}
html.sbd-dark .sbd-service-card a,
html.sbd-dark .sbd-service-card a:link,
html.sbd-dark .sbd-service-card a:visited,
html.sbd-dark .sbd-service-card a:hover,
html.sbd-dark .sbd-service-card .elementor-button-text {
  color:#f7f5ef!important;
  -webkit-text-fill-color:#f7f5ef!important;
  opacity:1!important;
  visibility:visible!important;
}
html.sbd-dark .sbd-service-card .sbd-brand-gold,
html.sbd-dark .sbd-service-card .sbd-brand-gold * {
  color:#b68a31!important;
  -webkit-text-fill-color:#b68a31!important;
}
html.sbd-dark .sbd-service-card img {filter:none!important;opacity:1!important;}
/* Ignore generic theme overlays/pseudo-elements that obscure card CTAs. */
html.sbd-dark .sbd-service-card .elementor-button {opacity:1!important;visibility:visible!important;}

/* Selected-icon semantics: light = SUN selected (right);
   dark = MOON selected (left). Clicking a glyph selects that mode. */
.sbd-mode-switch .sbd-switch-thumb {transform:translateX(33px)!important;}
html.sbd-dark .sbd-mode-switch .sbd-switch-thumb {transform:translateX(0)!important;}
.sbd-mode-switch .sbd-moon {color:#d3ae60!important;}
.sbd-mode-switch .sbd-sun {color:#171717!important;}
html.sbd-dark .sbd-mode-switch .sbd-moon {color:#171717!important;}
html.sbd-dark .sbd-mode-switch .sbd-sun {color:#d3ae60!important;}
.sbd-mode-switch svg.sbd-icon {pointer-events:auto!important;cursor:pointer!important;}
.sbd-mode-switch .sbd-switch-thumb {pointer-events:none!important;}
