/* ==========================================================================
   Instituto Tressê - Design Tokens & Foundations
   Inspirado na linguagem visual técnica do Asimov DS, com suporte total a
   Light Mode (Institucional / Educação) e Dark Mode (Sofisticado / Noturno).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tipografia Local (Licença OFL)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin-400-normal.woff2') format('woff2');
}

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

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

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

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

@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-serif-latin-400-italic.woff2') format('woff2');
}

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

/* --------------------------------------------------------------------------
   Tokens Base (Independentes de Tema)
   -------------------------------------------------------------------------- */
:root {
  /* Fontes */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-display: 'Voltaire', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Espaçamento */
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */

  /* Espaçamento vertical adaptativo entre seções principais (Dobras) */
  --section-spacing-y: clamp(4rem, 8vh, 7.5rem);
  --section-header-gap: clamp(2rem, 4vh, 3.5rem);

  /* Dimensões de contêiner compartilhadas */
  --container-max: 1200px;
  --container-padding: clamp(1rem, 4vw, 2.5rem);

  /* Raios de borda (Border Radius) */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transições padrão */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-smooth: 350ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Identidade do Instituto Tressê (Teal / Verde Água Sofisticado) */
  --accent-hue: 172;
  --ui-accent: #0d9488;
  --ui-accent-dark: #0f766e;
  --ui-accent-light: #14b8a6;
  --ui-accent-glow: #2dd4bf;
  --ui-accent-rgb: 13, 148, 136;
}

/* --------------------------------------------------------------------------
   Tema Claro (Light Mode - Padrão Institucional)
   -------------------------------------------------------------------------- */
:root,
[data-theme="light"] {
  color-scheme: light;

  /* Superfícies */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.85);

  /* Texto */
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --text-inverse: #ffffff;

  /* Bordas */
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-medium: rgba(15, 23, 42, 0.16);
  --border-accent: rgba(13, 148, 136, 0.35);

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 20px rgba(13, 148, 136, 0.18);

  /* Botões e Interação */
  --btn-primary-bg: #0d9488;
  --btn-primary-text: #ffffff;
  --btn-primary-hover: #0f766e;
  --btn-secondary-bg: #ffffff;
  --btn-secondary-text: #0f172a;
  --btn-secondary-border: rgba(15, 23, 42, 0.15);
  --btn-secondary-hover: #f8fafc;
}

/* --------------------------------------------------------------------------
   Tema Escuro (Dark Mode - Estética Noturna & Fluida)
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  color-scheme: dark;

  /* Superfícies */
  --bg-page: #050505;
  --bg-surface: #0c0f12;
  --bg-surface-elevated: #13181e;
  --bg-subtle: #161c24;
  --bg-glass: rgba(12, 15, 18, 0.82);

  /* Texto */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --text-inverse: #050505;

  /* Bordas */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-accent: rgba(45, 212, 191, 0.35);

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 24px rgba(45, 212, 191, 0.22);

  /* Botões e Interação */
  --btn-primary-bg: #14b8a6;
  --btn-primary-text: #050505;
  --btn-primary-hover: #2dd4bf;
  --btn-secondary-bg: rgba(255, 255, 255, 0.05);
  --btn-secondary-text: #f8fafc;
  --btn-secondary-border: rgba(255, 255, 255, 0.12);
  --btn-secondary-hover: rgba(255, 255, 255, 0.1);
}


