/* Public controls. The two buttons in the home hero keep their own design. */
:root{
  --jd-control-hover:#245466;
  --jd-control-shadow:0 3px 10px rgba(21,61,77,.13);
}
:root[data-johari-theme=dark]{
  --jd-control-hover:#D8B879;
  --jd-control-shadow:0 3px 12px rgba(0,0,0,.18);
}

/* A color change and focus outline identify links; hover never draws a line. */
body a,body a:hover,body a:focus,body a:active,
body .jd-linklike,body .jd-linklike:hover,body .jd-linklike:focus{
  text-decoration:none!important;
  text-decoration-line:none!important;
}

/* Calm rectangular controls replace the site-wide pills and heavy shadows. */
body .jd-button,
body .elementor-widget-button .elementor-button,
body .elementor-form .elementor-button,
body .wp-block-button__link,
body .woocommerce a.button,
body .woocommerce button.button,
body .woocommerce input.button,
body .woocommerce #respond input#submit,
body :is(.jd-shop-grid,.jd-pdp-related,.jd-pdp-also,.jd-wishlist) a:is(.button,.added_to_cart),
body.single-product .single_add_to_cart_button{
  min-height:46px!important;
  padding:11px 20px!important;
  border:1px solid var(--jd-action)!important;
  border-radius:12px!important;
  background:var(--jd-action)!important;
  color:var(--jd-on-action)!important;
  box-shadow:var(--jd-control-shadow)!important;
  font-family:var(--jd-font)!important;
  font-weight:600!important;
  line-height:1.5!important;
  text-align:center;
  transition:background-color .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease;
}
body .jd-button:hover,
body .elementor-widget-button .elementor-button:hover,
body .elementor-form .elementor-button:hover,
body .wp-block-button__link:hover,
body .woocommerce a.button:hover,
body .woocommerce button.button:hover,
body .woocommerce input.button:hover,
body .woocommerce #respond input#submit:hover,
body :is(.jd-shop-grid,.jd-pdp-related,.jd-pdp-also,.jd-wishlist) a:is(.button,.added_to_cart):hover,
body.single-product .single_add_to_cart_button:hover{
  background:var(--jd-control-hover)!important;
  border-color:var(--jd-control-hover)!important;
  color:var(--jd-on-action)!important;
  box-shadow:0 5px 13px rgba(21,61,77,.16)!important;
  transform:translateY(-1px);
}

/* The older intro row carried two high-specificity pill overrides. */
body .jd-action-row>.elementor-widget:first-child .elementor-button,
body .jd-action-row>.elementor-widget:last-child .elementor-button{
  background:var(--jd-action)!important;
  border:1px solid var(--jd-action)!important;
  border-radius:12px!important;
  color:var(--jd-on-action)!important;
  box-shadow:var(--jd-control-shadow)!important;
}
body .jd-action-row>.elementor-widget:first-child .elementor-button:hover,
body .jd-action-row>.elementor-widget:last-child .elementor-button:hover{
  background:var(--jd-control-hover)!important;
  border-color:var(--jd-control-hover)!important;
  color:var(--jd-on-action)!important;
}
:root[data-johari-theme=dark] body .jd-action-row>.elementor-widget:first-child .elementor-button,
:root[data-johari-theme=dark] body .jd-action-row>.elementor-widget:last-child .elementor-button{
  color:var(--jd-on-action)!important;
}

/* Outline actions remain readable on both white and dark glass surfaces. */
body .jd-button-outline,
body .jd-outline .elementor-button,
body .jd-show-more .elementor-button,
body .jd-compare-button,
body .jd-clear-search,
body .jd-pagination a,
body .jd-pagination .current,
body .jd-print{
  background:var(--jd-glass-strong)!important;
  border:1px solid var(--jd-line)!important;
  border-radius:12px!important;
  color:var(--jd-text)!important;
  box-shadow:none!important;
}
body .jd-button-outline:hover,
body .jd-outline .elementor-button:hover,
body .jd-show-more .elementor-button:hover,
body .jd-compare-button:hover,
body .jd-clear-search:hover,
body .jd-pagination a:hover,
body .jd-print:hover{
  background:var(--jd-surface)!important;
  border-color:var(--jd-petrol)!important;
  color:var(--jd-text)!important;
  box-shadow:none!important;
}
body .jd-pagination .current,
body .jd-compare-button[aria-pressed=true]{background:var(--jd-action)!important;border-color:var(--jd-action)!important;color:var(--jd-on-action)!important}

/* Text links inside cards and the footer were inheriting white button text. */
body .jd-footer-links .elementor-widget-button .elementor-button,
body .jd-model-tile .elementor-widget-button .elementor-button,
body .jd-part-link .elementor-widget-button .elementor-button,
body .jd-service .elementor-widget-button .elementor-button,
body .jd-show-card-link .elementor-button,
body .jd-show-service-link .elementor-button,
body .jd-show-resource-links .elementor-button{
  min-height:44px!important;
  padding:6px 0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:var(--jd-text)!important;
  box-shadow:none!important;
  text-align:start!important;
  transform:none!important;
}
body.home .jd-show-card-link .elementor-button,
body.home .jd-show-service-link .elementor-button,
body.home .jd-show-resource-links .elementor-button{color:var(--jd-show-ink)!important}
body .jd-footer-links .elementor-widget-button .elementor-button:hover,
body .jd-model-tile .elementor-widget-button .elementor-button:hover,
body .jd-part-link .elementor-widget-button .elementor-button:hover,
body .jd-service .elementor-widget-button .elementor-button:hover,
body .jd-show-card-link .elementor-button:hover,
body .jd-show-service-link .elementor-button:hover,
body .jd-show-resource-links .elementor-button:hover{color:var(--jd-focus)!important;background:transparent!important}
body .jd-show-card-link .elementor-button{font-size:12px!important;font-weight:600!important}

