/* 
 * Local Fonts (No Google CDN)
 * Performance-first with WOFF2 + font-display: swap
 */

/* ===== Inter Variable Font ===== */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Variable.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-display: swap;
    font-style: normal;
}

/* ===== Merriweather (Serif) ===== */
@font-face {
    font-family: 'Merriweather';
    src: url('../fonts/Merriweather-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'Merriweather';
    src: url('../fonts/Merriweather-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
    font-style: normal;
}

/* ===== Roboto (Sans-Serif) ===== */
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
    font-style: normal;
}

/* ===== Space Grotesk (Variable TTF) ===== */
@font-face {
    font-family: 'Space Grotesk';
    src: url('../fonts/SpaceGrotesk-Variable.ttf') format('truetype');
    font-weight: 300 700;
    font-display: swap;
    font-style: normal;
}

/* ===== Theme Presets ===== */

/* Modern theme: Clean, contemporary (default) */
[data-theme="modern"] {
    --font-heading: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Trust theme: Professional, trustworthy */
[data-theme="trust"] {
    --font-heading: 'Merriweather', Georgia, 'Times New Roman', serif;
    --font-body: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Tech theme: Modern, technical */
[data-theme="tech"] {
    --font-heading: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: -0.01em;
    /* Slightly tighter for tech feel */
}

/* ===== Apply Fonts ===== */

body {
    font-family: var(--font-body, 'Inter', sans-serif);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading, 'Inter', sans-serif);
}

/* Button and CTA elements */
button,
.btn,
a.button {
    font-family: var(--font-body, 'Inter', sans-serif);
}