/**
 * Empório Sabor Mineiro — design tokens (cópia para deploy da pasta em-breve)
 * Logo de referência: imgs/logo_transp.png
 * Na página: <link rel="stylesheet" href="tokens.css" />
 */

@import url("https://fonts.googleapis.com/css2?family=Great+Vibes&family=Lora:ital,wght@0,400;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400&display=swap");

:root {
  /* --- Core (marca) --- */
  --color-primary: #7b1113;
  --color-primary-hover: #5f0d0f;
  --color-primary-active: #4a0a0c;
  --color-on-primary: #fff8e7;

  --color-secondary: #c9a227;
  --color-secondary-hover: #ddb83a;
  --color-secondary-active: #a8861f;
  --color-on-secondary: #2c1810;

  --color-accent-green: #2d5a27;
  --color-accent-green-muted: #3d6f36;
  --color-accent-sky: #e3eef6;

  /* --- Superfícies e neutros --- */
  --color-surface: #fff8e7;
  --color-surface-elevated: #ffffff;
  --color-surface-muted: #f5ebdc;
  --color-border: #d4c4b0;
  --color-border-strong: #b89a7a;

  /* --- Texto --- */
  --color-text: #2c1810;
  --color-text-muted: #6b5344;
  --color-text-on-dark: #fff8e7;

  /* --- Feedback --- */
  --color-success: #2d5a27;
  --color-success-surface: #e8f2e6;
  --color-warning: #b8860b;
  --color-warning-surface: #fdf6e3;
  --color-error: #8b1538;
  --color-error-surface: #fce8ee;

  /* --- Tipografia (famílias) --- */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-heading: "Lora", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-accent: "Great Vibes", cursive;

  /* --- Tamanhos (escala rem, base 16px) --- */
  --text-xs: 0.75rem; /* 12px */
  --text-sm: 0.875rem; /* 14px */
  --text-base: 1rem; /* 16px */
  --text-lg: 1.125rem; /* 18px */
  --text-xl: 1.25rem; /* 20px */
  --text-2xl: 1.5rem; /* 24px */
  --text-3xl: 1.875rem; /* 30px */
  --text-4xl: 2.25rem; /* 36px */
  --text-5xl: clamp(2.25rem, 4vw + 1rem, 3rem); /* responsivo ~36–48 */

  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  --tracking-tight: -0.02em;
  --tracking-wide: 0.08em;
  --tracking-wider: 0.14em;

  /* --- Layout --- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgb(44 24 16 / 0.06);
  --shadow-md: 0 4px 12px rgb(44 24 16 / 0.1);
  --space-page: clamp(1rem, 4vw, 2.5rem);

  /* --- Botões (medidas) --- */
  --btn-padding-y: 0.65rem;
  --btn-padding-x: 1.25rem;
  --btn-font-size: var(--text-base);
  --btn-font-weight: 600;
  --btn-radius: var(--radius-md);
}

/* Hierarquia sugerida (aplique nas páginas ou reset local) */
.esm-heading-display {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 800;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-primary);
}

.esm-heading-1 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--color-text);
}

.esm-heading-2 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: var(--leading-snug);
  color: var(--color-text);
}

.esm-heading-3 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: var(--leading-snug);
}

.esm-subtitle-caps {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.esm-body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
}

.esm-body-large {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
}

.esm-tagline {
  font-family: var(--font-accent);
  font-size: var(--text-3xl);
  font-weight: 400;
  line-height: var(--leading-normal);
  color: var(--color-primary);
}

.esm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--btn-radius);
  padding: var(--btn-padding-y) var(--btn-padding-x);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.esm-btn:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

.esm-btn--primary {
  background-color: var(--color-primary);
  color: var(--color-on-primary);
  box-shadow: var(--shadow-sm);
}

.esm-btn--primary:hover {
  background-color: var(--color-primary-hover);
}

.esm-btn--primary:active {
  background-color: var(--color-primary-active);
}

.esm-btn--secondary {
  background-color: var(--color-secondary);
  color: var(--color-on-secondary);
  box-shadow: var(--shadow-sm);
}

.esm-btn--secondary:hover {
  background-color: var(--color-secondary-hover);
}

.esm-btn--secondary:active {
  background-color: var(--color-secondary-active);
}

.esm-btn--outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.esm-btn--outline:hover {
  background-color: var(--color-surface-muted);
}

.esm-btn--ghost {
  background-color: transparent;
  color: var(--color-primary);
}

.esm-btn--ghost:hover {
  background-color: var(--color-surface-muted);
}

.esm-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}
