:root {
  --navy-950: #00162f;
  --navy-900: #00234a;
  --navy-800: #062b58;
  --navy-700: #0a376b;
  --gold-500: #f4b942;
  --gold-600: #d18a14;
  --gold-700: #b87508;
  --ink: #06152f;
  --muted: #34435c;
  --line: #d7dde7;
  --line-dark: #b8c1cf;
  --surface: #ffffff;
  --paper: #f3f6fa;
  --shadow: 0 12px 28px rgba(0, 22, 47, 0.13);
  --shadow-soft: 0 7px 18px rgba(0, 22, 47, 0.09);
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --page-width: 1024px;
  --focus: #ffcf4a;
  --font: "Montserrat", "Aptos", "Segoe UI", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(0, 35, 74, 0.14), transparent 36rem),
    #dfe7f1;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.38;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 10px;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--gold-500);
  color: var(--navy-950);
  font-weight: 900;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.resume-frame {
  width: min(100%, var(--page-width));
  margin: 0 auto;
  background: linear-gradient(180deg, #f8fafc 0, #ffffff 32%);
  box-shadow: 0 24px 70px rgba(0, 17, 39, 0.22);
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 286px;
  display: grid;
  grid-template-columns: 280px 1fr 190px;
  align-items: start;
  gap: 0;
  padding: 18px 32px 0 28px;
  color: #fff;
  background:
    radial-gradient(circle at 78% -10%, rgba(29, 95, 156, .32), transparent 34%),
    linear-gradient(135deg, #001025 0%, #002b5c 54%, #00152f 100%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 280px;
  right: 66px;
  bottom: 56px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 185, 66, .5), transparent);
  opacity: .65;
}

.hero__rings,
.hero__rings .ring {
  position: absolute;
  pointer-events: none;
}

.ring-one {
  right: -62px;
  top: -82px;
  width: 330px;
  height: 330px;
  border: 6px solid var(--gold-500);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(-18deg);
  opacity: .96;
}

.ring-two {
  right: -6px;
  top: 38px;
  width: 210px;
  height: 210px;
  border: 1px dashed rgba(244, 185, 66, .72);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(-13deg);
}

.portrait {
  position: relative;
  z-index: 2;
  width: 252px;
  height: 252px;
  margin: 0;
  border-radius: 50%;
  border: 3px solid var(--gold-500);
  padding: 8px;
  background: var(--navy-950);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
}

.portrait img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  background: #cad0d8;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 8px;
  min-width: 0;
}

h1 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: .88;
  font-weight: 900;
  text-wrap: balance;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, .20));
}

h1 span,
h1 strong {
  display: block;
}

h1 span {
  color: #fff;
  font-size: clamp(3.05rem, 6.2vw, 4.75rem);
}

h1 strong {
  margin-top: 7px;
  color: var(--gold-500);
  font-size: clamp(3.6rem, 7vw, 5.4rem);
}

.role-pill {
  width: fit-content;
  max-width: 100%;
  margin: 16px 0 18px;
  padding: 8px 8px;
  border: 1.8px solid var(--gold-500);
  border-radius: 9px;
  color: #fff;
  font-size: 1.10rem;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .012em;
  background: rgba(0, 14, 32, .35);
}

.role-pill span {
  padding: 0 6px;
  color: var(--gold-500);
}

.contact-strip {
  position: absolute;
  z-index: 5;
  left: -30px;
  right: -165px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin: 0;
  color: #fff;
  font-size: .98rem;
  font-style: normal;
  font-weight: 600;
}

.contact-strip a,
.contact-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  gap: 9px;
  text-decoration: none;
  white-space: nowrap;
}

.contact-strip a:not(:last-child)::after,
.contact-strip span:not(:last-child)::after {
  content: "";
  width: 1px;
  height: 24px;
  margin-left: 5px;
  background: var(--gold-500);
  opacity: .72;
}

.contact-strip svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
 color: var(--gold-500);
}

.hero__icons {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  gap: 18px;
  width: 150px;
  margin-left: auto;
  margin-top: 58px;
}

.hero__icons svg {
  width: 56px;
  height: 56px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.25));
}

.hero__icons svg.gold {
  stroke: var(--gold-500);
}

.hero__icons svg:last-child {
  grid-column: 1 / -1;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.top-grid,
.content-columns {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  gap: 12px;
  padding: 10px 21px 0;
}

.top-grid .card {
  min-height: 328px;
}

.summary-card {
  padding: 24px 26px 18px;
}

.personal-card {
  padding: 24px 28px 24px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}

.section-title h2,
.section-title h3 {
  margin: 0;
  color: var(--ink);
  text-transform: uppercase;
  font-weight: 900;
  line-height: 1.05;
}

.section-title h2 {
  font-size: 1.23rem;
  letter-spacing: .01em;
}

.section-title h3 {
  font-size: 1.18rem;
}

.section-title--inline {
  margin-top: 21px;
  margin-bottom: 4px;
}

.icon-badge {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 28%, var(--navy-700), var(--navy-950));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
}

