/* Portfólio Guilherme Vidal: estilos.
   Layout: fiel ao Figma (frame de 1280px): cabeçalho cinza-claro, hero aberto, faixa de tecnologias escura,
   projetos alternados, grade de certificados 3 colunas, bloco de contato e menu em tela cheia escuro.
   Design de tema único (claro, com menu escuro), cores definidas de forma explícita. */
:root {
  --bg: #ffffff;
  --ink: #000000;
  --muted: #7a7a7a;
  --soft: #f8f8f8;
  --band: #3b3b3f;
  --band-ink: #c9c9cf;
  --rule: #b5b5b5;
  --night: #0a0b0f;
  --night-muted: #697284;
  --night-ink: #ffffff;
  --gv-yellow: #fbab00;
  --tex: #4fbdaf;
  --condo: #362a4d;
  --condo-accent: #66b7e6;
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1128px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .brand-logo { transition: none; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; }
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--condo-accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap { max-width: calc(var(--wrap) + 32px); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* Cabeçalho */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--soft); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--soft); }
.bar { max-width: 1220px; margin: 0 auto; height: 100px; display: flex; align-items: center; justify-content: space-between;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.brand { display: flex; align-items: center; gap: 14px; line-height: 1.1; }
.brand-logo { height: 54px; width: auto; flex: none; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.04); }
.brand-text { display: flex; flex-direction: column; }
.brand b { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.brand small { font-size: 12px; font-weight: 600; letter-spacing: 0.02em; margin-top: 4px; }
.menu-btn { display: inline-flex; align-items: center; gap: 14px; font-size: 18px; font-weight: 500; padding: 8px 0; }
.menu-btn svg { width: 24px; height: 24px; }
.actions { display: flex; align-items: center; gap: 28px; }

/* Seletor de idioma */
.lang { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--rule); border-radius: 99px; }
.lang button { font-size: 12px; font-weight: 600; letter-spacing: .04em; padding: 4px 9px; border-radius: 99px; color: var(--muted); transition: background .15s, color .15s; }
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.overlay .lang { border-color: #2a2d36; }
.overlay .lang button { color: var(--night-muted); }
.overlay .lang button:hover { color: var(--night-ink); }
.overlay .lang button[aria-pressed="true"] { background: var(--night-ink); color: var(--night); }

/* Hero */
.hero { padding-block: 150px 160px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px; }
.hero { overflow-x: clip; }
.hero-copy { min-width: 0; }

/* Foto em círculo com uma órbita amarela, ecoando a logo GV */
.hero-photo { --size: clamp(220px, 26vw, 330px); position: relative; margin: 0 24px 0 0; width: var(--size); aspect-ratio: 1; max-width: 100%; }
.hero-photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; border-radius: 50%; display: block;
  box-shadow: 0 0 0 8px var(--bg), 0 18px 40px rgba(0,0,0,.12); }
.hero-photo .orbit { position: absolute; inset: -7%; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--ink); border-left-color: var(--ink);
  transform: rotate(-30deg); }
.hero-photo .orbit::before { content: ""; position: absolute; inset: -5%; border-radius: 50%; border: 6px solid transparent; border-bottom-color: var(--gv-yellow); border-right-color: var(--gv-yellow); }
.hero-photo .orbit::after { content: ""; position: absolute; width: 9%; aspect-ratio: 1; border-radius: 50%; background: var(--gv-yellow); top: 7%; right: 8%; box-shadow: 0 0 0 5px var(--bg); }
@media (prefers-reduced-motion: no-preference) { .hero-photo .orbit { animation: orbit 18s linear infinite; } }
@keyframes orbit { to { transform: rotate(330deg); } }
.hero h1 { font-size: clamp(40px, 6.2vw, 64px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; }
.hero p { max-width: 660px; margin-top: 22px; font-size: 16px; line-height: 1.5; }
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 56px; margin-top: 18px; }
.hero-links a { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 600; }
.hero-links a { position: relative; padding-bottom: 6px; }
.hero-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: currentColor;
  opacity: 0; transform: scaleX(0); transform-origin: left center; transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .35s ease; }
