/* =========================================================================
   ANDRADE ADVOCACIA — Design Tokens
   Source: Manual da Identidade Visual (official brand manual)
   ========================================================================= */

/* ---- Fonts --------------------------------------------------------------- */
@font-face {
  font-family: "Hypatia Sans Pro";
  font-weight: 200;
  font-style: normal;
  src: url("fonts/HypatiaSansPro-ExtraLight.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Hypatia Sans Pro";
  font-weight: 300;
  font-style: normal;
  src: url("fonts/HypatiaSansPro-Light.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Hypatia Sans Pro";
  font-weight: 400;
  font-style: normal;
  src: url("fonts/HypatiaSansPro-Regular.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Hypatia Sans Pro";
  font-weight: 600;
  font-style: normal;
  src: url("fonts/HypatiaSansPro-Semibold.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Hypatia Sans Pro";
  font-weight: 700;
  font-style: normal;
  src: url("fonts/HypatiaSansPro-Bold.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Hypatia Sans Pro";
  font-weight: 900;
  font-style: normal;
  src: url("fonts/HypatiaSansPro-Black.woff2") format("woff2");
  font-display: swap;
}

:root {
  /* ---- Brand colors (from Manual de Marca, p.8) ------------------------- */
  /* Full institutional palette: 5 blues, 1 red, white */
  --andrade-blue-900: #0C0A21;  /* darkest — near-black navy */
  --andrade-blue-800: #141238;  /* deep navy — primary brand background */
  --andrade-blue-700: #1E1952;  /* royal navy */
  --andrade-blue-600: #26216B;  /* bright navy — used for accent lines */
  --andrade-red:      #EB3336;  /* vermilion — single accent / highlight box */
  --andrade-white:    #FFFFFF;

  /* ---- Extended neutrals (derived — for UI only, not brand-prescribed) -- */
  --andrade-ink:        #0C0A21;
  --andrade-ink-soft:   #141238;
  --andrade-line:       rgba(12, 10, 33, 0.12);
  --andrade-line-dark:  rgba(255, 255, 255, 0.16);
  --andrade-muted:      #6B6780;
  --andrade-muted-dark: #8A86A3;
  --andrade-surface:    #FFFFFF;
  --andrade-surface-2:  #F4F3F8;  /* faint cool gray */
  --andrade-surface-3:  #E8E7EF;

  /* ---- Semantic foreground / background -------------------------------- */
  --fg-1: var(--andrade-ink);          /* primary text */
  --fg-2: var(--andrade-ink-soft);     /* secondary text on light */
  --fg-3: var(--andrade-muted);        /* tertiary / metadata */
  --fg-invert: var(--andrade-white);   /* text on dark surfaces */

  --bg-1: var(--andrade-white);        /* page */
  --bg-2: var(--andrade-surface-2);    /* card / sunken */
  --bg-3: var(--andrade-surface-3);    /* divider / chip */
  --bg-dark: var(--andrade-blue-800);  /* signature navy */
  --bg-dark-2: var(--andrade-blue-900);/* deepest */
  --bg-accent: var(--andrade-red);     /* highlight block */

  --accent: var(--andrade-red);
  --accent-ink: var(--andrade-white);

  /* ---- Typography ------------------------------------------------------- */
  --font-sans: "Hypatia Sans Pro", "Nunito Sans", "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: var(--font-sans);  /* same family, heavier weight */

  /* Weights */
  --fw-extralight: 200;
  --fw-light: 300;
  --fw-regular: 400;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 900;

  /* Type scale — titles are intentionally LARGE; body is comfortable */
  --fs-display: 80px;   /* hero / cover titles */
  --fs-h1: 56px;
  --fs-h2: 40px;
  --fs-h3: 28px;
  --fs-h4: 22px;
  --fs-lead: 20px;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-xs: 12px;
  --fs-eyebrow: 13px;

  --lh-tight: 1.02;
  --lh-snug: 1.15;
  --lh-normal: 1.4;
  --lh-loose: 1.6;

  --tracking-wide: 0.08em;     /* uppercase eyebrows */
  --tracking-display: -0.01em; /* big titles, tight */

  /* ---- Spacing (4pt base) ---------------------------------------------- */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* ---- Radii — intentionally small; Andrade is angular ------------------ */
  --radius-0: 0;
  --radius-1: 2px;
  --radius-2: 4px;
  --radius-3: 6px;      /* max — use sparingly */

  /* ---- Borders ---------------------------------------------------------- */
  --border-hair: 1px solid var(--andrade-line);
  --border-solid: 1.5px solid var(--andrade-blue-700);
  --border-accent: 2px solid var(--andrade-red);

  /* ---- Shadows (soft; architecture over flash) ------------------------- */
  --shadow-1: 0 1px 2px rgba(12, 10, 33, 0.06);
  --shadow-2: 0 2px 8px rgba(12, 10, 33, 0.08);
  --shadow-3: 0 8px 24px rgba(12, 10, 33, 0.12);
  --shadow-highlight: 4px 4px 0 rgba(12, 10, 33, 0.9); /* used behind red highlight box */
}

/* ---- Semantic element styles ------------------------------------------- */

.a-display {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display);
  text-transform: uppercase;
}

.a-h1 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h1);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-display);
  text-transform: uppercase;
}

.a-h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  text-transform: uppercase;
}

.a-h3 {
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
}

.a-h4 {
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-h4);
  line-height: var(--lh-normal);
}

.a-eyebrow {
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--fg-3);
}

.a-lead {
  font-family: var(--font-sans);
  font-weight: var(--fw-light);
  font-size: var(--fs-lead);
  line-height: var(--lh-loose);
  color: var(--fg-2);
}

.a-body {
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  font-size: var(--fs-body);
  line-height: var(--lh-loose);
  color: var(--fg-1);
}

.a-small {
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  font-size: var(--fs-small);
  line-height: var(--lh-normal);
  color: var(--fg-2);
}

/* Signature "highlighted word" — red block behind a word, used in marketing */
.a-highlight {
  background: var(--andrade-red);
  color: var(--andrade-white);
  padding: 0.05em 0.35em 0.12em;
  box-shadow: var(--shadow-highlight);
  display: inline-block;
  line-height: 1;
}

/* Handle label — "@andrade_adv" style, tiny, all-lowercase */
.a-handle {
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  font-size: var(--fs-small);
  color: var(--andrade-white);
  letter-spacing: 0.02em;
}