.icon-badge svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
 color: var(--gold-500);
}

.line-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;

 color: var(--gold-500);
}

.line-icon svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
 color: var(--gold-500);
}

.card p {
  margin: 0;
  color: var(--ink);
}

.summary-card > p {
  font-size: .935rem;
  line-height: 1.46;
  font-weight: 550;
}

.personal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  margin-top: 20px;
}

.mini-card {
  min-height: 90px;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: linear-gradient(145deg, #fff, #fbfcfe);
}

.mini-card span {
  font-size: .87rem;
  font-weight: 700;
  line-height: 1.22;
}

.mini-icon {
  width: 54px;
  height: 54px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.9;
 color: var(--gold-500);
}

.gold-stroke {
  stroke: var(--gold-600);
}

.key-card {
  margin: 10px 21px 0;
  padding: 12px 20px 10px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 9px;
}

.skill {
  min-height: 119px;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 8px;
  padding: 12px 8px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  text-align: center;
  background: #fff;
}

.skill svg {
  width: 52px;
  height: 52px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
}

.skill span {
  font-size: .79rem;
  font-weight: 700;
  line-height: 1.22;
}

.content-columns {
  align-items: stretch;
}

.experience-card {
  padding: 18px 26px 12px;
}

.timeline {
  position: relative;
  list-style: none;
  margin: 9px 0 0;
  padding: 0 0 0 60px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 27px;
  left: 17px;
  width: 2px;
  background: var(--navy-950);
}

.timeline li {
  position: relative;
  min-height: 88px;
  padding: 0 0 14px;
}

.timeline li:not(:last-child) {
  border-bottom: 1px dashed var(--line-dark);
  margin-bottom: 11px;
}

.timeline-number {
  position: absolute;
  left: -58px;
  top: 1px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  background: var(--gold-700);
  font-size: .86rem;
  font-weight: 900;
  box-shadow: 0 0 0 3px #fff;
}

h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.14;
  font-weight: 900;
}

.meta,
.date {
  font-size: .86rem;
  line-height: 1.2;
}

.meta {
  margin-top: 3px !important;
}

.meta strong {
  color: var(--gold-700);
  font-weight: 900;
}

.meta span {
  margin: 0 5px;
  color: var(--ink);
}

.date {
  margin-top: 3px !important;
}

.timeline p:not(.meta):not(.date),
.side-item p:not(.meta):not(.date) {
  margin-top: 5px;
  font-size: .81rem;
  line-height: 1.35;
  font-weight: 550;
}

.side-stack {
  display: grid;
  gap: 10px;
}

.other-card {
  padding: 18px 20px 12px;
}

.side-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  align-items: start;
  gap: 15px;
  padding: 3px 0;
}

.soft-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #eef0f2;
  color: var(--navy-950);
}

.soft-icon svg {
  width: 50px;
  height: 50px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

.divider {
  height: 1px;
  margin: 10px 8px 8px;
  background: var(--line-dark);
}

.education-card {
  padding: 13px 22px 14px;
}

.education-list {
  margin: -2px 0 0 42px;
  padding: 0;
  list-style: none;
}

.education-list li {
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: start;
  gap: 17px;
  min-height: 41px;
  padding: 0 0 5px;
}

.education-list li:not(:last-child) span {
  border-bottom: 1px dashed var(--line-dark);
}

.education-list time {
  display: inline-grid;
  place-items: center;
  height: 26px;
  min-width: 49px;
  border-radius: 5px;
  color: #fff;
  background: linear-gradient(145deg, var(--navy-900), var(--navy-950));
  font-size: .78rem;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}

.education-list span {
  padding-bottom: 5px;
  font-size: .77rem;
  line-height: 1.16;
  font-weight: 600;
}

.differentials-card {
  margin: 10px 21px 0;
  padding: 13px 22px 18px;
}

.differentials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.differentials-grid article {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 15px;
  padding: 0 18px 0 10px;
}

.differentials-grid article:not(:last-child) {
  border-right: 1px solid var(--line-dark);
}

.square-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  color: #fff;
}

.square-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.square-icon.navy {
  background: linear-gradient(145deg, var(--navy-800), var(--navy-950));
}