.hero-links a:hover::after, .hero-links a:focus-visible::after { opacity: .55; transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .hero-links a::after { transition: opacity .2s ease; transform: scaleX(1); } }
.hero-links svg { width: 26px; height: 26px; }
.li-word { height: 22px; width: auto !important; }

/* Faixa de tecnologias */
.stack { background: var(--band); overflow: hidden; position: relative; }
.stack::before, .stack::after { content: ""; position: absolute; top: 0; bottom: 0; width: 72px; z-index: 1; pointer-events: none; }
.stack::before { left: 0; background: linear-gradient(90deg, var(--band), transparent); }
.stack::after { right: 0; background: linear-gradient(270deg, var(--band), transparent); }
.stack ul { list-style: none; margin: 0; padding: 20px 0; display: flex; flex-wrap: nowrap; align-items: center; width: max-content; will-change: transform; }
.stack li { display: flex; flex: none; padding-inline: 25px; }
.stack img { height: 51px; width: auto; display: block; transition: transform .2s ease; }
.stack img.wide { height: 24px; }
.stack li:hover img { transform: translateY(-3px) scale(1.06); }
/* Sem animação: volta para a faixa estática em linhas */
.stack.static ul { width: auto; max-width: 1140px; margin: 0 auto; flex-wrap: wrap; justify-content: space-between; gap: 20px 24px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.stack.static li { padding-inline: 0; }
.stack.static::before, .stack.static::after { display: none; }

/* Seções */
.eyebrow { color: var(--muted); font-size: 18px; font-weight: 400; }
.section-title { font-size: clamp(36px, 4.6vw, 52px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
section { scroll-margin-top: 110px; }

.projects { padding-block: 86px 40px; }
.project { display: grid; grid-template-columns: 317px minmax(0, 1fr); gap: 36px; align-items: start; padding-block: 44px 34px; }
.project + .project { border-top: 1px solid var(--rule); padding-top: 32px; }
.project.flip { grid-template-columns: minmax(0, 1fr) 319px; gap: 39px; }
.project.flip .shot { order: 2; }
.shot { width: 100%; max-width: 100%; display: block; }
.project h3 { font-size: clamp(26px, 2.9vw, 34px); font-weight: 600; line-height: 1.3; margin-top: 2px; }
.project p { font-size: 16.5px; line-height: 1.45; margin-top: 12px; }
.tex { color: var(--tex); }
.condo { color: var(--condo); }
.condo-accent { color: var(--condo-accent); }
.pill-btn { display: inline-flex; align-items: center; gap: 9px; margin-top: 12px; padding: 7px 12px; border: 1px solid #000; border-radius: 10px; font-size: 14.5px; transition: background .15s, color .15s; }
.pill-btn:hover { background: var(--ink); color: var(--bg); }
.pill-btn svg { width: 19px; height: 19px; }
.other { display: block; width: fit-content; margin: 54px auto 0; font-size: 28px; font-weight: 600; }
.other:hover { text-decoration: underline; text-underline-offset: 6px; }

/* Certificados */
.certs { padding-block: 50px 46px; }
.cert-grid { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 54px; }
.cert { position: relative; border: 1px solid #000; border-radius: 8px; padding: 13px 15px 12px; min-height: 73px; transition: box-shadow .15s; }
.cert:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.cert h3 { display: inline; font-size: 16px; font-weight: 600; line-height: 1.5; }
.date { display: inline-block; vertical-align: 2px; font-size: 9px; font-weight: 600; border: 1px solid #000; border-radius: 99px; padding: 1px 4px; margin-left: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Contato */
.cta { text-align: center; padding-block: 50px 64px; }
.cta .eyebrow { font-size: 21px; font-weight: 600; color: #8a8a8a; }
.cta h2 { font-size: clamp(34px, 5vw, 56px); font-weight: 600; line-height: 1.2; margin-top: 2px; }
.about { padding-block: 26px 70px; }
.about .eyebrow { margin-left: 1px; }
.card { background: var(--soft); margin-top: 26px; padding: 34px 36px 44px; }
.card h3 { font-size: 30px; font-weight: 600; }
.card .lead { font-size: 20px; margin-top: 6px; }
.facts { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; font-size: 16px; }
.facts li { display: flex; align-items: center; gap: 12px; overflow-wrap: anywhere; }
.facts svg { width: 22px; height: 22px; flex: none; }
.copy { font-size: 12px; font-weight: 500; border: 1px solid #000; border-radius: 99px; padding: 1px 9px; }
.copy:hover { background: #000; color: #fff; }
.card h4 { margin: 20px 0 0; font-size: 18px; font-weight: 600; }
.socials { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 12px; }
.socials a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 123px; height: 38px; border: 1px solid #000; border-radius: 4px; font-size: 18px; font-weight: 600; }
.socials a:hover { background: #fff; }
.socials svg { width: 24px; height: 24px; }

footer.site { background: var(--band); color: var(--band-ink); text-align: center; font-weight: 600; font-size: 17px; padding-block: 21px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* Menu em tela cheia */
.overlay { position: fixed; inset: 0; z-index: 50; background: var(--night); color: var(--night-ink); display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
.overlay.open { opacity: 1; visibility: visible; transition: opacity .35s ease, visibility 0s; }
.overlay .bar { width: 100%; flex: none; }
.overlay .menu-btn { color: var(--night-ink); }
.overlay .menu-btn svg { width: 20px; height: 20px; }
.overlay nav { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-block: 20px; overflow-y: auto; }
.overlay nav > span { font-size: 18px; font-weight: 600; letter-spacing: 0.02em; margin-bottom: 18px; }
.overlay ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.overlay li a { display: inline-block; font-size: clamp(44px, 8.5vw, 72px); font-weight: 700; line-height: 1.32; color: var(--night-muted); letter-spacing: -0.005em;
  transform: translateY(18px); opacity: 0; transition: color .2s ease, transform .5s cubic-bezier(.2,.7,.2,1), opacity .5s ease; }
.overlay.open li a { transform: none; opacity: 1; }
.overlay.open li:nth-child(2) a { transition-delay: 0s, .05s, .05s; }
.overlay.open li:nth-child(3) a { transition-delay: 0s, .1s, .1s; }
.overlay.open li:nth-child(4) a { transition-delay: 0s, .15s, .15s; }
.overlay.open li:nth-child(5) a { transition-delay: 0s, .2s, .2s; }
.overlay li a[aria-current="true"], .overlay li a:hover, .overlay li a:focus-visible { color: var(--night-ink); }
.overlay ul:hover a[aria-current="true"]:not(:hover) { color: var(--night-muted); }
.overlay li a { position: relative; }
.overlay .ext { position: absolute; left: 100%; top: .35em; font-size: .35em; margin-left: 6px; opacity: 0; transition: opacity .2s; }
.overlay li a:hover .ext { opacity: 1; }
.overlay footer { text-align: center; color: var(--night-muted); font-weight: 600; font-size: 17px; padding-block: 20px 22px; }
@media (prefers-reduced-motion: reduce) { .overlay, .overlay li a { transition: none !important; } }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); background: #000; color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 60; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 960px) {
  .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .project, .project.flip { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .project.flip .shot { order: 0; }
  .shot { max-width: 420px; }
}
@media (max-width: 640px) {
  .bar { height: 76px; }
  .brand { gap: 9px; }
  .brand-logo { height: 36px; }
  .brand-text { white-space: nowrap; }
  .brand b { font-size: 17px; }
  /* No celular o seletor de idioma fica só dentro do menu */
  .site-header .lang { display: none; }
  .brand small { font-size: 9px; }
  .menu-btn { font-size: 16px; gap: 10px; }
  .actions { gap: 12px; }
  .lang button { padding: 4px 7px; font-size: 11px; }
  .hero { padding-block: 56px 80px; grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-photo { --size: 200px; order: -1; margin: 0 auto; }
  .hero-links { gap: 14px 28px; }
  .hero-links a { font-size: 17px; }
  .stack.static ul { justify-content: center; gap: 16px 22px; }
  .stack li { padding-inline: 18px; }
  .stack::before, .stack::after { width: 36px; }
  .stack img { height: 40px; }
  .stack img.wide { height: 20px; }
  .projects { padding-block: 56px 24px; }
  .cert-grid { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 24px 20px 30px; }
  .card h3 { font-size: 24px; }
  .card .lead { font-size: 17px; }
  .other { font-size: 22px; }
  footer.site, .overlay footer { font-size: 14px; }
}

/* Assinatura da logo GV: a bolinha amarela no fim dos títulos */
.hero h1::after, .section-title::after, .cta h2::after {
  content: ""; display: inline-block; width: .17em; height: .17em; margin-left: .07em; border-radius: 50%; background: var(--gv-yellow); vertical-align: baseline; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.gv-ball { width: 12px; height: 12px; border-radius: 50%; background: var(--gv-yellow); box-shadow: 0 0 0 4px rgba(251,171,0,.18); flex: none; }

/* Achadim em destaque, na identidade do portfólio: fundo amarelo suave, tirado do amarelo
   da logo GV, que também aparece nos detalhes. */
.feature { --f-bg: #fff6dc; --f-ink: var(--ink); --f-muted: #555a66; --f-line: #f0dca3; --f-tile: #ffffff; --f-ring: #f0dca3;
  background: var(--f-bg); color: var(--f-ink); padding-block: 96px 64px; scroll-margin-top: 100px; }
.feature-inner, .ach-stats { max-width: calc(var(--wrap) + 32px); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.feature-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.feature-copy { min-width: 0; }
.feature-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--f-ink); }
.feature-eyebrow::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--gv-yellow); box-shadow: 0 0 0 4px rgba(251,171,0,.22); }
.ach-brand { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 22px; font-weight: 600; color: var(--f-ink); }
.ach-brand img { width: 40px; height: 40px; border-radius: 10px; }
.ach-brand i { font-style: normal; color: var(--gv-yellow); }
.feature-title { margin-top: 14px; font-size: clamp(42px, 5.6vw, 68px); font-weight: 700; line-height: 1.04; letter-spacing: -.02em; color: var(--f-ink); }
.feature-title::after { content: ""; display: inline-block; width: .15em; height: .15em; margin-left: .06em; border-radius: 50%; background: var(--gv-yellow); }
.feature-text { margin-top: 20px; max-width: 540px; font-size: 16.5px; line-height: 1.6; color: var(--f-muted); }
.ach-features { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.ach-features li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 500; line-height: 1.35; }
.ach-features svg { width: 38px; height: 38px; padding: 9px; flex: none; border-radius: 50%; background: var(--f-tile); color: #000; box-shadow: inset 0 0 0 1px var(--f-line), inset 0 -3px 0 var(--gv-yellow); }
.feature-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn-ach { display: inline-flex; align-items: center; padding: 12px 22px; border-radius: 99px; background: #000; color: #fff; font-weight: 600; font-size: 15px; transition: transform .15s, box-shadow .15s; }
.btn-ach:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.18), inset 0 -3px 0 var(--gv-yellow); }
.btn-ach.ghost { background: transparent; color: #000; box-shadow: inset 0 0 0 1.5px #000; }
.btn-ach.ghost:hover { background: #000; color: #fff; box-shadow: none; }
.feature-media { margin: 0; min-width: 0; position: relative; }
.feature-media::before { content: ""; position: absolute; inset: 8% 6% 4% 12%; border-radius: 50%; border: 2px solid var(--f-ring); border-bottom-color: var(--gv-yellow); border-right-color: var(--gv-yellow); transform: rotate(-12deg); }
.feature-media img { position: relative; width: 100%; height: auto; display: block; }
.ach-stats { list-style: none; margin-top: 52px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ach-stats li { border-top: 2px solid var(--f-line); padding-top: 18px; display: grid; align-content: start; gap: 4px; }
.ach-stats li:first-child { border-top-color: var(--gv-yellow); }
.ach-stats b { font-size: 30px; font-weight: 700; letter-spacing: -.01em; }
.ach-stats span { font-size: 14px; color: var(--f-muted); line-height: 1.4; }

@media (max-width: 960px) {
  .feature-inner { grid-template-columns: minmax(0, 1fr); }
  .feature-media { max-width: 560px; }
  .ach-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .feature { padding-block: 56px 40px; }
  .ach-features { grid-template-columns: minmax(0, 1fr); }
  .hero-eyebrow { font-size: 12px; }
}
