/* ===== Fontes ===== */

/* ===========================================================================
   FONT FACES — Adriano Barboza
   Primary: Space Grotesk (variable, 300–700) — geometric grotesque, titles UPPER
   Support: Goudy StM (Sorts Mill Goudy) — classical serif, used italic, sparingly
   =========================================================================== */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk-Variable.ttf") format("truetype-variations"),
       url("../fonts/SpaceGrotesk-Variable.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Goudy StM";
  src: url("../fonts/GoudyStM.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Goudy StM";
  src: url("../fonts/GoudyStM-Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}


/* ===== Cores da marca ===== */

/* ===========================================================================
   COLORS — Adriano Barboza
   Black is the base. Off-white is the paper. The palette is rich but applied
   with restraint: ONE color per shape, on rounded bento blocks, over black or
   off-white. Text is preferably black. Never combine palette colors in a
   single shape; never stack palette colors on top of each other.
   =========================================================================== */

:root {
  /* ---- Core base ---- */
  --black: #000000;          /* PRETO — primary base, text, backgrounds */
  --off-white: #FFFDE1;      /* OFF-WHITE — the brand "paper", warm white */

  /* ---- Expressive palette (single-color bento fills) ---- */
  --yellow: #FDD580;         /* AMARELO */
  --salmon: #FF7F63;         /* SALMÃO */
  --beige: #FFD2A6;          /* BEGE */
  --mint: #BDC691;           /* VERDE MENTA */
  --lime: #A0F45F;           /* VERDE LIMA */
  --olive: #636B2F;          /* VERDE OLIVA */
  --ochre: #B38E37;          /* OCRE */
  --brown: #986A4C;          /* MARROM */
  --terracotta: #E35336;     /* TERRACOTA */
  --green: #006949;          /* VERDE */

  /* ---- Neutral ramp (derived from black/off-white for UI chrome) ---- */
  --ink-900: #000000;
  --ink-700: #2b2b29;
  --ink-500: #5a5a52;
  --ink-300: #9a9a8e;
  --ink-100: #d9d7c4;
  --paper-tint: #f5f2d8;     /* off-white, slightly deepened for surfaces */

  /* ---- Semantic aliases ---- */
  --bg: var(--black);              /* default brand background */
  --bg-paper: var(--off-white);    /* light editorial background */
  --surface-card: var(--off-white);
  --surface-card-dark: #111110;    /* near-black raised block on black */
  --border-subtle: rgba(255, 253, 225, 0.16);  /* hairline on dark */
  --border-ink: rgba(0, 0, 0, 0.12);            /* hairline on light */

  --text-strong: var(--black);     /* body & titles on light */
  --text-muted: #6a6a5f;           /* secondary text on light */
  --text-on-dark: var(--off-white);/* text on black */
  --text-on-dark-muted: rgba(255, 253, 225, 0.62);

  /* Accent defaults — swap per composition; lime reads as the "active" accent */
  --accent: var(--lime);
  --accent-warm: var(--terracotta);
  --accent-quiet: var(--mint);

  /* Focus ring */
  --focus-ring: #006949;
}


/* ===== Tipografia ===== */

/* ===========================================================================
   TYPOGRAPHY — Adriano Barboza
   Primary: Space Grotesk. Titles & subtitles ALWAYS UPPERCASE.
   Body & long-form text ALWAYS lowercase / sentence case (set lowercase).
   Support: Goudy StM, used in ITALIC and sparingly — quotes, thoughts,
   footnotes, small emphasis.
   Scale from the brand book (px @ design size): Display 100 / Título01 64 /
   Subtítulo01 42 / Título02 32 / Subtítulo02 24 / Corpo 16 / Citação 12 /
   Legenda 10. Body line-height 1.4, letter-spacing 0.
   =========================================================================== */

:root {
  /* ---- Families ---- */
  --font-sans: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Goudy StM", "Sorts Mill Goudy", Georgia, serif;

  /* ---- Weights (Space Grotesk variable) ---- */
  --fw-light: 300;    /* @kind font */
  --fw-regular: 400;  /* @kind font */
  --fw-medium: 500;   /* @kind font */
  --fw-semibold: 600; /* @kind font */
  --fw-bold: 700;     /* @kind font */

  /* ---- Type scale (rem, 1rem = 16px) ---- */
  --fs-display: 6.25rem;   /* 100 */
  --fs-title-1: 4rem;      /* 64  */
  --fs-subtitle-1: 2.625rem;/* 42 */
  --fs-title-2: 2rem;      /* 32  */
  --fs-subtitle-2: 1.5rem; /* 24  */
  --fs-body: 1rem;         /* 16  */
  --fs-quote: 0.75rem;     /* 12  */
  --fs-caption: 0.625rem;  /* 10  */

  /* ---- Line heights ---- */
  --lh-tight: 1.02;        /* @kind font */ /* display / large titles */
  --lh-snug: 1.15;         /* @kind font */
  --lh-body: 1.4;          /* @kind font */ /* brand default for running text */

  /* ---- Letter spacing ---- */
  --ls-display: -0.02em;   /* large grotesque tightens slightly  @kind font */
  --ls-title: -0.01em;     /* @kind font */
  --ls-eyebrow: 0.14em;    /* uppercase labels open up  @kind font */
  --ls-body: 0;            /* @kind font */ /* brand spec: 0 */
}

/* ---- Optional utility classes (consumers may use directly) ---- */
.t-display {
  font-family: var(--font-sans);
  font-weight: var(--fw-medium);
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  text-transform: uppercase;
}
.t-title-1 {
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-title-1);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-title);
  text-transform: uppercase;
}
.t-subtitle-1 {
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  font-size: var(--fs-subtitle-1);
  line-height: var(--lh-snug);
  text-transform: uppercase;
}
.t-title-2 {
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-title-2);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-title);
  text-transform: uppercase;
}
.t-subtitle-2 {
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  font-size: var(--fs-subtitle-2);
  line-height: var(--lh-snug);
  text-transform: uppercase;
}
.t-eyebrow {
  font-family: var(--font-sans);
  font-weight: var(--fw-medium);
  font-size: var(--fs-quote);
  line-height: 1.2;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
}
.t-body {
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
}
.t-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: var(--fw-regular);
  font-size: var(--fs-subtitle-2);
  line-height: 1.35;
}
.t-caption {
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  font-size: var(--fs-caption);
  line-height: 1.3;
  letter-spacing: 0.02em;
}


