/*
Theme Name: Industrium Child
Theme URI: http://demo.artureanec.com/themes/industrium/
Description: Child theme for Industrium. Holds Anson Industries customizations so the parent theme can be updated safely.
Author: Anson Industries
Template: industrium
Version: 1.2.1
License: GNU General Public License version 3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: industrium-child
*/

/* ==========================================================================
   Client feedback (2026-08-19): button arrows should point up, not down.
   Swaps the fontello glyph \e82d (icon-button-arrow, down-right)
   for  \e83e (icon-button_arrow_up, up-right) on buttons only.
   Both glyphs are 1000 units wide, so nothing shifts.
   Non-button \e82d markers (service titles, submenu arrows, tag pills,
   slider nav, sidebar widget titles) keep the original arrow. Elementor
   icon-box / image-box titles were added to the swap on 2026-08-24 (see
   further down). List bullets are handled separately further down.
   ========================================================================== */

/* Primary buttons: .industrium-button, form buttons, block buttons */
#form-preview button:after,
.industrium-button:after,
.body-container button:not(.customize-partial-edit-shortcut-button):after,
.body-container input[type="submit"]:after,
.body-container input[type="button"]:after,
.body-container input[type="reset"]:after,
.footer .wp-block-button:not(.is-style-fill) .wp-block-button__link:not(.has-background):after,
.footer .wp-block-cover .wp-block-button:not(.is-style-fill) .wp-block-button__link:not(.has-background):after,
.slide-sidebar-wrapper .wp-block-button:not(.is-style-fill) .wp-block-button__link:not(.has-background):after,
.slide-sidebar-wrapper .wp-block-cover .wp-block-button:not(.is-style-fill) .wp-block-button__link:not(.has-background):after,
.sidebar .wp-block-button:not(.is-style-fill) .wp-block-button__link:not(.has-background):after,
.sidebar .wp-block-cover .wp-block-button:not(.is-style-fill) .wp-block-button__link:not(.has-background):after {
  content: '\e83e';
}

/* Icon Box widget "button link" - this one carries the fontello icon class
   in the markup (a.icon-box-button-link.icon-button-arrow) rather than going
   through .industrium-button, so it needs its own rule. */
.industrium-icon-box-widget .icon-box-button-link.icon-button-arrow:before {
  content: '\e83e';
}

/* Project slider buttons */
.project-listing-wrapper.project-slider-listing .project-item-button:before,
.project-listing-wrapper.project-slider-listing.view-type-2 .slider-item .button-container .industrium-button:hover:after {
  content: '\e83e';
}

/* WooCommerce buttons */
.woocommerce a.button:after,
.woocommerce a.button.alt:after,
.woocommerce button.button:after,
.woocommerce button.button.alt:after,
.woocommerce input.button:after,
.woocommerce #respond input#submit:after,
.woocommerce a.added_to_cart:after,
.woocommerce #respond input#submit.disabled:after,
.woocommerce #respond input#submit:disabled:after,
.woocommerce #respond input#submit:disabled[disabled]:after,
.woocommerce a.button.disabled:after,
.woocommerce a.button:disabled:after,
.woocommerce a.button:disabled[disabled]:after,
.woocommerce button.button.disabled:after,
.woocommerce button.button:disabled:after,
.woocommerce button.button:disabled[disabled]:after,
.woocommerce input.button.disabled:after,
.woocommerce input.button:disabled:after,
.woocommerce input.button:disabled[disabled]:after {
  content: '\e83e';
}

/* ==========================================================================
   Client feedback (2026-08-24): the arrows next to the Elementor icon-box /
   image-box titles (About page -> "Our Company Values") were still the old
   down-right glyph. Swap them to the same up-right arrow used on buttons.

   The hover rotation is flipped from -45deg to 45deg at the same time so the
   arrow still ends up pointing right on hover, exactly as it did before the
   glyph changed (down-right -45deg = right; up-right +45deg = right). On the
   About page the arrow sits to the left of the title (Customizer > Additional
   CSS, .page-id-395 rules), so that hover still points at the word.
   ========================================================================== */

.elementor-widget-icon-box .elementor-icon-box-wrapper .elementor-icon-box-content .elementor-icon-box-title a:before,
.elementor-widget-image-box .elementor-image-box-wrapper .elementor-image-box-content .elementor-image-box-title a:before {
  content: '\e83e';
}

