/* ==========================================================================
   Palhete Pizzaria — Design System Tokens
   Paleta Oficial:
     Barbecue : #1C0004
     Vinho    : #3D0808
     Mostarda : #FF9501
     Massa    : #EADECE
   Tipografias Oficiais:
     Interface : Poppins (400, 500, 600, 700)
     Editorial : Romantic (400, 700)
   ========================================================================== */

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Romantic";
  src: url("../fonts/romantic-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Romantic";
  src: url("../fonts/romantic-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* --- Cores Oficiais da Marca --- */
  --brand-barbecue: #1C0004;
  --brand-barbecue-soft: #2A060A;
  --brand-vinho: #3D0808;
  --brand-vinho-hover: #561114;
  --brand-vinho-active: #2E0506;
  --brand-vinho-tint: #F7ECEB;
  --brand-vinho-border: #DFC2C0;

  --brand-mostarda: #FF9501;
  --brand-mostarda-hover: #E68200;
  --brand-mostarda-text: #9E4F00; /* WCAG AA >= 5.5:1 sobre branco */
  --brand-mostarda-tint: #FFF4E2;
  --brand-mostarda-border: #F5CE93;

  --brand-massa: #EADECE;
  --brand-massa-soft: #F3ECE2;

  /* --- Neutras & Superfícies (conforto visual operacional) --- */
  --bg-canvas: #FAF7F2;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F5EFE6;
  --bg-hover: #EFE7DC;

  --border-subtle: #E5D9CA;
  --border-default: #D3C3B0;
  --border-strong: #A6907E;

  --text-primary: #211012;
  --text-secondary: #5E4B45;
  --text-muted: #76635C;
  --text-on-dark: #FDF8F2;
  --text-on-dark-muted: #D8C5B8;

  /* --- Cores Semânticas --- */
  --status-success-bg: #EAF6EE;
  --status-success-border: #B9DFC6;
  --status-success-text: #1B5A36;
  --status-success-dot: #23864E;

  --status-warning-bg: #FFF4E2;
  --status-warning-border: #F2CB8D;
  --status-warning-text: #854400;
  --status-warning-dot: #E07D00;

  --status-danger-bg: #FCECEB;
  --status-danger-border: #EBB8B4;
  --status-danger-text: #9B1E23;
  --status-danger-dot: #C93036;

  --status-info-bg: #EDF3FA;
  --status-info-border: #C3D7EE;
  --status-info-text: #1E4B7A;
  --status-info-dot: #2B6CB0;

  --status-neutral-bg: #EFEAE4;
  --status-neutral-border: #D9CFC4;
  --status-neutral-text: #564741;
  --status-neutral-dot: #8B7B74;

  --whatsapp-bg: #18794E;
  --whatsapp-hover: #13633F;
  --whatsapp-tint: #E9F7EF;
  --whatsapp-border: #B2DFC5;
  --whatsapp-text: #125E3B;

  /* --- Tipografia --- */
  --font-sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Romantic", Georgia, "Times New Roman", serif;

  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.84rem;      /* ~13.5px */
  --text-base: 0.9375rem;  /* 15px */
  --text-md: 1.05rem;      /* ~17px */
  --text-lg: 1.25rem;      /* 20px */
  --text-xl: 1.55rem;      /* ~25px */
  --text-2xl: 2rem;        /* 32px */

  /* --- Espaçamentos --- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;

  /* --- Raios de borda --- */
  --radius-xs: 0.375rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-pill: 9999px;

  /* --- Sombras suaves --- */
  --shadow-xs: 0 1px 2px rgba(28, 0, 4, 0.05);
  --shadow-sm: 0 2px 8px rgba(28, 0, 4, 0.06), 0 1px 2px rgba(28, 0, 4, 0.04);
  --shadow-md: 0 10px 28px rgba(28, 0, 4, 0.1), 0 2px 6px rgba(28, 0, 4, 0.05);
  --shadow-lg: 0 20px 44px rgba(28, 0, 4, 0.18), 0 4px 12px rgba(28, 0, 4, 0.08);

  /* --- Foco Acessível (WCAG 2.2 AA) --- */
  --focus-ring: 0 0 0 2px var(--bg-surface), 0 0 0 4px var(--brand-mostarda);
  --focus-ring-dark: 0 0 0 2px var(--brand-barbecue), 0 0 0 4px var(--brand-mostarda);

  /* --- Dimensões de Layout --- */
  --sidebar-width: 16rem;
  --topbar-height: 3.75rem;
  --container-max: 74rem;

  /* --- Transições --- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 140ms;
  --dur-base: 220ms;
}