/* ===== Espaçamentos e cantos ===== */

/* ===========================================================================
   SPACING, RADII, SHADOW — Adriano Barboza
   The system is built on the BENTO GRID: modular blocks, border-radius 50px.
   Layouts are gap-driven (the brand grid runs margins 0 / spacing 0 at the
   document edge, but bento blocks sit apart with a consistent gutter).
   =========================================================================== */

:root {
  /* ---- Spacing scale (4px base) ---- */
  --space-0: 0;
  --space-1: 0.25rem;  /* 4  */
  --space-2: 0.5rem;   /* 8  */
  --space-3: 0.75rem;  /* 12 */
  --space-4: 1rem;     /* 16 */
  --space-5: 1.5rem;   /* 24 */
  --space-6: 2rem;     /* 32 */
  --space-7: 3rem;     /* 48 */
  --space-8: 4rem;     /* 64 */
  --space-9: 6rem;     /* 96 */

  /* Bento gutter — the standard gap between modular blocks */
  --bento-gap: 1rem;

  /* ---- Radii ---- */
  /* Brand bento blocks use a generous 50px radius. Scaled aliases below keep
     smaller controls proportional to their size. */
  --radius-bento: 50px;     /* canonical brand block radius */
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;        /* default for cards / inputs in dense UI */
  --radius-sm: 10px;
  --radius-pill: 999px;     /* chips, buttons, tags */

  /* ---- Borders ---- */
  --border-width: 1px;
  --border-width-bold: 2px;

  /* ---- Shadows ----
     The brand is flat and editorial: color and structure create hierarchy,
     not heavy shadows. Use shadows only for true overlays (dialogs, menus). */
  --shadow-none: none;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow-overlay: 0 24px 60px -20px rgba(0, 0, 0, 0.45);

  /* ---- Motion ----
     Calm, intentional. Short fades and eased moves; no bounce, no spring. */
  --ease-standard: cubic-bezier(0.22, 0.61, 0.36, 1); /* @kind other */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);          /* @kind other */
  --dur-fast: 120ms;  /* @kind other */
  --dur-base: 200ms;  /* @kind other */
  --dur-slow: 320ms;  /* @kind other */

  /* ---- Layout ---- */
  --container-max: 1200px; /* @kind spacing */
  --container-pad: 2rem;   /* @kind spacing */
}


/* ===== Estilos do site ===== */