.square-icon.gold {
  background: linear-gradient(145deg, #f2bd52, var(--gold-700));
}

.differentials-grid h3 {
  font-size: .86rem;
  line-height: 1.17;
  text-transform: uppercase;
}

.differentials-grid article:nth-child(2) h3,
.differentials-grid article:nth-child(4) h3 {
  color: var(--gold-700);
}

.differentials-grid p {
  margin-top: 6px;
  font-size: .76rem;
  line-height: 1.35;
  font-weight: 550;
}

.availability {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 10px 20px 8px;
  padding: 0 41px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-950), var(--navy-900));
  box-shadow: var(--shadow-soft);
}

.availability div {
  display: flex;
  align-items: center;
  gap: 22px;
}

.availability svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--gold-500);
  stroke-width: 2;
}

.availability strong {
  color: var(--gold-500);
  font-size: 1.23rem;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.availability span {
  font-size: .84rem;
  font-weight: 700;
}



/* Ações flutuantes: não entram na impressão */
.screen-only {
  display: block;
}

.action-toolbar {
  position: fixed;
  z-index: 1000;
  top: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  background: rgba(0, 22, 47, .86);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .28);
  backdrop-filter: blur(14px);
}

.action-button,
.share-menu button {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  font: 800 .82rem/1 var(--font);
  letter-spacing: .01em;
  cursor: pointer;
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 14px;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, .08);
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.action-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .42);
}

.action-button--primary {
  color: var(--navy-950);
  background: var(--gold-500);
  border-color: var(--gold-500);
}

.action-button--primary:hover {
  background: #ffd060;
  border-color: #ffd060;
}

.action-button svg,
.share-menu svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.share-wrapper {
  position: relative;
}

.share-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  padding: 8px;
  border: 1px solid rgba(0, 22, 47, .14);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(0, 22, 47, .22);
}

.share-menu[hidden] {
  display: none;
}

.share-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border-color: transparent;
  text-align: left;
}

.share-menu button:hover {
  background: #f1f5f9;
}

@media (max-width: 760px) {
  .action-toolbar {
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    justify-content: center;
    border-radius: 22px;
    flex-wrap: wrap;
  }

  .action-button {
    flex: 1 1 135px;
  }

  .share-wrapper {
    flex: 1 1 135px;
  }

  .share-wrapper > .action-button {
    width: 100%;
  }

  .share-menu {
    top: auto;
    right: 0;
    bottom: calc(100% + 10px);
    width: min(100%, 280px);
  }
}

@media (max-width: 480px) {
  .action-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .action-button {
    flex: 1 1 54px;
    padding-inline: 12px;
  }

  .action-button svg {
    width: 22px;
    height: 22px;
  }

  .share-menu span {
    position: static;
    width: auto;
    height: auto;
    clip-path: none;
    white-space: normal;
  }
}

@media (max-width: 920px) {
  body {
    background: #eef3f9;
  }

  .resume-frame {
    box-shadow: none;
  }

  .hero {
    grid-template-columns: 210px 1fr;
    min-height: auto;
    padding: 22px 22px 28px;
  }

  .portrait {
    width: 190px;
    height: 190px;
  }

  .hero__icons,
  .hero__rings {
    display: none;
  }

  .hero::after {
    display: none;
  }

  .contact-strip {
    position: static;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 12px;
    gap: 7px 12px;
  }

  .contact-strip a:not(:last-child)::after,
  .contact-strip span:not(:last-child)::after {
    display: none;
  }

  .top-grid,
  .content-columns,
  .differentials-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .differentials-grid article {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
  }

  .differentials-grid article:last-child {
    border-bottom: 0;
  }

  .availability {
    padding: 16px 24px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .portrait {
    justify-self: center;
    width: 168px;
    height: 168px;
    margin-bottom: 14px;
  }

  .role-pill {
    margin-inline: auto;
    font-size: .84rem;
    padding: 8px 10px;
  }

  .role-pill span {
    padding: 0 6px;
  }

  .contact-strip {
    justify-content: center;
  }

  .top-grid,
  .content-columns {
    padding-inline: 12px;
  }

  .key-card,
  .differentials-card {
    margin-inline: 12px;
  }

  .summary-card,
  .personal-card,
  .experience-card,
  .other-card,
  .education-card,
  .differentials-card {
    padding-inline: 18px;
  }

  .personal-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .side-item {
    grid-template-columns: 58px 1fr;
  }

  .soft-icon {
    width: 54px;
    height: 54px;
  }

  .soft-icon svg {
    width: 34px;
    height: 34px;
  }

  .education-list {
    margin-left: 0;
  }

  .availability {
    margin-inline: 12px;
  }

  .availability strong {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
