/* Sap4all — Marcelo Godoy. Visual tokens and layout. Code in English; UI copy lives in HTML. */
:root {
  --blue: #0070f2;
  --blue-hover: #0057c2;
  --blue-ink: #00449e;
  --blue-soft: #e7f1fd;
  --navy: #0b1f33;
  --navy-2: #14304a;
  --gold: #b47b0e;
  --gold-soft: #fff4d6;
  --bg: #f3f6fa;
  --surface: #ffffff;
  --text: #1b2636;
  --muted: #5a6878;
  --border: #d7e0ea;
  --ok: #0b7a4b;
  --ok-soft: #e5f6ee;
  --danger-soft: #fdecec;
  --shadow: 0 10px 30px rgba(11, 31, 51, 0.08);
  --shadow-soft: 0 2px 8px rgba(11, 31, 51, 0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 4.25rem;
  --max: 70rem;
  --font: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --focus: 0 0 0 3px #fff, 0 0 0 6px var(--blue);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--blue);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--blue);
  color: #fff;
  padding: 0.5rem 0.85rem;
  z-index: 1000;
  border-radius: 0 0 8px 8px;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 31, 51, 0.96);
  color: #fff;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner,
.footer-inner,
.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
}

.logo img {
  width: 36px;
  height: 36px;
  display: block;
}

.logo:hover,
.logo:focus-visible {
  color: #fff;
}

.logo-text {
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.site-nav ul {
  display: flex;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: #d7e4f2;
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  display: inline-block;
}

.site-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.site-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(0, 112, 242, 0.35);
}

/* Main */
main {
  flex: 1;
}

