/* * Prestum - Base Styles & Design Tokens
 * Baseado no Style Guide Azure Meridian
 */

/* Inter - 400 (Regular) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/inter-v20-latin-regular.woff2') format('woff2');
}

/* Inter - 600 (Semi-Bold) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/inter-v20-latin-600.woff2') format('woff2');
}

/* Inter - 700 (Bold) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/inter-v20-latin-700.woff2') format('woff2');
}

/* Inter - 800 (Extra-Bold) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../fonts/inter-v20-latin-800.woff2') format('woff2');
}

/* Material Symbols Outlined */
@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    font-weight: 300;
    font-display: block;
    src: url('../fonts/Material-Symbols-Outlined.woff2') format('woff2');
}

/* Configuração obrigatória para os ícones funcionarem localmente */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    font-feature-settings: 'liga';
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

::selection {
    background-color: var(--primary);
    color: var(--on-primary);
}

:root {
    /* Cores Principais */
    --primary: #003f87;
    --primary-container: #0056b3;
    --on-primary: #ffffff;

    /* Cores Secundárias e Terciárias */
    --secondary: #3D4D71;
    --tertiary: #004c17;
    --on-tertiary: #ffffff;
    --tertiary-container: #006722;

    /* Superfícies e Backgrounds */
    --background: #f9f9ff;
    --surface: #f9f9ff;
    --on-surface: #191c21;
    --surface-container-low: #f2f3fc;
    --surface-container: #ededf6;
    --surface-container-highest: #e1e2ea;
    --surface-container-lowest: #ffffff;

    /* Utilitários */
    --outline: #727784;
    --outline-variant: #c2c6d4;
    --error: #ba1a1a;
    --glass-blur: blur(20px);
}

/* --- Container Fluido --- */
.container {
    width: 100%;
    max-width: 1324px;
    margin: 0 auto;
    /* Fluid Padding: 1rem (16px) no mobile, até 2rem (32px) no desktop */
    padding: 0 clamp(1rem, 5vw, 2rem);
}

@media screen and (min-width: 1240px) {
    .container {
        max-width: 1440px;
    }
}

/* --- Tipografia Global & Fluida --- */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--background);
    color: var(--on-surface);
    line-height: 1.625;
    /* Tamanho do texto base fluido: 16px até 18px */
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    color: var(--primary);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.2;
}

/* Fluid Type Scale (Escala Tipográfica Líquida) */
h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
}

h4 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

/* --- Componentes Globais --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Fluid Padding: Menor no mobile, maior no desktop */
    padding: clamp(0.6rem, 2vw, 0.75rem) clamp(1.5rem, 4vw, 2rem);
    border-radius: 0.5rem;
    /* Fluid Font-size */
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 700;
    transition: transform 0.2s, background-color 0.2s;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn:active {
    transform: scale(0.95);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--on-primary);
}

.btn-primary:hover {
    background-color: var(--tertiary);
}

.btn-tertiary {
    background-color: var(--tertiary);
    color: var(--on-tertiary);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
}

/* --- Global Animated Links --- */
a {
    color: inherit;
    text-decoration: none;
    position: relative;
}

a::after {
    content: '';
    position: absolute; 
    background-color: var(--primary);
    width: 0;
    height: 1.9px;
    bottom: -2px;
    left: 0;
    transition: width 0.3s ease;
}

a:hover::after,
a.active::after {
    width: 100%;
}

/* Desabilita a animação em botões e ícones sociais */
.btn::after,
.header-socials a::after,
.social-icons a::after {
    display: none;
}