/* ============================================================
   Patrícia Sousa Silva — v4 "favo"
   Papel claro, tinta azul-noite e um único acento cor de mel.
   O hexágono do percurso é o elemento marcante; o resto é sóbrio.
   ============================================================ */

:root {
  --paper: #f6f7f5;
  --paper-2: #edf1ee;
  --white: #ffffff;
  --ink: #15243a;
  --slate: #4c5a6d;
  --line: rgba(21, 36, 58, 0.14);
  --honey: #e5a31b;
  --honey-deep: #9a6300;
  --honey-tint: #fbf0d7;
  --sage: #47705c;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --radius-s: 6px;
  --radius-m: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
::selection { background: var(--honey); color: var(--ink); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 32px; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.section { padding: clamp(64px, 9vw, 104px) clamp(20px, 4vw, 40px); }

/* ─── barra de topo ─── */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(246, 247, 245, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 17px; text-decoration: none; }
.nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); }
.nav a { text-decoration: none; color: var(--slate); font-size: 15px; }
.nav a:hover { color: var(--ink); }
.nav .nav-cv { color: var(--ink); border: 1.5px solid var(--ink); border-radius: var(--radius-s); padding: 4px 12px; font-weight: 700; }

/* ─── hero ─── */
.hero { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(32px, 5vw, 64px); align-items: center; padding-top: clamp(56px, 9vw, 104px); padding-bottom: clamp(48px, 7vw, 88px); }
.hero h1 { font-size: clamp(44px, 7vw, 80px); font-weight: 800; line-height: 0.98; letter-spacing: -0.035em; }
.hero-sub { font-family: var(--font-display); font-size: clamp(20px, 2.6vw, 27px); font-weight: 500; line-height: 1.3; color: var(--slate); margin-top: 18px; max-width: 30ch; }
.hero-text { margin-top: 24px; max-width: 58ch; color: var(--slate); }
.hero-place { margin-top: 22px; font-size: 15px; color: var(--slate); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 20px; border-radius: var(--radius-s);
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  font-weight: 700; font-size: 16px; text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}
.btn:hover { background: var(--ink); color: var(--white); }
.btn-main { background: var(--honey); border-color: var(--honey); color: var(--ink); }
.btn-main:hover { background: var(--ink); border-color: var(--ink); color: var(--honey); }

/* ─── favo do percurso ─── */
.hero-figure { margin: 0; }
.hive { width: 100%; max-width: 460px; height: auto; display: block; margin: 0 auto; overflow: visible; }
.hex { transform-box: fill-box; transform-origin: center; animation: cell-in 520ms cubic-bezier(.2,.8,.2,1) both; }
.hex polygon { stroke-width: 1.5; }
.hex-past polygon { fill: var(--white); stroke: rgba(21, 36, 58, 0.35); }
.hex-now polygon { fill: var(--honey); stroke: var(--honey); }
.hex-next polygon { fill: none; stroke: var(--honey-deep); stroke-dasharray: 5 5; }
.hex text { text-anchor: middle; fill: var(--ink); }
.hex-year { font-family: var(--font-body); font-size: 11px; fill: var(--slate) !important; }
.hex-now .hex-year { fill: var(--ink) !important; font-weight: 700; }
.hex-next .hex-year { fill: var(--honey-deep) !important; font-weight: 700; }
.hex-label { font-family: var(--font-display); font-size: 12.5px; font-weight: 700; }
.hex-now .hex-label { font-size: 14px; }
.hero-figure figcaption { text-align: center; font-size: 14px; color: var(--slate); margin-top: 10px; }
@keyframes cell-in { from { opacity: 0; transform: scale(0.82); } to { opacity: 1; transform: scale(1); } }

/* ─── o que trago ─── */
.band { background: var(--paper-2); padding: clamp(56px, 8vw, 96px) 0; border-block: 1px solid var(--line); }
.strengths { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); }
.strength { border-top: 3px solid var(--sage); padding-top: 18px; }
.strength h3 { margin-bottom: 10px; }
.strength p { color: var(--slate); font-size: 16px; }

