/*
Theme Name: IRISWA Design
Theme URI: https://iriswa.com
Description: IRISWA design-system child theme and app shell.
Author: IRISWA
Template: dt-the7
Version: 0.1.62
Text Domain: iriswa-design
*/

/* Parent and design-system styles are enqueued from functions.php. */

/* Compatibility override for the live Elementor/The7 header and footer. */
.iriswa-brand__logo,
.iriswa-footer-brand__logo,
.iriswa-site-brand__logo,
.iriswa-site-footer__logo,
.custom-logo {
  content: url("assets/icons/ISWA-logo-2.webp") !important;
}

/* The7 renders the global back-to-top control with a Feather font glyph.
 * Use the local Solar WebP contract instead; keep the screen-reader label. */
body:not(.wp-admin) .scroll-top.scroll-top-elementor-icon {
  background-color: var(--color-primary, #047857) !important;
  background-image: url("assets/icons/solar-round-alt-arrow-up-linear.webp") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 1.45rem 1.45rem !important;
  border: 0 !important;
}

body:not(.wp-admin) .scroll-top.scroll-top-elementor-icon:hover,
body:not(.wp-admin) .scroll-top.scroll-top-elementor-icon:focus-visible {
  background-color: var(--color-primary-hover, #065f46) !important;
}

body:not(.wp-admin) .scroll-top.scroll-top-elementor-icon > i {
  display: none !important;
}

/* Shared icon contract: all UI icons keep their intrinsic colour, remain
 * fully visible on their designed surface, and never stretch or collapse in
 * flex/grid controls. Context-specific filters for dark surfaces live in
 * post-template.css and are intentionally not overridden here. */
:where(
  .iriswa-site-search__icon,
  .iriswa-member-access__icon,
  .iriswa-site-menu-toggle__icon,
  .iriswa-action-card__icon img,
  .iriswa-membership-v2__path-cta-icon,
  .iriswa-contact-info-card__icon img,
  .iriswa-contact-hero__icon,
  .iriswa-company-inline-icon,
  .iriswa-waste-post-card__link img
) {
  display: block;
  flex: 0 0 auto;
  max-width: 100%;
  object-fit: contain;
}

:where(
  .iriswa-action-card__icon img,
  .iriswa-membership-v2__path-cta-icon,
  .iriswa-contact-info-card__icon img,
  .iriswa-contact-hero__icon,
  .iriswa-company-inline-icon,
  .iriswa-waste-post-card__link img
) {
  height: auto;
}

/* Keep a visible, non-colour-only focus treatment for image-backed controls. */
:where(
  a:has(> img),
  button:has(> img)
):focus-visible {
  outline: 3px solid var(--color-focus-ring, rgba(16, 185, 129, 0.72));
  outline-offset: 3px;
}
