/**
 * Figtree Font Family
 * Primary font with Open Sans as fallback
 * Font Display: swap for better performance
 */

/* Figtree Light - 300 */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/figtree-300.ttf') format('truetype');
}

/* Figtree Regular - 400 */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/figtree-400.ttf') format('truetype');
}

/* Figtree Medium - 500 */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/figtree-500.ttf') format('truetype');
}

/* Figtree SemiBold - 600 */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/figtree-600.ttf') format('truetype');
}

/* Figtree Bold - 700 */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/figtree-700.ttf') format('truetype');
}

/**
 * Global Font Stack
 * Figtree as primary
 */
:root {
  --font-primary: 'Figtree', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Apply primary font globally to all text content */
body,
html,
p,
div,
span,
a,
li,
td,
th,
blockquote,
pre,
code,
label,
input,
textarea,
select,
button {
  font-family: var(--font-primary) !important;
}

/* Ensure all text inherits Figtree */
* {
  font-family: inherit;
}

/* Exclude WordPress admin bar icons from font override - only icon elements, not text */
#wpadminbar .ab-icon:before,
#wpadminbar .ab-item:before,
#wpadminbar .dashicons,
#wpadminbar .dashicons:before,
.dashicons,
.dashicons:before,
.dashicons-before:before,
[class*="dashicons"]:before {
  font-family: dashicons !important;
}