* { box-sizing: border-box; }
  body {
    margin: 0;
    background: var(--off-white);
    font-family: var(--font-sans);
    color: var(--black);
    -webkit-font-smoothing: antialiased;
  }
  #app { min-height: 100vh; }
  section { scroll-margin-top: 84px; }
  a { color: inherit; }
  img { max-width: 100%; }

  /* shared editorial primitives */
  .ab-eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--font-sans); font-size: 11px; font-weight: 600;
    letter-spacing: 0.22em; text-transform: uppercase;
  }
  .ab-eyebrow::before {
    content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.5;
  }
  .ab-serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
  p { text-wrap: pretty; }

  /* corners: closer to square than to pill. --radius-pill is overridden
     because design-system Buttons set it inline, which beats any rule here. */
  :root { --radius-bento: 14px; --radius-pill: 10px; }
  /* ---- accessibility floor (WCAG 2.2 AA + project rules) ---- */
  :root { --ab-band: var(--yellow); --ab-photo-op: 0.6; --ab-photo-fade: 1; }
  html { scroll-padding-top: 84px; }
  @media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
  .ab-skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--off-white); color: var(--black); padding: 12px 18px; border-radius: 10px; font: 600 1rem/1.2 var(--font-sans); text-decoration: underline; }
  .ab-skip:focus { top: 12px; }
  :focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
  a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; box-shadow: 0 0 0 4px var(--black); }
  #app p a, #app li a { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.06em; }
  header nav a, header [role="group"] button, .ab-burger, footer a { min-height: 44px; display: inline-flex; align-items: center; }
  header [role="group"] button { min-width: 44px; justify-content: center; }

  #app button { border-radius: 10px; }

  /* Áreas: the bento eyebrow numerals carry an inline opacity from the
     design-system component, which drops them below contrast on mid-tone
     fills. Only !important can beat an inline style. */
  .ab-areas-grid > div > div > span:first-child { opacity: 1 !important; }

  /* scroll-assembling brand symbol — the real mark, sliced and reassembled.
     mix-blend-mode keeps one element legible over off-white and black alike. */
  .ab-scroll-symbol { position: fixed; top: 50%; left: 50%; width: clamp(260px, 32vw, 440px); aspect-ratio: 1; transform: translate(-50%, -50%) translate(40vw, -6vh); pointer-events: none; z-index: 2; opacity: 0; transition: transform 900ms cubic-bezier(.22,.61,.36,1), opacity 700ms cubic-bezier(.22,.61,.36,1); }
  .ab-scroll-symbol > span { transition: transform 900ms cubic-bezier(.22,.61,.36,1), opacity 700ms cubic-bezier(.22,.61,.36,1); }
  @media (max-width: 900px) { .ab-scroll-symbol { width: min(58vw, 290px); } }
  @media (prefers-reduced-motion: reduce) { .ab-scroll-symbol, .ab-scroll-symbol > span { transition: none; } }
  @media print { .ab-scroll-symbol { display: none; } }

  /* No horizontal bleed on small screens; let grid/flex columns shrink below
     their content's intrinsic size (fixes the portrait image overflowing). */
  html { overflow-x: clip; } body { overflow-x: visible; }
  .ab-about-grid > * { min-width: 0; }
  .ab-about-grid img { max-width: 100%; min-width: 0; }

  /* Portrait slot reads as an intentional dark editorial frame */
  #sobre image-slot::part(frame) { background: #14140f; }
  #sobre image-slot::part(empty) { color: rgba(255,253,225,0.8); }

  /* entrance — resolved state is the BASE (always visible). The pre-animation
     hidden state is opt-in: only when <html class="ab-anim"> is present (added
     by JS at load, and only when motion is allowed). So print / no-JS /
     reduced-motion / screenshot always render the resolved state. The reveal
     uses an animation with fill-mode:both so the end (visible) state holds. */
  html.ab-anim .ab-rise { opacity: 0; }
  html.ab-anim .ab-rise.ab-in { animation: abRise 640ms var(--ease-out) both; }
  @keyframes abRise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
  }

  /* ===== mobile & touch pass ===== */
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  #app { overflow-x: clip; }
  a, button { -webkit-tap-highlight-color: rgba(0,0,0,0.08); touch-action: manipulation; }
  /* text-only buttons (back links) get a full 44px touch target */
  button[style*="padding: 0px"] { min-height: 44px; display: inline-flex; align-items: center; }
  .ab-mobile-menu { max-height: calc(100svh - 72px); overflow-y: auto; overscroll-behavior: contain; }
  @media (max-width: 980px) {
    [aria-label="Idioma / Language"] { padding: 2px !important; }
    [aria-label="Idioma / Language"] button { min-height: 40px; padding: 0 10px !important; }
    /* 16px stops iOS from zooming into the form on focus */
    input, textarea, select { font-size: 16px !important; }
  }
  @media (max-width: 380px) {
    [aria-label="Idioma / Language"] button svg { display: none !important; }
    [aria-label="Idioma / Language"] button { padding: 0 9px !important; }
  }
  @media (max-width: 760px) {
    /* tiny uppercase labels read too small on phones */
    [style*="font-size: 10.5px"], [style*="font-size: 11px"], [style*="font-size: 11.5px"] { font-size: 12.5px !important; }
    [style*="font-size: 12px"] { font-size: 13px !important; }
    .ab-hero-areas li { white-space: normal !important; }
    .ab-career-row { grid-template-columns: 1fr !important; }
  }

  @media (max-width: 980px) {
    .ab-head-bar > a:first-child { min-height: 44px; }
    #app a[href^="mailto:"] { display: inline-flex; align-items: center; min-height: 44px; }
    #app a[role="button"], #app button:not([aria-label="Menu"]):not([aria-pressed]) { min-height: 44px; }
  }

  @media (max-width: 980px) {
    .ab-cta, #app a[class*="btn"], #app .ab-rise a[style*="border-radius"][style*="padding"] { min-height: 44px; display: inline-flex; align-items: center; }
    [aria-label="Idioma / Language"] button { min-height: 44px !important; }
  }
  @media (max-width: 380px) { .ab-logo { height: 18px !important; } }