/* ─── projetos ─── */
.status { font-size: 14px; font-weight: 700; color: var(--honey-deep); margin-bottom: 6px; }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: clamp(24px, 4vw, 44px); }
.feature-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.feature h3 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -0.02em; }
.feature-lead { margin-top: 12px; max-width: 62ch; color: var(--slate); }
.repo-pending { font-size: 14px; color: var(--slate); white-space: nowrap; }
.text-link { font-weight: 700; color: var(--ink); text-decoration-color: var(--honey); text-decoration-thickness: 2px; text-underline-offset: 4px; white-space: nowrap; }

.pipeline { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
.pipeline::before { content: ""; position: absolute; top: 9px; left: 9px; right: 9px; height: 2px; background: var(--line); }
.pipeline li { position: relative; padding-top: 32px; display: flex; flex-direction: column; gap: 4px; }
.pipeline li::before {
  content: ""; position: absolute; top: 0; left: 0; width: 20px; height: 20px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.pipeline li.done::before { background: var(--honey); }
.pipeline li.todo::before { background: var(--slate); }
.pipeline li.todo::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: var(--white);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.pipeline li.todo { color: var(--slate); }
.pip-state { font-size: 13px; color: var(--slate); }
.pipeline li.done .pip-state { color: var(--honey-deep); font-weight: 700; }
.pipeline strong { font-family: var(--font-display); font-size: 16px; color: var(--ink); line-height: 1.3; }
.pip-detail { font-size: 14px; color: var(--slate); line-height: 1.45; }

.stack-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stack-list li { font-size: 14px; padding: 3px 12px; border-radius: 999px; background: var(--paper-2); color: var(--ink); }

.minor-projects { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.minor { border: 1px solid var(--line); border-radius: var(--radius-m); padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; }
.minor h3 { margin-bottom: 10px; }
.minor > p:not(.status) { color: var(--slate); font-size: 16px; }
.minor .stack-list { margin-bottom: 20px; }
.minor .repo-pending, .minor .text-link { margin-top: auto; }

/* ─── competências ─── */
.skills { padding-top: 0; }
.skill-groups { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.skill-group { display: grid; grid-template-columns: 240px 1fr; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.skill-group dt { font-weight: 700; }
.skill-group dd { margin: 0; }
.skill-group .stack-list { margin: 0; }
.languages { margin-top: 24px; color: var(--slate); }
.languages strong { color: var(--ink); }

/* ─── percurso ─── */
#percurso { padding-top: 0; }
.timeline { list-style: none; padding: 0; margin: 0; max-width: 820px; }
.timeline li { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); }
.timeline li:first-child { border-top: 3px solid var(--honey); }
.tl-period { font-size: 15px; color: var(--slate); padding-top: 2px; }
.timeline h3 { font-size: 18px; margin-bottom: 4px; }
.timeline p { color: var(--slate); font-size: 16px; }

/* ─── contacto ─── */
.contact { background: var(--ink); color: var(--white); padding: clamp(64px, 9vw, 112px) 0; }
.contact h2 { color: var(--white); font-size: clamp(36px, 6vw, 64px); margin-bottom: 20px; }
.contact p { color: rgba(255, 255, 255, 0.78); max-width: 56ch; }
.contact .btn-main { word-break: break-all; }
.btn-light { border-color: rgba(255, 255, 255, 0.6); color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--ink); }

.foot { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 32px; font-size: 14px; color: var(--slate); }

/* ─── responsivo ─── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .hive { max-width: 340px; }
  .strengths, .minor-projects { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr; gap: 0; }
  .pipeline::before { top: 10px; bottom: 10px; left: 9px; right: auto; width: 2px; height: auto; }
  .pipeline li { padding: 0 0 18px 36px; }
  .feature-head { flex-direction: column; gap: 12px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar-in { height: 56px; gap: 10px; }
  .brand { font-size: 15px; }
  .nav { gap: 12px; }
  .nav a { font-size: 14px; }
  .skill-group { grid-template-columns: 1fr; gap: 8px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .foot { flex-direction: column; }
}
@media (max-width: 420px) {
  .brand-mid { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hex { animation: none; }
  .btn { transition: none; }
}
