/* ==========================================================================
   Typography System - Rivoraa Decor
   ========================================================================== */

/* Alternox font family declaration */
@font-face {
    font-family: 'Alternox';
    src: url('../fonts/Alternox Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Alternox';
    src: url('../fonts/Alternox Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Alternox';
    src: url('../fonts/Alternox Semi Bold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Alternox';
    src: url('../fonts/Alternox Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Alternox';
    src: url('../fonts/Alternox Extra Bold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* Montserrat font family declaration */
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* CSS variables defined in :root */
:root {
    --font-primary: 'Montserrat', sans-serif;
    --font-heading: 'Alternox', sans-serif;
    
    /* Map theme fonts to typography variables */
    --tp-ff-body: var(--font-primary);
    --tp-ff-heading: var(--font-heading);
    --tp-ff-inter: var(--font-primary);
    --tp-ff-p: var(--font-primary);
    --tp-ff-poppins: var(--font-primary);
    --tp-ff-onest: var(--font-primary);
    --tp-ff-platform: var(--font-heading);
    --tp-ff-mango: var(--font-heading);
    --tp-ff-mango-thin: var(--font-heading);
    --tp-ff-mango-light: var(--font-heading);
    --tp-ff-mango-medium: var(--font-heading);
    --tp-ff-mango-semibold: var(--font-heading);
    --tp-ff-mango-bold: var(--font-heading);
    --tp-ff-clash-light: var(--font-heading);
    --tp-ff-clash-regular: var(--font-heading);
    --tp-ff-clash-medium: var(--font-heading);
    --tp-ff-clash-semibold: var(--font-heading);
    --tp-ff-clash-bold: var(--font-heading);
    --tp-ff-dirtyline: var(--font-heading);
    --tp-ff-phudu: var(--font-heading);
    --tp-ff-teko: var(--font-heading);
}

/* Global Typography Styles */
body, p, input, select, textarea, button {
    font-family: var(--font-primary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

/* Specific elements rules */
.tp-header-menu>nav>ul>li>a {
    font-family: var(--font-primary) !important;
    font-weight: 500 !important;
}

.port-showcase-slider-title, 
.port-showcase-slider-title span {
    font-family: var(--font-heading) !important;
}

/* Buttons */
.tp-btn, .tp-btn-white-border, .tp-btn-light-bg, button, .btn {
    font-family: var(--font-primary) !important;
}
