/**
 * NIDO HOME — Font CORS Fix
 * 
 * Override Elementor's hardcoded newdev2.nidohome.eu URLs
 * Use relative paths instead of absolute cross-origin URLs
 * 
 * Drop this file into: /wp-content/themes/popularfx-child/assets/css/nido-font-cors-fix.css
 * Then enqueue in functions.php at priority 15 (after Elementor, before custom CSS)
 */

/* Override Sen font faces — use relative paths to avoid CORS */
@font-face {
  font-family: 'Sen500';
  src: url('/wp-content/uploads/2025/04/Sen-Medium-500.woff2') format('woff2'),
       url('/wp-content/uploads/2025/04/Sen-Medium-500.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sen400';
  src: url('/wp-content/uploads/2025/04/Sen-Regular-400.woff2') format('woff2'),
       url('/wp-content/uploads/2025/04/Sen-Regular-400.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sen600';
  src: url('/wp-content/uploads/2025/04/Sen-SemiBold-600.woff2') format('woff2'),
       url('/wp-content/uploads/2025/04/Sen-SemiBold-600.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sen700';
  src: url('/wp-content/uploads/2025/04/Sen-Bold-700.woff2') format('woff2'),
       url('/wp-content/uploads/2025/04/Sen-Bold-700.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sen800';
  src: url('/wp-content/uploads/2025/04/Sen-ExtraBold-800.woff2') format('woff2'),
       url('/wp-content/uploads/2025/04/Sen-ExtraBold-800.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Fallback: ensure Sen fonts are used with correct weights */
body, 
.elementor-kit-318 {
  font-family: 'Sen400', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

h1, h2, h3, h4, h5, h6,
.elementor-kit-318 h1,
.elementor-kit-318 h2,
.elementor-kit-318 h3,
.elementor-kit-318 h4,
.elementor-kit-318 h5,
.elementor-kit-318 h6 {
  font-family: 'Sen700', 'Sen600', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Ensure Sen fonts override Elementor's hardcoded rules */
.elementor-kit-318 h5,
.elementor-kit-318 h6,
.elementor-kit-318 label {
  font-family: 'Sen600', 'Sen500', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}
