/* ===== Self-hosted Montserrat (variable font) ===== */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../assets/fonts/montserrat-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../assets/fonts/montserrat-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ===== Variables ===== */
:root {
    /* QTAC Colors */
    --qtac-red: #C41E3A;
    --qtac-red-dark: #A01830;
    --qtac-blue: #007CBA;
    --qtac-blue-dark: #00689D;
    --qtac-grey: #6B7280;
    --qtac-grey-light: #F3F4F6;
    --qtac-grey-border: #D1D5DB;
    --qtac-shadow: #1F2937;
    --qtac-shadow-dark: #111827;

    /* Secondary colors */
    --qtac-indigo: #4F46E5;
    --qtac-iris: #8B5CF6;
    --qtac-mulberry: #C026D3;
    --qtac-viridian: #059669;
    --qtac-christi: #84CC16;
    --qtac-mango: #F59E0B;

    --qtac-purple: #7C3653;

    /* Semantic */
    --color-text: #1F2937;
    --color-text-muted: #6B7280;
    --color-bg: #F9FAFB;
    --color-white: #FFFFFF;
    --color-border: #E5E7EB;
    --color-error: #DC2626;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-4xl: 4.5rem;

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;

    /* Font */
    --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scrollbar-gutter: stable;
    width: 100%;
    overflow-x: hidden;
}

/* Visually hidden but accessible to screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== Base ===== */
html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.5;
    width: 100%;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/icons/bg.svg') no-repeat center center / cover;
    z-index: -1;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; }

a {
    color: var(--qtac-red);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

ul {
    padding-left: var(--space-lg);
}
