/* Alcoweb Font Loader – Avenir LT Pro (body) + Roca Two (headings)
   Works on frontend + Gutenberg editor (FSE / Twenty Twenty-Five child).
*/

/* ------------------------
   Avenir LT Pro (OTF)
   ------------------------ */
@font-face {
  font-family: 'Avenir LT Pro';
  src: url('/wp-content/plugins/alcoweb-font-loader/assets/fonts/avenir/AvenirLTProLight.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Avenir LT Pro';
  src: url('/wp-content/plugins/alcoweb-font-loader/assets/fonts/avenir/AvenirLTProRoman.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Avenir LT Pro';
  src: url('/wp-content/plugins/alcoweb-font-loader/assets/fonts/avenir/AvenirLTProMedium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Avenir LT Pro';
  src: url('/wp-content/plugins/alcoweb-font-loader/assets/fonts/avenir/AvenirLTProHeavy.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Avenir LT Pro';
  src: url('/wp-content/plugins/alcoweb-font-loader/assets/fonts/avenir/AvenirLTProLightOblique.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Avenir LT Pro';
  src: url('/wp-content/plugins/alcoweb-font-loader/assets/fonts/avenir/AvenirLTProOblique.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Avenir LT Pro';
  src: url('/wp-content/plugins/alcoweb-font-loader/assets/fonts/avenir/AvenirLTProMediumOblique.otf') format('opentype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Avenir LT Pro';
  src: url('/wp-content/plugins/alcoweb-font-loader/assets/fonts/avenir/AvenirLTProHeavyOblique.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ------------------------
   Roca Two (TTF)
   ------------------------ */
@font-face {
  font-family: 'Roca Two';
  src: url('/wp-content/plugins/alcoweb-font-loader/assets/fonts/roca/fonnts.com-Roca_Two_Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roca Two';
  src: url('/wp-content/plugins/alcoweb-font-loader/assets/fonts/roca/fonnts.com-Roca_Two_Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ------------------------
   Apply fonts (frontend + editor)
   ------------------------ */
:root {
  --awc-font-body: 'Avenir LT Pro', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --awc-font-headings: 'Roca Two', ui-serif, Georgia, 'Times New Roman', serif;
}

/* Frontend */
body {
  font-family: var(--awc-font-body) !important;
}

h1, h2, h3, h4, h5, h6,
.wp-block-heading,
.wp-site-title,
.wp-block-site-title,
.wp-block-post-title,
.wp-block-query-title {
  font-family: var(--awc-font-headings) !important;
}

/* Block editor */
.editor-styles-wrapper {
  font-family: var(--awc-font-body) !important;
}

.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4,
.editor-styles-wrapper h5,
.editor-styles-wrapper h6,
.editor-styles-wrapper .wp-block-heading,
.editor-styles-wrapper .wp-block-site-title,
.editor-styles-wrapper .wp-block-post-title,
.editor-styles-wrapper .wp-block-query-title {
  font-family: var(--awc-font-headings) !important;
}