.elementor-widget-icon-box .elementor-icon-box-wrapper .elementor-icon-box-content .elementor-icon-box-title a:hover:before,
.elementor-widget-image-box .elementor-image-box-wrapper .elementor-image-box-content .elementor-image-box-title a:hover:before {
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

/* ==========================================================================
   Client feedback (2026-08-19): list bullets should be circles, not arrows.
   Replaces the fontello arrow (\e82d) with a CSS-drawn dot on list markers
   across the theme. The dot uses currentColor, so it keeps following whatever
   accent color the Customizer is set to (standard_accent_text_color) and the
   per-context overrides in css/custom/*.php - including the hover colors on
   the widget lists.

   Scope is list markers only. Arrows that are not bullets are left as-is:
   button arrows, service/icon-box/image-box title arrows, submenu arrows,
   slider nav arrows, tag-cloud and post-tag links, sidebar widget titles,
   and the case-study results decoration.
   ========================================================================== */

/* Shared dot rendering. `font-size: inherit` drops the parent's fontello
   sizing so the em units below resolve against the list item's own text. */
ul > li:before,
.team-experience-list .team-experience-item:before,
.sidebar .widget_archive ul li:before,
.sidebar ul.wp-block-archives li:before,
.sidebar .widget_categories .widget-wrapper > ul li:before,
.sidebar ul.wp-block-categories li:before,
.sidebar .wc-block-product-categories li:before,
.sidebar .widget_meta ul li:before,
.widget_pages ul li:before,
.widget_recent_comments ul .recentcomments:before,
body .content-wrapper .wp-block-latest-comments li:before,
.wp-block-latest-comments li:before {
  content: '';
  display: block;
  position: absolute;
  font-size: inherit;
  line-height: inherit;
  border-radius: 50%;
  background-color: currentColor;
}

/* Each context below declares `top` twice on purpose. The em value is a
   hand-tuned fallback; the calc() using the `lh` unit centers the dot on the
   first text line at whatever line-height that context actually has, so the
   bullets stay centered if the Customizer typography settings change.
   Browsers without `lh` support simply ignore the second declaration. */

/* Content lists - post/page copy and Elementor text widgets */
ul > li:before {
  width: 0.4em;
  height: 0.4em;
  left: 0.13em;
  top: 0.69em;
  top: calc(0.5lh - 0.2em);
}

/* Team member "experience" list */
.team-experience-list .team-experience-item:before {
  width: 0.4em;
  height: 0.4em;
  left: 0.13em;
  top: 1.13em;
  top: calc(0.5lh - 0.2em);
}

/* Widget lists - these stay hover-reveal (opacity 0 -> 1), same as before */
.sidebar .widget_archive ul li:before,
.sidebar ul.wp-block-archives li:before,
.sidebar .widget_categories .widget-wrapper > ul li:before,
.sidebar ul.wp-block-categories li:before,
.sidebar .wc-block-product-categories li:before,
.sidebar .widget_meta ul li:before,
.widget_pages ul li:before {
  width: 0.35em;
  height: 0.35em;
  left: 0.1em;
  top: 0.71em;
  top: calc(0.5lh - 0.175em);
}

/* Comment widgets */
.widget_recent_comments ul .recentcomments:before,
body .content-wrapper .wp-block-latest-comments li:before,
.wp-block-latest-comments li:before {
  width: 0.35em;
  height: 0.35em;
  left: 0.1em;
  top: 0.52em;
  top: calc(0.5lh - 0.175em);
}

/* Exception: the tabs widget puts its own icon in this slot and resets
   width/height/border-radius but not background - without this it would
   render our dot as a 22px block behind the icon. */
.industrium_tabs_widget .industrium_tabs_content_container ul li:before {
  background: none;
}

/* ==========================================================================
   Client feedback (2026-08-19): the WPForms post-submission confirmation box
   should be the Anson brand blue, not the plugin's default green (#e0ffc7 on
   a #b4d39b border).

   The rules live in functions.php (industrium_child_wpforms_confirmation_css)
   rather than here, because the colors are pulled from the Customizer accent
   instead of being hardcoded. Nothing to edit in this file.
   ========================================================================== */
