/* ==========================================================================
   TV-EDUC · BROADCAST DESIGN SYSTEM TOKENS
   Estetica 100% Papel Aquarela Claro (#FAF7F2) · Educandario Euripedes
   ========================================================================== */

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

@font-face {
    font-family: 'Nomixa';
    src: url('../fonts/Nomixa-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

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

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

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

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

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

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

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

@font-face {
    font-family: 'SweetFridayThingScript';
    src: url('../fonts/SweetFridayThing-Script.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SweetFridayThingCaps';
    src: url('../fonts/SweetFridayThing-Caps.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

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

:root {
    /* Paleta Oficial Educandario Euripedes / Papel Aquarela */
    --brand-orange: #EC6A08;
    --brand-orange-bright: #F28333;
    --brand-orange-deep: #BE5804;
    --brand-green: #A0BF3A;
    --brand-green-bar: #98C021;
    --brand-sky: #69A7DD;
    --brand-magenta: #C51A70;
    --brand-ochre: #CF6A1D;
    --brand-graphite: #505050;
    --brand-ink: #1E1E1E;
    --brand-paper: #FAF7F2;
    --brand-paper-warm: #F4EFE6;
    --brand-paper-tint: #EFE8DC;
    --brand-surface: #FFFFFF;

    /* Aliases de compatibilidade com index.php e parear.php */
    --bg-paper: #FAF7F2;
    --bg-paper-alt: #F4EFE6;
    --bg-surface: #FFFFFF;
    --ink-primary: #1E1E1E;
    --ink-secondary: #505050;
    --ink-muted: #6E685F;
    --border-subtle: #E3DBD0;
    --border-ink-soft: rgba(30, 30, 30, 0.12);
    --accent-terracotta: #EC6A08;

    /* Ativos de Pincelada Organica */
    --brush-splash-green: url('../brand/bpt03_splash_green.webp');
    --brush-ribbon-orange: url('../brand/bpt08_ribbon_orange.webp');
    --brush-triple: url('../brand/bpt11_triple_brush.webp');
    --brush-cloud-cream: url('../brand/bpt19_cloud_cream.webp');
    --brush-underline-svg: url('../illustrations/brush-underline.svg');
    --badge-starburst-svg: url('../illustrations/badge-starburst.svg');

    /* Textura Editorial Papel Aquarela (Zero requisicao externa) */
    --paper-grain-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='%23CF6A1D' fill-opacity='0.032'%3E%3Ccircle cx='18' cy='24' r='1.3'/%3E%3Ccircle cx='82' cy='14' r='1'/%3E%3Ccircle cx='146' cy='38' r='1.5'/%3E%3Ccircle cx='44' cy='92' r='1.1'/%3E%3Ccircle cx='118' cy='84' r='1.4'/%3E%3Ccircle cx='162' cy='132' r='1.1'/%3E%3Ccircle cx='28' cy='154' r='1.5'/%3E%3Ccircle cx='96' cy='162' r='1.2'/%3E%3C/g%3E%3Cg fill='%23505050' fill-opacity='0.024'%3E%3Ccircle cx='56' cy='48' r='0.9'/%3E%3Ccircle cx='132' cy='62' r='1'/%3E%3Ccircle cx='72' cy='126' r='1.1'/%3E%3Ccircle cx='152' cy='168' r='0.9'/%3E%3C/g%3E%3C/svg%3E");
    --paper-watercolor-wash:
        radial-gradient(circle at 8% 12%, rgba(236, 106, 8, 0.06) 0%, rgba(236, 106, 8, 0) 44%),
        radial-gradient(circle at 92% 16%, rgba(160, 191, 58, 0.07) 0%, rgba(160, 191, 58, 0) 42%),
        radial-gradient(circle at 86% 88%, rgba(105, 167, 221, 0.06) 0%, rgba(105, 167, 221, 0) 45%),
        radial-gradient(circle at 16% 86%, rgba(197, 26, 112, 0.045) 0%, rgba(197, 26, 112, 0) 40%);

    /* Familias Tipograficas */
    --font-sans: 'Nomixa', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Nomixa', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-friendly: 'EverydayKind', 'Nomixa', cursive, sans-serif;
    --font-pencil-script: 'SweetFridayThingScript', 'EverydayKind', cursive, sans-serif;
    --font-pencil-caps: 'SweetFridayThingCaps', 'Nomixa', sans-serif;

    /* Geometria do Canvas Broadcast 16:9 */
    --tv-width: 1920px;
    --tv-height: 1080px;
    --tv-overscan-pad: 0px;
    --tv-safe-x: 88px;
    --tv-safe-top: 64px;
    --tv-bar-height: 104px;

    /* Curvas de Animacao Compositor-Only */
    --ease-editorial: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-gentle: cubic-bezier(0.33, 1, 0.68, 1);
    --ease-snappy: cubic-bezier(0.16, 1, 0.3, 1);

    /* Sombras Organicas Leves (Sem Blur de Vidro) */
    --shadow-paper-sheet: 0 18px 38px -18px rgba(30, 30, 30, 0.14), 0 4px 12px -4px rgba(80, 80, 80, 0.08);
    --shadow-polaroid: 0 22px 44px -20px rgba(30, 30, 30, 0.18), 0 3px 8px rgba(30, 30, 30, 0.07);
    --shadow-focus-ring: 0 0 0 4px #FAF7F2, 0 0 0 8px #EC6A08;
}

/* Reset Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: var(--brand-paper);
    color: var(--brand-ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    background-color: var(--brand-paper);
    background-image: var(--paper-grain-svg), var(--paper-watercolor-wash);
    color: var(--brand-ink);
    font-family: var(--font-sans);
    overflow-x: hidden;
}

img,
svg,
video,
canvas {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd {
    margin: 0;
}

ul, ol {
    padding: 0;
    list-style: none;
}

[hidden] {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Recorte Papel Artesanal Reutilizavel (Substitui Cartoes Arredondados de Dashboard) */
.paper-torn-sheet {
    background-color: var(--brand-surface);
    box-shadow: var(--shadow-paper-sheet);
    clip-path: polygon(
        0.4% 1.2%, 24% 0%, 58% 0.8%, 89% 0.1%, 99.7% 0.9%,
        100% 42%, 99.4% 78%, 99.9% 99.1%,
        76% 99.8%, 41% 99.1%, 12% 100%, 0.2% 99.2%,
        0.6% 64%, 0% 27%
    );
}

/* Protecao Contra a Armadilha do Windows OS Reduced Motion:
   Se data-awwwards-motion="active" estiver no <html>, preferencias do SO nao matam a TV.
   Se ?reducedMotion=1 mudar o atributo para "reduced" (ou remover "active"), desliga as animacoes. */
html[data-awwwards-motion="reduced"] *,
html[data-awwwards-motion="reduced"] *::before,
html[data-awwwards-motion="reduced"] *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
}

@media (prefers-reduced-motion: reduce) {
    html:not([data-awwwards-motion="active"]) *,
    html:not([data-awwwards-motion="active"]) *::before,
    html:not([data-awwwards-motion="active"]) *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
