/* ============================================================
   Luis Henrique — Portfólio | style.css
   Paleta: navy quase-preto + dourado envelhecido + creme
   Tipografia: Manrope (títulos) / Inter (corpo) / JetBrains Mono (labels)
   ============================================================ */

:root {
  --bg-dark: #14161c;
  --bg-dark-2: #1b1e26;
  --bg-cream: #f2ede4;
  --bg-cream-2: #ece5d8;
  --bg-light: #fbf9f5;

  --ink: #17181c;
  --ink-soft: #4a4b52;
  --paper: #f5f2ec;
  --paper-soft: #c9c7c2;

  --gold: #c9a876;
  --gold-light: #e0c99a;
  --gold-dark: #a8875a;

  --line-dark: rgba(245, 242, 236, 0.12);
  --line-light: rgba(23, 24, 28, 0.1);

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-soft: 0 20px 45px -20px rgba(20, 22, 28, 0.35);

  --font-head: "Manrope", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --container: 1160px;
  color-scheme: dark light;
}

/* ---------- reset ---------- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg-light);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; line-height: 1.15; }
p { margin: 0; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: var(--ink); padding: 10px 16px;
  z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--gold);
  color: #1a1508;
}
.btn-primary:hover { background: var(--gold-light); }
.btn-outline {
  border-color: currentColor;
  color: inherit;
}
.btn-outline:hover { background: rgba(23,24,28,0.06); }
.btn-small { padding: 9px 18px; font-size: 0.78rem; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled {
  background: rgba(20, 22, 28, 0.85);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 10px 30px -15px rgba(0,0,0,0.5);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--paper);
  margin-right: auto;
  white-space: nowrap;
}
.logo .logo-dot { color: var(--gold); }

/* ---------- logo: "LH." expande para "Luis Henrique" ao rolar ---------- */
.logo-static { display: inline-block; }
.logo-collapse {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
  max-width: 0;
  opacity: 0;
  transition: max-width .5s cubic-bezier(.65,0,.35,1), opacity .3s ease;
}
.site-header.is-scrolled .logo-collapse-uis { max-width: 4ch; opacity: 1; }
.site-header.is-scrolled .logo-collapse-space { max-width: 2ch; opacity: 1; }
.site-header.is-scrolled .logo-collapse-enrique { max-width: 9ch; opacity: 1; }
@media (max-width: 1100px) {
  .logo-collapse { max-width: 0 !important; opacity: 0 !important; }
}
.nav {
  display: flex;
  gap: 26px;
}
.nav a {
  color: var(--paper-soft);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.nav a:hover, .nav a.is-active { color: var(--paper); }
.nav a.is-active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--gold); border-radius: 2px;
}
.header-cta { margin-left: 8px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px; height: 38px;
  background: none; border: none; cursor: pointer;
  margin-left: 4px;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--paper); border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  background: radial-gradient(ellipse at 75% 10%, #23262f 0%, var(--bg-dark) 55%);
  color: var(--paper);
  padding: 168px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}
.hero-copy, .hero-media, .about-text, .about-facts { min-width: 0; }
.eyebrow, .section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}
.hero-copy h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--paper);
  margin-bottom: 14px;
}
.hero-role {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}
.role-badge {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink);
  background: var(--gold);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 500;
}
.role-sub {
  color: var(--paper-soft);
  font-size: 0.92rem;
  font-family: var(--font-mono);
}
.hero-text {
  color: var(--paper-soft);
  font-size: 1.05rem;
  max-width: 52ch;
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, auto));
  gap: 24px 28px;
  border-top: 1px solid var(--line-dark);
  padding-top: 28px;
  margin: 0;
}
.hero-stats dt {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--gold-light);
}
.hero-stats dd {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--paper-soft);
  max-width: 16ch;
}

.hero-media { display: flex; justify-content: center; }
.hero-photo-frame {
  position: relative;
  width: min(360px, 80vw);
  aspect-ratio: 3 / 4;
}
.hero-photo-frame::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  z-index: 0;
}
.hero-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* ---------- sections (shared) ---------- */
.section { padding: 110px 0; }
.section-light { background: var(--bg-cream); }
.section-dark { background: var(--bg-dark); color: var(--paper); }
.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  max-width: 22ch;
  margin-bottom: 20px;
}
.section-title-light { color: var(--paper); }
.section-eyebrow-light { color: var(--gold-light); }
.section-lead {
  color: var(--ink-soft);
  max-width: 56ch;
  margin-top: -8px;
  margin-bottom: 48px;
  font-size: 1.05rem;
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}
.about-text p {
  color: var(--ink-soft);
  margin-bottom: 18px;
  font-size: 1.02rem;
}
.about-text p:last-child { margin-bottom: 0; }
.about-facts {
  display: grid;
  gap: 18px;
  background: var(--bg-light);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 28px;
}
.about-facts li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-light);
}
.about-facts li:last-child { border-bottom: none; padding-bottom: 0; }
.about-facts span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-dark);
}
.about-facts strong { font-weight: 600; }

