/* HelveticaNeueLT Pro Font Faces - Multiple Formats for Maximum Compatibility */

@font-face {
  font-family: 'HelveticaNeueLT Pro';
  src: url('../media/HelveticaNeueLT-Pro-Md.woff2') format('woff2'),
       url('../media/HelveticaNeueLT-Pro-Md.woff') format('woff'),
       url('../media/HelveticaNeueLT-Pro-Md.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Montserrat Font Faces for Header */

@font-face {
  font-family: 'Montserrat';
  src: url('../../../wp-content/themes/valis/dist/assets/fonts/PPMondwest-Regular.woff2') format('woff2'),
       url('../../../wp-content/themes/valis/dist/assets/fonts/PPMondwest-Regular.woff') format('woff'),
       url('../../../wp-content/themes/valis/dist/assets/fonts/PPMondwest-Regular.otf') format('opentype');
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../../../wp-content/themes/valis/dist/assets/fonts/PPNeueBit-Bold.woff2') format('woff2'),
       url('../../../wp-content/themes/valis/dist/assets/fonts/PPNeueBit-Bold.woff') format('woff'),
       url('../../../wp-content/themes/valis/dist/assets/fonts/PPNeueBit-Bold.otf') format('opentype');
  font-weight: 700 900 1200;
  font-style: normal;
  font-display: swap;
}

/* CSS Custom Property for the font stack */
:root {
  --font-neue: 'HelveticaNeueLT Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* ENFORCED FONT APPLICATION - HIGH SPECIFICITY TO PREVENT OVERRIDES */

/* Universal enforcement - applies to everything */
* {
  font-family: var(--font-neue) !important;
}

/* Specific element enforcement for maximum coverage */
html,
body,
div,
span,
applet,
object,
iframe,
h1, h2, h3, h4, h5, h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video,
input,
textarea,
select,
button {
  font-family: var(--font-neue) !important;
}

/* Input and form elements often have their own font styles */
input,
textarea,
select,
button,
option {
  font-family: var(--font-neue) !important;
}

/* Pseudo-elements enforcement */
*::before,
*::after {
  font-family: var(--font-neue) !important;
}

/* HEADER EXCLUSION - Override the global enforcement for header */
.c-header,
.c-header *,
.c-header *::before,
.c-header *::after {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

/* Common framework class overrides */
.MuiTypography-root,
.ant-typography,
.chakra-text,
.text-base,
.font-sans,
.font-family,
[class*="font-"] {
  font-family: var(--font-neue) !important;
}

/* Bootstrap and common CSS framework overrides */
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4,
.lead,
.text-muted,
.text-primary,
.text-secondary,
.text-success,
.text-info,
.text-warning,
.text-danger,
.text-light,
.text-dark {
  font-family: var(--font-neue) !important;
}

/* Remove any existing font family declarations that might interfere */
body {
  font-family: var(--font-neue) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Media query to ensure font loads on all devices */
@media screen {
  * {
    font-family: var(--font-neue) !important;
  }
  
  /* Re-exclude header in media queries */
  .c-header,
  .c-header * {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
  }
}

/* Print styles to maintain font consistency */
@media print {
  * {
    font-family: var(--font-neue) !important;
  }
  
  /* Re-exclude header in print styles */
  .c-header,
  .c-header * {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
  }
}

/* Additional enforcement for dynamic content */
[style*="font-family"] {
  font-family: var(--font-neue) !important;
}

/* Re-exclude header from dynamic content */
.c-header [style*="font-family"] {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

/* Font-Neue Classes - For explicit styling */
.font-neue {
  font-family: var(--font-neue) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-neue-light {
  font-family: var(--font-neue) !important;
  font-weight: 300 !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-neue-regular {
  font-family: var(--font-neue) !important;
  font-weight: 400 !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-neue-medium {
  font-family: var(--font-neue) !important;
  font-weight: 500 !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-neue-bold {
  font-family: var(--font-neue) !important;
  font-weight: 700 !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Add this to your CSS file to exclude the signup button from global font enforcement */
#ce_SignUp_navMain,
#ce_SignUp_navMain *,
#ce_SignUp_navMain *::before,
#ce_SignUp_navMain *::after {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Monaco, Inconsolata, "Liberation Mono", "Courier New", monospace !important;
  font-size: 12px !important;
  line-height: 18px !important;
}

@media (min-width: 768px) {
  #ce_SignUp_navMain,
  #ce_SignUp_navMain * {
    font-size: 14px !important;
  }
}
#ce_SignUp_navMain,
#ce_SignUp_navMain * {
  font-family: monospace !important;
}