/*
Theme Name: Infonits Core
Theme URI: https://infonits.io/
Author: Infonits
Author URI: https://infonits.io/
Description: Lightweight Infonits child theme for Hello Elementor. Keeps Hello Elementor's proven layout/reset behavior while adding Poppins defaults and small compatibility/performance refinements for Infonits plugins.
Version: 1.1.1
Template: hello-elementor
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: infonits-core
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/*
 * IMPORTANT:
 * Do not add global layout, width, padding, heading margin, image sizing,
 * or box-model overrides here. Hello Elementor remains responsible for the
 * Elementor-compatible reset/layout baseline. This file only establishes the
 * Infonits default typeface and plugin inheritance.
 */

:root {
  --infonits-font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body,
button,
input,
select,
textarea {
  font-family: var(--infonits-font);
}

/* Keep Infonits plugin UI on the same brand typeface without touching layout. */
.infonits-core-theme .ifn-root,
.infonits-core-theme .ifn-root button,
.infonits-core-theme .ifn-root input,
.infonits-core-theme .ifn-root select,
.infonits-core-theme .ifn-root textarea,
.infonits-core-theme [class^="ifn-"],
.infonits-core-theme [class*=" ifn-"] {
  font-family: var(--infonits-font);
}


/*
 * Infonits Floating Navigation brand lock.
 * The navigation plugin exposes user-configurable CSS variables, and older
 * saved values can survive plugin/theme upgrades. Lock only the mobile morph
 * control to the Infonits logo navy so Hello/Elementor global accent colours
 * or stale plugin settings cannot tint it pink/red on touch or active states.
 */
.infonits-core-theme .ifn-root .ifn-toggle,
.infonits-core-theme .ifn-root .ifn-toggle:hover,
.infonits-core-theme .ifn-root .ifn-toggle:focus,
.infonits-core-theme .ifn-root .ifn-toggle:active,
.infonits-core-theme .ifn-root.is-menu-open .ifn-toggle,
.infonits-core-theme .ifn-root .ifn-toggle[aria-expanded="true"] {
  background: #073f69 !important;
  background-image: none !important;
  color: #ffffff !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.infonits-core-theme .ifn-root .ifn-toggle .ifn-morph-grid i,
.infonits-core-theme .ifn-root.is-menu-open .ifn-toggle .ifn-morph-grid i,
.infonits-core-theme .ifn-root .ifn-toggle[aria-expanded="true"] .ifn-morph-grid i {
  background: #ffffff !important;
  box-shadow: none !important;
}

.infonits-core-theme .ifn-root .ifn-toggle:focus-visible {
  outline: 2px solid rgba(7, 63, 105, 0.34) !important;
  outline-offset: 3px;
}