/* ---------- processo ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.process-card {
  background: var(--bg-light);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.process-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: var(--gold);
}
.process-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gold-dark);
  background: var(--bg-cream);
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.process-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.process-card p { color: var(--ink-soft); font-size: 0.92rem; }
.process-card-governance {
  grid-column: 1 / -1;
  background: linear-gradient(120deg, rgba(201,168,118,0.16), rgba(201,168,118,0.05));
  border-color: var(--gold);
}
.process-card-governance .process-num { background: var(--gold); color: #1a1508; }

/* ---------- tags (chip pills, reused across sections) ---------- */
.tags, .project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tags span, .project-tags span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: var(--bg-cream);
  color: var(--gold-dark);
  padding: 6px 12px;
  border-radius: 999px;
}
.section-dark .tags span { background: rgba(245,242,236,0.08); color: var(--gold-light); }

/* ---------- skills ---------- */
.skills-subhead {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.skills-subhead:not(:first-of-type) { margin-top: 48px; }

.hardskills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.hardskill-card {
  background: var(--bg-light);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.hardskill-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: var(--gold);
}
.hardskill-card h3 { font-size: 1.05rem; margin-bottom: 14px; }

.softskills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.softskill-card {
  position: relative;
  background: var(--bg-light);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 26px;
}
.softskill-num {
  position: absolute;
  top: 18px; right: 22px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--paper-soft);
  opacity: 0.5;
}
.softskill-card h3 { font-size: 1.02rem; margin: 0 26px 8px 0; }
.softskill-card p { color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- formação & certificações ---------- */
.formacao-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.formacao-card {
  background: var(--bg-dark-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 26px;
}
.formacao-card h3 {
  font-size: 1rem;
  color: var(--gold-light);
  margin-bottom: 16px;
}
.formacao-card ul { display: grid; gap: 14px; }
.formacao-card li {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-dark);
}
.formacao-card li:last-child { border-bottom: none; padding-bottom: 0; }
.formacao-card strong { display: block; font-weight: 600; color: var(--paper); font-size: 0.96rem; }
.formacao-card em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--paper-soft);
}
.formacao-progress {
  border: 1px dashed var(--line-dark);
  border-radius: var(--radius);
  padding: 22px 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  align-items: baseline;
}
.formacao-progress .progress-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-dark);
  flex-basis: 100%;
}
.formacao-progress span { color: var(--paper-soft); font-size: 0.92rem; }

/* ---------- timeline ---------- */
.timeline {
  display: grid;
  gap: 0;
  border-left: 2px solid var(--line-light);
  margin-left: 6px;
  padding-left: 36px;
}
.timeline-item {
  position: relative;
  padding-bottom: 44px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
  position: absolute;
  left: -43px;
  top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg-cream);
  border: 2px solid var(--gold);
}
.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-dark);
  margin-bottom: 6px;
}
.timeline-content h3 { font-size: 1.15rem; margin-bottom: 10px; }
.timeline-content .muted { color: var(--ink-soft); font-weight: 400; font-size: 0.9em; }
.timeline-content p { color: var(--ink-soft); max-width: 62ch; }
.timeline-content .tags { margin-top: 14px; }
.inline-link {
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.inline-link:hover { color: var(--gold); }

/* ---------- projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.project-card {
  background: var(--bg-light);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.project-card h3 { font-size: 1.15rem; }
.project-card p { color: var(--ink-soft); font-size: 0.94rem; flex-grow: 1; }
.project-link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gold-dark);
  margin-top: 4px;
}
.project-link:hover { color: var(--gold); }
.project-card-more {
  background: var(--bg-cream-2);
  justify-content: center;
  border-style: dashed;
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}
.contact-text { margin-bottom: 30px; }
.contact-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-icon { width: 18px; height: 18px; flex-shrink: 0; }
.btn-icon svg { width: 100%; height: 100%; }
.social-list {
  display: grid;
  gap: 14px;
}
.social-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background .2s ease, border-color .2s ease;
}
.social-list a:hover { background: rgba(201,168,118,0.08); border-color: var(--gold); }
.social-icon { width: 22px; height: 22px; color: var(--gold-light); flex-shrink: 0; }
.social-icon svg { width: 100%; height: 100%; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--bg-dark-2);
  color: var(--paper-soft);
  font-size: 0.85rem;
}
.footer-inner {
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; margin-bottom: 12px; }
  .hero-photo-frame { width: min(280px, 70vw); }
  .about-facts { order: 2; }
}

@media (max-width: 760px) {
  .nav, .header-cta { display: none; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-dark);
    padding: 20px 24px 28px;
    gap: 16px;
    box-shadow: 0 20px 30px -20px rgba(0,0,0,0.6);
  }
  .nav-toggle { display: flex; }
  .section { padding: 76px 0; }
  .hero { padding: 140px 0 64px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; gap: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}

/* ---------- back to top ---------- */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: #1a1508;
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
  z-index: 90;
}
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { background: var(--gold-light); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .logo-collapse { transition: none; }
}
