/* ==========================================================
   Manual da Marca Sicredi — Tipografia & Paleta Oficial
   ========================================================== */

/* Exo 2.0 */
@font-face {
  font-family: 'Exo 2';
  src: url('/assets/fonts/Exo2.0-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Exo 2';
  src: url('/assets/fonts/Exo2.0-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Exo 2';
  src: url('/assets/fonts/Exo2.0-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Exo 2';
  src: url('/assets/fonts/Exo2-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Exo 2';
  src: url('/assets/fonts/Exo2-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Exo 2';
  src: url('/assets/fonts/Exo2.0-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Exo 2';
  src: url('/assets/fonts/Exo2.0-BoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Exo 2';
  src: url('/assets/fonts/Exo2.0-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Nunito */
@font-face {
  font-family: 'Nunito';
  src: url('/assets/fonts/Nunito-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('/assets/fonts/Nunito-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('/assets/fonts/Nunito-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('/assets/fonts/Nunito-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('/assets/fonts/Nunito-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('/assets/fonts/Nunito-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Monitor Con Pro */
@font-face {
  font-family: 'Monitor Con Pro';
  src: url('/assets/fonts/MonitorConPro-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Monitor Con Pro';
  src: url('/assets/fonts/MonitorConPro-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Monitor Con Pro';
  src: url('/assets/fonts/MonitorConPro-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Calibri: fonte de sistema oficial (sem baixar 2.3MB de TTF) */

:root {
  --sicredi-green: #3FA110;
  --sicredi-green-hover: #34870D;
  --sicredi-dark-green: #146E37;
  --sicredi-dark-green-hover: #0F582B;
  --sicredi-white: #FFFFFF;
  --sicredi-neutral-light: #D7E6C8;
  --sicredi-neutral-dark: #5A645A;
  --sicredi-black: #141714;
  --sicredi-bg: #F9FAF8;
  --sicredi-border: #E4EAE0;
  --sicredi-danger: #C62828;
  --sicredi-danger-hover: #A51E1E;

  --font-display: 'Exo 2', Calibri, Arial, sans-serif;
  --font-body: 'Nunito', Calibri, Arial, sans-serif;
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--sicredi-bg);
  color: var(--sicredi-black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.2;
}

button,
input {
  font-family: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* Botões limpos e acessíveis */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  text-decoration: none;
  user-select: none;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--sicredi-green);
  color: var(--sicredi-white);
}

.btn-primary:hover:not(:disabled) {
  background: var(--sicredi-green-hover);
}

.btn-white {
  background: var(--sicredi-white);
  color: var(--sicredi-dark-green);
  border-color: var(--sicredi-border);
}

.btn-white:hover:not(:disabled) {
  background: #F1F5EE;
}

.btn-outline {
  background: transparent;
  color: var(--sicredi-dark-green);
  border-color: var(--sicredi-dark-green);
}

.btn-outline:hover:not(:disabled) {
  background: rgba(20, 110, 55, 0.06);
}

.btn-danger {
  background: var(--sicredi-danger);
  color: var(--sicredi-white);
}

.btn-danger:hover:not(:disabled) {
  background: var(--sicredi-danger-hover);
}

/* Toast discreto */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(90vw, 380px);
  pointer-events: none;
}

.toast {
  background: var(--sicredi-black);
  color: var(--sicredi-white);
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.toast.toast-error {
  background: var(--sicredi-danger);
}