.hero {
  background:
    radial-gradient(1200px 420px at 85% -10%, rgba(0, 112, 242, 0.22), transparent 60%),
    radial-gradient(800px 300px at 0% 110%, rgba(0, 112, 242, 0.1), transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 4.25rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: #8ec0ff;
  margin: 0 0 0.85rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.hero .lede {
  font-size: 1.2rem;
  color: #d5e4f5;
  margin: 0 0 1.25rem;
  max-width: 38rem;
}

.hero p {
  color: #c5d4e6;
  max-width: 40rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.15rem 0 1.7rem;
  padding: 0;
  list-style: none;
}

.chips li {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #eaf2fb;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--blue-ink);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.avatar {
  width: 11.5rem;
  height: 11.5rem;
  border-radius: 28px;
  background: var(--navy-2);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  border: 3px solid rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
}

.cv-photo {
  width: 8rem;
  height: 8rem;
  border-radius: 22px;
  overflow: hidden;
  background: var(--navy-2);
  box-shadow: var(--shadow-soft);
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.cv-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.section {
  padding: 3.25rem 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
}

.section h2,
.page-hero h1 {
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.2;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.section .intro,
.lede-page {
  color: var(--muted);
  max-width: 42rem;
  margin: 0.6rem 0 0;
}

.page-hero {
  padding: 2.6rem 0 0.5rem;
}

.page-hero p {
  color: var(--muted);
  max-width: 46rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.4rem;
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.card p:last-child {
  margin-bottom: 0;
}

.card p {
  color: var(--muted);
  margin: 0 0 0.8rem;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

a.card-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #b9d4f7;
  color: inherit;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 0.7rem;
}

.tag {
  display: inline-block;
  background: var(--blue-soft);
  color: var(--blue-ink);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.tag-exemplo {
  background: var(--gold-soft);
  color: #7a5400;
}

.dado-pendente {
  display: inline-block;
  background: var(--gold-soft);
  color: #7a5400;
  border: 1px dashed #d7b056;
  font-family: var(--mono);
  font-size: 0.86em;
  font-weight: 500;
  padding: 0.05rem 0.4rem;
  border-radius: 6px;
  white-space: nowrap;
}

.note {
  background: var(--blue-soft);
  border-left: 4px solid var(--blue);
  padding: 0.95rem 1.1rem;
  border-radius: 0 12px 12px 0;
  color: var(--text);
  margin: 1.2rem 0;
}

.note.warning {
  background: var(--gold-soft);
  border-left-color: var(--gold);
}

/* Timeline / CV */
.timeline {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.job {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem 1.35rem 1.55rem;
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--blue);
}

.job.current {
  border-left-color: var(--blue);
  box-shadow: var(--shadow);
}

.job-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: baseline;
}

.job h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.job .company {
  margin: 0.15rem 0 0;
  font-weight: 600;
  color: var(--blue-ink);
}

.job .period {
  color: var(--muted);
  font-size: 0.92rem;
  text-align: right;
}

.job .place {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.15rem 0 0.7rem;
}

.job p {
  margin: 0.35rem 0;
}

.certs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.cert {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.05rem;
}

.cert h3 {
  margin: 0 0 0.25rem;
  font-size: 1.02rem;
}

.cert p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.cert a {
  font-size: 0.88rem;
}

.group-title {
  margin: 2.4rem 0 0.95rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.source-note {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Article */
.article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.1rem 2.3rem;
  box-shadow: var(--shadow-soft);
  max-width: 50rem;
}

.article h1 {
  margin: 0 0 0.6rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
}

.article h2 {
  font-size: 1.25rem;
  margin: 1.8rem 0 0.55rem;
}

.article ul {
  padding-left: 1.2rem;
}

.article-list {
  display: grid;
  gap: 1rem;
}

.list-item h2 {
  font-size: 1.2rem;
  margin: 0 0 0.35rem;
}

.list-item h2 a {
  color: var(--text);
  text-decoration: none;
}

.list-item h2 a:hover {
  color: var(--blue);
}

/* Forms */
form {
  display: grid;
  gap: 0.85rem;
  max-width: 32rem;
}

label {
  font-weight: 600;
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"] {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  width: 100%;
}

input:focus-visible {
  border-color: var(--blue);
}

.form-status {
  margin: 0;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.ok {
  background: var(--ok-soft);
  color: #0a5a38;
}

.contact-list {
  display: grid;
  gap: 0.8rem;
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  max-width: 36rem;
}

.contact-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.contact-list .network {
  font-weight: 700;
  margin-right: 0.4rem;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #c5d4e6;
  margin-top: 3rem;
  padding: 2rem 0 1.6rem;
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: start;
}

.site-footer a {
  color: #d7e8ff;
}

.site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Empty / loading / error */
.status-msg {
  color: var(--muted);
  padding: 1rem 0;
}

/* Utilities */
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; }

@media (max-width: 900px) {
  .card-grid,
  .certs {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .avatar {
    width: 8.5rem;
    height: 8.5rem;
    font-size: 2.3rem;
    border-radius: 22px;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 1rem 1rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
  }

  .site-nav a {
    display: block;
    padding: 0.7rem 0.8rem;
  }

  .article {
    padding: 1.25rem 1.15rem 1.5rem;
  }

  .job .period {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card-link { transition: none; }
}

@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .nav-toggle,
  .actions .btn-ghost {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .job,
  .cert,
  .card,
  .article {
    box-shadow: none;
    break-inside: avoid;
  }
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: #e8eef4;
  padding: 0.08em 0.35em;
  border-radius: 4px;
}

.certs {
  align-items: stretch;
}

.cert {
  height: 100%;
}

@media (max-width: 900px) {
  .hero-grid .avatar {
    margin-inline: auto;
  }
}

h1, h2 {
  text-wrap: balance;
}

.hero .lede,
.hero p {
  max-width: none;
}

.chips.light {
  margin: 0;
}

.chips.light li {
  background: var(--blue-soft);
  border-color: transparent;
  color: var(--blue-ink);
}

.job .period {
  line-height: 1.45;
}

@media (max-width: 760px) {
  .page-hero-grid {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 1.2rem;
  }

  .cv-photo {
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 18px;
  }
}
