/**
 * NuMart Base - Global Base Styles
 * Shared across all NuMart themes
 */

/* ========================================
   CSS RESET & DEFAULTS
   ======================================== */
/* box-sizing: set once in critical.css (inlined) to avoid duplicate rules */

/* Apply default font GLOBALLY — uses the design token so the Site Customizer
   can override it via :root:root { --nm-font-family-base: … } */
*,
*::before,
*::after,
html,
body,
input,
button,
select,
textarea,
h1, h2, h3, h4, h5, h6,
p, a, span, div, li, td, th,
label, legend {
  font-family: var(--nm-font-family-base, 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif);
}

/* Ensure Font Awesome 6 icons use their own font - higher specificity */
.fa, .fas, .far, .fab, .fal, .fad, .fav-icon, .fa-solid, .fa-regular, .fa-brands, .fa-light,
[class^="fa-"]:not([class*="fa-spin"]):not([class*="fa-pulse"]),
[class*=" fa-"]:not([class*="fa-spin"]):not([class*="fa-pulse"]),
i.fa, i.fas, i.far, i.fab, i.fal, i.fad, i.fa-solid, i.fa-regular, i.fa-brands {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", FontAwesome !important;
}

.fa::before, .fas::before, .far::before, .fab::before, .fal::before, .fad::before,
.fav-icon::before, .fa-solid::before, .fa-regular::before, .fa-brands::before, .fa-light::before,
[class^="fa-"]::before, [class*=" fa-"]::before,
i.fa::before, i.fas::before, i.far::before, i.fab::before {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", FontAwesome !important;
}

/* Swiper icons */
.swiper-button-prev::after,
.swiper-button-next::after {
  font-family: swiper-icons !important;
}

/* Ensure filled/solid icons use correct font weight (900) */
.fas, .fa-solid, .fas::before, .fa-solid::before {
  font-weight: 900 !important;
}

/* Ensure outline/regular icons use correct font weight (400) */
.far, .fa-regular, .far::before, .fa-regular::before {
  font-weight: 400 !important;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* body reset (margin, line-height, color, background) set in critical.css; avoid duplicate/overridden rules here */
body {
  margin: 0;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--nm-font-weight-bold, 700);
  line-height: 1.3;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--nm-link-color, #0066cc);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--nm-link-hover-color, #004499);
}

/* ========================================
   IMAGES & MEDIA
   ======================================== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   FORMS
   ======================================== */
input,
button,
select,
textarea {
  font-size: inherit;
}

button {
  cursor: pointer;
}

/* ========================================
   UTILITIES
   ======================================== */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}


/* ========================================
   RTL SUPPORT
   ======================================== */
[dir="rtl"] {
  text-align: right;
}