/* Header actions and icon controls share the same restrained geometry. */
body .jd-header-phone .elementor-button{
  background:var(--jd-action)!important;
  border-color:var(--jd-action)!important;
  border-radius:12px!important;
  color:var(--jd-on-action)!important;
  box-shadow:var(--jd-control-shadow)!important;
}
body .jd-header-phone .elementor-button:hover{background:var(--jd-control-hover)!important;border-color:var(--jd-control-hover)!important;color:var(--jd-on-action)!important}
body .jd-icon-button,
body .jd-menu-toggle,
body .jd-header-nav .jd-menu-toggle,
body .jd-sub-toggle,
body .jd-header-tools .jd-account-button,
body .jd-header-tools .jd-cart-button,
body .jd-nav-close,
body .jd-modal-close,
body button.jd-theme-toggle{
  border:1px solid var(--jd-glass-border)!important;
  border-radius:12px!important;
  background:var(--jd-glass-strong)!important;
  color:var(--jd-text)!important;
  box-shadow:none!important;
}
body .jd-icon-button:hover,
body .jd-menu-toggle:hover,
body .jd-header-nav .jd-menu-toggle:hover,
body .jd-sub-toggle:hover,
body .jd-header-tools .jd-account-button:hover,
body .jd-header-tools .jd-cart-button:hover,
body .jd-nav-close:hover,
body .jd-modal-close:hover,
body button.jd-theme-toggle:hover{background:var(--jd-surface)!important;color:var(--jd-text)!important}

/* Gold remains a high-contrast action inside the petrol campaign band. */
body .jd-band .elementor-button,
body .jd-band .elementor-button:hover{
  background:var(--jd-gold)!important;
  border-color:var(--jd-gold)!important;
  border-radius:12px!important;
  color:var(--jd-petrol)!important;
}

/* Preserve the two accepted buttons on the main home banner. */
body.home .jd-show-actions .jd-show-primary .elementor-button,
body.home .jd-show-actions .jd-show-primary .elementor-button:hover{
  min-height:46px!important;
  padding:13px 20px!important;
  border:1px solid var(--jd-gold)!important;
  border-radius:99px!important;
  background:var(--jd-show-action)!important;
  color:var(--jd-petrol)!important;
  box-shadow:0 5px 15px #7e572c26!important;
  transform:none!important;
}
body.home .jd-show-actions .jd-show-secondary .elementor-button,
body.home .jd-show-actions .jd-show-secondary .elementor-button:hover{
  min-height:46px!important;
  padding:13px 20px!important;
  border:1px solid var(--jd-show-edge)!important;
  border-radius:99px!important;
  background:var(--jd-show-panel)!important;
  color:var(--jd-show-ink)!important;
  box-shadow:0 10px 24px rgba(21,61,77,.18)!important;
  transform:none!important;
}

body :is(a,button,input[type=submit]):focus-visible{outline:3px solid var(--jd-focus)!important;outline-offset:3px}
@media(prefers-reduced-motion:reduce){body .jd-button,body .elementor-button,body .woocommerce .button{transition:none!important;transform:none!important}}
@media(forced-colors:active){body .jd-button,body .elementor-button,body .woocommerce .button,body :is(.jd-shop-grid,.jd-pdp-related,.jd-pdp-also,.jd-wishlist) a:is(.button,.added_to_cart){background:ButtonFace!important;color:ButtonText!important;border:1px solid ButtonText!important;box-shadow:none!important}}
/* Contact actions remain native editable Elementor buttons with distinct channel icons. */
.elementor .elementor-element.elementor-widget-button.jd-contact-action .elementor-button{min-height:48px;padding:12px 20px;border:1px solid var(--jd-action)}
.elementor .jd-contact-action .elementor-button-content-wrapper{display:flex;align-items:center;justify-content:center;gap:10px}
.elementor .jd-contact-action .elementor-button-icon{display:inline-flex;align-items:center;justify-content:center;font-size:22px;margin:0;flex:none}
.elementor .jd-contact-action .elementor-button-icon svg{width:22px;height:22px;fill:currentColor}
:root[data-johari-theme] body .elementor .elementor-element.elementor-widget-button.jd-contact-action--whatsapp .elementor-button{background:var(--jd-bg)!important;color:var(--jd-text)!important;border-color:var(--jd-text);box-shadow:none}
:root[data-johari-theme] body .elementor .elementor-element.elementor-widget-button.jd-contact-action--whatsapp .elementor-button:hover{background:var(--jd-surface)!important}
@media(max-width:800px){.elementor .jd-contact-action{flex:1 1 160px!important}.elementor .jd-contact-action .elementor-button{width:100%}}
