/* ===================================================================
   /public/css/_brand.css
   GABI BESSA TATTOO — DESIGN TOKENS v1.6
   Source of truth: Brand Bible v1.0 (Capitulo 09)
   NAO editar valores aqui sem atualizar Brand Bible primeiro.
   =================================================================== */

:root {
  /* --- PALETA P&B --- */
  --color-black: #000000;
  --color-bg-deep: #0A0A0A;
  --color-bg-card: #1A1A1A;
  --color-bg-elevated: #222222;
  --color-border: #333333;
  --color-text-muted: #999999;
  --color-text-soft: #CCCCCC;
  --color-text-default: #E5E5E5;
  --color-text-bright: #F5F5F5;
  --color-white: #FFFFFF;

  /* --- UNICO ACENTO --- */
  --color-cta: #C7E83A;
  --color-cta-hover: #B3D633;
  --color-cta-text: #000000;

  /* --- SEMANTICA --- */
  --color-success: #C7E83A;
  --color-warning: #F5C43F;
  --color-error: #E84B3A;

  /* --- TIPOGRAFIA --- */
  --font-display: 'Cormorant SC', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;

  /* --- ESCALA TIPOGRAFICA FLUIDA --- */
  --fs-hero: clamp(2.5rem, 5vw + 1rem, 5rem);
  --fs-h1: clamp(2rem, 3vw + 1rem, 3.5rem);
  --fs-h2: clamp(1.5rem, 2vw + 0.75rem, 2.5rem);
  --fs-h3: clamp(1.25rem, 1.5vw + 0.5rem, 1.75rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-tiny: 0.75rem;
  --fs-caption: 0.6875rem;

  /* --- LETTER SPACING --- */
  --ls-hero: 0.20em;
  --ls-title: 0.15em;
  --ls-sep: 0.30em;
  --ls-button: 0.10em;
  --ls-body: -0.011em;
  --ls-mono: 0;

  /* --- LINE HEIGHT --- */
  --lh-tight: 1.1;
  --lh-snug: 1.25;
  --lh-normal: 1.5;
  --lh-relaxed: 1.7;

  /* --- PESO --- */
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* --- ESPACAMENTO --- */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* --- BORDER --- */
  --border-width: 1px;
  --border-width-thick: 2px;
  --border-radius: 0;

  /* --- SHADOW (apenas modais/drawers) --- */
  --shadow-modal: 0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-drawer: -10px 0 40px rgba(0, 0, 0, 0.5);

  /* --- Z-INDEX --- */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 900;
  --z-modal: 1000;
  --z-toast: 1100;
}

/* ===================================================================
   RESET GLOBAL
   =================================================================== */

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

html {
  background: var(--color-black);
  color: var(--color-text-default);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  letter-spacing: var(--ls-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--color-black);
  color: var(--color-text-default);
  margin: 0;
  font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6,
.heading-display {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: var(--ls-title);
  line-height: var(--lh-tight);
  color: var(--color-text-bright);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

input, textarea, select, button {
  border-radius: 0 !important;
  font-family: inherit;
}

::selection {
  background: var(--color-cta);
  color: var(--color-cta-text);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--color-border);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

/* ═══════════════════════════════════════════════════════════════════
   FORM INPUTS — DARK MODE
   ═══════════════════════════════════════════════════════════════════ */

input,
textarea,
select {
  background: var(--color-bg-card);
  color: var(--color-text-bright);
  border: 1px solid var(--color-border);
  padding: 12px 16px;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color 150ms ease-out;
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 1;
}

input:hover:not(:focus),
textarea:hover:not(:focus),
select:hover:not(:focus) {
  border-color: var(--color-text-muted);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-cta);
  border-bottom-width: 2px;
  padding-bottom: 11px;
}

input[type="checkbox"],
input[type="radio"] {
  background: transparent;
  border: 1.5px solid var(--color-border);
  width: 20px;
  height: 20px;
  padding: 0;
  cursor: pointer;
  accent-color: var(--color-cta);
}

input[type="date"],
input[type="time"],
input[type="datetime-local"] {
  color-scheme: dark;
}

input:disabled,
textarea:disabled,
select:disabled {
  background: var(--color-bg-deep);
  color: var(--color-text-muted);
  cursor: not-allowed;
  opacity: 0.6;
}

/* ═══════════════════════════════════════════════════════════════════
   AUTOFILL — anula amarelo nativo do Chrome/Safari
   ═══════════════════════════════════════════════════════════════════ */

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--color-text-bright);
  -webkit-box-shadow: 0 0 0 1000px var(--color-bg-card) inset;
  caret-color: var(--color-text-bright);
  transition: background-color 5000s ease-in-out 0s;
}

input:autofill {
  background: var(--color-bg-card);
  color: var(--color-text-bright);
}
